/* ===========================================================
   v3 — pages réelles + hero vidéo piloté au défilement.
   Chargée en dernier : elle neutralise la mise en page
   « salles superposées » de style.css / updates.css / responsive.css.
   =========================================================== */

/* --- 1. défilement vertical normal (toutes les pages sauf l’accueil) --- */
/* ATTENTION : surtout pas d’overflow-x:hidden ici. Sur <html> ou <body> il
   crée un conteneur de défilement et annule le position:sticky du hero —
   la vidéo s’en irait vers le haut en laissant un grand vide noir.
   overflow-x:clip découpe sans créer de conteneur : le sticky survit. */
html:not(.is-home){overflow-x:clip;overflow-y:auto;height:auto;background:#0d0d0d}
html:not(.is-home) body{overflow:visible;height:auto;background:#0d0d0d}

/* --- 2. lien d’évitement (invisible jusqu’au focus clavier) --- */
.skip-link{position:absolute;left:-9999px;top:0;z-index:200;background:#fff;color:#0d0d0d;
  padding:12px 16px;font:500 12px var(--mono);text-decoration:none}
.skip-link:focus{left:8px;top:8px}

/* --- 3. le hero --- */
.vhero{position:relative;height:280vh;background:#000}
.vhero__stage{position:sticky;top:0;width:100vw;height:100vh;height:100svh;overflow:hidden;background:#000}
.vhero__video,.vhero__poster{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.vhero__poster{z-index:2;transition:opacity .7s ease}
.vhero.is-scrolled .vhero__poster{opacity:0}
/* fondu bas : la dernière image du film se dissout dans le fond de la section suivante */
.vhero__fade{position:absolute;inset:auto 0 -1px;height:42vh;z-index:3;pointer-events:none;
  background:linear-gradient(to bottom,rgba(13,13,13,0) 0%,rgba(13,13,13,.28) 42%,rgba(13,13,13,.72) 74%,#0d0d0d 100%)}

/* pendant le hero, l’image occupe seule l’écran : plus d’en-tête, plus de bouton */
header,.exit{transition:opacity .45s ease}
body.in-hero header{opacity:0;pointer-events:none}
body.in-hero .exit{opacity:0;pointer-events:none}
body.page.in-hero header{background:rgba(13,13,13,.55);border-bottom-color:transparent;color:#fff}

/* --- 4. bandes de contenu --- */
.page-main{position:relative;z-index:4;background:#0d0d0d}
.page-main>.frame{position:relative;width:100%;min-width:0;height:auto;
  padding:clamp(64px,11vh,150px) 6vw;scroll-snap-align:none}
.page-main>.frame>p:last-child:not(.label){position:static}
.hero-frame>p{position:static}

/* accroche : noire, dans la continuité du fondu du hero */
.lead-frame{background:#0d0d0d;color:#fff;padding-top:clamp(28px,5vh,70px)!important}
.lead-frame>span{display:block;font:500 clamp(12px,1.2vw,18px) var(--mono);letter-spacing:.1em;color:var(--ania-orange,#f28c28)}
.lead-frame h2{font-size:clamp(3.1rem,10.5vw,10rem);line-height:.84;letter-spacing:-.07em;margin:.3em 0 .55em}
.lead-frame h2 i,.lead-frame h2 .seen-100{font-style:normal;color:var(--ania-orange,#f28c28)}
.lead-frame h3{max-width:62ch;margin:0;font-size:clamp(1.15rem,2.2vw,2rem);font-weight:500;line-height:1.3}
.page--web .lead-frame h2 .web-h2-red{color:var(--ania-orange,#f28c28)}
.page--web .lead-frame h2 .seen-100{color:#fff}

/* bande « chiffres + clients » (ancienne frame texte) */
.page-main>.text-frame{display:block;background:var(--paper);color:var(--ink)}
.page-main>.text-frame>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));
  gap:clamp(24px,3vw,60px);width:100%;margin:0}

/* publications : en grille, plus en bande horizontale */
.page-main>.books{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));
  gap:clamp(28px,4vw,60px);align-items:start}
.page-main>.books>.label{position:static;grid-column:1/-1}
.page-main>.books figure{width:100%}
.page-main>.books img{width:100%;height:min(46vh,380px)}

/* « et aussi » : les workflows agentiques */
.agentic{background:var(--acid);color:var(--ink)}
.agentic b{display:block;margin:.3em 0 .5em;font-size:clamp(2rem,5.5vw,4.5rem);line-height:.95;letter-spacing:-.05em}
.agentic>p{max-width:62ch;font-size:clamp(15px,1.5vw,20px);line-height:1.55}
.agentic i{display:block;margin-top:2em;font:500 clamp(12px,1.1vw,16px) var(--mono);font-style:normal}

/* méthode (page vidéo) */
.method{background:var(--paper);color:var(--ink)}
.method>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));
  gap:clamp(24px,3vw,56px);margin-top:clamp(24px,4vh,50px)}
.method p{font-size:clamp(15px,1.5vw,19px);line-height:1.55;margin:0}
.method b{display:block;margin-bottom:.4em}

/* --- 5. page promptographe --- */
.page--photo .page-main{background:var(--ink);color:#fff}
.page--photo .gallery{padding-top:0}

/* --- 6. page créateur web --- */
.page--web .page-main{background:var(--paper);color:var(--ink)}
.page--web .web-pitch{position:relative;width:100%;display:grid;gap:clamp(26px,4vh,46px);
  padding:clamp(64px,11vh,150px) 6vw;background:var(--paper)}
.page--web .word-cloud{position:static;display:flex;flex-wrap:wrap;gap:14px 12px}
.page--web .word-cloud span:nth-child(n){position:relative!important;inset:auto!important}
.page--web .web-pitch article{position:static;inset:auto;width:min(68ch,100%);margin:0;
  font-size:clamp(16px,1.7vw,24px);line-height:1.55}
.page--web .chaos{position:static;inset:auto;justify-self:start}
.page--web .web-pitch.shaken .word-cloud span:nth-child(n){transform:translate(var(--x),var(--y)) rotate(var(--r))}
.page--web .web-gallery{position:static;inset:auto;width:100%;height:auto;display:grid;
  grid-template-columns:1fr;gap:clamp(30px,6vh,80px);padding:0 6vw clamp(70px,12vh,160px)}
.page--web .web-gallery figure:nth-child(n){min-width:0;margin:0;transform:none}
.page--web .web-gallery figure:hover{transform:none}
.page--web .web-gallery img,.page--web .web-gallery .al3x1s-site>a{width:100%;height:auto}
.page--web .web-gallery .al3x1s-site>a{aspect-ratio:1500/837}
.page--web .web-gallery .al3x1s-site img{width:100%;height:100%}
@media (min-width:901px){
  .page--web .web-gallery{grid-template-columns:1fr 1fr}
}

/* --- 7. page qui suis-je : redevient un bloc normal --- */
.page-main.about{position:static;inset:auto;transform:none;overflow:visible;height:auto;z-index:4}
.page--about .about-inner{padding-top:clamp(90px,12vh,160px)}

/* --- 8. accueil : les portes sont des liens --- */
.door{display:flex;text-decoration:none}
.about-btn{text-decoration:none}

/* --- 9. pied de page --- */
.site-foot{position:relative;z-index:4;display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;
  padding:40px 6vw 46px;background:#0d0d0d;color:#fff;
  font:500 clamp(11px,1vw,14px) var(--mono);letter-spacing:.04em;border-top:1px solid rgba(255,255,255,.18)}
.site-foot a{color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.35);padding-bottom:3px}
.site-foot a:hover{color:var(--ania-orange,#f28c28);border-bottom-color:var(--ania-orange,#f28c28)}
.site-foot span{margin-left:auto;opacity:.6}
.page--home .site-foot{display:none}

/* --- 10. flèche « il reste du contenu », jamais par-dessus le hero --- */
.scroll-cue--page{position:fixed;z-index:70;right:22px;bottom:22px;width:48px;height:48px;
  display:grid;place-items:center;border:1px solid #fff;border-radius:999px;
  background:rgba(13,13,13,.6);color:#fff;font-size:18px;backdrop-filter:blur(4px)}
.scroll-cue--page[hidden]{display:none}
body.in-hero .scroll-cue--page{display:none}

/* --- 11. mobile --- */
@media (max-width:800px),(max-height:520px){
  .vhero{height:250vh}
  .vhero__fade{height:34vh}
  .page-main>.frame{padding:clamp(52px,8vh,100px) 6vw}
  .lead-frame h2{font-size:clamp(2.6rem,12vw,5rem)}
  .site-foot span{margin-left:0;width:100%}
}

/* --- 12. mouvement réduit : on garde l’image fixe, pas de scrub --- */
@media (prefers-reduced-motion:reduce){
  .vhero{height:110vh}
  .vhero .vhero__poster{opacity:1!important}
}

/* --- 13. correctifs mesurés dans le navigateur --- */
/* la note « sports / centres d’intérêt » est inclinée : on la borne pour que
   la rotation et l’ombre ne dépassent plus de la page */
.page--about .offwork{width:min(760px,84vw);
  margin:clamp(30px,6vh,70px) 6vw clamp(60px,10vh,130px)}
/* l’image en ligne ajoutait 5 px sous l’aperçu al3x1s, ce qui rognait la légende */
.page--web .web-gallery img{display:block}
