/* ================================================================
   FOGA — Site statique / Cloudflare Pages
   Mode clair par défaut (#F5F5F5), mode sombre disponible
   ================================================================ */

/* ─── Variables ─────────────────────────────────────────────── */
:root {
    --color-primary:       #3adb70;
    --color-primary-dark:  #2bc55a;
    --color-bg:            #F5F5F5;
    --color-bg-alt:        #ffffff;
    --color-bg-card:       #ffffff;
    --color-bg-header:     rgba(245, 245, 245, 0.92);
    --color-text:          #1a1a1a;
    --color-text-secondary:#555555;
    --color-text-muted:    #888888;
    --color-border:        rgba(0, 0, 0, 0.08);
    --color-border-accent: rgba(58, 219, 112, 0.25);
    --color-shadow:        rgba(0, 0, 0, 0.07);
    --font:                'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease:                cubic-bezier(0.4, 0, 0.2, 1);
    --header-h:            72px;
    --transition-logo:     0.75s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-section:  0.85s cubic-bezier(0.77, 0, 0.175, 1);
}

[data-theme="dark"] {
    --color-bg:            #131417;
    --color-bg-alt:        #1c1c1c;
    --color-bg-card:       rgba(255,255,255,0.04);
    --color-bg-header:     rgba(20, 20, 20, 0.92);
    --color-text:          #f5f5f5;
    --color-text-secondary:rgba(245,245,245,0.65);
    --color-text-muted:    rgba(245,245,245,0.4);
    --color-border:        rgba(255,255,255,0.08);
    --color-border-accent: rgba(58,219,112,0.2);
    --color-shadow:        rgba(0,0,0,0.35);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-bg:            #131417;
        --color-bg-alt:        #1c1c1c;
        --color-bg-card:       rgba(255,255,255,0.04);
        --color-bg-header:     rgba(20, 20, 20, 0.92);
        --color-text:          #f5f5f5;
        --color-text-secondary:rgba(245,245,245,0.65);
        --color-text-muted:    rgba(245,245,245,0.4);
        --color-border:        rgba(255,255,255,0.08);
        --color-border-accent: rgba(58,219,112,0.2);
        --color-shadow:        rgba(0,0,0,0.35);
    }
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Pas de scroll natif : on contrôle tout en JS */
html, body {
    height: 100%;
    overflow: hidden;
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    transition: background-color .3s var(--ease), color .3s var(--ease);
}

/* ─── Image de fond globale (s'adapte au thème) ─── */
.bg-image {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url('../img/background_clair.png?v=2') no-repeat center center / cover;
    pointer-events: none;
}

[data-theme="dark"] .bg-image {
    background-image: url('../img/background_sombre.png?v=2');
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .bg-image {
        background-image: url('../img/background_sombre.png?v=2');
    }
}

/* ================================================================
   LOGO FIXE — animé entre centre-géant et haut-gauche-petit
   ================================================================ */
.logo-fixed {
    position: fixed;
    z-index: 600;
    pointer-events: none;

    /* ─── État initial : centré, géant ─── */
    width: clamp(280px, 48vw, 680px);
    top:  50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 50px rgba(58, 219, 112, 0.18));

    /* Toutes les propriétés animables en une seule transition */
    transition:
        width     var(--transition-logo),
        top       var(--transition-logo),
        left      var(--transition-logo),
        transform var(--transition-logo),
        filter    var(--transition-logo),
        opacity   var(--transition-logo);

    will-change: width, top, left, transform;
}

.logo-fixed .logo-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ─── Tagline sous le logo (hero) ─── */
.hero-tagline {
    position: fixed;
    top: calc(50% + 17vh);
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 590;
    width: 90%;
    max-width: 820px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition:
        opacity  .6s var(--ease),
        transform .6s var(--ease);
}

.hero-tagline.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.hero-tagline.leaving {
    opacity: 0;
    transform: translate(-50%, -45px);
    transition:
        opacity   .45s var(--ease),
        transform .45s var(--ease);
}

