/* Page d'accueil — refonte « motion design ».
   Animations : CSS (keyframes, transitions) + static/home.js (canvas du hero,
   apparitions au défilement, compteurs, effets liés au scroll).
   Tout est neutralisé avec prefers-reduced-motion. */

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

:root {
    --bg: #0B0D12;
    --bg-deep: #05070A;
    --surface: #141922;
    --surface-2: #1D232D;
    --border: rgba(255,255,255,0.08);
    --text: #F2F4F7;
    --text-secondary: #98A2B3;
    --brand: #2D6FE0;
    --brand-light: #5B93F5;
    --neon-green: #4AFF7A;
    --neon-cyan: #4DE8E8;
    --neon-magenta: #FF4FB8;
    --neon-violet: #8B5CF6;
    --radius-lg: 24px;
    --radius-md: 16px;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --pixel: 'Press Start 2P', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection { background: var(--neon-green); color: #05070A; }

section { position: relative; }

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
    padding: 0 20px;
}

.section-eyebrow {
    font-family: var(--pixel);
    font-size: 0.62rem;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    display: inline-block;
    margin-bottom: 18px;
}

h2 {
    font-size: clamp(1.7rem, 4.2vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 16px;
}

.center { text-align: center; }

/* ---------- Barre de progression du scroll ---------- */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 1001;
    pointer-events: none;
}
.scroll-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan), var(--neon-magenta));
    transform-origin: 0 50%;
    transform: scaleX(var(--progress, 0));
    box-shadow: 0 0 12px rgba(77,232,232,0.7);
}

/* ---------- Barre du haut ---------- */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px clamp(16px, 4vw, 40px);
    transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease, padding .4s var(--ease-out);
    border-bottom: 1px solid transparent;
}
.topbar.scrolled {
    background: rgba(5,7,10,0.72);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-color: var(--border);
    padding-top: 10px;
    padding-bottom: 10px;
}
.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--pixel);
    font-size: 0.7rem;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .4s ease, transform .4s var(--ease-out);
}
.topbar.scrolled .topbar-brand { opacity: 1; transform: none; }
.topbar-brand img { border-radius: 8px; }

.lang-switch {
    display: flex;
    gap: 4px;
    background: rgba(20,25,34,0.8);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
}
.lang-switch a {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color .2s ease, background .2s ease;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { background: var(--brand); color: #fff; }

/* ================= HERO ================= */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 50% at 75% 45%, rgba(139,92,246,0.22), transparent 70%),
        radial-gradient(ellipse 50% 40% at 15% 20%, rgba(45,111,224,0.20), transparent 70%),
        radial-gradient(circle at 50% 0%, #131a2b 0%, var(--bg) 50%, var(--bg-deep) 100%);
    padding: 96px 0 120px;
}

.hero-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Sol en grille rétro qui défile vers le spectateur */
.hero-floor {
    position: absolute;
    left: -50%; right: -50%;
    bottom: -2px;
    height: 42%;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(77,232,232,0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77,232,232,0.35) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: perspective(380px) rotateX(62deg);
    transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 85%);
    mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 85%);
    animation: floor-scroll 2.4s linear infinite;
    opacity: 0.55;
}
@keyframes floor-scroll {
    to { background-position: 0 56px, 0 0; }
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-logo {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    display: block;
    margin-bottom: 26px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 16px 40px rgba(0,0,0,0.5), 0 0 40px rgba(139,92,246,0.35);
    animation: pop-in .9s var(--ease-spring) both, logo-float 6s ease-in-out 1s infinite;
}
@keyframes logo-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-3deg); }
}
@keyframes pop-in {
    from { opacity: 0; transform: scale(.4) rotate(-12deg); }
    to { opacity: 1; transform: none; }
}

.hero h1 { margin-bottom: 22px; }

