/* ==========================================================================
   Modli — Landing page
   Identité reprise de l'application : or/ambre + acier bleu + laser rouge,
   atelier sombre. Fonts Outfit (titres) + Inter (corps).
   1. Jetons · 2. Base · 3. Header · 4. Hero · 5. Mockups · 6. Sections
   7. Lightbox · 8. Footer · 9. Animations · 10. Responsive
   ========================================================================== */

/* ---------------------------------------------------------------- */
/* 1. Jetons                                                         */
/* ---------------------------------------------------------------- */
:root {
    --accent:      #f59e0b;   /* or / ambre — couleur signature */
    --accent-2:    #fbbf24;
    --accent-3:    #d97706;
    --steel:       #0ea5e9;   /* acier bleu */
    --laser:       #ef4444;   /* laser rouge */
    --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
    --accent-ring: color-mix(in srgb, var(--accent) 42%, transparent);

    --success: #22c55e;
    --info:    #0ea5e9;
    --warning: #f59e0b;

    /* Atelier sombre (teinte chaude) */
    --bg:        #05060c;
    --bg-2:      #08090f;
    --surface:   #0e1018;
    --surface-2: #141721;
    --surface-3: #1c2030;
    --border:    #23262f;
    --border-2:  #33363f;

    --text:   #f5f0e8;
    --text-2: #c8bfa8;
    --text-3: #7a7060;

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow:    0 20px 50px -20px rgba(0,0,0,.7);
    --shadow-lg: 0 40px 90px -30px rgba(0,0,0,.85);
    --glow:      0 0 60px -10px var(--accent-ring);

    --font:         'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', var(--font);
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    --ease:     cubic-bezier(.4,0,.2,1);
    --ease-out: cubic-bezier(.16,1,.3,1);

    --wrap: 1200px;
    --nav-h: 72px;
}

:root[data-theme="light"] {
    --bg:        #faf7f2;
    --bg-2:      #f3efe6;
    --surface:   #ffffff;
    --surface-2: #f6f2ea;
    --surface-3: #ece5d8;
    --border:    #e7ddc9;
    --border-2:  #d8ccb2;
    --text:   #1a1710;
    --text-2: #5a5142;
    --text-3: #8a7f6a;
    --shadow:    0 20px 50px -24px rgba(60,45,20,.22);
    --shadow-lg: 0 40px 90px -34px rgba(60,45,20,.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
html[dir="rtl"] body { font-family: 'Cairo', var(--font); }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: 'Cairo', var(--font-heading); letter-spacing: 0; }

/* ---------------------------------------------------------------- */
/* 2. Base                                                           */
/* ---------------------------------------------------------------- */
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }

