/* =====================================================
   landing_page/style.css â€” Feuille de style Landing Page
   ===================================================== */

/* 1. Design System & Variables */
:root {
    --bg-dark: 224, 20%, 7%;        /* #0b0c10 - Fond principal */
    --bg-card: 224, 18%, 11%;       /* #151821 - Fond des cartes */
    --bg-card-hover: 224, 18%, 15%; /* #1e222f - Hover cartes */
    --accent: 140, 100%, 45%;       /* #00e676 - Vert nÃ©on principal */
    --accent-glow: 140, 100%, 45%, 0.15;
    --text-white: 0, 0%, 100%;
    --text-muted: 224, 10%, 65%;
    --border: 224, 15%, 18%;        /* Bordures subtiles */
    --gradient-glow: linear-gradient(135deg, hsl(140, 100%, 45%), hsl(160, 100%, 40%));
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Variables de support dynamiques */
    --whatsapp-color: 142, 70%, 49%;
    --telegram-color: 200, 100%, 40%;
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    background-color: hsl(var(--bg-dark));
    color: hsl(var(--text-white));
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Grilles & Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typographie & Titres */
h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

p {
    color: hsl(var(--text-muted));
    font-size: 1.1rem;
    font-weight: 400;
}

/* Gradients et Effets spÃ©ciaux */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, hsl(var(--accent)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-accent {
    color: hsl(var(--accent)) !important;
}

/* Orbes NÃ©on d'ambiance */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: hsl(var(--accent));
    top: -150px;
    right: -100px;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: #00bcd4;
    top: 300px;
    left: -150px;
}

/* 2. Header / Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: rgba(11, 12, 16, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.3));
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: hsl(var(--text-white));
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.brand-accent {
    color: hsl(var(--accent));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-header,
.sidebar-footer {
    display: none;
}

.nav-items-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85%;
        height: 100vh;
        background-color: hsl(var(--bg-card));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10000; /* Très haut pour être au-dessus de tout */
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-items-wrapper {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
        margin-top: 20px;
    }

    .nav-item {
        width: 100%;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        display: flex;
        align-items: center;
    }

    .nav-item i {
        display: inline-block;
        font-size: 1.2rem;
        color: hsl(var(--accent));
    }

    .sidebar-header {
        display: flex;
        justify-content: flex-end;
        width: 100%;
        margin-bottom: 20px;
    }

    .sidebar-close {
        background: none;
        border: none;
        color: hsl(var(--text-white));
        font-size: 1.5rem;
        cursor: pointer;
    }

    .sidebar-footer {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: auto;
        padding-top: 30px;
    }

    .btn-support-sidebar {
        width: 100%;
        justify-content: center;
        padding: 15px;
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        margin-bottom: 20px;
    }

    .language-switcher {
        margin: 20px 0;
        width: 100%;
        justify-content: flex-start;
    }

    .btn-support-nav {
        display: none;
    }
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switcher a {
    color: hsl(var(--text-muted));
    text-decoration: none;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 5px;
    transition: var(--transition-smooth);
}

.language-switcher a:hover {
    color: hsl(var(--accent));
    background-color: rgba(0, 230, 118, 0.1);
}

.language-switcher a.active {
    color: hsl(var(--accent));
    background-color: rgba(0, 230, 118, 0.15);
}

.language-switcher span {
    color: hsl(var(--text-muted));
}

.nav-item {
    color: hsl(var(--text-muted));
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 0; /* Réinitialise le padding pour PC */
    opacity: 1; /* Assure la visibilité sur PC */
    transform: translateX(0); /* Réinitialise la transformation pour PC */
}

.nav-item i {
    display: none; /* Cache les icônes sur PC */
}

.nav-item:hover {
    color: hsl(var(--text-white));
}

.nav-item:hover {
    color: hsl(var(--text-white));
}

/* Boutons & CTAs */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--gradient-glow);
    color: #050508;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 230, 118, 0.25);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 230, 118, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    color: hsl(var(--text-white));
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-support-nav {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    color: hsl(var(--text-white));
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.btn-support-nav:hover {
    background: var(--support-color, hsl(var(--accent)));
    color: #050508;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--support-shadow, rgba(0, 230, 118, 0.25));
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: hsl(var(--text-white));
    font-size: 1.8rem;
    cursor: pointer;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999; /* Juste en dessous du sidebar (10000) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 3. Hero Section */
.hero-section {
    position: relative;
    padding-top: 170px;
    padding-bottom: 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.badge-premium-glow {
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 230, 118, 0.06);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: hsl(var(--accent));
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.03em;
}

.hero-desc {
    font-size: 1.25rem;
    line-height: 1.55;
    margin-bottom: 36px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 32px;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ffffff 40%, hsl(var(--accent)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-lbl {
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.metric-divider {
    width: 1px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.mockup-bg-glow {
    position: absolute;
    width: 320px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.25) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.app-mockup-img {
    width: 100%;
    max-width: 330px;
    height: auto;
    object-fit: contain;
    border-radius: 36px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
    animation: float 6s ease-in-out infinite;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .app-mockup-img {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 4. Features Section */
.features-section {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tagline {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: hsl(var(--accent));
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.15rem;
    margin-top: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background-color: hsl(var(--bg-card));
    border: 1px solid hsl(var(--border));
    border-radius: 20px;
    padding: 36px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(0, 230, 118, 0.06), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 230, 118, 0.25);
    background-color: hsl(var(--bg-card-hover));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.icon-box {
    width: 56px;
    height: 56px;
    background-color: rgba(0, 230, 118, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--accent));
    font-size: 1.6rem;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 230, 118, 0.15);
}

.feature-card h3 {
    color: #ffffff;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 5. How It Works Section */
.how-works-section {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.step-card {
    position: relative;
    padding: 30px;
}

.step-num {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -20px;
    left: 20px;
    line-height: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-card h3 {
    margin-top: 24px;
    font-size: 1.35rem;
}

/* 6. Pricing Section */
.pricing-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.period-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 14px;
    color: hsl(var(--text-muted));
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.period-tab:hover {
    color: hsl(var(--text-white));
}

.period-tab.active {
    background: var(--gradient-glow);
    color: #050508;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.2);
}

.pricing-card-wrapper {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 40px;
    align-items: stretch;
}

.pricing-card {
    background: linear-gradient(135deg, hsl(var(--bg-card)) 0%, rgba(21, 24, 33, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 230, 118, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.premium-card {
    border-color: rgba(0, 230, 118, 0.3);
    background: linear-gradient(135deg, hsl(var(--bg-card)) 0%, rgba(0, 230, 118, 0.03) 100%);
}

.premium-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(0, 230, 118, 0.15), transparent 70%);
    pointer-events: none;
}

.pricing-popular-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--gradient-glow);
    color: #050508;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header h3 {
    font-size: 1.6rem; /* Réduction de la taille de la police */
    margin-bottom: 6px; /* Réduction de la marge inférieure */
}

.pricing-header p {
    font-size: 0.9rem; /* Réduction de la taille de la police */
    margin-bottom: 16px; /* Réduction de la marge inférieure */
}

.price-box {
    display: flex;
    flex-direction: column; /* Empile les éléments verticalement */
    align-items: flex-start; /* Aligne les éléments à gauche */
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 18px;
}

.price-details-group {
    display: flex;
    flex-direction: row; /* Place les éléments côte à côte */
    align-items: baseline; /* Aligne les éléments sur leur ligne de base */
    gap: 12px; /* Ajoute un espace entre l'économie et le total */
    margin-top: 8px; /* Ajoute un peu d'espace au-dessus du groupe */
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price {
    font-size: 2.8rem; /* Réduction de la taille de la police */
    font-weight: 800;
    color: hsl(var(--text-white));
    line-height: 1;
}

.period {
    font-size: 1.2rem;
    color: hsl(var(--text-muted));
    margin-left: 8px;
}

.original-price {
    font-size: 1.2rem;
    color: hsl(var(--text-muted));
    text-decoration: line-through;
    margin-left: 8px;
}

.pricing-features ul {
    list-style: none;
    margin-bottom: 30px; /* Réduction de la marge inférieure */
}

.pricing-features {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-features li {
    display: flex;
    align-items: center;
    color: #e0e0e0;
    font-size: 1rem; /* Légère réduction de la taille de la police */
    margin-bottom: 12px; /* Réduction de la marge inférieure */
}

.pricing-action {
    text-align: center;
    margin-top: auto;
}

.pricing-hint {
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
    margin-top: 12px;
}

.btn-pricing-cta {
    width: 100%;
    justify-content: center;
    padding: 16px;
    border-radius: 6px;
    font-size: 1.1rem;
}

.pricing-hint {
    font-size: 0.8rem;
    color: hsl(var(--text-muted));
    margin-top: 12px;
}

.btn-pricing-cta {
    width: 100%;
    justify-content: center;
    padding: 18px;
    border-radius: 14px;
    font-size: 1.15rem;
}

/* 7. Download Section */
.download-section {
    padding: 60px 0;
    position: relative;
}

.download-box {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.08) 0%, rgba(21, 24, 33, 0.9) 100%);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 28px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.download-content {
    max-width: 600px;
    z-index: 2;
}

.download-content h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.apk-info {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    color: #ffffff;
    font-size: 0.95rem;
    align-items: center;
}

.apk-info .divider {
    color: rgba(255, 255, 255, 0.2);
}

.download-badge-icon {
    font-size: 12rem;
    color: rgba(0, 230, 118, 0.03);
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.15rem;
    border-radius: 14px;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.apk-download-hint {
    margin: 0;
    font-size: 0.95rem;
    color: hsl(var(--text-muted));
}

.apk-download-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 5, 10, 0.88);
    z-index: 3000;
}

.apk-download-modal.show {
    display: flex;
}

.apk-download-dialog {
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: linear-gradient(135deg, rgba(20, 24, 33, 0.98) 0%, rgba(10, 14, 20, 0.98) 100%);
    border: 1px solid rgba(0, 230, 118, 0.18);
    border-radius: 24px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.apk-download-modal-header,
.apk-download-modal-footer {
    padding: 24px 28px;
}

.apk-download-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.apk-download-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.apk-download-modal-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.apk-download-modal-close:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.apk-download-modal-close:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.apk-download-modal-body {
    padding: 28px;
}

.apk-download-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.apk-download-countdown,
.apk-download-status {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px 18px;
}

.apk-download-countdown-label,
.apk-download-status-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.apk-download-countdown-value {
    font-size: 2rem;
    font-weight: 800;
    color: hsl(var(--accent));
}

.apk-download-status-text {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.apk-download-video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.apk-download-video-frame iframe,
.apk-download-video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.apk-download-description {
    margin: 0;
    color: hsl(var(--text-muted));
    line-height: 1.7;
}

.apk-download-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.apk-download-footer-note {
    margin: 0;
    color: hsl(var(--text-muted));
    font-size: 0.92rem;
}

.apk-download-footer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.btn-outline-light:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

body.apk-download-modal-open {
    overflow: hidden;
}

/* 8. FAQ Section */
.faq-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 20px 24px;
    border-radius: 16px;
}

.faq-question i {
    font-size: 1.1rem;
    color: hsl(var(--text-muted));
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 230, 118, 0.2);
    color: hsl(var(--accent));
}

.faq-item {
    border-bottom: none;
    padding: 0;
    margin-bottom: 16px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 230, 118, 0.02);
    border-radius: 0 0 16px 16px;
    margin-top: -8px;
    border: 1px solid rgba(0, 230, 118, 0.05);
    border-top: none;
}

.faq-answer p {
    font-size: 1rem;
    padding: 24px;
    line-height: 1.6;
}

.faq-item.active .faq-question {
    border-radius: 16px 16px 0 0;
    background: rgba(0, 230, 118, 0.05);
    border-color: rgba(0, 230, 118, 0.2);
    color: hsl(var(--accent));
}

/* 9. Support dynamic Box */
.support-section {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.support-box {
    background-color: hsl(var(--bg-card));
    border: 1px solid hsl(var(--border));
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.support-box h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.support-box p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.support-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.btn-support-dynamic,
.btn-telegram-channel {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-support-dynamic {
    background-color: var(--support-bg, rgba(0, 230, 118, 0.12));
    border: 1px solid var(--support-border, rgba(0, 230, 118, 0.3));
    color: var(--support-color, hsl(var(--accent)));
}

.btn-support-dynamic:hover {
    background-color: var(--support-color, hsl(var(--accent)));
    color: #050508;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--support-shadow, rgba(0, 230, 118, 0.2));
    border-color: transparent;
}

.btn-telegram-channel {
    background-color: rgba(0, 136, 204, 0.12);
    border: 1px solid rgba(0, 136, 204, 0.3);
    color: #0088cc;
}

.btn-telegram-channel:hover {
    background-color: #0088cc;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.2);
    border-color: transparent;
}

/* 10. Footer */
.footer {
    background-color: #050508;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand .logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand .footer-logo {
    width: 36px;
    height: 36px;
}

.footer-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-brand .brand-accent {
    color: hsl(var(--accent));
}

.footer-brand .footer-desc {
    font-size: 0.95rem;
    max-width: 320px;
    color: hsl(var(--text-muted));
    line-height: 1.6;
}

.footer-links h4,
.footer-legal h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-legal a {
    color: hsl(var(--text-muted));
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
}

/* 11. Responsive Design System */
@media (max-width: 1024px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.4rem; }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-header h3 {
        margin-right: 90px;
    }
    
    .pricing-popular-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    .features-grid {
        grid-template-columns: 1fr; /* Une seule colonne pour les petits écrans */
        gap: 24px;
    }
    .feature-card {
        padding: 24px; /* Réduire le padding pour les petits écrans */
    }
    .feature-card h3 {
        font-size: 1.2rem; /* Réduire la taille du titre */
    }
    .feature-card p {
        font-size: 0.9rem; /* Réduire la taille du paragraphe */
    }

    .steps-grid {
        grid-template-columns: 1fr; /* Une seule colonne pour les étapes sur mobile */
        gap: 24px;
    }
    .step-card {
        padding: 24px; /* Réduire le padding pour les étapes */
    }
    .step-card h3 {
        font-size: 1.2rem; /* Réduire la taille du titre d'étape */
    }
    .step-card p {
        font-size: 0.9rem; /* Réduire la taille du paragraphe d'étape */
    }

    .btn-support-nav {
        display: none; /* Cache le bouton de support navbar sur mobile */
    }

    .language-switcher {
        display: none; /* Masque le sélecteur de langue sur mobile */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: none;
        height: 100dvh;
        background: rgba(11, 12, 16, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 10000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-links.active {
        right: 0;
    }

    /* Sidebar Header */
    .sidebar-header {
        padding: 15px 20px;
        display: flex;
        justify-content: flex-end; /* Aligne le bouton de fermeture à droite */
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .sidebar-close {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #ffffff;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        cursor: pointer;
        transition: var(--transition-smooth);
    }

    .sidebar-close:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: rotate(90deg);
    }

    /* Sidebar Items Wrapper */
    .nav-items-wrapper {
        padding: 10px 20px;
        display: flex;
        flex-direction: column;
        gap: 2px;
        flex-grow: 1;
        justify-content: flex-start;
        overflow-y: auto;
        min-height: 0;
    }

    .nav-item {
        width: 100%;
        padding: 12px 20px; /* Padding spécifique pour mobile */
        border-radius: 12px;
        border: 1px solid transparent;
        text-align: left;
        display: flex;
        align-items: center;
        font-size: 1rem;
        font-weight: 600;
        color: hsl(var(--text-muted));
        transition: var(--transition-smooth);
        opacity: 0; /* Opacité pour l'animation mobile */
        transform: translateX(20px); /* Transformation pour l'animation mobile */
    }

    .nav-links.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered animation for items */
    .nav-links.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active .nav-item:nth-child(5) { transition-delay: 0.3s; }

    .nav-item:hover, .nav-item:active {
        background: rgba(0, 230, 118, 0.08);
        color: hsl(var(--accent));
        border-color: rgba(0, 230, 118, 0.15);
        padding-left: 24px;
    }

    .nav-item i {
        display: inline-block; /* Affiche les icônes sur mobile */
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.4);
        transition: var(--transition-smooth);
        margin-right: 12px; /* Ajout d'une marge à droite pour l'icône */
    }

    .nav-item:hover i {
        color: hsl(var(--accent));
        transform: scale(1.1);
    }

    /* Sidebar Footer */
    .sidebar-footer {
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.02);
    }

    .sidebar-language-switcher {
        display: flex;
        gap: 10px;
        margin-bottom: 16px;
    }

    .sidebar-language-switcher a {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 700;
        color: hsl(var(--text-muted));
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        transition: var(--transition-smooth);
    }

    .sidebar-language-switcher a.active {
        color: #050508;
        background: var(--gradient-glow);
        border-color: transparent;
    }

    .btn-support-sidebar {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 14px;
        background: var(--support-color, hsl(var(--accent)));
        color: #050508;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.95rem;
        box-shadow: 0 8px 20px var(--support-shadow, rgba(0, 230, 118, 0.2));
        margin-bottom: 15px;
        transition: var(--transition-smooth);
    }

    .btn-support-sidebar:active {
        transform: scale(0.98);
    }

    .sidebar-socials {
        text-align: center;
    }

    .sidebar-socials p {
        font-size: 0.75rem;
        margin-bottom: 8px;
        color: rgba(255, 255, 255, 0.4);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 12px;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 1.1rem;
        text-decoration: none;
        transition: var(--transition-smooth);
    }

    .social-icons a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: hsl(var(--accent));
        transform: translateY(-3px);
    }

    .nav-toggle {
        display: block; /* Affiche le bouton de bascule */
    }

    .hero-grid {
        grid-template-columns: 1fr; /* Une seule colonne pour le hero sur mobile */
        gap: 40px;
    }
    .hero-ctas {
        flex-direction: column; /* Empile les boutons verticalement */
        gap: 16px;
    }
    .hero-metrics {
        flex-direction: column; /* Empile les métriques verticalement */
        gap: 20px;
        align-items: flex-start;
    }
    .metric-divider {
        display: none; /* Cache les séparateurs de métriques */
    }

    .sidebar-header {
        display: flex; /* Affiche le header de la sidebar sur mobile */
    }

    .sidebar-footer {
        display: block; /* Affiche le footer de la sidebar sur mobile */
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .download-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }
    
    .download-content {
        margin-bottom: 30px;
    }
    
    .apk-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .apk-info .divider {
        display: none;
    }

    .download-actions {
        justify-content: center;
    }

    .apk-download-meta {
        grid-template-columns: 1fr;
    }

    .apk-download-modal {
        padding: 12px;
    }

    .apk-download-modal-header,
    .apk-download-modal-body,
    .apk-download-modal-footer {
        padding: 18px;
    }

    .apk-download-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .apk-download-footer-actions {
        justify-content: stretch;
    }

    .apk-download-footer-actions .btn-primary,
    .apk-download-footer-actions .btn-outline-light {
        width: 100%;
    }
    
    .download-badge-icon {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 30px;
        text-align: center;
    }

    .footer-brand .logo-wrapper {
        justify-content: center;
    }

    .footer-links ul,
    .footer-legal ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* 12. Dynamic Support Pricing Button Override */
.btn-pricing-cta {
    background: linear-gradient(135deg, hsl(140, 100%, 45%), hsl(160, 100%, 40%)) !important;
    color: #050508 !important;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3) !important;
    border: none !important;
    white-space: nowrap;
    font-size: 1.1rem;
    padding: 18px 30px;
    text-decoration: none !important;
    font-weight: 700;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-pricing-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.5) !important;
    filter: brightness(1.1);
}

/* 13. Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay helpers */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }


/* Animation pour le badge vid�o */
@keyframes pulse-badge {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 51, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 51, 102, 0);
    }
}

.video-badge-pulse {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #ff3366;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s infinite;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.4);
}

.btn-video-pulse {
    position: relative;
    overflow: visible !important;
    border: 1px solid #ff3366 !important;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.1) 0%, rgba(255, 51, 102, 0.05) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.15) !important;
    transition: all 0.3s ease;
}

.btn-video-pulse:hover {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.2) 0%, rgba(255, 51, 102, 0.1) 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.3) !important;
}

.btn-video-pulse i {
    color: #ff3366;
    font-size: 1.3rem;
}

/* =========================================
   VIDEO TEASER CARD (Remplace le simple bouton)
   ========================================= */
.video-teaser-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 48px auto 0;
}

.video-teaser-card {
    display: block;
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, hsl(var(--bg-card)) 0%, rgba(21, 24, 33, 0.9) 100%);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 24px;
    padding: 40px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.video-teaser-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(0, 230, 118, 0.15) 0%, transparent 60%);
    z-index: 1;
    transition: all 0.5s ease;
}

.video-teaser-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 230, 118, 0.5);
    box-shadow: 0 25px 50px rgba(0, 230, 118, 0.15);
}