.brand-name {
    display: block;
    font-family: var(--pixel);
    font-size: clamp(1.5rem, 4.4vw, 3.3rem);
    line-height: 1.2;
    letter-spacing: 2px;
    white-space: nowrap;
}
.brand-name .ch {
    display: inline-block;
    background: linear-gradient(180deg, #b8ffcc 0%, var(--neon-green) 45%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 14px rgba(74,255,122,0.45));
    animation:
        char-drop .8s var(--ease-spring) calc(.25s + var(--i) * 55ms) both,
        char-wave 5s ease-in-out calc(2s + var(--i) * 90ms) infinite;
}
@keyframes char-drop {
    0% { opacity: 0; transform: translateY(-80%) scale(.6) rotate(-14deg); filter: blur(6px); }
    100% { opacity: 1; transform: none; filter: drop-shadow(0 0 14px rgba(74,255,122,0.45)); }
}
@keyframes char-wave {
    0%, 12%, 100% { transform: translateY(0); }
    6% { transform: translateY(-14%); }
}

/* Glitch ponctuel sur le titre */
.brand-name { position: relative; animation: glitch 7s steps(1) 3s infinite; }
@keyframes glitch {
    0%, 96%, 100% { transform: none; text-shadow: none; }
    96.5% { transform: translate(2px, -1px) skewX(-6deg); }
    97% { transform: translate(-3px, 1px); }
    97.5% { transform: translate(1px, 0) skewX(4deg); }
    98% { transform: none; }
}

.h1-sub {
    display: block;
    margin-top: 20px;
    font-size: clamp(1.35rem, 2.8vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    animation: rise 1s var(--ease-out) .85s both;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.12rem;
    max-width: 520px;
    animation: rise 1s var(--ease-out) 1s both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(26px); filter: blur(8px); }
    to { opacity: 1; transform: none; filter: none; }
}

.promise {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}
.promise li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(74,255,122,0.1);
    border: 1px solid rgba(74,255,122,0.4);
    color: var(--neon-green);
    font-weight: 700;
    font-size: 0.88rem;
    animation: pill-pop .7s var(--ease-spring) calc(1.15s + var(--i) * 120ms) both;
    position: relative;
    overflow: hidden;
}
.promise li::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: shimmer 4.5s ease-in-out calc(2.4s + var(--i) * 200ms) infinite;
}
@keyframes pill-pop {
    from { opacity: 0; transform: scale(.5) translateY(10px); }
    to { opacity: 1; transform: none; }
}
@keyframes shimmer {
    0%, 70% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
    animation: rise 1s var(--ease-out) 1.45s both;
}
.hero-ctas .download-badge img { height: 50px; }

.hero-map-link {
    display: inline-flex;
    gap: 8px;
    margin-top: 22px;
    color: var(--brand-light);
    font-weight: 700;
    text-decoration: none;
    animation: rise 1s var(--ease-out) 1.6s both;
}
.hero-map-link span { display: inline-block; transition: transform .3s var(--ease-spring); }
.hero-map-link:hover span { transform: translateY(4px); }

/* ---------- Mosaïque animée ---------- */
.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
    animation: rise 1.2s var(--ease-out) .4s both;
}
.mosaic-stage {
    position: relative;
    width: min(480px, 90vw);
    aspect-ratio: 1;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .2s linear;
}
.mosaic {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: translateZ(40px);
}

.radar {
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(74,255,122,0.0) 250deg, rgba(74,255,122,0.28) 355deg, rgba(74,255,122,0.5) 360deg);
    -webkit-mask-image: radial-gradient(circle, #000 0 68%, transparent 70%);
    mask-image: radial-gradient(circle, #000 0 68%, transparent 70%);
    animation: spin 4s linear infinite;
    opacity: .6;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(77,232,232,0.25);
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
}
.ring.r1 { width: 46%; height: 46%; }
.ring.r2 { width: 70%; height: 70%; border-style: dashed; animation: spin-center 40s linear infinite; }
.ring.r3 { width: 94%; height: 94%; border-color: rgba(139,92,246,0.35); box-shadow: 0 0 60px rgba(139,92,246,0.25) inset; }
@keyframes spin-center { to { transform: translate(-50%, -50%) rotate(360deg); } }

.flash {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(255,255,255,0) 65%);
    opacity: 0;
    transform: translateZ(60px) scale(.6);
    pointer-events: none;
}
.flash.on { animation: flash-burst .9s ease-out; }
@keyframes flash-burst {
    0% { opacity: 0; transform: translateZ(60px) scale(.5); }
    12% { opacity: 1; }
    100% { opacity: 0; transform: translateZ(60px) scale(1.6); }
}