.tagline-main {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.3;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

.tagline-main .accent {
    color: var(--color-primary);
}

.tagline-sub {
    font-size: clamp(13px, 1.6vw, 17px);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 620px;
    margin: 0 auto;
}

/* ─── État "dans le header" : petit, haut-gauche ─── */
.logo-fixed.in-header {
    width: 92px;
    top:   calc(var(--header-h) / 2);
    left:  48px;
    transform: translate(0, -50%);
    filter: none;
}

/* ================================================================
   HEADER
   ================================================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: transparent;
    transition: background-color .4s var(--ease), backdrop-filter .4s var(--ease);
}

.header.scrolled {
    background: var(--color-bg-header);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--color-border-accent);
}

/* ─── Groupes gauche / droite ─── */
.header-left {
    display: flex;
    align-items: center;
    gap: 48px; /* même écart que le padding gauche du header */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Espace réservé pour le logo fixe */
.header-logo-slot {
    width: 100px;
    flex-shrink: 0;
}

/* ─── Navigation (à gauche maintenant) ─── */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .6px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color .3s var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--color-primary);
    transition: width .3s var(--ease);
}

.nav-link:hover,
.nav-link.active { color: var(--color-primary); }

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ─── Sélecteur de langue ─── */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 14px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    cursor: pointer;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    transition: border-color .3s var(--ease), color .3s var(--ease);
    white-space: nowrap;
}

.lang-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.lang-flag { font-size: 15px; line-height: 1; }

.lang-globe {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.lang-label { font-size: 13px; }

/* Chevron : caché par défaut, apparaît au hover et quand ouvert */
.lang-chevron {
    width: 14px; height: 14px;
    opacity: 0;
    transform: translateX(-4px);
    transition:
        opacity  .25s var(--ease),
        transform .25s var(--ease);
    flex-shrink: 0;
}

.lang-btn:hover .lang-chevron,
.lang-selector.open .lang-chevron {
    opacity: 1;
    transform: translateX(0);
}

/* Rotation du chevron quand ouvert */
.lang-selector.open .lang-chevron {
    transform: translateX(0) rotate(180deg);
}

/* Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 160px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-accent);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 8px 32px var(--color-shadow);
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition:
        opacity   .22s var(--ease),
        transform .22s var(--ease);
    z-index: 800;
}

.lang-selector.open .lang-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    border-radius: 10px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    text-align: left;
    transition: background .2s var(--ease), color .2s var(--ease);
}

.lang-option:hover {
    background: rgba(58, 219, 112, 0.08);
    color: var(--color-primary);
}

.lang-option.active {
    color: var(--color-primary);
    font-weight: 600;
}

.lang-option span { font-size: 16px; }

/* ─── Theme toggle ─── */
.theme-toggle {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text);
    transition: all .3s var(--ease);
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: rotate(20deg);
}

.theme-toggle svg { width: 18px; height: 18px; }

/* Affichage des icônes selon le thème */
[data-theme="light"] .icon-sun,
:root:not([data-theme="dark"]) .icon-sun { display: block; }
[data-theme="light"] .icon-moon,
:root:not([data-theme="dark"]) .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-sun { display: none; }
    :root:not([data-theme="light"]) .icon-moon { display: block; }
}

/* ================================================================
   PAGE WRAPPER — slider vertical contrôlé en JS
   ================================================================ */
.page-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 2; /* au-dessus de l'overlay de fond */
    /* height = nb_sections × 100vh, mais on se contente du transform */
    transition: transform var(--transition-section);
    will-change: transform;
}

/* ─── Section générique ─── */
.section {
    height: 100vh;
    width: 100%;
    background: transparent; /* laisse apparaître l'image de fond */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: calc(var(--header-h) + 20px) 60px 40px;
    position: relative;
    overflow: hidden;
}

/* Sections uniformes : le background image reste visible partout */
.section:nth-child(even) {
    background: transparent;
}

/* ================================================================
   SECTION 0 — HERO
   ================================================================ */
