/* Landing page — Figma Desktop-2 (1440) + design system Squiz */

@font-face {
    font-family: 'Pally';
    src: url('assets/fonts/Pally-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html:has(body.landing) {
    /* Contient les breakouts 100vw (marquee) — pas de scroll horizontal */
    overflow-x: clip;
    max-width: 100%;
    /*
     * Canvas violet : gouttière scrollbar / bords hors layout restent
     * violets (pas de trou crème à droite des sections hero / SRS).
     */
    background-color: var(--primary, #6F4096);
}

body.landing {
    --surface: #FFFCFA;
    --secondary-chip: #FFFFFF;
    --on-background-variant-light: #675775;
    --radius-chip: 12px;
    --font-family: 'Pally', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-x: 2px;
    --shadow-y: 3px;
    --border-strong: 2px;
    --hero-max: 1440px;
    /* Fold = exactement 1 viewport */
    --hero-h: 100dvh;
    --hero-design-h: 920;

    /* Annule le layout 100vh + scroll interne de styles.css */
    height: auto;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    overflow-y: visible;
    font-family: var(--font-family);
    /* Même violet que html — les sections crème peignent par-dessus */
    background-color: var(--primary);
    color: var(--on-background);
}

body.landing .main-content {
    overflow: visible;
    min-height: auto;
    flex: 1 0 auto;
}

body.landing .footer {
    max-width: none;
}

/* Official store badges — no Squiz shadow / border effects */
.store-badge {
    display: inline-flex;
    line-height: 0;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.store-badge img {
    display: block;
    height: auto;
    max-width: 100%;
}

/* ---------- Hero (violet) — Figma absolute coords on 1440 stage ---------- */

.hero-figma {
    position: relative;
    /* Au-dessus de .landing-main : panda peut peindre sur la crème */
    z-index: 2;
    /* Section pleine largeur — pas de 100vw/calc (casse les abs. du stage) */
    width: 100%;
    max-width: none;
    margin: 0;
    background: var(--primary);
    color: var(--on-primary);
    /* Fold strict : violet = viewport, pas d’extension à 920px */
    height: var(--hero-h);
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 0;
    /*
     * overflow visible : le panda peut chevaucher la crème sans agrandir
     * la boîte (le fond violet reste borné au fold).
     */
    overflow: visible;
    box-sizing: border-box;
}

.hero-stage {
    position: relative;
    width: 100%;
    max-width: var(--hero-max);
    height: 100%;
    margin: 0 auto;
    overflow: visible;
    box-sizing: border-box;
}

/* Sticky top bar — transparent en haut ; scrolled = bande max-width + glass blanc + pointillés */
.site-topbar {
    --topbar-h: 80px;
    --mark-size: 53px;
    --brand-fs: 63.576px;
    --badge-google-w: 193px;
    --badge-apple-w: 181px;
    --brand-top: 7px;
    --badges-top: 25px;
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--topbar-h);
    margin-bottom: calc(-1 * var(--topbar-h));
    /* Outer transparent : pas de full-bleed */
    background-color: transparent;
    pointer-events: none;
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-topbar.is-scrolled {
    --topbar-h: 58px;
    --mark-size: 36px;
    --brand-fs: 40px;
    --badge-google-w: 138px;
    --badge-apple-w: 128px;
    --brand-top: 4px;
    --badges-top: 10px;
    pointer-events: auto;
}

.site-topbar-inner {
    position: relative;
    width: 100%;
    max-width: var(--hero-max);
    height: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: transparent;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    pointer-events: none;
    transition:
        background-color 0.3s ease,
        backdrop-filter 0.3s ease,
        -webkit-backdrop-filter 0.3s ease;
}

/* Glass + pointillés — largeur layout ; ton via data-tone (violet / cream) */
.site-topbar.is-scrolled .site-topbar-inner {
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.site-topbar.is-scrolled[data-tone='cream'] .site-topbar-inner {
    background-color: rgba(255, 255, 255, 0.22);
}

.site-topbar.is-scrolled[data-tone='violet'] .site-topbar-inner {
    background-color: rgba(111, 64, 150, 0.32);
}

/*
 * Pas de ::after pointillé sous la top bar :
 * au scroll, le bas de la barre s’aligne sur la jonction violet→crème
 * et la ligne coupait téléphone / panda. Glass seul suffit.
 */

.site-topbar-inner a,
.site-topbar-inner .store-badge {
    pointer-events: auto;
}

.hero-brand {
    position: absolute;
    left: 22px;
    top: var(--brand-top);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #ffffff;
    text-shadow:
        0 1px 2px rgba(20, 12, 28, 0.55),
        0 2px 10px rgba(20, 12, 28, 0.4);
    transition:
        top 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.3s ease,
        text-shadow 0.3s ease;
}

.site-topbar.is-scrolled[data-tone='cream'] .hero-brand {
    /* OnBackground — texte sur crème, pas Primary */
    color: var(--on-background);
    text-shadow: none;
}

.site-topbar.is-scrolled[data-tone='violet'] .hero-brand {
    color: #ffffff;
    text-shadow:
        0 1px 2px rgba(20, 12, 28, 0.55),
        0 2px 10px rgba(20, 12, 28, 0.4);
}

.hero-brand-mark {
    width: var(--mark-size);
    height: var(--mark-size);
    object-fit: contain;
    flex-shrink: 0;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-brand-text {
    font-size: var(--brand-fs);
    font-weight: 700;
    letter-spacing: -1.907px;
    line-height: 1.3;
    transition: font-size 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Ancrés à droite (pas left:1017) — restent à droite quand les badges shrink */
.hero-store-badges {
    position: absolute;
    right: 22px;
    left: auto;
    top: var(--badges-top);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    transition: top 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-store-badges .store-badge img[data-store-badge='google'] {
    width: var(--badge-google-w);
    height: auto;
    max-width: none;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-store-badges .store-badge img[data-store-badge='apple'] {
    width: var(--badge-apple-w);
    height: auto;
    max-width: none;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-body {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    display: block;
    max-width: none;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.hero-body .hero-phone-wrap,
.hero-body .hero-copy {
    pointer-events: auto;
}

/*
 * Wrappers invisibles hors mid (display:contents) :
 * phone / copy / panda se comportent comme avant pour ≥1400 et ≤900.
 */
.hero-cluster,
.hero-text-col {
    display: contents;
}

/*
 * Phone : frame outline + screen overlay.
 * Outline 805×1665 ; trou écran mesuré : L 3.975% T 1.622% R 4.1% B 1.682%.
 * Ancré bas pour dépasser sous le fold violet (100dvh).
 * Tokens : large ≥1400 · mid flex 901–1399 · stack ≤900.
 */
:root {
    --hero-copy-left: 710px;
    /* Sous topbar ; assez haut pour laisser l’air au-dessus du panda */
    --hero-copy-top: clamp(96px, 18vh, 160px);
    --hero-phone-left: 275px;
    /*
     * Cap hauteur viewport : haut du phone sous topbar + marge,
     * overhang bas conservé (100dvh − clear + |bottom|).
     */
    --hero-top-clear: 96px;
    --hero-phone-bottom: -100px;
    --hero-phone-w: min(
        300px,
        calc((100dvh - var(--hero-top-clear) + 100px) * 805 / 1665)
    );
    --hero-panda-w: clamp(150px, 12vw, 190px);
    --hero-panda-bottom: -6px;
    --hero-cluster-gap: 48px;
    --hero-copy-w: min(480px, 34vw);
}

.hero-phone-wrap {
    position: absolute;
    left: var(--hero-phone-left);
    top: auto;
    bottom: var(--hero-phone-bottom);
    width: var(--hero-phone-w);
    height: auto;
    max-height: none;
    display: block;
    z-index: 3;
    overflow: visible;
    pointer-events: auto;
}

.hero-phone {
    --phone-inset-l: 3.975%;
    --phone-inset-t: 1.622%;
    --phone-inset-r: 4.1%;
    --phone-inset-b: 1.682%;
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 805 / 1665;
    display: block;
    filter: drop-shadow(0 22px 36px rgba(25, 10, 40, 0.35));
}

.hero-phone-screen-clip {
    position: absolute;
    left: var(--phone-inset-l);
    top: var(--phone-inset-t);
    right: var(--phone-inset-r);
    bottom: var(--phone-inset-b);
    z-index: 1;
    overflow: hidden;
    /* Coins écran type Dynamic Island frame */
    border-radius: 12.2% / 5.6%;
    background: #0a0610;
}

.hero-phone-screen {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero-phone-frame {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

/* Copy + panda : même --hero-copy-left */
.hero-copy {
    position: absolute;
    left: var(--hero-copy-left);
    top: var(--hero-copy-top);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 563px;
    max-width: 563px;
    padding: 0;
    z-index: 3;
}

/* Post-it « Aucune pub » — ThemePostIt, coins carrés, penché → droit avec rebond */
.hero-noads {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 13px 12px;
    background: #FFE59E;
    color: #28202E;
    border: none;
    border-radius: 0;
    box-shadow: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: default;
    transform: translateY(-24px) rotate(-8deg);
    transform-origin: center center;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
}

.hero-noads:hover,
.hero-noads:focus-visible {
    transform: translateY(-24px) rotate(0deg);
}

.hero-noads:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.hero-noads-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.hero-noads-label {
    display: block;
}

.hero-headline {
    margin: 0;
    font-size: 72px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    overflow-wrap: normal;
    /* pas balance : casse « En » / « s'amusant » ; nowrap sur la 3ᵉ phrase */
    text-wrap: unset;
    color: #ffffff;
}

/* Dernière phrase (En s'amusant. / While having fun. / …) — une seule ligne */
.hero-headline-nowrap {
    white-space: nowrap;
}

.hero-headline-muted {
    opacity: 0.62;
}

.hero-headline-strong {
    opacity: 1;
}

.hero-headline-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.hero-courses-available {
    margin: 0;
    /* Base 15px + 4pt (demande produit) */
    font-size: calc(15px + 4pt);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-wrap: pretty;
    color: rgba(255, 255, 255, 0.72);
}

.hero-courses-available strong {
    font-weight: 700;
    color: #ffffff;
}

.hero-subcopy {
    margin: 0;
    max-width: 389px;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.299;
    color: #ffffff;
}

/*
 * Panda : ancré à la limite basse du fold (plus petit),
 * léger chevauchement crème sans allonger le violet (100dvh).
 */
.hero-panda {
    position: absolute;
    /* Même bord gauche que .hero-copy */
    left: var(--hero-copy-left);
    top: auto;
    bottom: var(--hero-panda-bottom);
    width: var(--hero-panda-w);
    height: auto;
    aspect-ratio: 767 / 510;
    object-fit: contain;
    object-position: top center;
    /* SVG : ~58px transparent à gauche sur viewBox 767 — aligne le contenu opaque */
    transform: translateX(calc(-58 / 767 * 100%));
    pointer-events: none;
    z-index: 5;
}

/*
 * 3 états hero :
 * 1) ≥1400 — large abs. side-by-side (Figma / fold 100dvh)
 * 2) 901–1399 — flex row hug centré, fold hauteur contenu
 * 3) ≤900 — stack mobile
 *
 * Important : ne pas align-items:flex-end sur un fold 100dvh → gros vide violet au-dessus.
 */
/*
 * Copy V : spacers flex (::before / ::after).
 * factor 0 → copy centré vs phone ; factor 1 → copy collé au haut du phone
 * (jamais au-dessus). Anti-panda = remonter sans dépasser ce plafond.
 */
@media (min-width: 901px) and (max-width: 1399px) {
    :root {
        --hero-phone-w: clamp(240px, 22vw, 320px);
        --hero-phone-bottom: -100px;
        --hero-cluster-gap: 40px;
        --hero-panda-w: calc(var(--hero-phone-w) * 0.48);
        --hero-panda-bottom: -6px;
        --hero-panda-lift: clamp(0px, calc((1480px - 100vw) * 4 / 564), 4px);
        --hero-mid-pad-top: 180px;
        --hero-mid-pad-bottom: 0px;
        /*
         * Typose confortable (min ~40–42) — plus de cqh agressif.
         * Badge = 0.3em du titre (même scale).
         * Collision panda : réserve basse, pas shrink extrême.
         */
        --hero-copy-fs: clamp(40px, 4.2vw, 54px);
        --hero-copy-lift-factor: clamp(0, calc((1200px - 100vw) / 500px), 0.35);
        --hero-panda-reserve: calc(var(--hero-panda-w) * 510 / 767 * 0.82);
    }

    .hero-body {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center; /* cluster phone+copy centré H */
        gap: 0;
        box-sizing: border-box;
        padding: var(--hero-mid-pad-top) 24px var(--hero-mid-pad-bottom);
        pointer-events: none;
        overflow: visible;
    }

    .hero-cluster {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: var(--hero-cluster-gap);
        width: max-content; /* hug duo — pas de colonne fantôme */
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 0 var(--hero-phone-bottom);
    }

    .hero-phone-wrap {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        width: var(--hero-phone-w);
        flex: 0 0 var(--hero-phone-w);
        margin: 0;
        align-self: auto;
    }

    .hero-text-col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        align-self: stretch;
        width: max-content;
        max-width: max-content;
        box-sizing: border-box;
        /* Zone panda interdite au copy → pas de collision */
        padding-bottom: var(--hero-panda-reserve);
    }

    /* Spacers : centre V dans la zone safe ; factor plafonne au haut du phone */
    .hero-text-col::before,
    .hero-text-col::after {
        content: '';
        flex: 1 1 0;
        min-height: 0;
        width: 0;
        pointer-events: none;
    }

    .hero-text-col::before {
        flex-grow: calc(1 - var(--hero-copy-lift-factor));
    }

    .hero-text-col::after {
        flex-grow: calc(1 + var(--hero-copy-lift-factor));
    }

    .hero-copy {
        position: relative;
        left: auto;
        top: auto;
        width: max-content;
        max-width: min(18em, 46vw);
        flex: 0 0 auto;
        align-self: flex-start;
        padding-top: 0;
        margin: 0;
        min-width: 0;
        /* Base type : headline 1em, badge 0.3em */
        font-size: var(--hero-copy-fs);
    }

    .hero-headline {
        font-size: 1em;
    }

    .hero-noads {
        font-size: 0.3em;
        padding: 0.7em 0.8em 0.75em 0.7em;
        gap: 0.45em;
        transform: translateY(-0.55em) rotate(-8deg);
    }

    .hero-noads:hover,
    .hero-noads:focus-visible {
        transform: translateY(-0.55em) rotate(0deg);
    }

    .hero-noads-icon {
        width: 1.35em;
        height: 1.35em;
    }

    .hero-courses-available {
        font-size: 0.38em;
    }

    .hero-panda {
        position: absolute;
        top: auto;
        left: 0;
        right: auto;
        margin-left: 0;
        bottom: calc(
            -1 * var(--hero-phone-bottom)
            + var(--hero-panda-bottom)
            + var(--hero-panda-lift)
        );
        width: var(--hero-panda-w);
        transform: translateX(calc(-58 / 767 * 100%));
        z-index: 5;
    }
}

/* Mid étroit (~970–1200) */
@media (min-width: 901px) and (max-width: 1200px) {
    :root {
        --hero-phone-w: clamp(220px, 24vw, 280px);
        --hero-phone-bottom: -90px;
        --hero-cluster-gap: 32px;
        --hero-mid-pad-top: 160px;
        --hero-mid-pad-bottom: 0px;
        --hero-panda-bottom: -6px;
        --hero-panda-lift: clamp(0px, calc((1480px - 100vw) * 4 / 564), 4px);
        --hero-copy-fs: clamp(38px, 4.8vw, 48px);
        --hero-copy-lift-factor: clamp(0, calc((1200px - 100vw) / 450px), 0.4);
        --hero-panda-reserve: calc(var(--hero-phone-w) * 0.48 * 510 / 767 * 0.82);
    }

    .hero-body {
        align-items: center;
        padding-top: var(--hero-mid-pad-top);
        padding-bottom: 0;
        justify-content: center;
    }

    .hero-cluster {
        margin-bottom: var(--hero-phone-bottom);
    }

    .hero-phone-wrap {
        margin-bottom: 0;
    }

    .hero-copy {
        max-width: min(16em, 48vw);
        font-size: var(--hero-copy-fs);
    }
}

/*
 * Desktop large (≥1400) : cluster flex hug centré H.
 * Violet < 100dvh : la limite basse est au-dessus du fold pour que le phone
 * (overhang compris) reste entièrement dans le viewport — effet à cheval
 * violet→beige toujours visible sans coupe bas d’écran.
 */
@media (min-width: 1400px) {
    :root {
        --hero-max: 1560px;
        --hero-top-clear: 96px;
        --hero-phone-bottom: -100px;
        /* Air sous le tip du phone vs bas viewport (violet un cran plus court) */
        --hero-fold-tail: 44px;
        /*
         * Hauteur violet = viewport − |overhang| − tail
         * → bas du phone ≈ bas viewport − tail.
         */
        --hero-violet-h: calc(
            100dvh + var(--hero-phone-bottom) - var(--hero-fold-tail)
        );
        /* Bridle : hauteur dispo sous topbar jusqu’au bas viewport */
        --hero-phone-w: min(
            300px,
            calc(
                (100dvh - var(--hero-top-clear) - var(--hero-fold-tail))
                * 805 / 1665
            )
        );
        --hero-cluster-gap: 44px;
        --hero-panda-w: min(180px, calc(var(--hero-phone-w) * 0.5));
        --hero-panda-bottom: -6px;
        --hero-panda-reserve: calc(var(--hero-panda-w) * 510 / 767 * 0.82);
        --hero-copy-lift-factor: 0.22;
        --hero-copy-fs: clamp(44px, 3.4vw, 58px);
    }

    .hero-figma {
        height: var(--hero-violet-h);
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    .hero-stage {
        height: 100%;
    }

    .hero-body {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-end;
        justify-content: center;
        gap: 0;
        padding: 0 24px;
        box-sizing: border-box;
        overflow: visible;
        pointer-events: none;
    }

    .hero-cluster {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: var(--hero-cluster-gap);
        width: max-content;
        max-width: 100%;
        margin: 0 0 var(--hero-phone-bottom);
        box-sizing: border-box;
    }

    .hero-phone-wrap {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        width: var(--hero-phone-w);
        flex: 0 0 var(--hero-phone-w);
        margin: 0;
    }

    .hero-text-col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        align-self: stretch;
        width: max-content;
        max-width: max-content;
        padding-bottom: var(--hero-panda-reserve);
        box-sizing: border-box;
    }

    .hero-text-col::before,
    .hero-text-col::after {
        content: '';
        flex: 1 1 0;
        min-height: 0;
        width: 0;
        pointer-events: none;
    }

    .hero-text-col::before {
        flex-grow: calc(1 - var(--hero-copy-lift-factor));
    }

    .hero-text-col::after {
        flex-grow: calc(1 + var(--hero-copy-lift-factor));
    }

    .hero-copy {
        position: relative;
        left: auto;
        top: auto;
        width: max-content;
        max-width: min(18em, 38vw);
        flex: 0 0 auto;
        align-self: flex-start;
        padding: 0;
        margin: 0;
        font-size: var(--hero-copy-fs);
    }

    .hero-headline {
        font-size: 1em;
    }

    .hero-noads {
        font-size: 0.3em;
        transform: translateY(-0.55em) rotate(-8deg);
    }

    .hero-noads:hover,
    .hero-noads:focus-visible {
        transform: translateY(-0.55em) rotate(0deg);
    }

    .hero-noads-icon {
        width: 1.35em;
        height: 1.35em;
    }

    .hero-courses-available {
        font-size: 0.38em;
    }

    .hero-panda {
        position: absolute;
        left: 0;
        margin-left: 0;
        bottom: calc(-1 * var(--hero-phone-bottom) + var(--hero-panda-bottom));
        width: var(--hero-panda-w);
        transform: translateX(calc(-58 / 767 * 100%));
    }
}

@media (min-width: 1800px) {
    :root {
        --hero-max: 1640px;
        --hero-top-clear: 96px;
        --hero-phone-bottom: -110px;
        --hero-fold-tail: 56px;
        --hero-violet-h: calc(
            100dvh + var(--hero-phone-bottom) - var(--hero-fold-tail)
        );
        /* Plus grand si la hauteur viewport le permet (bridle inchangé) */
        --hero-phone-w: min(
            400px,
            calc(
                (100dvh - var(--hero-top-clear) - var(--hero-fold-tail))
                * 805 / 1665
            )
        );
        --hero-cluster-gap: 50px;
        --hero-panda-w: min(220px, calc(var(--hero-phone-w) * 0.5));
        --hero-panda-bottom: -6px;
        --hero-panda-reserve: calc(var(--hero-panda-w) * 510 / 767 * 0.82);
        --hero-copy-lift-factor: 0.18;
        --hero-copy-fs: clamp(48px, 3.2vw, 64px);
    }

    .hero-copy {
        max-width: min(18em, 34vw);
    }
}

/* ---------- Passion / categories ---------- */

.landing-main {
    position: relative;
    z-index: 1;
    background: var(--background);
}

/* Crème après le fold — respiration sous le débordement phone/panda */
.passion-section {
    max-width: var(--hero-max);
    margin: 0 auto;
    /* Figma ~249 ; un peu plus pour le phone qui dépasse (~110px) */
    padding: 280px 64px 96px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.passion-intro {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 920px;
}

.passion-title {
    margin: 0;
    font-size: 87px;
    font-weight: 500;
    line-height: 1.03;
    text-wrap: balance;
    color: var(--on-background);
}

.passion-lead,
.passion-sublead {
    max-width: 389px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.299;
    text-wrap: pretty;
    color: var(--on-background-variant-light);
}

.passion-lead {
    margin: 8px 0 0;
}

.passion-lead strong {
    font-weight: 700;
    color: var(--on-background);
}

.passion-sublead {
    margin: 0;
}

.category-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.category-chip {
    appearance: none;
    border: var(--border-strong) solid var(--outline-dark);
    border-radius: var(--radius-chip);
    background: var(--secondary-chip);
    color: var(--on-secondary);
    min-height: 54px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-x) var(--shadow-y) 0 0 var(--outline-dark);
    transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s ease, color 0.15s ease;
    /* Mobile : pas de rectangle bleu / sélection / delay 300ms */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

@media (hover: hover) {
    .category-chip:hover {
        transform: translateY(-1px);
    }
}

/* :active seul rate souvent sur iOS — .is-pressed via pointerdown en JS */
.category-chip:active,
.category-chip.is-pressed {
    transform: translate(var(--shadow-x), var(--shadow-y));
    box-shadow: 0 0 0 0 var(--outline-dark);
}

.category-chip.is-active {
    background: var(--primary);
    color: var(--on-primary);
}

.category-chip:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* Chips → marquee gap 30px */
.passion-mosaic-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    padding-bottom: 150px;
}

/* Double marquee d'images d'items (sens opposés) — full-bleed dans la section */
.item-marquee {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    mask-image: linear-gradient(
        90deg,
        transparent 0,
        #000 4%,
        #000 96%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0,
        #000 4%,
        #000 96%,
        transparent 100%
    );
}

.item-marquee-row {
    overflow: hidden;
    width: 100%;
    /* Réserve l’ombre Figma (1.978px) pour ne pas la clipper — même rendu ligne haut/bas */
    padding-bottom: 3px;
    box-sizing: content-box;
}

.item-marquee-track {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    width: max-content;
    will-change: transform;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.item-marquee-row--ltr .item-marquee-track {
    animation-name: marquee-ltr;
    animation-duration: 140s;
}

.item-marquee-row--rtl .item-marquee-track {
    animation-name: marquee-rtl;
    animation-duration: 155s;
}

@keyframes marquee-ltr {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes marquee-rtl {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/*
 * Figma node 3:507 « image » polaroid :
 * padding 7.914 / 7.914 / 26.379, border 0.659 black,
 * shadow 1.319px 1.978px 0 0 black, Picture h=233 + border
 * Hauteur fixe identique sur les 2 tracks (évite bande bas asymétrique).
 */
.item-tile {
    --tile-pad-t: 7.914px;
    --tile-pad-x: 7.914px;
    --tile-pad-b: 26.379px;
    --tile-pic-h: 233px;
    --tile-border: 0.659px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
    width: fit-content;
    /* Hauteur Figma ~267.29 (pads + picture + borders) — identique 2 tracks */
    height: calc(
        var(--tile-pad-t) + var(--tile-pic-h) + var(--tile-pad-b) + (var(--tile-border) * 2)
    );
    min-height: calc(
        var(--tile-pad-t) + var(--tile-pic-h) + var(--tile-pad-b) + (var(--tile-border) * 2)
    );
    padding: var(--tile-pad-t) var(--tile-pad-x) var(--tile-pad-b);
    background: #ffffff;
    border: var(--tile-border) solid #000000;
    border-radius: 0;
    box-shadow: 1.319px 1.978px 0 0 #000000;
    overflow: visible;
}

/*
 * Cadre = hauteur fixe du slot, largeur = ratio de l’img (width:auto).
 * Pas de min-width fixe en px : sur mobile --tile-pic-h (152/186) < 160
 * faisait un cadre plus large que l’image → letterboxing crème.
 */
.item-tile-frame {
    position: relative;
    box-sizing: border-box;
    flex: 0 0 var(--tile-pic-h);
    height: var(--tile-pic-h);
    min-height: var(--tile-pic-h);
    max-height: var(--tile-pic-h);
    width: fit-content;
    max-width: none;
    min-width: 0;
    align-self: flex-start;
    border: 0.659px solid #000000;
    overflow: hidden;
    /* Fond crème site pour items à alpha (visible seulement sous transparence) */
    background: #F9F1DB;
    line-height: 0;
}

/* Skeleton pendant chargement : réserve un carré, sans forcer le rendu final */
.item-tile.is-loading .item-tile-frame {
    min-width: var(--tile-pic-h);
}

.item-tile img {
    display: block;
    height: 100%;
    width: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    /* Pas de tooltip navigateur au survol (filename / title) */
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.item-tile.is-ready img {
    opacity: 1;
}

.item-tile.is-loading .item-tile-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        #F9F1DB 0%,
        #efe6d6 40%,
        #F9F1DB 80%
    );
    background-size: 200% 100%;
    animation: tile-skeleton 1.1s ease-in-out infinite;
    pointer-events: none;
}

@keyframes tile-skeleton {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .item-tile img {
        opacity: 1;
        transition: none;
    }

    .item-tile.is-loading .item-tile-frame::after {
        animation: none;
        background: #efe6d6;
    }
}

.item-tile--svg .item-tile-frame {
    background: #F9F1DB;
}

.item-tile--svg img {
    object-fit: contain;
}

.course-mosaic-empty {
    margin: 0;
    font-size: 16px;
    color: var(--on-background-light);
}

@media (prefers-reduced-motion: reduce) {
    .item-marquee-track {
        animation: none !important;
        transform: none !important;
        flex-wrap: wrap;
        width: 100%;
        max-width: var(--hero-max);
        margin: 0 auto;
        justify-content: flex-start;
        padding: 0 64px;
    }

    .item-marquee {
        width: 100%;
        max-width: none;
        margin-left: 0;
        mask-image: none;
        -webkit-mask-image: none;
    }
}

/* ---------- SRS — une note centrée, avance au clic ---------- */

.srs-section {
    position: relative;
    /* Section pleine largeur — contenu limité via .srs-stage */
    width: 100%;
    max-width: none;
    margin: 0;
    background: var(--primary);
    color: #ffffff;
    padding: 200px 24px;
    box-sizing: border-box;
}

.srs-pin {
    display: flex;
    align-items: center;
    justify-content: center;
}

.srs-stage {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.srs-title {
    margin: 0;
    max-width: 18ch;
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
    color: #ffffff;
}

.srs-lead {
    margin: 0;
    max-width: 36ch;
    min-height: 3.2em;
    font-size: clamp(16px, 1.7vw, 22px);
    font-weight: 400;
    line-height: 1.45;
    text-wrap: pretty;
    color: rgba(255, 255, 255, 0.9);
    transition: opacity 0.22s ease;
}

.srs-lead.is-swapping {
    opacity: 0;
}

.srs-badge-cluster {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Place pour flèche + caption à l’origine (droite) */
    margin: 12px 320px 64px;
    flex-shrink: 0;
}

.srs-badge-stage {
    position: relative;
    display: block;
    width: clamp(200px, 28vw, 300px);
    height: clamp(200px, 28vw, 300px);
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.srs-badge-stage:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 6px;
    border-radius: 16px;
}

/*
 * note ← pointe … corps … origine → texte
 * Texte ancré à droite du box flèche, bas = origine après rotate.
 */
.srs-click-cue {
    position: absolute;
    /* Un peu plus d’air note → pointe (~40px) */
    right: -132px;
    bottom: -28px;
    z-index: 2;
    width: clamp(64px, 10vw, 86px);
    pointer-events: none;
}

.srs-click-arrow {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    /* Pointe → note (gauche) ; départ de courbe → bas-droit du box */
    transform: rotate(155deg);
    transform-origin: center center;
    filter: drop-shadow(0 1px 3px rgba(20, 12, 28, 0.45));
}

.srs-hint {
    position: absolute;
    /* Air flèche → texte */
    left: calc(100% + 40px);
    /* Aligné avec le début / origine de la flèche */
    bottom: 18px;
    margin: 0;
    /* Largeur explicite : le cue est étroit, sinon shrink-to-fit → 1 mot/ligne */
    width: 10em;
    max-width: 10em;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    text-shadow: 0 1px 2px rgba(20, 12, 28, 0.35);
    pointer-events: none;
    user-select: none;
}

/* Desktop only : cumul −8px X / +4px Y vs original */
@media (min-width: 901px) {
    .srs-hint {
        transform: translate(-8px, 4px);
    }
}

.srs-lead strong {
    font-weight: 700;
    color: #ffffff;
}

/* Hover soft (souris / trackpad) — pas de sticky touch */
@media (hover: hover) and (pointer: fine) {
    .srs-badge-stage:hover .srs-badge.is-active {
        transform: translate3d(0, -5px, 0) scale(1.03);
        filter: drop-shadow(2px 5px 0 #28202e) brightness(1.05);
    }
}

.srs-badge-stage:active .srs-badge.is-active {
    transform: translate3d(0, 0, 0) scale(0.96);
}

.srs-badge {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: translate3d(0, 36px, 0) scale(0.9);
    pointer-events: none;
    filter: drop-shadow(2px 3px 0 #28202e);
    will-change: opacity, transform;
    transition:
        opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.48s cubic-bezier(0.34, 1.35, 0.64, 1);
}

.srs-badge.is-active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    z-index: 2;
}

.srs-badge.is-exit {
    opacity: 0;
    transform: translate3d(0, -40px, 0) scale(0.92);
    z-index: 1;
}

@media (max-width: 900px) {
    .srs-section {
        padding: 200px 24px;
    }

    .srs-badge-stage {
        width: min(220px, 56vw);
        height: min(220px, 56vw);
    }

    /* Évite le margin 320px qui pousse la flèche hors écran */
    .srs-badge-cluster {
        margin: 12px 48px 72px;
    }

    .srs-click-cue {
        right: -84px;
        bottom: -28px;
        width: 64px;
    }

    .srs-hint {
        left: calc(100% + 20px);
        width: 8.5em;
        max-width: 8.5em;
        font-size: 13px;
    }
}

/* ---------- CTA final (crème) ---------- */

.download-section {
    width: 100%;
    max-width: none;
    margin: 0;
    /* −50px top + bottom vs 300 */
    padding: 250px 24px;
    background: #F9F1DB;
    color: #28202E;
    box-sizing: border-box;
    text-align: center;
}

.download-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.download-title {
    margin: 0;
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
    color: #28202E;
}

.download-lead {
    margin: 0;
    max-width: 28em;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 400;
    line-height: 1.35;
    text-wrap: pretty;
    color: rgba(40, 32, 46, 0.78);
}

.download-store-badges {
    --dl-badge-h: 56px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
}

/* Côte à côte → même hauteur (ratios différents Google / Apple) */
.download-store-badges .store-badge img[data-store-badge='google'],
.download-store-badges .store-badge img[data-store-badge='apple'] {
    width: auto;
    height: var(--dl-badge-h);
    max-width: none;
}

/* Testimonials store-style sous les badges */
.download-testimonials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin: 36px 0 0;
    width: 100%;
    max-width: 34em;
}

.download-testimonial {
    margin: 0;
    width: 100%;
    max-width: 34em;
    padding: 0;
    text-align: center;
}

.download-testimonial-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.download-testimonial-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    /* Titres courts : balance (Chrome/Safari récents ; FF ignore) */
    text-wrap: balance;
    color: #28202e;
}

.download-testimonial-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0;
    line-height: 1;
    color: var(--primary, #6F4096);
}

.download-testimonial-star {
    display: block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: url('assets/icons/star.svg') center / contain no-repeat;
    mask: url('assets/icons/star.svg') center / contain no-repeat;
}

.download-testimonial-body {
    display: block;
    margin: 0 auto;
    padding: 0;
    border: none;
    max-width: 34em;
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.45;
    /*
     * pretty = moins de veuves (Chrome 117+).
     * Safari 17.5+ : support partiel ; Firefox : propriété ignorée → wrap normal.
     * Ce n’est pas un sélecteur cassé : le corps a bien cette règle.
     */
    text-wrap: pretty;
    color: rgba(40, 32, 46, 0.72);
}

@media (prefers-reduced-motion: reduce) {
    .srs-lead,
    .srs-badge {
        transition: none;
    }

    .srs-badge {
        transform: none;
    }

    .srs-badge.is-active {
        opacity: 1;
        transform: none;
    }

    @media (hover: hover) and (pointer: fine) {
        .srs-badge-stage:hover .srs-badge.is-active {
            transform: none;
            filter: drop-shadow(2px 3px 0 #28202e) brightness(1.04);
        }
    }

    .srs-badge.is-exit,
    .srs-badge:not(.is-active) {
        opacity: 0;
        transform: none;
    }
}

/* ---------- Footer ---------- */

.landing-footer {
    background: var(--background);
    border-top: 1px solid rgba(180, 172, 185, 0.45);
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
}

.footer-store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* ---------- Below 1440: fluid but keep ratios ---------- */

@media (max-width: 1439px) {
    /*
     * Ne pas forcer 100dvh sur .hero-figma ici :
     * ≥1400 utilise --hero-violet-h (< fold) pour voir tout le phone.
     * Mid 901–1399 : height auto plus bas.
     */
    .hero-stage {
        height: 100%;
        min-height: 0;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .site-topbar {
        --topbar-h: auto;
        --mark-size: 44px;
        --brand-fs: clamp(36px, 8vw, 56px);
        --badge-google-w: min(150px, 38vw);
        --badge-apple-w: min(140px, 35vw);
        /* Overlay le hero pour garder le wordmark blanc lisible */
        margin-bottom: -72px;
        height: auto;
        min-height: 64px;
        pointer-events: auto;
    }

    .site-topbar.is-scrolled {
        --mark-size: 34px;
        --brand-fs: clamp(28px, 6vw, 40px);
        --badge-google-w: min(120px, 32vw);
        --badge-apple-w: min(112px, 30vw);
    }

    .site-topbar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        /* Même inset que .hero-stage — violet reste full-bleed sur .hero-figma */
        padding: 12px 20px;
        pointer-events: auto;
    }

    .hero-brand {
        position: static;
        left: auto;
        top: auto;
    }

    .hero-brand-text {
        letter-spacing: -0.03em;
    }

    .hero-store-badges {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        margin-left: auto;
        gap: 10px;
    }

    .passion-title {
        font-size: clamp(36px, 8vw, 64px);
    }

    .item-tile {
        --tile-pad-t: 6px;
        --tile-pad-x: 6px;
        --tile-pad-b: 20px;
        --tile-pic-h: 186px;
        box-shadow: 1px 1.5px 0 0 #000000;
    }
}

/*
 * Mid 901–1399 : fold = hauteur contenu (pas 100dvh).
 * ≥1400 : --hero-violet-h (< fold) pour phone entier dans le viewport.
 * pad-bottom 0 + margin négatif cluster = overhang phone (comme bottom abs.).
 */
@media (min-width: 901px) and (max-width: 1399px) {
    .hero-figma {
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    .hero-stage {
        position: relative;
        height: auto;
        min-height: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 20px;
        box-sizing: border-box;
        overflow: visible;
    }

    .hero-body {
        position: relative;
        inset: auto;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 0;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: var(--hero-mid-pad-top, 180px) 16px 0;
        box-sizing: border-box;
        overflow: visible;
    }

    .hero-cluster {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: var(--hero-cluster-gap, 40px);
        width: max-content;
        max-width: 100%;
        margin-bottom: var(--hero-phone-bottom, -100px);
    }

    .hero-phone-wrap {
        align-self: auto;
        margin-bottom: 0;
    }

    .hero-text-col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        align-self: stretch;
        width: max-content;
        max-width: max-content;
        padding-bottom: var(--hero-panda-reserve, calc(var(--hero-panda-w) * 0.55));
        box-sizing: border-box;
    }

    .hero-text-col::before,
    .hero-text-col::after {
        content: '';
        flex: 1 1 0;
        min-height: 0;
        width: 0;
        pointer-events: none;
    }

    .hero-text-col::before {
        flex-grow: calc(1 - var(--hero-copy-lift-factor, 0));
    }

    .hero-text-col::after {
        flex-grow: calc(1 + var(--hero-copy-lift-factor, 0));
    }

    .hero-copy {
        align-self: flex-start;
        width: max-content;
        max-width: min(18em, 46vw);
        padding-top: 0;
        font-size: var(--hero-copy-fs, clamp(40px, 4.2vw, 54px));
    }

    .hero-headline {
        font-size: 1em;
    }

    .hero-noads {
        font-size: 0.3em;
    }

    .hero-courses-available {
        font-size: 0.38em;
    }

    .hero-panda {
        position: absolute;
        top: auto;
        left: 0;
        right: auto;
        margin-left: 0;
        bottom: calc(
            -1 * var(--hero-phone-bottom)
            + var(--hero-panda-bottom, -6px)
            + var(--hero-panda-lift, 0px)
        );
        width: var(--hero-panda-w);
        transform: translateX(calc(-58 / 767 * 100%));
        z-index: 5;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    :root {
        --hero-mid-pad-top: 160px;
        --hero-mid-pad-bottom: 0px;
        --hero-phone-w: clamp(220px, 24vw, 280px);
        --hero-phone-bottom: -90px;
        --hero-cluster-gap: 32px;
        --hero-panda-bottom: -6px;
        --hero-panda-lift: clamp(0px, calc((1480px - 100vw) * 4 / 564), 4px);
        --hero-copy-fs: clamp(38px, 4.8vw, 48px);
        --hero-copy-lift-factor: clamp(0, calc((1200px - 100vw) / 450px), 0.4);
        --hero-panda-reserve: calc(var(--hero-phone-w) * 0.48 * 510 / 767 * 0.82);
    }

    .hero-body {
        align-items: center;
        padding-top: var(--hero-mid-pad-top);
        padding-bottom: 0;
        justify-content: center;
    }

    .hero-cluster {
        margin-bottom: var(--hero-phone-bottom);
    }

    .hero-phone-wrap {
        width: var(--hero-phone-w);
        flex: 0 0 var(--hero-phone-w);
        margin-bottom: 0;
    }

    .hero-copy {
        max-width: min(16em, 48vw);
        font-size: var(--hero-copy-fs);
    }
}

/*
 * ≤900 : stack mobile (titre → phone), fold hauteur contenu.
 */
@media (max-width: 900px) {
    .hero-figma {
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    .hero-stage {
        height: auto;
        min-height: 0;
        padding: 0 16px;
        overflow: visible;
    }

    .hero-body {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        height: auto;
        min-height: 0;
        padding-top: 72px;
        padding-bottom: 0;
        box-sizing: border-box;
        overflow: visible;
    }

    .hero-copy {
        order: -1;
        position: relative;
        z-index: 4;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 22em;
        left: auto;
        top: auto;
        padding: 0 12px;
        gap: 16px;
        flex-shrink: 0;
    }

    .hero-headline-block {
        align-items: center;
        text-align: center;
    }

    .hero-courses-available {
        text-align: center;
    }

    .hero-noads {
        position: static;
        transform: rotate(0deg);
        font-size: 11px;
        padding: 5px 7px 6px 6px;
        gap: 4px;
    }

    .hero-noads:hover,
    .hero-noads:focus-visible {
        transform: rotate(0deg);
    }

    .hero-headline {
        font-size: clamp(34px, 9.8vw, 48px);
        text-align: center;
        line-height: 1.08;
    }

    .hero-phone-wrap {
        order: 0;
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        width: min(280px, 74vw);
        margin: 8px auto -110px;
        z-index: 3;
        flex-shrink: 0;
    }

    .hero-panda {
        display: none !important;
    }

    .hero-store-badges {
        margin-left: auto;
    }

    /* +100px au-dessus de « Qu’est-ce qui te passionne » (stack) */
    .passion-section {
        padding: 300px 24px 64px;
    }
}

/* ---------- Mobile ≤768 ---------- */

@media (max-width: 768px) {
    :root {
        --landing-topbar-h: 56px;
    }

    .site-topbar {
        --topbar-h: var(--landing-topbar-h);
        --mark-size: 36px;
        --badge-h: 36px;
        height: var(--topbar-h);
        min-height: var(--topbar-h);
        margin-bottom: calc(-1 * var(--topbar-h));
    }

    .site-topbar.is-scrolled {
        --topbar-h: 52px;
        --landing-topbar-h: 52px;
        --mark-size: 32px;
        --badge-h: 32px;
    }

    .site-topbar-inner {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 14px;
        overflow: hidden;
        height: 100%;
        box-sizing: border-box;
    }

    .hero-brand {
        flex: 0 1 auto;
        min-width: 0;
        gap: 6px;
    }

    /* Wordmark visible jusqu’à une largeur vraiment étroite (≤420) */
    .hero-brand-text {
        display: block;
        font-size: clamp(18px, 5.2vw, 28px);
        letter-spacing: -0.04em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-store-badges {
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 8px;
        overflow: hidden;
        margin-left: 8px;
    }

    .hero-store-badges .store-badge {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 48%;
    }

    /* Côte à côte → même hauteur */
    .hero-store-badges .store-badge img[data-store-badge='google'],
    .hero-store-badges .store-badge img[data-store-badge='apple'] {
        width: auto;
        max-width: 100%;
        height: var(--badge-h);
    }

    /*
     * Hero mobile : hauteur contenu (pas 100dvh).
     * Violet = titre + téléphone ; téléphone déborde sur la crème.
     */
    .hero-figma {
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    .hero-stage {
        height: auto;
        min-height: 0;
        padding: 0 16px;
        overflow: visible;
    }

    .hero-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        height: auto;
        min-height: 0;
        /* ≥ hauteur header sticky overlay */
        padding-top: calc(var(--landing-topbar-h) + 20px);
        padding-bottom: 0;
        box-sizing: border-box;
        overflow: visible;
    }

    .hero-copy {
        /* DOM : phone avant copy — order pour titre puis téléphone */
        order: -1;
        position: relative;
        z-index: 4;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 22em;
        left: auto;
        top: auto;
        padding: 0 12px;
        /* Post-it dans le flux, au-dessus du titre — zéro overlap */
        gap: 16px;
        flex-shrink: 0;
    }

    .hero-headline-block {
        align-items: center;
        text-align: center;
    }

    .hero-courses-available {
        text-align: center;
    }

    /* Post-it petit, dans le flux — droit sur mobile (tilt desktop inchangé) */
    .hero-noads {
        position: static;
        top: auto;
        right: auto;
        z-index: auto;
        font-size: 11px;
        font-weight: 600;
        padding: 5px 7px 6px 6px;
        gap: 4px;
        transform: rotate(0deg);
        white-space: nowrap;
        flex-shrink: 0;
    }

    .hero-noads:hover,
    .hero-noads:focus-visible {
        transform: rotate(0deg);
    }

    .hero-noads-icon {
        width: 13px;
        height: 13px;
    }

    .hero-headline {
        font-size: clamp(34px, 9.8vw, 48px);
        text-align: center;
        margin: 0;
        line-height: 1.08;
    }

    /* Moins d’air sous le marquee d’images (−100px vs 150) */
    .passion-mosaic-block {
        padding-bottom: 50px;
    }

    /* Téléphone juste sous le titre, à cheval violet → crème */
    .hero-phone-wrap {
        order: 0;
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        transform: none;
        width: min(280px, 74vw);
        margin: 8px auto -110px;
        z-index: 3;
        flex-shrink: 0;
    }

    .hero-phone {
        width: 100%;
        max-width: none;
    }

    .hero-panda {
        display: none !important;
    }

    /* Base stack 300px ; mobile un peu moins d’air mais +100 vs ancien 140 */
    .passion-section {
        padding: 240px 20px 64px;
    }

    .hero-phone-wrap {
        width: min(280px, 74vw);
    }

    /* SRS : flèche + hint sous la note, avec air note→flèche et flèche→texte */
    .srs-badge-cluster {
        margin: 8px auto 170px;
        width: 100%;
        max-width: 240px;
    }

    .srs-click-cue {
        left: 50%;
        right: auto;
        top: calc(100% + 40px);
        bottom: auto;
        transform: translateX(-50%);
        width: 68px;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Hint plus large que la flèche — ne pas clipper */
        overflow: visible;
        /* Air flèche → texte (au-delà du AABB de la rotation) */
        gap: 22px;
    }

    .srs-click-arrow {
        /* Pointe vers le haut (vers la note) */
        transform: rotate(200deg);
        margin: 0;
    }

    .srs-hint {
        position: static;
        left: auto;
        bottom: auto;
        /* Assez large pour 1–2 lignes (ex. « Clic pour voir la suite ») */
        width: max-content;
        max-width: min(17em, 82vw);
        margin: 0;
        text-align: center;
        font-size: 12px;
        line-height: 1.3;
        text-wrap: balance;
        /* Décalage optique flèche — réduit pour ne pas manger la largeur utile */
        transform: translateX(12px);
    }

    .download-section {
        padding: 120px 20px;
    }

    .download-store-badges {
        --dl-badge-h: 48px;
        gap: 14px;
    }

    .landing-footer {
        padding-left: 28px;
        padding-right: 28px;
    }

    /* Sélecteur langue : trigger large + bottom sheet (select natif masqué) */
    .landing-footer .footer-language {
        width: 100%;
        max-width: min(100%, 360px);
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .landing-footer .footer-language-label {
        font-size: 14px;
    }

    .landing-footer .footer-language-select {
        /* Remplacé par .lang-picker-open sur mobile */
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .lang-picker-open {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        font-size: 16px;
        font-family: inherit;
        font-weight: 500;
        line-height: 1.2;
        text-align: left;
        color: var(--on-background, #28202e);
        background: #fff;
        border: 1px solid rgba(180, 172, 185, 0.65);
        border-radius: 12px;
        cursor: pointer;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    .lang-picker-open::after {
        content: '';
        width: 0.55em;
        height: 0.55em;
        margin-left: 12px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        opacity: 0.55;
        flex-shrink: 0;
    }
}

/* Desktop : select natif uniquement */
@media (min-width: 769px) {
    .lang-picker-open {
        display: none !important;
    }
}

.lang-picker[hidden] {
    display: none !important;
}

.lang-picker:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
}

body.lang-picker-open-body {
    overflow: hidden;
}

.lang-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 12, 28, 0.45);
}

.lang-picker-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(78dvh, 640px);
    display: flex;
    flex-direction: column;
    padding: 10px 0 env(safe-area-inset-bottom, 12px);
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(20, 12, 28, 0.18);
    box-sizing: border-box;
}

.lang-picker-handle {
    width: 40px;
    height: 4px;
    margin: 4px auto 12px;
    border-radius: 999px;
    background: rgba(40, 32, 46, 0.2);
}

.lang-picker-title {
    margin: 0 20px 12px;
    font-size: 18px;
    font-weight: 700;
    color: #28202e;
}

.lang-picker-list {
    list-style: none;
    margin: 0;
    padding: 0 12px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lang-picker-option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    margin: 0;
    font-size: 17px;
    font-family: inherit;
    font-weight: 500;
    text-align: left;
    color: #28202e;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.lang-picker-list > li + li {
    margin-top: 2px;
}

.lang-picker-option.is-selected {
    background: rgba(111, 64, 150, 0.12);
    color: var(--primary, #6f4096);
    font-weight: 600;
}

.lang-picker-option:focus-visible {
    outline: 3px solid var(--primary, #6f4096);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    :root {
        --landing-topbar-h: 52px;
    }

    .site-topbar {
        --topbar-h: var(--landing-topbar-h);
        --mark-size: 32px;
        --badge-h: 32px;
    }

    .site-topbar-inner {
        padding: 6px 12px;
        gap: 6px;
    }

    .hero-brand-text {
        font-size: clamp(16px, 4.8vw, 22px);
    }

    .hero-store-badges {
        gap: 6px;
    }

    .hero-body {
        padding-top: calc(var(--landing-topbar-h) + 16px);
    }

    .hero-copy {
        padding: 0 10px;
        gap: 10px;
    }

    .hero-noads {
        font-size: 10px;
        padding: 4px 6px 5px 5px;
    }

    .hero-noads-icon {
        width: 12px;
        height: 12px;
    }

    .hero-phone-wrap {
        width: min(260px, 76vw);
        margin-bottom: -88px;
    }

    .hero-headline {
        font-size: clamp(32px, 9.2vw, 42px);
    }

    .srs-section {
        padding: 120px 16px 160px;
    }

    .srs-badge-cluster {
        margin-bottom: 140px;
    }

    .srs-click-cue {
        top: calc(100% + 36px);
        gap: 20px;
    }

    /* Empilés → même largeur */
    .download-store-badges {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        width: min(220px, 78vw);
        gap: 12px;
    }

    .download-store-badges .store-badge {
        width: 100%;
        display: block;
    }

    .download-store-badges .store-badge img[data-store-badge='google'],
    .download-store-badges .store-badge img[data-store-badge='apple'] {
        width: 100%;
        height: auto;
    }

    .landing-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .category-chip {
        min-height: 48px;
        font-size: 16px;
    }

    .item-tile {
        --tile-pad-t: 5px;
        --tile-pad-x: 5px;
        --tile-pad-b: 16px;
        --tile-pic-h: 152px;
    }

    .item-marquee-row--ltr .item-marquee-track {
        animation-duration: 100s;
    }

    .item-marquee-row--rtl .item-marquee-track {
        animation-duration: 110s;
    }
}

/* Dernier recours : wordmark masqué seulement si vraiment trop étroit */
@media (max-width: 360px) {
    .hero-brand-text {
        display: none;
    }

    .hero-brand {
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-topbar,
    .site-topbar-inner,
    .hero-brand,
    .hero-brand-mark,
    .hero-brand-text,
    .hero-store-badges,
    .hero-store-badges .store-badge img {
        transition: none !important;
    }
}