.chip {
    position: absolute;
    padding: 9px 14px;
    border-radius: 14px;
    background: rgba(20,25,34,0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
    transform: translateZ(90px);
}
.chip-a { top: 8%; left: -6%; animation: chip-float 6s ease-in-out infinite, chip-in .9s var(--ease-spring) 1.8s both; }
.chip-b { bottom: 10%; right: -4%; animation: chip-float 7s ease-in-out 1s infinite, chip-in .9s var(--ease-spring) 2.1s both; }
/* n'anime pas transform : il porte la profondeur 3D (translateZ) de la puce */
@keyframes chip-in {
    from { opacity: 0; scale: .5; }
    to { opacity: 1; scale: 1; }
}
@keyframes chip-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -12px; }
}
.chip-flash {
    top: 6%;
    right: 2%;
    color: #05070A;
    background: var(--neon-green);
    border-color: transparent;
    font-family: var(--pixel);
    font-size: 0.62rem;
    letter-spacing: 1px;
    padding: 10px 14px;
    opacity: 0;
    scale: .4;
    box-shadow: 0 0 30px rgba(74,255,122,0.6);
}
.chip-flash.on { animation: chip-flash 1.9s var(--ease-spring) both; }
@keyframes chip-flash {
    0% { opacity: 0; scale: .4; translate: 0 20px; }
    18% { opacity: 1; scale: 1.08; translate: 0 0; }
    28% { scale: 1; }
    80% { opacity: 1; scale: 1; translate: 0 -6px; }
    100% { opacity: 0; scale: .9; translate: 0 -24px; }
}

/* ---------- Indication de scroll ---------- */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: rise 1s var(--ease-out) 2.2s both;
}
.scroll-cue .mouse {
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 12px;
    position: relative;
}
.scroll-cue .mouse span {
    position: absolute;
    left: 50%;
    top: 6px;
    width: 4px;
    height: 7px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--neon-cyan);
    animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
    0% { opacity: 0; transform: translateY(-3px); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(12px); }
}

/* ================= APPARITIONS AU SCROLL ================= */
/* Les éléments ne sont masqués que si le JS tourne ; filet de sécurité
   si home.js ne se charge pas : tout réapparaît au bout de 2,5 s. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px) scale(.98);
        filter: blur(6px);
        transition:
            opacity .9s var(--ease-out),
            transform 1s var(--ease-out),
            filter .9s var(--ease-out);
        transition-delay: calc(var(--d, 0) * 110ms);
    }
    .reveal.is-in { opacity: 1; transform: none; filter: none; }

    .reveal-mask > span {
        display: inline-block;
        clip-path: inset(0 0 100% 0);
        transform: translateY(40%);
        transition: clip-path 1s var(--ease-out), transform 1s var(--ease-out);
    }
    .reveal-mask.is-in > span { clip-path: inset(-10% -5% -20% -5%); transform: none; }

    .reveal-clip {
        clip-path: inset(18% 22% 18% 22% round 40px);
        transition: clip-path 1.3s var(--ease-out);
    }
    .reveal-clip.is-in { clip-path: inset(0 0 0 0 round var(--radius-lg)); }

    html:not(.motion-ready) .reveal,
    html:not(.motion-ready) .reveal-mask > span,
    html:not(.motion-ready) .reveal-clip {
        animation: failsafe 0s 2.5s forwards;
    }
}
@keyframes failsafe { to { opacity: 1; transform: none; filter: none; clip-path: none; } }

/* ================= STATS ================= */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1000px;
    margin: 24px auto 0;
    padding: 0 20px;
    z-index: 3;
}
.stat-item {
    position: relative;
    background: linear-gradient(180deg, rgba(29,35,45,0.9), rgba(20,25,34,0.9));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    overflow: hidden;
}
.stat-item::before {
    content: '';
    position: absolute;
    left: 20%; right: 20%; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}