.video-teaser-card:hover .video-teaser-bg {
    background: radial-gradient(circle at 80% 50%, rgba(0, 230, 118, 0.25) 0%, transparent 70%);
}

.video-teaser-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 32px;
}

.play-button-giant {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: var(--gradient-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    animation: giant-pulse 2s infinite;
    transition: all 0.3s ease;
}

.play-button-giant i {
    color: #050508;
    font-size: 2.5rem;
    margin-left: 6px;
}

.video-teaser-card:hover .play-button-giant {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.6);
    animation: none;
}

.video-teaser-text {
    flex: 1;
}

.video-teaser-text h4 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.video-teaser-text p {
    color: hsl(var(--text-muted));
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

.video-teaser-card:hover .video-teaser-text h4 {
    color: hsl(var(--accent));
}

.video-teaser-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 51, 102, 0.15);
    border: 1px solid #ff3366;
    color: #ff3366;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 2;
    display: flex;
    align-items: center;
}

@keyframes giant-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(0, 230, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

@media (max-width: 768px) {
    .video-teaser-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .play-button-giant {
        width: 64px;
        height: 64px;
        min-width: 64px;
    }
    .play-button-giant i {
        font-size: 2rem;
        margin-left: 4px;
    }
    .video-teaser-text h4 {
        font-size: 1.4rem;
    }
    .video-teaser-badge {
        top: 12px;
        right: 12px;
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}
