/* Pages podcast FR et EN : hero « un épisode, des clips » en 3D (29/10/2026). Markup : _sources/build-podcast.mjs.
   L'inverse de l'accueil : là-bas, les rushes plongent dans un téléphone ; ici, un seul épisode filmé
   (illustration pod-episode.svg, celle du spot s56) se découpe en clips verticaux.
   Au défilement (hero-podcast.js, Motion) : la tête de lecture parcourt l'épisode, le cadre 9:16 saute sur
   l'animateur qui parle, chaque clip sort de l'écran, se sous-titre et rejoint l'arc des clips ; l'épisode recule.
   - Ordinateur (901 px et plus, 600 px de haut et plus) : tout le hero est épinglé sur 320vh, en plein écran :
     barre du haut et rail des chapitres cachés jusqu'à ce que le hero remonte (classe hp-top sur <html>).
   - Mobile et tablette (900 px et moins) : la scène passe avant le texte et occupe tout l'écran dès le haut
     (épinglée sur 260svh). La barre du haut reste cachée tant qu'on n'a pas défilé (classe hp-top sur <html>).
   - Sans Motion ou en mouvement réduit : rien n'est épinglé, la scène montre l'état final (clips posés).
   Sans JavaScript : l'épisode seul, sans les clips. */

.hero.hp{max-width:none;margin:0;padding:0;position:relative}
.hp{--hp-fond:rgba(24,24,27,.55);--hp-bord:rgba(255,255,255,.1);--hp-reflet:inset 0 1px 0 rgba(255,255,255,.08)}
.hp-pin{position:relative}
.hp-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:48px;align-items:center;max-width:1336px;margin:0 auto}
.hp .hero-left{position:relative;z-index:1}

