/* ═══════════════════════════════════════════
   ACCUEIL ÉPURÉ — Stand-Up Academy (revue du 17/11/2026)
   ───────────────────────────────────────────
   Tout ce qui suit la section du parrain sur l'accueil : fond sombre
   continu, bulles orange qui flottent lentement (même esprit que la
   page des QR codes), cartes en verre, plus de photos plein écran.
   Préfixe .he- (home épurée). Chargé uniquement par index.html,
   après home-figma.css.
   ═══════════════════════════════════════════ */

/* ─── Recette « verre » relevée dans la maquette Figma (Accueil.svg, 17/11) ───
   fond dégradé #AA4E00 → #552300 à 20 %, flou d'arrière-plan 23 (Figma) = blur(11.5px),
   bordure orange à 30 %, ombre 5/9, flou 19, étendue 3, noir 16 %. */
:root {
    --he-glass-bg: linear-gradient(157deg, rgba(74, 31, 4, 0.72) 0%, rgba(38, 15, 2, 0.8) 100%);   /* plus opaque (revue du 17/11) : texte lisible même quand une bulle passe derrière ; la maquette était à 20 % */
    --he-glass-border: rgba(240, 122, 26, 0.3);
    --he-glass-blur: blur(11.5px);
    --he-glass-shadow: 5px 9px 19px 3px rgba(0, 0, 0, 0.16);
}

/* ─── Lenis (défilement doux) : styles recommandés par la librairie ─── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ═══ Écran de chargement (façon LAMELO) + intro du hero (façon The Joke), revue du 17/11 ═══
   - Chargement : le logo seul au centre sur un fond clair uni. À la sortie, le logo
     s'efface puis l'écran, découpé en 6 bandes verticales, part vers le haut bande
     après bande, de gauche à droite (effet d'escalier) et dévoile le site.
   - Puis les arcs du hero montent depuis le bas, du plus grand au plus petit, puis
     l'homme au micro, puis la carte Kevin et Qualiopi glissent depuis la droite.
   - Positions de départ posées ici (classe hm-intro mise dans le <head>) pour éviter
     un flash ; l'animation elle-même est dans home-gsap.js.
   - Filet de sécurité : le chargement disparaît tout seul après 5 s. */
.hm-loader {
    /* Fond marron foncé en dégradé (de haut en bas : identique sur les 6 bandes, donc continu) */
    --hm-loader-bg: linear-gradient(180deg, #3d1a06 0%, #2a1003 45%, #140700 100%);
    position: fixed;
    inset: 0;
    z-index: 2147483000;                  /* au-dessus de tout (bannière cookies, chatbot…) */
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;              /* ce sont les bandes qui font le fond */
    animation: hmLoaderFailsafe 0.5s ease 5s forwards;
}
.hm-intro:not(.hm-loader-skip) .hm-loader { display: flex; }
.hm-loader-cols { position: absolute; inset: 0; }
.hm-loader-cols span {
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(100% / 6 + 1px);          /* +1 px : pas de fente entre deux bandes */
    background: var(--hm-loader-bg);
    /* liseré orange en bas de chaque bande : l'escalier reste lisible sur le site sombre */
    box-shadow: inset 0 -2px 0 rgba(240, 122, 26, 0.9);
}
/* Lueur orange SOUS la bande uniquement (une ombre normale débordait sur les côtés
   et dessinait des rayures verticales sur l'écran du logo) */
.hm-loader-cols span::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 26px;
    background: linear-gradient(180deg, rgba(240, 122, 26, 0.35), rgba(240, 122, 26, 0));
    pointer-events: none;
}
.hm-loader-cols span:nth-child(1) { left: 0; }
.hm-loader-cols span:nth-child(2) { left: calc(100% / 6 * 1); }
.hm-loader-cols span:nth-child(3) { left: calc(100% / 6 * 2); }
.hm-loader-cols span:nth-child(4) { left: calc(100% / 6 * 3); }
.hm-loader-cols span:nth-child(5) { left: calc(100% / 6 * 4); }
.hm-loader-cols span:nth-child(6) { left: calc(100% / 6 * 5); }
.hm-loader-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
/* Halo orange derrière le logo (s'efface avec lui) */
.hm-loader-inner::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 70vmax;
    height: 70vmax;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(240, 122, 26, 0.22), rgba(240, 122, 26, 0.06) 55%, rgba(240, 122, 26, 0) 100%);
    pointer-events: none;
    z-index: -1;
}
.hm-loader-logo {
    width: clamp(150px, 13vw, 220px);
    height: auto;
    opacity: 0;
    transform: scale(0.92);
    animation: hmLogoIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s forwards;
}
@keyframes hmLogoIn { to { opacity: 1; transform: none; } }
@keyframes hmLoaderFailsafe { to { opacity: 0; visibility: hidden; } }

/* Les arcs et l'homme au micro montent grâce à « translate » (séparé du « transform »
   déjà utilisé par la parallaxe du hero, donc les deux ne se gênent pas) */