.stat-number {
    display: block;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(90deg, var(--brand-light), var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ================= BANDEAU CINÉTIQUE ================= */
.kinetic {
    margin: 120px 0 40px;
    overflow: hidden;
    transform: rotate(-3deg);
    padding: 10px 0;
}
.kinetic-row {
    display: flex;
    gap: 28px;
    white-space: nowrap;
    width: max-content;
    font-weight: 900;
    font-size: clamp(2.6rem, 8vw, 6.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    transform: translate3d(var(--kx, 0px), 0, 0);
    will-change: transform;
}
.kinetic-row i {
    font-style: normal;
    color: var(--neon-green);
    font-size: .5em;
    align-self: center;
}
.kinetic-row.outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(77,232,232,0.55);
    margin-left: -40%;
}
.kinetic-row.outline i { color: var(--neon-magenta); -webkit-text-stroke: 0; }

/* ================= STATEMENT (mots révélés au scroll) ================= */
.statement {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 20px 80px;
    text-align: center;
}
.statement h2 { margin-bottom: 36px; }
.scrub {
    font-size: clamp(1.25rem, 2.6vw, 1.9rem);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.01em;
}
.scrub .w {
    transition: opacity .35s linear, color .35s linear;
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
    html.motion-ready .scrub .w { opacity: .16; }
    html.motion-ready .scrub .w.lit { opacity: 1; }
}

/* ================= SHOWCASE (téléphone) ================= */
.showcase { padding: 80px 0 120px; overflow: hidden; }
.phone-scene {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1400px;
    padding: 20px;
}
.phone-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    max-width: 100%;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(45,111,224,0.45), rgba(139,92,246,0.25) 40%, transparent 70%);
    filter: blur(20px);
    animation: glow-pulse 6s ease-in-out infinite;
}
@keyframes glow-pulse {
    0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.phone {
    position: relative;
    width: min(320px, 76vw);
    padding: 10px;
    border-radius: 44px;
    background: linear-gradient(145deg, #2a3140, #0d1016);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.12),
        0 0 0 2px #05070A,
        0 50px 100px rgba(0,0,0,0.6),
        0 0 80px rgba(45,111,224,0.3);
    transform: rotateX(var(--prx, 0deg)) rotateY(var(--pry, 0deg)) scale(var(--ps, 1));
    transform-style: preserve-3d;
    will-change: transform;
}
.phone video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78vh;
    border-radius: 34px;
    background: #000;
}
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(20,25,34,0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
    transform: translate3d(0, var(--fy, 0px), 0);
    will-change: transform;
}
.float-card b { font-size: 1.3rem; }
.fc1 { left: calc(50% - 380px); top: 18%; }
.fc2 { right: calc(50% - 390px); top: 42%; }
.fc3 { left: calc(50% - 350px); bottom: 14%; }

/* ================= FEATURES ================= */
.features { padding: 60px 0 120px; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}
.feature-card {
    --accent: 77,232,232;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    overflow: hidden;
    isolation: isolate;
}
.feature-card::before {
    /* Halo qui suit le curseur */
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -40%), rgba(var(--accent), 0.18), transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
}
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(200px circle at var(--mx, 50%) var(--my, -40%), rgba(var(--accent), 0.8), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.feature-card:hover::before,
.feature-card:hover::after { opacity: 1; }

.feature-card.c1, .feature-card.c5 { --accent: 91,147,245; }
.feature-card.c2, .feature-card.c7 { --accent: 74,255,122; }
.feature-card.c3 { --accent: 77,232,232; }
.feature-card.c4 { --accent: 255,79,184; }
.feature-card.c6 { --accent: 139,92,246; }
.feature-card.c8 { --accent: 255,181,71; }

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
    background: rgba(var(--accent), 0.12);
    border: 1px solid rgba(var(--accent), 0.35);
    transition: transform .5s var(--ease-spring);
}
.feature-card:hover .feature-icon { transform: rotate(-10deg) scale(1.12); }
.feature-title { font-weight: 800; font-size: 1.02rem; line-height: 1.3; margin-bottom: 8px; }
.feature-desc { font-size: 0.9rem; line-height: 1.5; color: var(--text-secondary); }

