/* Custom CSS styles */

/* ===========================================
   Article Typography
   =========================================== */
article {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

article h1 {
    font-size: 2.25rem; /* 36px */
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #111827;
}

article h2 {
    font-size: 1.875rem; /* 30px */
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    color: #111827;
}

article h3 {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

article h4 {
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.5rem;
    margin-bottom: 0.875rem;
    color: #1f2937;
}

article h5 {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    line-height: 1.5;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

article h6 {
    font-size: 1rem; /* 16px */
    font-weight: 600;
    line-height: 1.5;
    margin-top: 1rem;
    margin-bottom: 0.625rem;
    color: #374151;
}

article p {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

article ul {
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
    list-style-type: disc;
    list-style-position: outside;
}

article ul li::marker {
    color: #b9cf21;
}

/* Nested lists - blue color */
article ul ul li::marker,
article ol ul li::marker {
    color:rgb(105, 143, 176);
}

article ol {
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
    list-style-type: decimal;
    list-style-position: outside;
}

article li {
    margin-bottom: 0.5rem;
    display: list-item;
}

article a {
    color: #b9cf21;
    text-decoration: underline;
    transition: color 0.2s ease;
}

article a:hover {
    color: #a8dc9d;
}

article blockquote {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid #b9cf21;
    font-style: italic;
    color: #4b5563;
}

article code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #dc2626;
}

article pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

article pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

article img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

article table th,
article table td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

article table th {
    background-color: #f9fafb;
    font-weight: 600;
}

article hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* Responsive typography */
@media (max-width: 768px) {
    article h1 {
        font-size: 1.875rem; /* 30px */
    }
    
    article h2 {
        font-size: 1.5rem; /* 24px */
    }
    
    article h3 {
        font-size: 1.25rem; /* 20px */
    }
    
    article h4 {
        font-size: 1.125rem; /* 18px */
    }
}

/* ===========================================
   Smart App Banner (Android)
   =========================================== */
.smart-app-banner {
    position: relative;
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 1px solid rgba(174, 255, 0, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

.smart-app-banner.android {
    display: flex;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.smart-app-banner.hidden {
    display: none !important;
}

.smart-banner-close {
    flex-shrink: 0;
    padding: 0.25rem;
    color: rgba(255, 255, 255, 0.6);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.smart-banner-close:hover {
    color: white;
}

.smart-banner-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(174, 255, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.smart-banner-icon img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.smart-banner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    overflow: hidden;
}

.smart-banner-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smart-banner-author {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.smart-banner-rating {
    font-size: 0.625rem;
    color: #aeff00;
    letter-spacing: 0.05em;
}

.smart-banner-button {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #000;
    background: #aeff00;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.smart-banner-button:hover {
    background: #c5ff4d;
    transform: scale(1.02);
}

/* Hide on desktop - show only on mobile */
@media (min-width: 768px) {
    .smart-app-banner {
        display: none !important;
    }
}

/* Adjust header position when banner is visible */
.smart-app-banner.android ~ .bg-gray-900 > header {
    top: 72px;
}

@media (min-width: 768px) {
    .smart-app-banner.android ~ .bg-gray-900 > header {
        top: 0;
    }
}

/* Orbital animation for SoGé Ados section */
.avantages-clouds {
    perspective: 800px;
    position: relative;
}

/* Card styles for smooth animation */
.avantages-clouds .card-ados-item {
    will-change: transform, z-index;
    backface-visibility: hidden;
}

/* Phone stays at z-index 15 - cards orbit around it:
   - Front cards (bottom, z-index 25) appear IN FRONT of phone
   - Back cards (top, z-index 5) appear BEHIND phone */
.avantages-clouds .ados-phone-item {
    position: relative;
    z-index: 15 !important;
}

/* ===========================================
   Header Swipers - Main Content & Images
   =========================================== */

.swiper-header-content,
.swiper-header-images {
    width: 100%;
}

/* Entry animation for lights - turn on with opacity */
@keyframes lightOn {
    from {
        opacity: 0;
        transform: scale(1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.light1,
.light2,
.light3 {
    opacity: 0;
}

.light1 {
    animation: lightOn 0.8s ease-out 0.4s forwards;
}

.light2 {
    animation: lightOn 0.5s ease-out 0.5s forwards;
}

.light3 {
    animation: lightOn 0.5s ease-out 0.6s forwards;
}

/* Entry animation for header images - after lights */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.swiper-header-images {
    animation: slideInFromBottom 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
}

/* Content slider parallax animation on load ONLY */
@keyframes parallaxFadeIn {
    0% {
        opacity: 0;
        transform: translateX(60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Only animate on initial page load - class removed after animation */
.swiper-header-content.initial-load .swiper-slide-active h1 {
    animation: parallaxFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.swiper-header-content.initial-load .swiper-slide-active p {
    animation: parallaxFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.swiper-header-content.initial-load .swiper-slide-active .btn-download-app,
.swiper-header-content.initial-load .swiper-slide-active > div:last-child {
    animation: parallaxFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

/* Images swiper - fix fade effect stacking */
.swiper-header-images .swiper-wrapper {
    position: relative;
}

.swiper-header-images .swiper-slide {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: auto !important;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

/* First slide maintains height for container */
.swiper-header-images .swiper-slide:first-child {
    position: relative !important;
}

/* Active slide is always visible - use higher specificity */
.swiper-header-images .swiper-slide.swiper-slide-active {
    opacity: 1 !important;
    z-index: 2;
}

/* ===========================================
   Synchronized Swipers - Banque Digitale
   =========================================== */

.swiper-titles,
.swiper-screens,
.swiper-descriptions {
    width: 100%;
}

.swiper-icons {
    border-radius: 50%;
}


/* Override autoheight for screens swiper */
.sections-vertical-slider .swiper-paiements-screens .swiper-slide,
.sections-vertical-slider  .swiper-screens .swiper-slide {
    min-height: 400px;
}

/* Navigation arrows */
.swiper-nav-prev.swiper-button-disabled,
.swiper-nav-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Pagination dots */
.swiper-pagination-dots {
    position: static !important;
    display: flex !important;
    gap: 0.45rem;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
    transform: none !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
}

.swiper-pagination-dots .swiper-pagination-bullet {
    width: 0.75rem;
    height: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-dots .swiper-pagination-bullet-active {
    background: white;
}

/* Dynamic transitions for titles and descriptions */
.swiper-titles .swiper-slide,
.swiper-descriptions .swiper-slide {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease-in-out;
}

.swiper-titles .swiper-slide-active,
.swiper-descriptions .swiper-slide-active {
    opacity: 1;
}

/* ===========================================
   Innovations Cards Swiper
   =========================================== */

.swiper-innovations-cards {
    width: 100%;
}

.swiper-innovations-cards .swiper-slide {
    border-radius: 1rem;
    overflow: hidden;
    height: auto;
}

.swiper-innovations-cards .swiper-slide .bloc-card {
    height: 100%;
}

/* Mobile: Cards effect - fixed dimensions & overflow visible */
@media (max-width: 639px) {
    .swiper-innovations-cards {
        width: 300px;
        height: 480px;
        overflow: visible !important;
    }
}

/* Desktop: Slide effect - clip overflow */
@media (min-width: 640px) {
    .swiper-innovations-cards {
        overflow: hidden;
    }
}

/* ===========================================
   Pack Details Swiper (Horizontal Scroll)
   =========================================== */

.swiper-pack-details {
    width: 100%;
    padding-bottom: 1rem;
}

.swiper-pack-details .swiper-slide-active {
    width: auto;
    height: auto;
    min-width: 100%;
}

/* ===========================================
   Pack Toggle Animations
   =========================================== */

/* Slide out down (collapse content) */
.pack-slide-out {
    animation: slideOutDown 0.3s ease forwards;
}

@keyframes slideOutDown {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(10px); }
}

/* Slide in from left (expand detail) */
.pack-slide-in {
    animation: slideInLeft 0.4s ease forwards;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Slide out to right (collapse detail) */
.pack-slide-out-right {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(20px); }
}

/* Slide in from top (show content when collapsing) */
.pack-slide-in-down {
    animation: slideInFromTop 0.3s ease-out forwards;
}

@keyframes slideInFromTop {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fade out (hide price when collapsing) */
.pack-fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Fade in (show price when expanding) */
.pack-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===========================================
   Cards Coverflow Swiper
   =========================================== */


.swiper-cards-coverflow .swiper-slide {
    width: 14rem;
}

.swiper-cards-coverflow .swiper-slide-shadow-left.swiper-slide-shadow-coverflow{
    background-image: linear-gradient(to left, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0));
}


.swiper-cards-coverflow .swiper-slide-shadow-right.swiper-slide-shadow-coverflow{
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.swiper-cards-coverflow .swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Cards navigation arrows */
.swiper-cards-prev,
.swiper-cards-next {
    cursor: pointer;
}

.swiper-cards-prev.swiper-button-disabled,
.swiper-cards-next.swiper-button-disabled {
    opacity: 0.3;
}

/* ================================
   Vertical Sections Slider
   ================================ */

/* Default state (mobile / swiper not active) - sections stack normally */

.sections-vertical-slider .swiper-sections-pagination {
    display: none;
}

/* Mobile: Display slides as normal stacked content */
/* Use direct child selectors to avoid affecting nested swipers */
.sections-vertical-slider:not(.swiper-active) .swiper-sections-vertical {
    height: auto !important;
}

.sections-vertical-slider:not(.swiper-active) > .swiper-sections-vertical > .swiper-wrapper {
    display: block;
    transform: none !important;
}

.sections-vertical-slider:not(.swiper-active) > .swiper-sections-vertical > .swiper-wrapper > .swiper-slide {
    display: block;
    width: 100% !important;
    height: auto !important;
    margin: 0;
}


/* When swiper is active (md+) */
@media (min-width: 768px) {
    .sections-vertical-slider.swiper-active {
        position: relative;
        overflow: hidden;
    }

    .sections-vertical-slider{
        position: relative;
    }

    /* Vertical pagination dots */
    .sections-vertical-slider.swiper-active .swiper-sections-pagination {
        display: flex;
        flex-direction: column;
        gap: 24px;
        position: absolute;
        right: 1rem;
        top: 350px;
        z-index: 10;
        overflow: visible;
    }

    .sections-vertical-slider > .swiper-sections-vertical > .swiper-wrapper > .swiper-slide {
        height: auto !important;
    }
    
    .swiper-sections-pagination .swiper-pagination-bullet {
        position: relative;
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
        overflow: visible;
        opacity: 1;
    }
    
    .swiper-sections-pagination .swiper-pagination-bullet .bullet-name {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.65rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 2px 8px;
        border-radius: 20px;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .swiper-sections-pagination .swiper-pagination-bullet .bullet-dot {
        display: none;
    }
    
    .swiper-sections-pagination .swiper-pagination-bullet-active {
        background: #b9cf21;
        transform: scale(1.2);
    }
    
    .swiper-sections-pagination .swiper-pagination-bullet-active .bullet-name {
        color: #b9cf21;
        border-color: #b9cf21;
    }
    
    .swiper-sections-pagination .swiper-pagination-bullet:hover {
        background: rgba(255, 255, 255, 0.8);
    }
    
    .swiper-sections-pagination .swiper-pagination-bullet:hover .bullet-name {
        color: rgba(255, 255, 255, 0.8);
        border-color: rgba(255, 255, 255, 0.5);
    }
}

/* ===========================================
   Packs Section - Autres avantages
   =========================================== */

/* List marker colors - Tailwind marker: doesn't work with arbitrary values in all cases */
.section-benefits .pack.bg-primary-light .avantage-detail-item ul li::marker,
.section-benefits .pack.bg-primary-light .avantage-detail-item ol li::marker {
    color: #b9cf21;
}

.section-benefits .pack.bg-\[#1a1a1a\] .avantage-detail-item ul li::marker,
.section-benefits .pack.bg-\[#1a1a1a\] .avantage-detail-item ol li::marker {
    color: #ffffff;
}