.hero {
    background: transparent;
    /* Centre vide : le logo fixed y est superposé */
    justify-content: flex-end;
    padding-bottom: 60px;
}

/* Contenu en bas du hero — entre et sort avec le mouvement vers le haut */
.hero-content {
    display: flex;
    gap: 32px;
    width: 100%;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity    .6s var(--ease) .2s,
        transform  .6s var(--ease) .2s;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Quand on quitte le hero, le contenu monte */
.hero-content.leaving {
    opacity: 0;
    transform: translateY(-60px);
    transition:
        opacity   .5s var(--ease),
        transform .5s var(--ease);
}

.placeholder-block {
    flex: 1;
    height: 220px;
    background: rgba(58, 219, 112, 0.07);
    border: 2px dashed rgba(58, 219, 112, 0.28);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(58, 219, 112, 0.55);
    font-size: 13px;
    font-weight: 500;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 1;
    transition: opacity .4s var(--ease);
    animation: floatY 2.4s ease-in-out infinite;
}

.scroll-hint.hidden { opacity: 0; pointer-events: none; }
.scroll-hint svg { width: 20px; height: 20px; stroke: var(--color-primary); }

@keyframes floatY {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-8px); }
}

/* ================================================================
   SECTION TITLES
   ================================================================ */
.section-title {
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 52px;
    text-align: center;
    line-height: 1.15;
}

.section-title span { color: var(--color-primary); }

/* ================================================================
   SECTION 1 — FEATURES
   ================================================================ */

/* ─── Keyframes cartes ─── */
@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(55px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    width: 100%;
}

/* État par défaut : invisible, décalé vers le bas */
.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 16px var(--color-shadow);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);

    /* Caché par défaut jusqu'à l'animation */
    opacity: 0;
    transform: translateY(55px);
}

/* Entrée : bas → haut */
.feature-card.card-enter {
    animation: cardEnter 0.48s var(--ease) both;
}

/* Sortie : disparaît vers le haut */
.feature-card.card-exit {
    animation: cardExit 0.36s var(--ease) both;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 32px var(--color-shadow);
    border-color: var(--color-border-accent);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 48px; height: 48px;
    background: rgba(58,219,112,.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg { width: 22px; height: 22px; stroke: var(--color-primary); }

.feature-title {
    font-size: 17px; font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.feature-desc {
    font-size: 13.5px; line-height: 1.65;
    color: var(--color-text-secondary);
}

/* ================================================================
   SECTION 2 — HOW IT WORKS
   ================================================================ */
.steps-container {
    display: flex;
    gap: 60px;
    max-width: 960px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.step {
    flex: 1; min-width: 240px; max-width: 300px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800;
    color: #1a1a1a;
    margin: 0 auto 24px;
    box-shadow: 0 8px 32px rgba(58,219,112,.25);
}

.step-title { font-size: 21px; font-weight: 700; margin-bottom: 12px; color: var(--color-text); }
.step-desc  { font-size: 15px; line-height: 1.65; color: var(--color-text-secondary); }

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 36px; right: -30px;
    width: 30px; height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
}

@media (max-width: 860px) { .step:not(:last-child)::after { display: none; } }

/* ================================================================
   SECTION 3 — DOWNLOAD
   ================================================================ */
.download-container { text-align: center; max-width: 700px; }

.download-subtitle {
    font-size: 18px; line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.download-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.download-btn {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 36px;
    background: var(--color-primary);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(58,219,112,.25);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.download-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(58,219,112,.35);
}

.download-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.download-btn-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: .75; }
.download-btn-store { font-size: 18px; font-weight: 800; }

/* ================================================================
   SECTION 4 — FAQ
   ================================================================ */
.faq-container { max-width: 720px; width: 100%; }

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--color-shadow);
    transition: border-color .3s var(--ease);
}

.faq-item:hover { border-color: var(--color-border-accent); }

.faq-question {
    width: 100%; padding: 20px 24px;
    background: none; border: none;
    color: var(--color-text);
    font-size: 16px; font-weight: 600;
    text-align: left; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    transition: color .3s var(--ease);
    font-family: var(--font);
}

.faq-question:hover { color: var(--color-primary); }

.faq-icon { width: 22px; height: 22px; flex-shrink: 0; transition: transform .3s var(--ease); }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height .4s var(--ease);
}