::selection { background: var(--accent-ring); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.icon { width: 22px; height: 22px; flex: none; display: inline-block; vertical-align: middle; }
.icon-sm { width: 17px; height: 17px; flex: none; display: inline-block; vertical-align: middle; }
.icon-lg { width: 26px; height: 26px; flex: none; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 15px; border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    color: color-mix(in srgb, var(--accent-2) 80%, var(--text));
    font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}
:root[data-theme="light"] .eyebrow { color: var(--accent-3); }

.gradient-text {
    background: linear-gradient(120deg, var(--text) 25%, var(--accent-2) 65%, var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Variante « laser » : dégradé chaud or → rouge pour les mots forts */
.laser-text {
    background: linear-gradient(120deg, #fbbf24, #f59e0b 45%, #ea580c 75%, #ef4444);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 680px; margin: 0 auto clamp(44px, 6vw, 72px); text-align: center; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head p { color: var(--text-2); font-size: 1.1rem; margin-top: 18px; }

/* Boutons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 26px; border-radius: 12px;
    font-size: .98rem; font-weight: 600; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary {
    background: linear-gradient(120deg, var(--accent-2), var(--accent));
    color: #1a1206; box-shadow: 0 12px 30px -10px var(--accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--accent); filter: brightness(1.06); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--surface-3); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* Halos de fond */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; z-index: 0; }
.glow-1 { width: 520px; height: 520px; background: var(--accent); top: -180px; left: -120px; opacity: .3; }
.glow-2 { width: 480px; height: 480px; background: var(--steel); top: -100px; right: -140px; opacity: .22; }

/* ---------------------------------------------------------------- */
/* 3. Header                                                         */
/* ---------------------------------------------------------------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
    display: flex; align-items: center;
    transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom-color: var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-mark {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
    box-shadow: 0 8px 20px -6px var(--accent);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand small { display: block; font-size: .68rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    padding: 9px 15px; border-radius: 9px; font-size: .93rem; font-weight: 500; color: var(--text-2);
    transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
    display: inline-flex; align-items: center; gap: 2px; padding: 3px;
    border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2);
}
.lang-switch button {
    min-width: 30px; height: 32px; padding: 0 7px; border-radius: 8px;
    color: var(--text-3); font-size: .72rem; font-weight: 700;
    transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { color: #1a1206; background: var(--accent-2); box-shadow: 0 5px 14px -7px var(--accent); }

.theme-btn {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
    transition: color .2s, border-color .2s;
}
.theme-btn:hover { color: var(--text); border-color: var(--border-2); }
.theme-btn .icon-sun { display: none; }
:root[data-theme="light"] .theme-btn .icon-sun { display: block; }
:root[data-theme="light"] .theme-btn .icon-moon { display: none; }

.burger { display: none; width: 42px; height: 42px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); place-items: center; color: var(--text); }

/* Masqué par défaut ; révélé (et positionné) dans la media query mobile. */
.mobile-menu { display: none; }

/* ---------------------------------------------------------------- */
/* 4. Hero                                                           */
/* ---------------------------------------------------------------- */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(56px, 9vw, 110px)) 0 clamp(60px, 9vw, 120px); overflow: hidden; }
.hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-copy { max-width: 600px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); margin: 22px 0 0; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); margin-top: 24px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px 28px; margin-top: 40px; }
.hero-trust li { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--text-2); list-style: none; }
.hero-trust svg { color: var(--success); }

/* Composition des mockups dans le hero */
.hero-visual { position: relative; z-index: 2; }
.hero-visual .browser-mock { transform: perspective(1600px) rotateY(-11deg) rotateX(4deg); transition: transform .5s var(--ease-out); }
.hero-visual:hover .browser-mock { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); }
.hero-visual .phone-mock {
    position: absolute; bottom: -46px; left: -54px; width: 172px; z-index: 3;
    animation: float 6s ease-in-out infinite;
}

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

/* ---------------------------------------------------------------- */
/* 5. Mockups (navigateur + téléphone)                               */
/* ---------------------------------------------------------------- */
.browser-mock {
    border-radius: 14px; overflow: hidden; background: var(--surface);
    border: 1px solid var(--border-2); box-shadow: var(--shadow-lg);
}
.browser-bar {
    display: flex; align-items: center; gap: 14px; padding: 12px 16px;
    background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 7px; }
.browser-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--border-2); }
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }
.browser-url {
    flex: 1; display: flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 8px; background: var(--bg-2);
    color: var(--text-3); font-size: .8rem; font-family: var(--mono);
    border: 1px solid var(--border);
}
.browser-url svg { color: var(--success); width: 13px; height: 13px; }
.browser-screen { display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.browser-screen img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; }

.phone-mock {
    border-radius: 30px; padding: 9px; background: #0a0b12;
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.04);
}
.phone-screen {
    position: relative; border-radius: 22px; overflow: hidden; background: var(--bg);
    aspect-ratio: 9 / 19.2;
}
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; }
.phone-notch {
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 42%; height: 20px; background: #0a0b12; border-radius: 999px; z-index: 2;
}