/* ================= VILLES (marquee) ================= */
.cities { padding: 40px 0 120px; overflow: hidden; }
.marquee {
    overflow: hidden;
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 38s linear infinite;
}
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 44s; }
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.city-links {
    list-style: none;
    display: flex;
    gap: 12px;
    padding-right: 12px;
}
.city-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    transition: border-color .25s ease, background .25s ease, transform .35s var(--ease-spring);
}
.city-links a:hover {
    border-color: rgba(77,232,232,0.6);
    background: rgba(77,232,232,0.1);
    transform: translateY(-3px);
}
.city-links span { color: var(--neon-cyan); font-weight: 600; font-variant-numeric: tabular-nums; }
.all-cities {
    display: inline-flex;
    gap: 8px;
    margin-top: 32px;
    color: var(--brand-light);
    font-weight: 800;
    text-decoration: none;
}
.all-cities span { transition: transform .3s var(--ease-spring); }
.all-cities:hover span { transform: translateX(6px); }

/* ================= CARTE ================= */
.live-map { padding: 20px 20px 100px; }
.live-dot {
    display: inline-block;
    width: 8px; height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: #FF4F6D;
    vertical-align: middle;
    box-shadow: 0 0 0 0 rgba(255,79,109,0.7);
    animation: live 1.6s ease-out infinite;
}
@keyframes live {
    to { box-shadow: 0 0 0 10px rgba(255,79,109,0); }
}
.map-container {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(45,111,224,0.1), 0 0 80px rgba(45,111,224,0.15);
    background: var(--surface);
}
#map { height: 560px; width: 100%; }
.loading {
    height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    background:
        linear-gradient(rgba(77,232,232,0.05) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(90deg, rgba(77,232,232,0.05) 1px, transparent 1px) 0 0 / 32px 32px,
        var(--surface);
}
.radar-loader {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(74,255,122,0.35);
    background:
        radial-gradient(circle, transparent 0 30%, rgba(74,255,122,0.25) 31% 32%, transparent 33% 62%, rgba(74,255,122,0.25) 63% 64%, transparent 65%),
        conic-gradient(from 0deg, transparent 0 270deg, rgba(74,255,122,0.55) 360deg);
    animation: spin 1.6s linear infinite;
}
.map-followup {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 28px;
}
.map-followup a { color: var(--brand-light); font-weight: 700; text-decoration: none; }
.map-followup a:hover { text-decoration: underline; }

/* ================= GET THE APP ================= */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.get-app { padding: 40px 20px 120px; }
.get-app-card {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 56px 30px;
    border-radius: 32px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.25), transparent 60%),
        var(--surface);
    isolation: isolate;
}
.get-app-card::before {
    /* Bordure dégradée qui tourne */
    content: '';
    position: absolute;
    inset: -1.5px;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(from var(--angle), var(--neon-green), var(--neon-cyan), var(--brand), var(--neon-violet), var(--neon-magenta), var(--neon-green));
    animation: angle 6s linear infinite;
}
.get-app-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.25), transparent 60%),
        var(--surface);
}
@keyframes angle { to { --angle: 360deg; } }