/* Fond : l'épisode flouté une fois et voilé (ordinateur : derrière tout le hero ; mobile : derrière la scène) */
.hp-scene{position:absolute;inset:0;z-index:0;overflow:hidden;background:#120d26;pointer-events:none}
.hp-scene img{display:block;width:100%;height:100%;object-fit:cover;filter:blur(48px) saturate(120%);transform:scale(1.2)}
.hp-scene::after{content:'';position:absolute;inset:0;background:rgba(9,9,11,.58)}

/* Scène 3D : origine au centre de la scène, chaque objet centré sur l'origine puis placé par transform */
.hp-stage{position:relative;z-index:1;height:600px;container-type:size;perspective:1400px;perspective-origin:50% 45%}
.hp-world{--sw:min(80cqw,108cqh);position:absolute;left:50%;top:50%;width:0;height:0;transform-style:preserve-3d;transform:rotateX(5deg) rotateY(-10deg)}

/* L'épisode : barre d'enregistrement, image 16:9, piste (onde, moments, tête de lecture) */
.hp-screen{--sh:calc(var(--sw) * .7025);position:absolute;left:calc(var(--sw) / -2);top:calc(var(--sh) / -2);width:var(--sw);height:var(--sh);display:flex;flex-direction:column;border-radius:12px;overflow:hidden;background:#0d0a1c;box-shadow:0 0 0 1px rgba(255,255,255,.14),0 30px 70px rgba(0,0,0,.5);transform:translate3d(0,4cqh,0) rotateX(12deg)}
.hp-bar{flex:none;height:calc(var(--sw) * .06);display:flex;align-items:center;justify-content:space-between;padding:0 3.2%;font-family:'Geist Mono',monospace;font-size:clamp(8px,calc(var(--sw) * .021),11px);letter-spacing:.06em;color:#d4d4d8;white-space:nowrap}
.hp-rec{display:inline-flex;align-items:center;gap:.6em}
.hp-rec i{width:.75em;height:.75em;border-radius:50%;background:#e5484d;animation:dotPulse 1.4s infinite}
.hp-tc{font-variant-numeric:tabular-nums;color:#a1a1aa}
.hp-tc b{font-weight:500;color:#fafafa}
.hp-img{position:relative;flex:none;height:calc(var(--sw) * .5625);overflow:hidden;background:#150e31}
.hp-img img{display:block;width:100%;height:100%}
/* Cadre de recadrage 9:16 : tout ce qui sort du cadre est assombri */
.hp-frame{position:absolute;left:0;top:0;height:100%;aspect-ratio:9/16;box-sizing:border-box;border:2px solid #a48bff;border-radius:6px;box-shadow:0 0 0 var(--sw) rgba(9,9,11,.45);transform:translateX(calc(var(--sw) * .1591));transition:border-color .2s,background-color .2s}
.hp-frame span{position:absolute;left:6px;top:6px;padding:1px 5px;border-radius:4px;background:#6b46e5;font-family:'Geist Mono',monospace;font-size:clamp(7px,calc(var(--sw) * .018),10px);font-weight:600;line-height:1.5;color:#fff}
.hp-frame.cut{border-color:#fff;background-color:rgba(255,255,255,.12)}
.hp-track{position:relative;flex:1;margin:0 3.2%}
.hp-wave{position:absolute;left:0;top:22%;width:100%;height:56%;display:block;color:rgba(255,255,255,.24)}
.hp-wave.played{color:#a48bff;clip-path:inset(0 100% 0 0)}
.hp-mk{position:absolute;top:10%;bottom:10%;width:2px;margin-left:-1px;border-radius:1px;background:rgba(255,255,255,.4);transition:background-color .2s}
.hp-mk.on{background:#fafafa}
.hp-head{position:absolute;left:0;top:0;bottom:0;width:2px;margin-left:-1px;background:#fafafa;box-shadow:0 0 10px rgba(255,255,255,.55)}

/* Clips : même image que l'épisode, recadrée sur un animateur, à la taille du cadre 9:16 */
.hp-clip{--cw:calc(var(--sw) * .31640625);position:absolute;left:calc(var(--cw) / -2);top:calc(var(--sw) * -.28125);width:var(--cw);height:calc(var(--sw) * .5625);margin:0;border-radius:6px;overflow:hidden;background:#150e31;box-shadow:0 0 0 1px rgba(255,255,255,.2),0 18px 40px rgba(0,0,0,.45);backface-visibility:hidden;visibility:hidden}
.hp-js .hp-clip{visibility:visible}
.hp-clip img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hp-clip::before{content:'';position:absolute;inset:0;background:var(--tint,none)}
.hp-clip::after{content:'';position:absolute;left:0;right:0;bottom:0;height:46%;background:linear-gradient(to top,rgba(9,9,11,.82),rgba(9,9,11,0))}
.hp-ctop{position:absolute;z-index:1;left:7%;right:7%;top:4%;height:3px;border-radius:2px;background:rgba(255,255,255,.3)}
.hp-ctop i{display:block;height:100%;width:var(--pr,40%);border-radius:inherit;background:#fff}
.hp-ctag{position:absolute;z-index:1;left:7%;top:8%;padding:1px 5px;border-radius:4px;background:rgba(9,9,11,.6);font-family:'Geist Mono',monospace;font-size:calc(var(--cw) * .058);font-weight:600;letter-spacing:.06em;line-height:1.5;color:#fafafa;white-space:nowrap}
.hp-cap{position:absolute;z-index:1;left:6%;right:6%;bottom:9%;font-family:'Geist',sans-serif;font-size:calc(var(--cw) * .088);font-weight:700;line-height:1.22;letter-spacing:-.01em;text-align:center;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.5)}
.hp-cap mark{padding:0 .2em;border-radius:3px;background:#6b46e5;color:#fff;-webkit-box-decoration-break:clone;box-decoration-break:clone}

/* Compteur de clips (verre) et plateformes */
.hp-count{position:absolute;z-index:2;left:50%;top:0;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 16px;border-radius:14px;background:rgba(39,39,42,.78);border:1px solid var(--hp-bord);box-shadow:var(--hp-reflet),0 18px 40px rgba(0,0,0,.4);font-family:'Geist',sans-serif;font-size:12.5px;font-weight:500;color:#a1a1aa;white-space:nowrap}
.hp-count span{display:flex;align-items:baseline;gap:7px}
.hp-count b{font-size:20px;font-weight:600;letter-spacing:-.02em;line-height:1.1;color:#fafafa;font-variant-numeric:tabular-nums}
.hp-count small{display:none;font-size:11.5px;font-weight:400;color:#a1a1aa}
.hp-count.done small{display:block}
.hp-plat{position:absolute;z-index:2;left:50%;bottom:0;transform:translateX(-50%);display:flex;gap:6px;margin:0;padding:0;list-style:none;white-space:nowrap}
.hp-plat li{display:flex;align-items:center;gap:7px;padding:6px 12px;border-radius:999px;background:rgba(39,39,42,.78);border:1px solid var(--hp-bord);box-shadow:var(--hp-reflet);font-family:'Geist',sans-serif;font-size:12.5px;font-weight:500;color:#fafafa}
.hp-plat li::before{content:'';width:6px;height:6px;border-radius:50%;background:#a48bff}
.hp-say{display:none}
/* Pendant la scène plein écran : ni bouton de commande collant, ni retour en haut */
.motion-ready.hp-top .cta-sticky,.motion-ready.hp-top .to-top{opacity:0;pointer-events:none}
.hp-count,.hp-plat{visibility:hidden}
.hp-js .hp-count,.hp-js .hp-plat{visibility:visible}

/* ---------- Ordinateur ---------- */
@media(min-width:901px){
  .hp-run,.hp-stick{position:static}
  .hp-pin{padding:124px 32px 40px}
  .hp .hero-left{gap:22px}
  .hp .crumbs{margin:0;color:#a1a1aa}
  .hp .crumbs a{border-bottom-color:rgba(255,255,255,.28)}
  .hp .crumbs a:hover{color:#fafafa}
  .hp .hero-kicker{margin:0;color:#a1a1aa}
  .hp .hero-title{margin:0;font-size:clamp(36px,min(3.9vw,7vh),64px);line-height:.98;color:#fafafa}
  .hp .hero-title em{color:#a1a1aa !important}
  .hp .hero-subtitle{max-width:560px;font-size:15.5px;line-height:1.6;color:#d4d4d8}
  .hp .hero-subtitle strong{color:#fafafa}
  .hp .hero-ctas{flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px 16px}
  .hp .hero-note{flex-basis:100%;color:#a1a1aa}
  .hp .btn-ghost{background:rgba(255,255,255,.06);color:#fafafa;border-color:rgba(255,255,255,.22)}
  .hp .btn-ghost:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.32);color:#fafafa}
  /* Chiffres clés : tuiles de verre, 72h (la promesse) en tuile pleine */
  .hp .trust-bar{position:relative;z-index:1;margin:32px auto 0;padding:0;max-width:1336px;background:none;border:0}
  .hp .trust-bar-inner{gap:12px;align-items:stretch}
  .hp .trust-stat{display:flex;flex-direction:column;justify-content:center;gap:6px;padding:14px 18px;text-align:left;border-radius:12px;background:var(--hp-fond);border:1px solid var(--hp-bord);box-shadow:var(--hp-reflet)}
  .hp .trust-stat::before{display:none}
  .hp .trust-stat-num{margin:0;font-size:30px;font-weight:600;color:#fafafa;font-variant-numeric:tabular-nums}
  .hp .trust-stat-num em{color:#a1a1aa}
  .hp .trust-stat-label{color:#a1a1aa}
  .hp .trust-stat.accent{background:#6b46e5;border-color:transparent}
  .hp .trust-stat.accent .trust-stat-num,.hp .trust-stat.accent .trust-stat-num em{color:#fff}
  .hp .trust-stat.accent .trust-stat-label{color:rgba(255,255,255,.86)}
}
@media(min-width:901px) and (min-height:600px){
  .motion-ready .hero.hp{height:320vh}
  .motion-ready .hp-pin{position:sticky;top:0;height:100vh;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:48px 32px 20px;overflow:hidden}
  /* Hero plein écran : barre du haut et rail des chapitres cachés tant que la scène est épinglée (classe hp-top,
     posée par hero-podcast.js), de retour dès que le hero remonte ou qu'on y arrive au clavier */
  .topbar,.tc-rail{transition:transform .5s cubic-bezier(.16,1,.3,1)}
  .motion-ready.hp-top .topbar:not(:focus-within){transform:translateY(-100%)}
  .motion-ready.hp-top .tc-rail:not(:focus-within){transform:translateX(-160%)}
  .motion-ready.hp-top .tc-bar{opacity:0;pointer-events:none}
  .motion-ready .hp-grid{width:100%}
  .motion-ready .hp-stage{height:min(calc(100vh - 230px),680px)}
  .motion-ready .hp .trust-bar{margin-top:20px;width:100%}
}
/* Avec le rail des chapitres (≥ 1101 px) : la scène passe aussi sous la place du rail, le contenu ne bouge pas */
@media(min-width:1101px) and (min-height:600px){
  .motion-ready .hp-pin{margin-left:-64px;padding-left:96px}
}

/* ---------- Mobile et tablette ---------- */
@media(max-width:900px){
  .hp-pin{display:flex;flex-direction:column}
  .hp-grid{display:contents}
  .hp .hero-left{padding:96px 20px 0}
  .hp-run{margin:28px 20px 0}
  .hp-stick{position:relative;height:640px;border-radius:12px;overflow:hidden}
  .hp-stage{position:absolute;inset:60px 0 8px;height:auto;perspective:900px;perspective-origin:50% 40%}
  .hp-world{--sw:min(90cqw,64cqh)}
  .hp-count{top:-48px}
  .hp-plat{display:none}
  .hp .trust-bar{margin:28px 0 48px}
  .topbar{transition:transform .45s cubic-bezier(.16,1,.3,1)}
  .motion-ready.hp-top .topbar:not(:focus-within){transform:translateY(-100%)}
  .motion-ready .hp-run{order:-1;margin:0;height:260vh;height:260svh}
  .motion-ready .hp-stick{position:sticky;top:0;height:100vh;height:100svh;border-radius:0}
  .motion-ready .hp .hero-left{padding-top:36px}
  .motion-ready .hp-stage{top:104px;bottom:16px}
  .motion-ready .hp-count{top:0}
  .motion-ready .hp-say{display:block;position:absolute;z-index:2;left:20px;right:20px;top:22px;margin:0;height:72px;font-family:'Geist',sans-serif;font-size:clamp(26px,7.6vw,34px);font-weight:600;line-height:1.05;letter-spacing:-.04em;color:#fafafa}
  .hp-say span{position:absolute;left:0;right:0;top:0;transition:opacity .35s,transform .45s cubic-bezier(.16,1,.3,1)}
  .hp-say span + span{color:#a1a1aa;opacity:0;transform:translateY(12px)}
  .hp-say.done span:first-child{opacity:0;transform:translateY(-12px)}
  .hp-say.done span + span{opacity:1;transform:none}
}

@media(min-width:901px) and (min-height:600px),(max-width:900px){
  .motion-ready .hp-clip,.motion-ready .hp-world,.motion-ready .hp-screen,.motion-ready .hp-frame{will-change:transform}
}