/* Cliquable → lightbox */
.zoomable { cursor: zoom-in; position: relative; }
.zoomable::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: color-mix(in srgb, var(--accent) 0%, transparent);
    transition: background .25s var(--ease); pointer-events: none;
}
.zoomable:hover::after { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.zoom-hint {
    position: absolute; top: 14px; right: 14px; z-index: 4;
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
    background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(8px);
    border: 1px solid var(--border-2); color: var(--text); opacity: 0;
    transition: opacity .25s var(--ease); pointer-events: none;
}
.zoomable:hover .zoom-hint { opacity: 1; }

/* ---------------------------------------------------------------- */
/* 6. Sections                                                       */
/* ---------------------------------------------------------------- */

/* Bande statistiques */
.stats-strip { border-block: 1px solid var(--border); background: var(--bg-2); }
.stats-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 44px; }
.stat { text-align: center; }
.stat .num {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.03em;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { color: var(--text-2); font-size: .9rem; margin-top: 4px; }

/* Grille de fonctionnalités */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
    position: relative; padding: 30px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--border);
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
    overflow: hidden;
}
.feature::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, var(--accent), transparent 40%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature:hover::before { opacity: 1; }
.feature-icon {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
    background: var(--accent-soft); color: var(--accent-2); margin-bottom: 20px;
}
:root[data-theme="light"] .feature-icon { color: var(--accent); }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--text-2); font-size: .95rem; }

/* Étapes */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.step-card {
    position: relative; padding: 30px 26px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--border);
}
.step-num {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
    font-size: 1.15rem; font-weight: 700; margin-bottom: 18px;
    box-shadow: 0 10px 24px -10px var(--accent);
}
.step-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.step-card p { color: var(--text-2); font-size: .92rem; }
.step-arrow { position: absolute; top: 52px; right: -22px; color: var(--border-2); z-index: 2; }
html[dir="rtl"] .step-arrow { right: auto; left: -22px; transform: scaleX(-1); }

/* Galerie de captures */
.showcase-main { margin-bottom: 24px; }
.showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.showcase-card {
    border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
    background: var(--surface); box-shadow: var(--shadow);
}
/* Vignette de galerie : fenetre 16:10 constante (haut de page) */
.showcase-card .zoomable { aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.showcase-card .zoomable img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.showcase-cap { padding: 18px 22px; border-top: 1px solid var(--border); }
.showcase-cap h3 { font-size: 1rem; margin-bottom: 4px; display: flex; align-items: center; gap: 9px; }
.showcase-cap h3 svg { color: var(--accent-2); }
.showcase-cap p { color: var(--text-2); font-size: .88rem; }

/* Section sécurité (split) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.security-list { display: grid; gap: 16px; margin-top: 30px; }
.security-item { display: flex; gap: 15px; align-items: flex-start; }
.security-item .tick {
    display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px;
    background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success);
}
.security-item strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.security-item span { color: var(--text-2); font-size: .92rem; }
.security-visual {
    position: relative; padding: 40px; border-radius: var(--radius-xl);
    background: linear-gradient(160deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border); overflow: hidden;
}
.shield-badge {
    display: grid; place-items: center; width: 120px; height: 120px; margin: 0 auto 24px; border-radius: 34px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
    box-shadow: 0 30px 60px -20px var(--accent);
}
.shield-badge svg { width: 58px; height: 58px; }
.security-visual .ring {
    position: absolute; border: 1px solid var(--border-2); border-radius: 50%; opacity: .5;
    top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.ring-1 { width: 240px; height: 240px; }
.ring-2 { width: 360px; height: 360px; }

/* Formats supportés */
.formats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 820px; margin: 0 auto; }
.format-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: .9rem; color: var(--text-2); transition: border-color .2s, color .2s, transform .2s;
}
.format-chip:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.format-chip svg { color: var(--accent-2); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-q {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: 100%; padding: 20px 24px; text-align: left; font-size: 1.02rem; font-weight: 600;
}
.faq-q .chev { transition: transform .3s var(--ease); color: var(--text-3); flex: none; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease-out); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 22px; color: var(--text-2); }