.faq-item.open .faq-answer { max-height: 200px; }

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--color-text-secondary);
    line-height: 1.7; font-size: 15px;
}

/* ================================================================
   SECTION 5 — CONTACT
   ================================================================ */
.contact-container {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; max-width: 1000px; width: 100%;
}

.contact-info h3 { font-size: 24px; margin-bottom: 16px; color: var(--color-text); }
.contact-info p  { color: var(--color-text-secondary); line-height: 1.75; margin-bottom: 32px; }

.contact-links { display: flex; flex-direction: column; gap: 16px; }

.contact-link {
    display: flex; align-items: center; gap: 14px;
    color: var(--color-text); text-decoration: none; font-size: 15px;
    transition: color .3s var(--ease);
}

.contact-link:hover { color: var(--color-primary); }

.contact-link-icon {
    width: 44px; height: 44px;
    background: rgba(58,219,112,.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.contact-link-icon svg { width: 20px; height: 20px; stroke: var(--color-primary); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-accent);
    border-radius: 10px;
    color: var(--color-text);
    font-size: 15px; font-family: var(--font);
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(58,219,112,.12);
}

.form-group textarea { min-height: 110px; resize: vertical; }

.submit-btn {
    padding: 16px 32px;
    background: var(--color-primary);
    color: #1a1a1a;
    border: none; border-radius: 10px;
    font-size: 15px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .8px;
    cursor: pointer; font-family: var(--font);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(58,219,112,.3);
}

@media (max-width: 768px) {
    .contact-container { grid-template-columns: 1fr; gap: 32px; }
}

/* ================================================================
   SECTION 6 — FOOTER
   ================================================================ */
.footer-section {
    background: transparent;
    border-top: 1px solid var(--color-border);
    justify-content: center;
    padding: 0 60px;
}

.footer { width: 100%; max-width: 1300px; }

.footer-content {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; margin-bottom: 48px;
}

.footer-brand h4 { font-size: 22px; color: var(--color-primary); margin-bottom: 12px; }
.footer-brand p  { color: var(--color-text-secondary); line-height: 1.7; font-size: 14px; }

.footer-column h5 {
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 20px; color: var(--color-text);
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
    color: var(--color-text-secondary); text-decoration: none;
    font-size: 14px; transition: color .3s var(--ease);
}

.footer-links a:hover { color: var(--color-primary); }

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
    display: flex; justify-content: space-between; align-items: center;
    color: var(--color-text-muted); font-size: 13px;
}

@media (max-width: 860px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
    .footer-content { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ================================================================
   PAGINATION DOTS (droite)
   ================================================================ */
.pagination {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 700;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-text-muted);
    border: none; cursor: pointer; padding: 0;
    transition: background .3s var(--ease), transform .3s var(--ease);
}

.dot.active {
    background: var(--color-primary);
    transform: scale(1.4);
}

/* ================================================================
   MOBILE NAV OVERLAY
   ================================================================ */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 490;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease);
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-link {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 14px;
    cursor: pointer;
    transition: color .25s var(--ease), background .25s var(--ease);
    letter-spacing: .5px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--color-primary);
    background: rgba(58, 219, 112, 0.07);
}

/* ─── Hamburger ─── */
.hamburger {
    display: none;          /* visible seulement sur mobile via media query */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: border-color .3s var(--ease);
}

.hamburger:hover { border-color: var(--color-primary); }