.hero .hero-orb,
.hero .hero-image { translate: 0 var(--hm-rise, 0px); }
.hm-intro .hero .hero-orb { --hm-rise: 75vh; }
.hm-intro .hero .hero-image { --hm-rise: 45vh; }
.hm-intro .hero .hero-text > *,
.hm-intro .hero .hm-kevin,
.hm-intro .hero .hero-qualiopi { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
    .hm-loader { display: none !important; }
}

/* ═══ HERO nettoyé comme la maquette (Accueil.svg, revue du 17/11) ═══
   En 1920 : texte calé à 173 px du bord gauche, carte Kevin à 150 px du bord droit,
   pastille « Formation stand-up à Paris · By The Joke », ACADEMY en orange,
   sous-titre blanc d'un seul tenant, carte Kevin en verre (photo ronde + nom + citation). */
/* Fond du hero : marron foncé (l'ancien fond « nuit » était bleuté avec un halo violet) */
.hero {
    background:
        radial-gradient(120% 75% at 50% 100%, #3d1a06 0%, #241002 45%, #140700 100%);
}
.hero .hero-bg-gradient {
    background:
        radial-gradient(ellipse 55% 40% at 82% 18%, rgba(240, 122, 26, 0.08) 0%, rgba(240, 122, 26, 0) 70%),
        radial-gradient(ellipse 50% 35% at 15% 45%, rgba(212, 168, 83, 0.05) 0%, rgba(212, 168, 83, 0) 70%);
}
.hero .hero-content {
    max-width: none;
    width: 100%;
    padding: clamp(150px, 20vh, 230px) clamp(24px, 8.5vw, 175px) 110px clamp(24px, 9vw, 175px);
    grid-template-columns: minmax(0, 580px) minmax(0, 1fr) minmax(0, 446px);
    grid-template-rows: auto 1fr;
    gap: 32px 40px;
}
.hero .hero-text {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    max-width: 580px;
}
.hero .hm-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 436px);
    height: 48px;
    margin: 0 0 30px;
    padding: 0 16px;
    border-radius: 22px;
    border: 1px solid var(--orange, #f07a1a);
    background: var(--he-glass-bg);
    backdrop-filter: var(--he-glass-blur);
    -webkit-backdrop-filter: var(--he-glass-blur);
    font: 400 20px/1 'Bebas Neue', sans-serif;
    letter-spacing: 0.01em;
    color: #fff;
}
.hero .hm-badge-icon { flex: 0 0 auto; width: 26px; height: 26px; color: var(--orange, #f07a1a); }
.hero .hero-title {
    font-size: clamp(64px, 7.6vw, 146px);
    line-height: 0.86;
    margin: 0 0 40px;
}
/* Couleurs pleines comme la maquette : STAND-UP blanc, ACADEMY orange vif
   (un dégradé + l'ombre du titre donnait un orange brun) */
.hero .hero-title .line-1,
.hero .hero-title .line-2 {
    background: none;
    -webkit-text-fill-color: currentColor;
    filter: none;
    text-shadow: 0 6px 34px rgba(0, 0, 0, 0.38);
}
.hero .hero-title .line-1 { color: #fff; }
.hero .hero-title .line-2 { color: #f07a1a; }
.hero .hero-subtitle {
    max-width: 520px;
    font-size: clamp(1.5rem, 1.9vw, 34px);
    line-height: 1.1;
    margin: 0 0 22px;
}
.hero .hero-desc {
    max-width: 545px;
    font-size: 16px;
    line-height: 1.45;
    margin: 0 0 34px;
}
/* Carte Kevin : une seule carte en verre */
.hero .hm-kevin {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    margin-top: clamp(60px, 11vh, 140px);
    width: 100%;
    max-width: 446px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 26px 22px 22px;
    border-radius: 22px;
    border: 1px solid var(--he-glass-border);
    background: var(--he-glass-bg), rgba(26, 10, 0, 0.25);
    backdrop-filter: var(--he-glass-blur);
    -webkit-backdrop-filter: var(--he-glass-blur);
    box-shadow: var(--he-glass-shadow);
}
.hero .hm-kevin-photo {
    flex: 0 0 auto;
    width: 98px;
    height: 98px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #f1951b, #f14000);
    box-shadow: 0 6px 20px rgba(240, 122, 26, 0.35);
}
.hero .hm-kevin-photo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}
.hero .hm-kevin-text { display: flex; flex-direction: column; min-width: 0; }
.hero .hm-kevin-name {
    font: 400 20px/1.05 'Bebas Neue', sans-serif;
    color: #fff;
    letter-spacing: 0.01em;
}
.hero .hm-kevin-role {
    font: 400 18px/1.1 'Bebas Neue', sans-serif;
    color: var(--orange, #f07a1a);
    margin-bottom: 8px;
}
.hero .hm-kevin-quote {
    margin: 0;
    font: 400 15px/1.25 'Bebas Neue', sans-serif;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--cream, #f0ece4);
}
/* Qualiopi (exigé par la revue du 13/11, absent de la maquette) : discret, sous la carte Kevin */
.hero .hero-qualiopi { grid-column: 3; grid-row: 2; align-self: end; justify-self: end; }
.hero .hero-qualiopi img { width: clamp(170px, 12vw, 210px); }

/* ─── Hero mobile / tablette, sur le modèle du site The Joke (revue du 17/11) ───
   Texte centré en haut (pastille, titre, phrase, boutons), puis une « scène » en bas :
   les arcs orange qui montent, l'homme au micro bien visible, et la carte Kevin en verre
   posée par-dessus, décalée à droite (comme la carte d'avis Le Figaro chez The Joke). */
@media (max-width: 980px) {
    .hero {
        height: auto;
        min-height: 0;
        max-height: none;
        padding-bottom: 0;
    }
    .hero .hero-content {
        position: static;                 /* la carte Kevin et Qualiopi se placent par rapport au hero */
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: none;
        padding: 108px 20px clamp(300px, 80vw, 460px);   /* le bas est réservé à la scène (remontée) */
    }
    .hero .hero-text {
        position: relative;
        z-index: 3;
        align-self: center;               /* sinon le réglage ordinateur (start) le colle à gauche sur tablette */
        max-width: 560px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero .hm-badge {
        width: auto;
        height: 40px;
        margin: 0 0 22px;
        padding: 0 16px;
        font-size: 15px;
    }
    .hero .hm-badge-icon { width: 22px; height: 22px; }
    .hero .hero-title {
        font-size: clamp(58px, 17vw, 110px);
        line-height: 0.9;
        margin: 0 0 18px;
    }
    .hero .hero-subtitle {
        max-width: 360px;
        font-size: clamp(19px, 5.2vw, 26px);
        margin: 0 0 24px;
    }
    .hero .hero-desc {
        max-width: min(380px, calc(100vw - 96px));   /* ne passe pas sous l'onglet « Admissions ouvertes » */
        margin: 0 0 22px;
        font-size: 15px;
        line-height: 1.45;
        text-align: center;
    }
    .hero .hero-actions { justify-content: center; gap: 10px; flex-wrap: nowrap; }
    .hero .hero-actions .btn { padding: 14px 20px; font-size: 14px; white-space: nowrap; }

    /* La scène : homme au micro visible en entier, arcs plus grands */
    .hero .hero-image {
        height: clamp(360px, 94vw, 540px);    /* la tête arrive juste sous les boutons */
        max-height: none;
        opacity: 1;
    }
    .hero .hero-orb-29 { width: 250%; top: 100%; }
    .hero .hero-orb-27 { width: 175%; top: 103%; }
    .hero .hero-orb-26 { width: 128%; top: 102%; }
    .hero .hero-orb-28 { width: 72%;  top: 100.5%; }
    .hero .hero-scroll { display: none; }

    /* Carte Kevin posée sur la scène, décalée à droite */
    .hero .hm-kevin {
        position: absolute;
        z-index: 4;
        right: 14px;
        bottom: clamp(96px, 25vw, 150px);
        width: min(330px, 80vw);
        max-width: none;
        margin: 0;
        padding: 12px 14px;
        gap: 12px;
        border-radius: 18px;
    }
    .hero .hm-kevin-photo { width: 56px; height: 56px; padding: 2px; }
    .hero .hm-kevin-name { font-size: 17px; }
    .hero .hm-kevin-role { font-size: 15px; margin-bottom: 4px; }
    .hero .hm-kevin-quote {
        font-size: 12px;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    /* Qualiopi : petit, en bas à gauche de la scène */
    .hero .hero-qualiopi {
        position: absolute;
        z-index: 4;
        left: 14px;
        bottom: 16px;
        padding: 5px 8px;
        border-radius: 8px;
    }
    .hero .hero-qualiopi img { width: 118px; }
}
@media (min-width: 600px) and (max-width: 980px) {
    .hero .hm-kevin { right: 6vw; }
    .hero .hero-qualiopi { left: 6vw; }
}
/* Téléphone : arcs plus hauts, la scène occupe le bas de l'écran comme chez The Joke */
@media (max-width: 599px) {
    .hero .hero-orb-29 { width: 270%; top: 88%; }
    .hero .hero-orb-27 { width: 205%; top: 86%; }
    .hero .hero-orb-26 { width: 150%; top: 87%; }
    .hero .hero-orb-28 { width: 88%;  top: 90%; }
}
@media (max-width: 380px) {
    .hero .hero-actions { gap: 8px; }
    .hero .hero-actions .btn { padding: 12px 15px; font-size: 13px; }
}

/* ─── Zone et fond ─── */
.he-zone {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    /* Plus clair, comme les maquettes (marron « fond section ») */
    background: linear-gradient(180deg, #2b1200 0%, #351705 22%, #2a1102 48%, #361806 74%, #2b1200 100%);
}
/* z-index -1 : les bulles passent sous TOUT le contenu de la zone (les sections
   ne créent plus de plan à part), y compris quand une bulle déborde sur la
   section voisine. C'est ce qui rend le flou des cartes visible. */
.he-orbs {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.he-orb {
    position: absolute;
    aspect-ratio: 1;
    width: var(--s);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    animation: he-float var(--d, 16s) ease-in-out infinite alternate;
    will-change: transform;
}
.he-glow { opacity: .95; }
.he-sphere { filter: saturate(1.15) brightness(1.12); }
.he-glow-a   { --s: clamp(800px, 115vw, 1700px); background-image: url('assets/figma/sec-ellipse-30.svg'); right: -42%; top: -5%;  --d: 22s; }
.he-glow-b   { --s: clamp(800px, 120vw, 1800px); background-image: url('assets/figma/sec-ellipse-32.svg'); left: -50%;  top: 46%;  --d: 26s; }

/* Sphères nettes, une par section, calées sur le conteneur (50 % = centre) pour
   que leur bord passe TOUJOURS derrière une carte, comme dans la maquette.
   Dans le fichier de la sphère, le cercle occupe 90,4 % de la boîte :
   bord gauche du cercle = left + 4,8 % de --s, bord droit = left + 95,2 %. */
/* Les bulles d'une section s'arrêtent net au trait de séparation (revue du 17/11).
   La parallaxe déplace chaque bulle (--par via « translate »), le cadre reste fixe. */
.he-orb { translate: 0 var(--par, 0px); }
.he-sec-orbs { clip-path: inset(0); }
/* « Prochainement » = Modules D + Atelier, une seule partie : pas de trait entre les deux,
   et les bulles peuvent passer de l'une à l'autre (coupées seulement en haut et en bas du groupe) */
#modules .he-sec-orbs { clip-path: inset(0 0 -400% 0); }
#atelier .he-sec-orbs { clip-path: inset(-400% 0 0 0); }
.he-zone #atelier.he-section { border-top: 0; }
.he-ps-c       { --s: clamp(560px, 62vw, 1200px); background-image: url('assets/figma/sec-ellipse-31-droite.svg'); left: calc(50% + 400px - var(--s) * .048); top: -6%;  --d: 15s; }
/* Alternance droite / gauche comme la maquette */
.he-ps-tabs    { --s: clamp(520px, 50vw, 960px);  background-image: url('assets/figma/sec-ellipse-33.svg'); left: calc(50% - 280px - var(--s) * .952); top: auto; bottom: calc(150px - var(--s) / 2); --d: 18s; animation-direction: alternate-reverse; }
.he-ps-modules { --s: clamp(520px, 52vw, 1000px); background-image: url('assets/figma/sec-ellipse-31-droite.svg'); left: calc(50% + 330px - var(--s) * .048); top: -18%; --d: 17s; }
.he-ps-atelier { --s: clamp(520px, 52vw, 1000px); background-image: url('assets/figma/sec-ellipse-33.svg'); left: calc(50% - 420px - var(--s) * .952); top: 30%; --d: 16s; animation-direction: alternate-reverse; }
.he-ps-finale  { --s: clamp(520px, 56vw, 1050px); background-image: url('assets/figma/sec-ellipse-31-droite.svg'); left: calc(50% + 330px - var(--s) * .048); top: 6%;  --d: 14s; }

/* Le script d'apparition met « will-change: opacity » sur les blocs : le
   navigateur les isole alors, et le flou des cartes qu'ils contiennent ne voit
   plus les sphères derrière (bord net au lieu de flou). On le retire une fois
   le bloc apparu. */
.he-zone [data-reveal].is-revealed,
.he-ecole [data-reveal].is-revealed { will-change: auto; }

@keyframes he-float {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(0, -26px, 0); }
}

/* Les sections de la zone sont transparentes : le fond continu passe dessous */
.he-zone .he-section {
    position: relative;
    z-index: auto;
    background: transparent !important;
    padding: clamp(80px, 9vw, 130px) 0;
    border-top: 1px solid rgba(240, 122, 26, 0.12);
}
.he-zone .he-section::before,
.he-zone .he-section::after { display: none !important; }

/* ─── Dégradé propre à chaque section, relevé dans la maquette (Accueil.svg) ───
   Toujours #2B1200 (marron) -> #1A0A00 (presque noir), mais dans une direction
   différente d'une section à l'autre : c'est ce qui crée les nuances entre sections.
   Chaque section isole ses bulles (isolation) pour qu'elles restent au-dessus de son fond. */
:root {
    --he-g-ecole:  linear-gradient(317deg, #1a0a00 40%, #2b1200 100%);
    --he-g-a:      linear-gradient(134deg, #2b1200 0%, #1a0a00 60%);
    --he-g-b:      linear-gradient(192deg, #2b1200 0%, #1a0a00 60%);
    --he-g-c:      linear-gradient(180deg, #1a0a00 0%, #2b1200 100%);
    --he-g-footer: linear-gradient(140deg, #2b1200 0%, #1a0a00 60%);
}
.he-zone { background: #1a0a00; }
.he-zone #parcours.he-section { background: var(--he-g-a) !important; isolation: isolate; }
.he-zone .he-group { position: relative; isolation: isolate; background: var(--he-g-b); border-top: 1px solid rgba(240, 122, 26, 0.3); }
.he-zone .he-group > .he-section { border-top: 0; }
.he-zone #contact.he-section { background: var(--he-g-c) !important; isolation: isolate; }
.he-zone .site-footer-wrap.site-footer-wrap.site-footer-wrap.site-footer-wrap.he-footer { background: var(--he-g-footer) !important; isolation: isolate; }
/* Trait entre sections, comme la maquette (orange à 30 %) */
.he-zone .he-section { border-top-color: rgba(240, 122, 26, 0.3); }

/* ─── En-têtes de section ─── */
.he-head {
    max-width: 760px;
    margin: 0 auto clamp(48px, 6vw, 72px);
    text-align: center;
}
.he-head .ecole-section-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1;
    margin-bottom: 18px;
}
.he-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #cfc6b8;
    margin: 0;
}
.he-desc strong { color: var(--cream, #f0ece4); font-weight: 600; }
/* En-tête « Prochainement » : plus d'espace, la photo de Modules D remonte au-dessus du bloc */
.he-head.he-head-solo { margin-bottom: clamp(90px, 10vw, 150px); position: relative; z-index: 1; }

/* ─── Cartes A / B / C ─── */
.he-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    max-width: 1080px;
    margin: 0 auto;
    padding-top: 22px;
}
.he-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 34px 26px 26px;
    border-radius: 20px;
    border: 1px solid var(--he-glass-border);
    background: var(--he-glass-bg);
    backdrop-filter: var(--he-glass-blur);
    -webkit-backdrop-filter: var(--he-glass-blur);
    box-shadow: var(--he-glass-shadow);
    transform: translateY(46px);
    transition: transform .45s ease, background .45s ease, box-shadow .45s ease, border-color .45s ease;
    scroll-margin-top: 120px;
}
.he-card.is-active {
    transform: translateY(0);
    border-color: rgba(255, 170, 90, 0.55);
    background: linear-gradient(180deg, rgba(120, 48, 0, 0.75) 0%, #d8650c 100%);
    box-shadow: 0 0 0 1px rgba(255, 150, 60, 0.25), 0 24px 60px -16px rgba(240, 122, 26, 0.55);
}
.he-card-letter {
    position: absolute;
    top: -22px;
    left: -14px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: #fff;
    background: var(--orange-grad, linear-gradient(90deg, #f1951b, #f14000));
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 8px 20px rgba(240, 122, 26, 0.45);
}
.he-tag {
    align-self: flex-start;
    padding: 4px 11px;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid;
}
.he-tag.is-purple { color: var(--purple-tag, #d876ff); background: var(--purple-tag-bg); border-color: var(--purple-tag-border); }
.he-tag.is-red    { color: #ff6b5a;                     background: var(--red-tag-bg);    border-color: var(--red-tag-border); }
.he-tag.is-yellow { color: var(--yellow-tag, #f0c51a); background: var(--yellow-tag-bg); border-color: var(--yellow-tag-border); }

.he-card-title,
.he-panel-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 2.1vw, 1.9rem);
    line-height: 1.02;
    letter-spacing: 0.01em;
    color: var(--cream, #f0ece4);
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(240, 236, 228, 0.18);
}
.he-panel-title .accent {
    background: var(--orange-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.he-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    line-height: 1.6;
    color: #d6ccbd;
    margin: 0;
}
.he-card-desc strong { color: #fff; font-weight: 600; }
.he-card.is-active .he-card-desc { color: #fff3e6; }

.he-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #f0e6d8;
}
.he-stats li { display: flex; gap: 10px; align-items: baseline; }
.he-stats span {
    flex: 0 0 96px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 210, 160, 0.65);
}
.he-card.is-active .he-stats span { color: rgba(255, 240, 225, 0.8); }
.he-note {
    align-self: flex-start;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(240, 236, 228, 0.2);
    color: #f0e6d8;
}

.he-arrow {
    align-self: center;
    justify-self: center;
    width: 30px;
    height: 30px;
    margin-top: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--orange, #f07a1a);
    border: 1px solid var(--he-glass-border);
    background: var(--he-glass-bg);
    backdrop-filter: var(--he-glass-blur);
    -webkit-backdrop-filter: var(--he-glass-blur);
}
.he-arrow svg { width: 14px; height: 14px; }

/* ─── Boutons ─── */
.he-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 13px 22px;
    border-radius: 100px;
    border: 1px solid rgba(240, 236, 228, 0.28);
    background: transparent;
    color: var(--cream, #f0ece4);
    font: 600 0.86rem/1 'Inter', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.he-btn:hover { border-color: rgba(240, 122, 26, 0.7); color: #fff; }
.he-card.is-active .he-btn { background: #fff; color: #1a0a00; border-color: #fff; }
.he-card.is-active .he-btn:hover { transform: translateY(-1px); }
.he-btn.is-primary {
    align-self: flex-start;
    background: var(--orange-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(240, 122, 26, 0.6);
}
.he-btn.is-primary:hover { transform: translateY(-1px); }

/* ─── Onglets ─── */
.he-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    max-width: 780px;
    margin: clamp(70px, 8vw, 96px) auto 0;
    padding: 4px;
    border-radius: 100px;
    border: 1px solid var(--he-glass-border);
    background: var(--he-glass-bg);
    backdrop-filter: var(--he-glass-blur);
    -webkit-backdrop-filter: var(--he-glass-blur);
    box-shadow: var(--he-glass-shadow);
}
.he-tab {
    appearance: none;
    border: 0;
    border-radius: 100px;
    padding: 12px 10px;
    background: transparent;
    color: var(--cream, #f0ece4);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.he-tab:hover { color: #fff; background: rgba(240, 122, 26, 0.12); }
.he-tab.is-active {
    background: var(--orange-grad);
    color: #fff;
    box-shadow: 0 0 18px rgba(240, 122, 26, 0.45);
}
.he-tab:focus-visible { outline: 2px solid #fbb56a; outline-offset: 2px; }

/* ─── Prochainement : Modules D et Atelier, une section chacun ─── */
.he-solo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}
.he-solo.is-mirrored .he-panel { order: 2; }
.he-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(28px, 3.5vw, 44px);
    border-radius: 22px;
    border: 1px solid var(--he-glass-border);
    background: var(--he-glass-bg);
    backdrop-filter: var(--he-glass-blur);
    -webkit-backdrop-filter: var(--he-glass-blur);
    box-shadow: var(--he-glass-shadow);
}
/* Modules D : photo d'avant derrière le bloc de texte (revue du 17/11, « D » géant retiré).
   Elle commence sous la moitié droite du bloc (le verre la floute) et déborde à droite. */
.he-solo-grid { position: relative; }
.he-solo-grid > .he-panel,
.he-solo-grid > .he-solo-visual { position: relative; z-index: 1; }
.he-solo-bgphoto {
    position: absolute;
    z-index: 0;
    top: -16%;
    bottom: -13%;
    left: 28%;
    right: -7%;
    border-radius: 22px;
    border: 1px solid var(--he-glass-border);
    background-size: cover;
    background-position: center;
    box-shadow: var(--he-glass-shadow);
    overflow: hidden;
}
/* (Voile sombre retiré, revue du 17/11 : photos aux couleurs d'origine) */
/* Atelier : même chose en miroir (photo à gauche, bloc à droite) */
.he-solo.is-mirrored .he-solo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.he-solo.is-mirrored .he-panel { grid-column: 2; }
.he-solo.is-mirrored .he-solo-bgphoto { left: -7%; right: 28%; }
.he-panel-title.is-big { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: .98; }
.he-solo-visual {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    max-width: 420px;
    width: 100%;
    justify-self: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 200, 140, 0.25);
    background: radial-gradient(circle at 35% 30%, rgba(255, 190, 120, 0.18), rgba(120, 45, 0, 0.1) 60%, rgba(85, 35, 0, 0.12) 100%);
    backdrop-filter: var(--he-glass-blur);
    -webkit-backdrop-filter: var(--he-glass-blur);
    box-shadow: var(--he-glass-shadow);
}
.he-solo-letter,
.he-solo-photo-num {
    font-family: 'Bebas Neue', sans-serif;
    line-height: 1;
    background: var(--orange-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.he-solo-letter { font-size: clamp(9rem, 18vw, 15rem); filter: drop-shadow(0 10px 30px rgba(240, 122, 26, 0.45)); }
.he-solo-photo {
    position: relative;
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(240, 122, 26, 0.3);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
    aspect-ratio: 4 / 5;
    max-height: 560px;
}
.he-solo-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.he-solo-photo-num {
    position: absolute;
    right: 18px;
    bottom: 4px;
    font-size: clamp(6rem, 10vw, 9rem);
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
}
/* « Modules D » + pastille « Prochainement » sur la même ligne (réf. « Le Cocoon · Nouveau ») */
.he-eyebrow-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}
.he-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--orange, #f07a1a);
}
.he-ribbon {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 100px;
    font: 700 0.68rem/1.2 'Inter', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ─── Petites pastilles PLEINES, comme la maquette ───
   dégradé #F1951B → #F14000, texte foncé, lettres espacées, sans bordure. */
.ecole-pill-tag,
.home-finale-pill,
.parcours-slide-badge,
.he-ribbon {
    background: linear-gradient(90deg, #f1951b 0%, #f14000 100%) !important;
    border: 0 !important;
    color: #1a0a00 !important;
    font-weight: 700 !important;
    letter-spacing: 0.3em;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.home-finale-pill-dot { background: #1a0a00 !important; box-shadow: none !important; animation: none !important; }
.he-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.he-chips li {
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(240, 236, 228, 0.2);
    font: 500 0.76rem/1.2 'Inter', sans-serif;
    color: #f0e6d8;
}

/* ─── Masterclasses : on garde le contenu, on retire la mise en scène ─── */
.he-zone .section-masterclass { --mp: .5 !important; --mp-in: 1 !important; --mp-peak: 0 !important; }
html body .he-zone .section-masterclass .mr-card,
html body .he-zone .section-masterclass .mr-card-featured,
html body .he-zone .section-masterclass .mr-card-rencontre,
html body .he-zone .section-masterclass .mr-media img { transform: none !important; }
.he-zone .section-masterclass .mr-media-curtain { display: none !important; }

/* ─── Fin de page : carte en verre ─── */
.he-zone .home-finale { min-height: 0; padding: clamp(90px, 11vw, 150px) 24px clamp(60px, 7vw, 90px); }
.he-zone .he-finale-card {
    width: 100%;
    max-width: 980px;
    padding: clamp(40px, 5vw, 64px) clamp(24px, 5vw, 64px);
    border-radius: 22px;
    border: 1px solid var(--he-glass-border);
    background: var(--he-glass-bg);
    backdrop-filter: var(--he-glass-blur);
    -webkit-backdrop-filter: var(--he-glass-blur);
    box-shadow: var(--he-glass-shadow);
}
.he-zone .he-finale-card .home-finale-title { font-size: clamp(2.6rem, 5.5vw, 4.6rem); }

/* ─── Pied de page : même fond que la zone, centré ─── */
.he-zone .site-footer-wrap.site-footer-wrap.site-footer-wrap.site-footer-wrap.he-footer {
    position: relative;
    z-index: 1;
    background: transparent !important;
    padding: 40px 0 50px !important;
    border-top: 1px solid rgba(240, 122, 26, 0.14) !important;
}

/* ─── Tablette / mobile ─── */
@media (max-width: 900px) {
    .he-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
        max-width: 520px;
    }
    .he-arrow, .he-tabs { display: none; }
    .he-card { transform: none; }
    .he-solo-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
    .he-solo.is-mirrored .he-panel { order: 0; }
    .he-solo-visual { max-width: 220px; order: -1; }
    /* Téléphone : la photo passe en bandeau au-dessus du bloc, qui la chevauche un peu */
    .he-solo-bgphoto,
    .he-solo.is-mirrored .he-solo-bgphoto { position: relative; inset: auto; order: -1; height: 240px; margin-bottom: -70px; }
    .he-solo.is-mirrored .he-solo-grid { grid-template-columns: minmax(0, 1fr); }
    .he-solo.is-mirrored .he-panel { grid-column: auto; }
    .he-solo-letter { font-size: 7rem; }
    .he-solo-photo { order: -1; aspect-ratio: 16 / 10; }
    .he-card-letter { left: 16px; }
    /* Téléphone : sphères plus petites, au bord de l'écran, plus discrètes */
    .he-sec-orbs .he-sphere { --s: 520px; opacity: .6; }
    .he-ps-c, .he-ps-modules, .he-ps-finale { left: auto; right: -300px; }
    .he-ps-tabs, .he-ps-atelier { left: -300px; }
    .he-ps-c { top: 30%; }
    .he-ps-tabs { top: 70%; bottom: auto; }
    .he-ps-modules { top: 10%; }
}

/* ─── Moins d'animations si l'appareil le demande ─── */
@media (prefers-reduced-motion: reduce) {
    .he-orb { animation: none !important; }
    .he-card, .he-tab, .he-btn { transition: none !important; }
}

/* ═══ Parrain : Kevin détouré dont la tête dépasse + cadre en verre pour le texte ═══
   La photo de fond et le détourage ont EXACTEMENT le même cadre (remonté de --kv-up),
   donc ils se superposent au pixel près. La photo est coupée au bord haut de la section
   (clip-path), le détourage non : la tête sort au-dessus. */
.parcours-slide-parrain {
    --kv-up: 170px;
    overflow: visible;
}
.parcours-slide-parrain .parcours-slide-bg,
.parcours-slide-parrain .kv-popout {
    position: absolute;
    inset: auto;
    left: 0;
    right: 0;
    top: calc(-1 * var(--kv-up));
    bottom: 0;
    background-size: cover;
    background-position: 50% 0%;
    background-repeat: no-repeat;
    filter: none;              /* couleurs d'origine, sans filtre (revue du 17/11) */
}
.parcours-slide-parrain .parcours-slide-bg,
.parcours-slide-parrain:hover .parcours-slide-bg {
    transform: none;          /* le retournement du back-office (style en ligne) reste prioritaire */
    transition: none;
    clip-path: inset(var(--kv-up) 0 0 0);
}
.parcours-slide-parrain .kv-popout {
    z-index: 2;
    pointer-events: none;
}
/* Pas de voile sur la photo : couleurs d'origine. Le texte reste lisible grâce à son cadre. */
.parcours-slide-parrain .parcours-slide-veil { display: none; }
.parcours-slide-parrain .kv-card {
    max-width: 620px;
    padding: clamp(28px, 3.2vw, 46px);
    border-radius: 22px;
    border: 1px solid var(--he-glass-border);
    background: var(--he-glass-bg), rgba(12, 5, 0, 0.42);
    backdrop-filter: var(--he-glass-blur);
    -webkit-backdrop-filter: var(--he-glass-blur);
    box-shadow: var(--he-glass-shadow);
}
/* Téléphone / tablette : Kevin en haut (tête qui dépasse), cadre de texte dessous.
   Attention : la photo du back-office est retournée (scaleX(-1)) alors que le détourage
   est déjà en miroir dans le fichier, donc les positions horizontales sont inversées
   (72 % pour la photo = 28 % pour le détourage). */
@media (max-width: 900px) {
    .parcours-slide-parrain {
        --kv-up: 90px;
        align-items: flex-end;
        padding-top: clamp(360px, 92vw, 520px);
    }
    .parcours-slide-parrain .parcours-slide-bg,
    .parcours-slide-parrain .kv-popout {
        bottom: auto;
        height: calc(var(--kv-up) + clamp(470px, 110vw, 640px));
    }
    /* Fondu en bas de la photo (pas de bord net derrière le cadre) */
    .parcours-slide-parrain .parcours-slide-bg,
    .parcours-slide-parrain .kv-popout {
        -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    }
    .parcours-slide-parrain .parcours-slide-bg { background-position: 72% 0%; }
    .parcours-slide-parrain .kv-popout { background-position: 28% 0%; }
}

/* ═══ Section 2 « L'école » (avant le parrain) au même style ═══ */
.he-ecole {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(90px, 10vw, 140px) 0;
    background: var(--he-g-ecole);   /* dégradé de la maquette pour cette section */
}
.he-ecole .he-orbs { z-index: 0; }
/* Positions de la maquette : centre de la sphère à 845 px à droite du centre
   et ~150 px sous le haut de la section, rayon 601 px en 1920 (boîte 1331 px). */
.he-ecole .he-orbs { z-index: 0; }
.he-ecole-sphere-a { --s: clamp(700px, 69.3vw, 1331px); background-image: url('assets/figma/sec-ellipse-31-sec2.svg'); left: calc(50% + 845px - var(--s) / 2); top: calc(150px - var(--s) / 2); --d: 16s; }
.he-ecole-glow     { --s: clamp(1300px, 129.3vw, 2483px); background-image: url('assets/figma/sec-ellipse-30-sec2.svg'); left: calc(50% + 845px - var(--s) / 2); top: calc(150px - var(--s) / 2); --d: 24s; }
.he-ecole-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    max-width: 1160px;
    margin: 0 auto;
}
.he-ecole-head .ecole-section-title { font-size: clamp(2.2rem, 3.7vw, 3.3rem); line-height: 1; margin-bottom: 20px; }
.he-ecole-head .he-desc { max-width: 460px; }
.he-link { color: #fbb56a; text-decoration: none; border-bottom: 1px solid rgba(251, 181, 106, 0.45); font-weight: 600; }
.he-link:hover { color: #fff; border-color: #fff; }
.he-icards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 20px;
    padding-top: 22px;
}
.he-icard {
    position: relative;
    padding: 40px 24px 26px;
    border-radius: 12px;
    border: 1px solid var(--he-glass-border);
    background: var(--he-glass-bg);
    backdrop-filter: var(--he-glass-blur);
    -webkit-backdrop-filter: var(--he-glass-blur);
    box-shadow: var(--he-glass-shadow);
}
.he-icard-icon {
    position: absolute;
    top: -24px;
    left: -12px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--orange-grad, linear-gradient(90deg, #f1951b, #f14000));
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 8px 20px rgba(240, 122, 26, 0.45);
}
.he-icard-icon svg { width: 22px; height: 22px; }
.he-icard h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--cream, #f0ece4);
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(240, 236, 228, 0.18);
}
.he-icard p { font-family: 'Inter', sans-serif; font-size: 0.84rem; line-height: 1.6; color: #d6ccbd; margin: 0; }
@media (max-width: 900px) {
    .he-ecole-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
    .he-ecole-head { text-align: center; }
    .he-ecole-head .he-desc { margin: 0 auto; }
    .he-ecole-sphere-a { --s: 560px; left: auto; right: -300px; top: 30%; opacity: .6; }
    .he-ecole-glow { left: auto; right: -60%; top: -10%; }
}
@media (max-width: 560px) {
    .he-icards { grid-template-columns: minmax(0, 1fr); }
    .he-icard-icon { left: 16px; }
}