/* CTA final */
.cta-final { position: relative; overflow: hidden; }
.cta-box {
    position: relative; z-index: 2; text-align: center;
    padding: clamp(48px, 8vw, 88px) clamp(24px, 5vw, 72px);
    border-radius: var(--radius-xl);
    background: linear-gradient(150deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-lg);
}
.cta-box::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
    background: radial-gradient(120% 120% at 50% -20%, var(--accent-soft), transparent 60%);
}
.cta-box h2 { margin-bottom: 18px; }
.cta-box p { color: var(--text-2); font-size: 1.12rem; max-width: 520px; margin: 0 auto 34px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------------------------------------------------------------- */
/* 7. Lightbox                                                       */
/* ---------------------------------------------------------------- */
.lightbox {
    position: fixed; inset: 0; z-index: 200; display: none;
    align-items: center; justify-content: center; padding: 4vw;
    background: color-mix(in srgb, #000 82%, transparent); backdrop-filter: blur(10px);
    opacity: 0; transition: opacity .3s var(--ease);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-img {
    max-width: 92vw; max-height: 88vh; border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow-lg); border: 1px solid var(--border-2);
    transform: scale(.94); transition: transform .3s var(--ease-out);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-img img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.lb-btn {
    position: absolute; z-index: 2; display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 50%;
    background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(8px);
    border: 1px solid var(--border-2); color: var(--text);
    transition: background .2s, transform .2s;
}
.lb-btn:hover { background: var(--surface-2); transform: scale(1.08); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-caption {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    padding: 9px 20px; border-radius: 999px; font-size: .9rem; color: var(--text);
    background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(8px);
    border: 1px solid var(--border-2); white-space: nowrap;
}

/* ---------------------------------------------------------------- */
/* 8. Footer                                                         */
/* ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 56px 0 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--text-2); font-size: .92rem; margin-top: 16px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-2); font-size: .92rem; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .86rem;
}

/* ---------------------------------------------------------------- */
/* 9. Animations au défilement                                       */
/* ---------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* ---------------------------------------------------------------- */
/* 10. Responsive                                                    */
/* ---------------------------------------------------------------- */
@media (max-width: 1350px) {
    .nav-links a { padding-inline: 10px; }
    .header-actions > .btn-ghost { display: none; }
}

@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; gap: 60px; }
    .hero-copy { max-width: 640px; margin-inline: auto; text-align: center; }
    .hero-sub { margin-inline: auto; }
    .hero-cta, .hero-trust { justify-content: center; }
    .hero-visual { max-width: 560px; margin-inline: auto; }
    .hero-visual .browser-mock { transform: none; }
    .hero-visual:hover .browser-mock { transform: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .step-arrow { display: none; }
    .split { grid-template-columns: 1fr; gap: 44px; }
    .split .security-visual { order: -1; }
}

@media (max-width: 780px) {
    .nav-links { display: none; }
    .burger { display: grid; }
    /* Les CTA du header passent dans le menu burger : on ne garde que
       le sélecteur de thème et le burger pour ne pas surcharger la barre. */
    .header-actions .btn { display: none; }

    /* Menu mobile déroulant */
    .mobile-menu {
        position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
        background: var(--surface); border-bottom: 1px solid var(--border);
        padding: 16px 24px 24px; display: none; flex-direction: column; gap: 4px;
        box-shadow: var(--shadow);
    }
    .mobile-menu.open { display: flex; }
    .mobile-menu a { padding: 13px 14px; border-radius: 10px; color: var(--text-2); font-weight: 500; }
    .mobile-menu a:hover { background: var(--surface-2); color: var(--text); }
    .mobile-menu .btn { margin-top: 10px; }

    .stats-strip .wrap { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .showcase-grid { grid-template-columns: 1fr; }
    .hero-visual .phone-mock { width: 132px; left: -20px; bottom: -30px; }
    .lb-prev { left: 12px; } .lb-next { right: 12px; }
    .lb-close { top: 14px; right: 14px; }
}

@media (max-width: 520px) {
    .brand small { display: none; }
    .site-header .wrap { gap: 8px; padding-inline: 14px; }
    .header-actions { gap: 6px; }
    .lang-switch button { min-width: 27px; padding-inline: 5px; }
    .features-grid, .steps-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
    .btn { padding: 13px 22px; }
    .hero-cta .btn { flex: 1 1 auto; }
    .section { padding: 64px 0; }
    .hero-visual .phone-mock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