.hamburger span {
    display: block;
    width: 18px; height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all .3s var(--ease);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================================================================
   RESPONSIVE — 1200px (large tablet / small laptop)
   ================================================================ */
@media (max-width: 1200px) {
    .header { padding: 0 36px; }
    .header-left { gap: 36px; }
    .logo-fixed.in-header { left: 36px; }
    .nav { gap: 24px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .footer-content { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
}

/* ================================================================
   RESPONSIVE — 900px (tablet portrait)
   ================================================================ */
@media (max-width: 900px) {
    .header { padding: 0 24px; }
    .header-left { gap: 24px; }
    .logo-fixed.in-header { left: 24px; }

    .nav { gap: 18px; }
    .nav-link { font-size: 12px; }

    .section { padding: calc(var(--header-h) + 16px) 32px 32px; }

    .features-grid { gap: 14px; }
    .feature-card { padding: 22px; }
    .feature-title { font-size: 15px; }
    .feature-desc { font-size: 13px; }

    .steps-container { gap: 32px; }
    .step:not(:last-child)::after { display: none; }

    .contact-container { gap: 40px; }

    .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }

    .section-title { font-size: clamp(24px, 4vw, 42px); margin-bottom: 36px; }
}

/* ================================================================
   RESPONSIVE — 768px (mobile landscape / grande section)
   ================================================================ */
@media (max-width: 768px) {
    :root { --header-h: 64px; }

    /* Header */
    .header { padding: 0 20px; }
    .header-left { gap: 16px; }
    .header-logo-slot { width: 70px; }
    .logo-fixed.in-header { left: 20px; width: 72px; }

    /* Cacher nav desktop, afficher hamburger */
    .nav { display: none; }
    .hamburger { display: flex; }

    /* Lang : masquer le label texte */
    .lang-label { display: none; }
    .lang-btn { padding: 0 10px; }

    /* Sections : permettre le scroll interne */
    .section {
        padding: calc(var(--header-h) + 12px) 20px 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Cacher la pagination, utiliser le menu mobile */
    .pagination { display: none; }

    /* Hero */
    .hero { overflow: hidden; }
    .hero-content { flex-direction: column; gap: 14px; }
    .placeholder-block { height: 110px; }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .feature-card { padding: 18px; }
    .feature-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 12px; }
    .feature-icon svg { width: 18px; height: 18px; }
    .feature-title { font-size: 14px; margin-bottom: 6px; }
    .feature-desc { font-size: 12px; line-height: 1.5; }

    /* Steps */
    .steps-container { flex-direction: column; align-items: center; gap: 24px; }
    .step { min-width: unset; max-width: 100%; width: 100%; }
    .step-number { width: 56px; height: 56px; font-size: 22px; margin-bottom: 16px; }
    .step-title { font-size: 18px; }
    .step-desc { font-size: 14px; }

    /* Download */
    .download-buttons { flex-direction: column; align-items: center; }
    .download-btn { width: 100%; max-width: 280px; justify-content: center; }
    .download-subtitle { font-size: 16px; }

    /* FAQ */
    .faq-container { max-width: 100%; }
    .faq-question { font-size: 14px; padding: 16px 18px; }
    .faq-answer p { font-size: 13px; padding: 0 18px 16px; }

    /* Contact */
    .contact-container { grid-template-columns: 1fr; gap: 24px; }
    .contact-info h3 { font-size: 20px; }
    .form-group textarea { min-height: 80px; }

    /* Footer */
    .footer-section { padding: 0 20px; }
    .footer { overflow-y: auto; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
    .footer-brand h4 { font-size: 18px; }

    /* Section titles */
    .section-title { font-size: clamp(22px, 5vw, 32px); margin-bottom: 24px; }
}

/* ================================================================
   RESPONSIVE — 480px (petits mobiles)
   ================================================================ */
@media (max-width: 480px) {
    :root { --header-h: 60px; }

    .logo-fixed { width: clamp(220px, 60vw, 380px); }
    .logo-fixed.in-header { width: 60px; }

    .header-logo-slot { width: 56px; }

    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
    .feature-icon { flex-shrink: 0; margin-bottom: 0; }
    .feature-card-body { flex: 1; }

    .steps-container { gap: 20px; }

    .footer-content { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .mobile-nav-link { font-size: 22px; padding: 10px 20px; }

    .lang-dropdown { right: auto; left: 0; }
}