.cta-text {
    font-weight: 800;
    font-size: clamp(1.4rem, 3.4vw, 2.1rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 32px;
}
.buttons-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-bottom: 22px;
}
.download-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.download-badge {
    display: inline-block;
    transition: transform .35s var(--ease-spring), filter .25s ease;
}
.download-badge img { height: 56px; width: auto; display: block; }
.download-badge:hover { transform: translateY(-4px) scale(1.04); filter: brightness(1.12) drop-shadow(0 10px 20px rgba(45,111,224,0.4)); }
.rating-inline { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-secondary); }
.rating-inline-stars { color: #FFD700; letter-spacing: 1px; }
.rating-inline-value { font-weight: 700; color: var(--text); }
.availability-note { color: var(--text-secondary); font-size: 0.88rem; }

/* ================= FAQ ================= */
.faq { padding: 0 20px 120px; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    background: var(--surface);
    transition: border-color .3s ease, background .3s ease;
    interpolate-size: allow-keywords;
}
.faq-item[open] { border-color: rgba(77,232,232,0.35); background: var(--surface-2); }
.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    padding: 18px 56px 18px 22px;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus {
    position: absolute;
    right: 22px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    transition: transform .45s var(--ease-spring);
}
.faq-plus::before, .faq-plus::after {
    content: '';
    position: absolute;
    left: 0; top: 6px;
    width: 14px; height: 2px;
    background: var(--neon-cyan);
    border-radius: 1px;
}
.faq-plus::after { transform: rotate(90deg); transition: transform .45s var(--ease-spring); }
.faq-item[open] .faq-plus { transform: rotate(180deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0deg); }
.faq-item p {
    color: var(--text-secondary);
    line-height: 1.65;
    padding: 0 22px 20px;
}
/* Ouverture animée (navigateurs récents ; ailleurs, ouverture instantanée) */
.faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
    .float-card { display: none; }
}

@media (max-width: 900px) {
    .hero { padding: 88px 0 110px; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
    .hero-logo { margin-left: auto; margin-right: auto; }
    .tagline { margin: 0 auto; }
    .promise, .hero-ctas { justify-content: center; }
    .hero-visual { order: -1; }
    .mosaic-stage { width: min(340px, 78vw); }
    .chip-a { left: -2%; }
    .chip-b { right: -2%; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-floor { height: 30%; }
}

@media (max-width: 640px) {
    .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: -50px; padding: 0 12px; }
    .stat-item { padding: 18px 8px; border-radius: var(--radius-md); }
    .stat-number { font-size: clamp(1.15rem, 6.4vw, 1.8rem); }
    .stat-label { font-size: 0.62rem; letter-spacing: .5px; }
    .hero { padding-top: 72px; }
    .hero-logo { display: none; }
    .mosaic-stage { width: min(250px, 64vw); }
    .chip-a { display: none; }
    .hero h1 { margin-bottom: 14px; }
    .h1-sub { margin-top: 12px; }
    .promise { margin-top: 18px; }
    .hero-ctas { margin-top: 22px; }
    .features-grid { gap: 10px; padding: 0 12px; }
    .feature-card { padding: 18px 14px; }
    .feature-icon { width: 44px; height: 44px; font-size: 1.25rem; margin-bottom: 12px; }
    .kinetic { margin-top: 80px; }
    #map, .loading { height: 440px; }
    .get-app-card { padding: 40px 18px; }
    .hero-ctas .download-badge img { height: 44px; }
    .chip { font-size: 0.72rem; padding: 7px 10px; }
    .scroll-cue { display: none; }
    .hero { padding-bottom: 80px; }
}

@media (max-width: 400px) {
    .brand-name { letter-spacing: 0; }
}

/* ================= MOUVEMENT RÉDUIT ================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.001ms !important;
    }
    .marquee { overflow-x: auto; }
    .hero-floor { animation: none !important; }
}
