/* ════════════════════════════════════════════════════════════════════════════
 *  EVISIONS — moteur des tutoriels animés (26/09/2026)
 *  Feuille commune à toutes les pages /tutoriels/<sujet>/ (compétence Claude « tutoriel »).
 *  Le contenu (scènes SVG + sous-étapes) est propre à chaque page ; tout le reste est ici.
 * ════════════════════════════════════════════════════════════════════════════ */
:root{
  --nuit:#06142d; --carte:#0d2350; --carte2:#102a60; --bord:rgba(148,190,255,.16);
  --bleu:#2f6bff; --cyan:#38e1f5; --cyan2:#9af3ff; --or:#f6c939; --or2:#fde96a;
  --vert:#34d399; --rouge:#ff6b6b; --orange:#ffa94d; --blanc:#f4f8ff; --gris:#9fb3d6; --gris2:#6f85ad; --r:22px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:Inter,system-ui,sans-serif;color:var(--blanc);background:var(--nuit);line-height:1.5;overflow-x:hidden;-webkit-font-smoothing:antialiased}
body:before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(900px 600px at 90% -5%,rgba(56,225,245,.16),transparent 60%),radial-gradient(800px 700px at -10% 40%,rgba(47,107,255,.22),transparent 60%),linear-gradient(180deg,#0a1d45 0%,var(--nuit) 40%,#040c1e 100%)}
a{color:inherit} button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
.wrap{max-width:1160px;margin:0 auto;padding:0 20px}
h1,h2,h3{font-family:Sora,Inter,sans-serif;letter-spacing:-.02em;line-height:1.1}
.c{color:var(--cyan)} .o{color:var(--or)} .v{color:var(--vert)}
.surt{font:700 13px Inter;letter-spacing:.18em;text-transform:uppercase;color:var(--cyan2)}
.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:10px;font:700 16px Inter;border-radius:14px;padding:13px 20px;transition:transform .15s,box-shadow .2s;white-space:nowrap}
.btn:active{transform:scale(.97)}
.btn-or{background:linear-gradient(90deg,var(--or),#f3b61f);color:#08183a;box-shadow:0 10px 30px rgba(246,201,57,.3)}
.btn-ghost{border:1.5px solid var(--bord);background:rgba(255,255,255,.04)}

/* ── coquille de page ── */
.tt-nav{position:sticky;top:0;z-index:40;backdrop-filter:blur(12px);background:rgba(6,20,45,.72);border-bottom:1px solid var(--bord)}
.tt-nav .wrap{display:flex;align-items:center;justify-content:space-between;height:64px;gap:12px}
.tt-nav img{height:38px;display:block}
.tt-tete{padding:44px 0 26px;text-align:center}
.tt-tete h1{font-size:clamp(32px,4.6vw,54px);font-weight:800;margin:12px auto 12px;max-width:900px}
.tt-tete p{color:var(--gris);font-size:clamp(16px,1.5vw,19px);max-width:720px;margin:0 auto}
#film{padding:10px 0 50px}
.tt-cta{text-align:center;padding:40px 20px 60px}
.tt-cta .boite{padding:44px 20px;border-radius:30px;background:linear-gradient(120deg,rgba(47,107,255,.35),rgba(56,225,245,.18));border:1.5px solid rgba(56,225,245,.35)}
.tt-cta h2{font-size:clamp(26px,3.6vw,40px)} .tt-cta p{color:var(--gris);margin:10px auto 22px;max-width:560px}
.tt-video{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:16px}
footer.tt-pied{padding:30px 0 60px;text-align:center;color:var(--gris2);font-size:14px}
footer.tt-pied img{height:32px;opacity:.9;margin-bottom:8px}

/* ── le film ── */
.film{background:linear-gradient(160deg,rgba(16,42,96,.8),rgba(8,24,58,.9));border:1.5px solid var(--bord);border-radius:28px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.45)}
.film-top{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid var(--bord);gap:10px}
.film-top .dots{display:flex;gap:7px}.film-top .dots i{width:11px;height:11px;border-radius:50%;background:#ff6b6b}.film-top .dots i:nth-child(2){background:#f6c939}.film-top .dots i:nth-child(3){background:#34d399}
.film-top .live{font:700 12px Inter;letter-spacing:.14em;color:var(--cyan2);display:flex;align-items:center;gap:8px;text-transform:uppercase}
.film-top .live b{width:8px;height:8px;border-radius:50%;background:var(--rouge);animation:clig 1.2s infinite}
@keyframes clig{50%{opacity:.25}}
.film-body{display:block}
.stage{position:relative;background:radial-gradient(ellipse at 50% 55%,rgba(56,225,245,.08),transparent 70%)}
.stage svg{display:block;width:100%;height:auto;overflow:hidden}
.legende{padding:22px 24px;display:flex;flex-direction:column;justify-content:center}
.legende .num{font:800 58px/1 Sora;color:transparent;-webkit-text-stroke:1.5px rgba(154,243,255,.55)}
.legende h3{font-size:24px;margin:10px 0 4px}
.legende .tag{display:inline-block;margin-top:16px;font:700 13px Inter;padding:6px 12px;border-radius:30px;background:rgba(52,211,153,.12);color:var(--vert);border:1px solid rgba(52,211,153,.35);align-self:flex-start}
.legende .anim{animation:entre .6s ease both}
@keyframes entre{from{opacity:0;transform:translateY(14px)}}
.legende .etapes-l{list-style:none;margin-top:14px;display:grid;gap:7px;counter-reset:e}
.legende .etapes-l li{display:flex;align-items:center;gap:10px;font:600 14.5px Inter;color:var(--gris2);transition:color .3s}
.legende .etapes-l li:before{counter-increment:e;content:counter(e);flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font:800 12px Sora;border:1.5px solid rgba(148,190,255,.3);color:var(--gris2);transition:all .3s}
.legende .etapes-l li.cur{color:var(--blanc)}
.legende .etapes-l li.cur:before{background:var(--or);border-color:var(--or);color:#08183a;box-shadow:0 0 0 4px rgba(246,201,57,.2)}
.legende .etapes-l li.fait{color:var(--gris)}
.legende .etapes-l li.fait:before{content:"✓";background:rgba(52,211,153,.18);border-color:var(--vert);color:var(--vert)}
.chap{display:flex;gap:6px;padding:12px 16px;border-top:1px solid var(--bord);align-items:center}
.chap button.pp{width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.07);display:grid;place-items:center;flex:none}
.chap button.pp svg{width:18px;height:18px}
.chap .pills{flex:1;display:grid;gap:6px}
.pill{position:relative;overflow:hidden;border-radius:10px;background:rgba(255,255,255,.06);padding:9px 8px;font:600 13px Inter;color:var(--gris);text-align:center;white-space:nowrap;text-overflow:ellipsis}
.pill .fill{position:absolute;left:0;top:0;bottom:0;width:0;background:linear-gradient(90deg,rgba(56,225,245,.35),rgba(56,225,245,.15))}
.pill span{position:relative}
.pill.on{color:var(--blanc)} .pill.fait .fill{width:100%;background:rgba(56,225,245,.14)}
.soustitre{display:flex;align-items:flex-start;gap:12px;padding:12px 18px 14px;border-top:1px solid var(--bord);background:rgba(2,8,23,.55);position:relative;min-height:62px}
.soustitre .ic{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(56,225,245,.14);color:var(--cyan)}
.soustitre .ic svg{width:16px;height:16px}
.soustitre p{font:500 16.5px/1.45 Inter;color:#eaf2ff;animation:entre .45s both}
.soustitre .prog{position:absolute;left:0;bottom:0;height:3px;width:0;background:linear-gradient(90deg,var(--cyan),var(--or))}
.voix-btn{display:inline-flex;align-items:center;gap:8px;font:700 13px Inter;padding:7px 12px;border-radius:30px;border:1.5px solid rgba(56,225,245,.45);background:rgba(56,225,245,.1);color:var(--cyan2)}
.voix-btn svg{width:16px;height:16px} .voix-btn.on{background:var(--cyan);color:#06142d;border-color:var(--cyan)}

/* ── éléments des scènes ── */
.sc{opacity:0;transition:opacity .5s;pointer-events:none}
.sc.on{opacity:1}
.t-svg{font-family:Inter,sans-serif}
/* .b = élément révélé par une sous-étape. JAMAIS sur un <g transform="…"> : envelopper. */
.b{opacity:0;transform:translateY(12px) scale(.97);transform-box:fill-box;transform-origin:center;transition:opacity .55s ease,transform .7s cubic-bezier(.2,1.1,.3,1)}
.b.vis{opacity:1;transform:none}
@keyframes pop{from{opacity:0;transform:scale(.4)}}
@keyframes fade{from{opacity:0}}
/* boucles actives tant que la scène est affichée */
.sc.on .chaud{animation:chaud 1.1s ease-in-out infinite} @keyframes chaud{50%{opacity:.35}}
.sc.on .vague{animation:vague 1.6s ease-in-out infinite} @keyframes vague{0%{transform:translateY(0);opacity:0}30%{opacity:.8}100%{transform:translateY(-26px);opacity:0}}
.sc.on .tunnel{stroke-dasharray:10 10;animation:tunnel 1s linear infinite} @keyframes tunnel{to{stroke-dashoffset:-20}}
.sc.on .onde{transform-box:fill-box;transform-origin:center;animation:onde 2s ease-out infinite} @keyframes onde{from{transform:scale(.3);opacity:.9}to{transform:scale(1.6);opacity:0}}
.sc.on .battre{transform-box:fill-box;transform-origin:center;animation:battre 1.4s ease-in-out infinite} @keyframes battre{50%{transform:scale(1.07)}}
.sc.on .tourne{transform-box:fill-box;transform-origin:center;animation:tourneR 3s linear infinite} @keyframes tourneR{to{transform:rotate(360deg)}}
.sc.on .flotte{animation:flotte 3s ease-in-out infinite} @keyframes flotte{50%{transform:translateY(-6px)}}
.sc.on .chute{animation:chute 1.3s ease-in infinite} @keyframes chute{from{transform:translateY(0);opacity:1}to{transform:translateY(46px);opacity:0}}
/* animations jouées quand la sous-étape révèle l'élément */
.b.vis .tape{animation:tape 1.3s steps(18) both} .b.vis .tape2{animation:tape 1.3s 1.1s steps(18) both}
@keyframes tape{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
.b.vis .vol{animation:vol 2.4s .7s ease-in-out both} @keyframes vol{from{offset-distance:0%;opacity:1}88%{opacity:1}to{offset-distance:100%;opacity:0}}
.b.vis .barre{transform-box:fill-box;transform-origin:50% 100%;animation:grow 1.1s .3s cubic-bezier(.2,1,.3,1) both}
.b.vis .barre2{transform-box:fill-box;transform-origin:50% 100%;animation:grow 1.1s 1.2s cubic-bezier(.2,1,.3,1) both}
@keyframes grow{from{transform:scaleY(0)}}
.b.vis .apparait{animation:fade .5s both}
.b.vis .popin{transform-box:fill-box;transform-origin:center;animation:pop .5s cubic-bezier(.2,1.4,.4,1) both}
.b.vis .coupe{animation:coupe .6s .5s both} @keyframes coupe{from{stroke-dashoffset:70}}
.b.vis .bascule{animation:bascule .45s both} @keyframes bascule{from{transform:translateX(-22px)}}
.b.vis .appui{transform-box:fill-box;transform-origin:center;animation:appui .5s .4s both} @keyframes appui{50%{transform:scale(.92)}}
.b.vis .confetti{animation:confetti 2.6s ease-in both} @keyframes confetti{from{transform:translateY(-40px) rotate(0);opacity:0}15%{opacity:1}to{transform:translateY(330px) rotate(540deg);opacity:0}}
.b.vis .glisse{animation:glisse .75s cubic-bezier(.2,1,.3,1) both} @keyframes glisse{from{transform:translateX(70px);opacity:0}}
.b.vis .monte{animation:monte .7s cubic-bezier(.2,1,.3,1) both} @keyframes monte{from{transform:translateY(40px);opacity:0}}
.b.vis .remplit{transform-box:fill-box;transform-origin:0 50%;animation:remplit 9s .3s cubic-bezier(.3,0,.4,1) both} @keyframes remplit{from{transform:scaleX(0)}}
.sc.on .orbite{animation:orbite 3.2s linear infinite} @keyframes orbite{from{offset-distance:0%}to{offset-distance:100%}}
.dl1{animation-delay:.25s!important}.dl2{animation-delay:.6s!important}.dl3{animation-delay:.95s!important}.dl4{animation-delay:1.3s!important}.dl5{animation-delay:1.65s!important}.dl6{animation-delay:2s!important}.dl7{animation-delay:2.4s!important}.dl8{animation-delay:2.9s!important}
/* projecteur pédagogique */
#spotDim{transition:opacity .5s;pointer-events:none}
/* caméra (v2) : même durée et même courbe que le projecteur → le cadre reste collé à l'élément pendant le zoom */
#camera{transform-box:view-box;transform-origin:0 0;transition:transform .9s cubic-bezier(.45,0,.2,1)}
#spotHole,#spotRing{transition:x .9s cubic-bezier(.45,0,.2,1),y .9s cubic-bezier(.45,0,.2,1),width .9s cubic-bezier(.45,0,.2,1),height .9s cubic-bezier(.45,0,.2,1),opacity .4s}
#spotRing{stroke-dasharray:9 7;animation:marche 1s linear infinite;filter:drop-shadow(0 0 6px rgba(246,201,57,.7))} @keyframes marche{to{stroke-dashoffset:-16}}
#spotLbl{transition:transform .9s cubic-bezier(.45,0,.2,1),opacity .4s;filter:drop-shadow(0 4px 10px rgba(2,8,23,.5))}
#spotDim{transition:opacity .6s}

/* le doigt (v2) : champ clic:[x,y] d'une sous-étape */
#evDoigt{opacity:0;pointer-events:none;transition:opacity .35s}
#evDoigt.vu{opacity:1}
#evDoigt .d-corps{transform-box:fill-box;transform-origin:0 0;filter:drop-shadow(10px 16px 7px rgba(1,6,15,.45));transition:filter .2s}
#evDoigt.tape .d-corps{animation:dAppui .5s cubic-bezier(.3,0,.3,1)}
@keyframes dAppui{0%{transform:none;filter:drop-shadow(10px 16px 7px rgba(1,6,15,.45))}35%{transform:translate(2px,3px) scale(.9);filter:drop-shadow(3px 4px 2px rgba(1,6,15,.6))}100%{transform:none;filter:drop-shadow(10px 16px 7px rgba(1,6,15,.45))}}
#evDoigt .d-onde{fill:none;stroke:var(--or);stroke-width:3;opacity:0;transform-box:fill-box;transform-origin:center}
#evDoigt .d-onde.o2{stroke:#fff;stroke-width:2}
#evDoigt.tape .d-onde.o1{animation:dOnde .7s .12s ease-out}
#evDoigt.tape .d-onde.o2{animation:dOnde .8s .28s ease-out}
@keyframes dOnde{from{transform:scale(.3);opacity:.95}to{transform:scale(3.4);opacity:0}}
#evDoigt .d-eclat{stroke:#fde96a;stroke-width:3;stroke-linecap:round;opacity:0;stroke-dasharray:10;stroke-dashoffset:10}
#evDoigt.tape .d-eclat{animation:dEclat .55s .12s ease-out}
@keyframes dEclat{0%{opacity:1;stroke-dashoffset:10}60%{opacity:1;stroke-dashoffset:0}100%{opacity:0;stroke-dashoffset:-10}}
/* élément enfoncé par le doigt : champ appuie:'id' */
.presse{transform-box:fill-box;transform-origin:center;animation:presse .5s .1s cubic-bezier(.3,1.5,.5,1)}
@keyframes presse{0%{transform:none}30%{transform:scale(.9);filter:brightness(1.25)}100%{transform:none}}
.sc.on .iso-led{animation:led 1.6s ease-in-out infinite} .sc.on .iso-led:nth-of-type(2n){animation-delay:.5s}
@keyframes led{50%{opacity:.3}}
/* bouton musique */
.musique-btn{width:34px;height:34px;border-radius:50%;display:inline-grid;place-items:center;border:1.5px solid var(--bord);color:var(--gris2);margin-left:auto}
.musique-btn svg{width:15px;height:15px} .musique-btn.on{color:var(--or);border-color:rgba(246,201,57,.5);background:rgba(246,201,57,.1)}
.musique-btn.coupe{opacity:.55} .musique-btn.coupe svg{stroke-dasharray:2 3}
.film-top .voix-btn{margin-left:0}

@media (max-width:980px){ .legende .num{font-size:40px} }
@media (max-width:640px){
  .film-top .dots{display:none}
  .film-top .live{font-size:10.5px}
  .pill span{font-size:0}.pill span:before{content:attr(data-n);font-size:13px}
  .soustitre p{font-size:15px}
}
@media (prefers-reduced-motion:reduce){ *,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important} }

/* ── v2.1 (27/09/2026) : la scène prend toute la largeur ; les étapes passent dans un tiroir ── */
.outils-film{position:absolute;top:12px;right:12px;z-index:6;display:flex;gap:8px}
.outils-film button,.outils-film a{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:var(--blanc);
  background:rgba(6,20,45,.72);border:1.5px solid var(--bord);backdrop-filter:blur(8px);text-decoration:none;transition:background .2s,border-color .2s,transform .15s}
.outils-film button:hover,.outils-film a:hover{border-color:var(--cyan);background:rgba(13,35,80,.9)}
.outils-film button:active,.outils-film a:active{transform:scale(.93)}
.outils-film svg{width:19px;height:19px}
.outils-film .on{background:var(--or);color:#08183a;border-color:var(--or)}
.outils-film [hidden]{display:none}
.legende.tiroir{position:absolute;top:62px;right:12px;z-index:5;width:min(330px,calc(100% - 24px));max-height:calc(100% - 140px);overflow:auto;
  border-radius:20px;background:rgba(8,24,58,.94);border:1.5px solid var(--bord);box-shadow:0 20px 50px rgba(0,0,0,.5);backdrop-filter:blur(10px);
  opacity:0;transform:translateX(24px) scale(.97);pointer-events:none;transition:opacity .3s,transform .35s cubic-bezier(.2,1,.3,1)}
.stage.etapes-on .legende.tiroir{opacity:1;transform:none;pointer-events:auto}
.legende.tiroir .num{font-size:44px} .legende.tiroir h3{font-size:20px}
/* plein écran : le film occupe tout l'écran, la scène garde ses proportions */
.film.plein{position:fixed;inset:0;z-index:9999;border-radius:0;border:0;display:flex;flex-direction:column;background:var(--nuit)}
.film.plein .film-body{flex:1;min-height:0;display:flex}
.film.plein .stage{flex:1;min-height:0;display:flex;flex-direction:column}
.film.plein .stage svg{flex:1;min-height:0;height:100%}
.film.plein .soustitre p{font-size:clamp(17px,2vw,24px)}
@media (max-width:640px){ .outils-film{top:8px;right:8px;gap:6px} .outils-film button,.outils-film a{width:34px;height:34px;border-radius:10px} .outils-film svg{width:16px;height:16px} .legende.tiroir{top:50px} }

/* ── v2.2 (27/09/2026) : démarrage automatique + format téléphone en plein écran ── */
.titre-etape{display:none}
.demarrer{position:absolute;inset:0;z-index:8;display:grid;place-items:center;background:rgba(2,8,23,.55);backdrop-filter:blur(2px)}
.demarrer button{display:flex;flex-direction:column;align-items:center;gap:10px;color:#fff;cursor:pointer}
.demarrer i{width:92px;height:92px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--or),#f3b61f);color:#08183a;
  box-shadow:0 0 0 0 rgba(246,201,57,.6);animation:pulsation 1.8s ease-out infinite}
.demarrer i svg{width:40px;height:40px;margin-left:6px}
.demarrer b{font:800 clamp(18px,2.6vw,24px) Sora,Inter,sans-serif} .demarrer small{color:var(--gris);font-size:14px}
@keyframes pulsation{0%{box-shadow:0 0 0 0 rgba(246,201,57,.55)}100%{box-shadow:0 0 0 26px rgba(246,201,57,0)}}
.film.plein{height:100vh;height:100dvh}
/* Téléphone (portrait) en plein écran : titre de l'étape, scène pleine largeur, gros sous-titres, pastilles en bas */
@media (orientation:portrait), (max-width:640px){
  .film.plein .film-body{align-items:stretch}
  .film.plein .stage{justify-content:center}
  .film.plein .stage svg{flex:none;height:auto}
  .film.plein .titre-etape{display:block;text-align:center;padding:62px 18px 12px}
  .film.plein .titre-etape b{display:block;font:800 44px/1 Sora,Inter,sans-serif;color:transparent;-webkit-text-stroke:1.5px rgba(154,243,255,.6)}
  .film.plein .titre-etape span{display:block;margin-top:6px;font:800 21px/1.2 Sora,Inter,sans-serif;color:var(--blanc)}
  .film.plein .titre-etape.anim{animation:entre .6s ease both}
  .film.plein .soustitre{min-height:120px;padding:18px 20px}
  .film.plein .soustitre p{font-size:19px!important;line-height:1.45}
  .film.plein .chap{padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))}
}

/* ── v2.3 (27/09/2026) : vrai plein écran, comme un lecteur vidéo ──
 * Ordinateur / paysage : la scène couvre tout l'écran (le décor quadrillé se prolonge dans les marges),
 * sous-titres posés sur l'image, barre du haut et pastilles en surimpression, masquées après 3 s d'inactivité.
 * Téléphone (portrait) : format empilé ci-dessus (titre de l'étape, scène, gros sous-titres, pastilles). */
.film.plein{width:100vw;height:100vh;height:100dvh;background:#06142d}
.film:fullscreen{width:100vw;height:100vh}
.film.plein.grille .stage>svg{background-image:linear-gradient(rgba(154,243,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(154,243,255,.06) 1px,transparent 1px);
  background-size:var(--gs,32px) var(--gs,32px);background-position:var(--gx,0) var(--gy,0)}
@media (orientation:landscape) and (min-width:641px){
  .film.plein{display:block;background:radial-gradient(ellipse at 50% 55%,#0b2150,#06142d 65%,#040c1e)}
  .film.plein .film-body,.film.plein .stage{position:absolute;inset:0;display:block;height:auto;background:transparent}
  .film.plein .stage>svg{position:absolute;inset:0;width:100%;height:100%;flex:none}
  .film.plein .titre-etape{display:none}
  .film.plein .film-top{position:absolute;top:0;left:0;right:0;z-index:7;border:0;padding:14px 186px 30px 22px;
    background:linear-gradient(180deg,rgba(2,8,23,.78),rgba(2,8,23,0))}
  .film.plein .outils-film{top:14px;right:16px;z-index:8}
  .film.plein .legende.tiroir{top:68px;right:16px;max-height:calc(100% - 200px)}
  .film.plein .chap{position:absolute;left:0;right:0;bottom:0;z-index:7;border:0;padding:28px 22px calc(16px + env(safe-area-inset-bottom,0px));
    background:linear-gradient(0deg,rgba(2,8,23,.85),rgba(2,8,23,0))}
  .film.plein .soustitre{position:absolute;z-index:6;left:50%;transform:translateX(-50%);bottom:calc(var(--chapH,76px) + 10px);
    width:max-content;max-width:min(1100px,88%);min-height:0;border:0;border-radius:18px;padding:14px 22px 16px;align-items:center;overflow:hidden;
    background:rgba(2,8,23,.78);backdrop-filter:blur(6px);box-shadow:0 10px 40px rgba(0,0,0,.45);transition:bottom .45s cubic-bezier(.2,1,.3,1)}
  .film.plein .soustitre p{font-size:clamp(18px,1.6vw,28px)!important;line-height:1.4;text-shadow:0 1px 3px rgba(0,0,0,.6)}
  .film.plein .soustitre .ic{width:34px;height:34px}
  /* inactivité : on ne garde que la scène et les sous-titres */
  .film.plein .film-top,.film.plein .chap,.film.plein .outils-film{transition:opacity .45s,transform .45s}
  .film.plein.calme .film-top{opacity:0;transform:translateY(-12px);pointer-events:none}
  .film.plein.calme .chap{opacity:0;transform:translateY(12px);pointer-events:none}
  .film.plein.calme .outils-film{opacity:0;pointer-events:none}
  .film.plein.calme .soustitre{bottom:calc(26px + env(safe-area-inset-bottom,0px))}
  .film.plein.calme,.film.plein.calme *{cursor:none!important}
}
/* téléphone en paysage (petite hauteur) : tout plus compact */
@media (orientation:landscape) and (min-width:641px) and (max-height:500px){
  .film.plein .film-top{padding:8px 150px 18px 14px}
  .film.plein .outils-film{top:8px;right:10px}
  .film.plein .chap{padding:16px 12px calc(8px + env(safe-area-inset-bottom,0px))}
  .film.plein .soustitre{padding:8px 14px;max-width:92%}
  .film.plein .soustitre p{font-size:15px!important}
  .film.plein .soustitre .ic{display:none}
}
/* téléphone en portrait : le film remplit exactement l'écran, la scène au centre */
@media (orientation:portrait), (max-width:640px){
  .film.plein .film-body{flex:1;min-height:0}
  .film.plein .stage{height:100%;overflow:hidden}
  .film.plein .stage>svg{flex:1;min-height:0;width:100%;height:100%}
  .film.plein .titre-etape{padding:58px 18px 4px;flex:none}
  .film.plein .soustitre{flex:none;min-height:150px}
  .film.plein .film-top{padding:calc(10px + env(safe-area-inset-top,0px)) 12px 10px}
  .film.plein .film-top .live{font-size:10.5px;letter-spacing:.1em}
  .film.plein .film-top .voix-btn span{white-space:nowrap}
}

/* ════════════════════════════════════════════════════════════════════════════
 *  TUTORIELS v3 (29/09/2026) — améliorations reprises de la compétence /edu :
 *  animations de tracé/défilement, (questions : écartées du standard), cartes d'introduction / transition /
 *  conclusion, sous-titres discrets sur une ligne + bouton CC. Couleurs et polices EVISIONS.
 * ════════════════════════════════════════════════════════════════════════════ */
/* tracé à la craie : <path class="trace" pathLength="1"> se dessine quand la sous-étape le révèle */
.b.vis .trace{stroke-dasharray:1;stroke-dashoffset:1;animation:traceCraie 1.4s .25s cubic-bezier(.45,0,.3,1) forwards}
.b.vis .trace.lent{animation-duration:2.6s}
@keyframes traceCraie{to{stroke-dashoffset:0}}
/* défilement en boucle le long d'un offset-path ouvert (globules dans un vaisseau…) ; durée via style="animation-duration:…" */
.sc.on .defile{animation:defile 6s linear infinite} @keyframes defile{from{offset-distance:0%}to{offset-distance:100%}}
.sc.on .tremble{transform-box:fill-box;transform-origin:center;animation:tremble .35s ease-in-out infinite} @keyframes tremble{25%{transform:translateX(-1.5px)}75%{transform:translateX(1.5px)}}
.b.vis .migre{animation:migre 2.4s .3s cubic-bezier(.3,0,.2,1) both} @keyframes migre{from{transform:translateX(var(--depuis,-200px));opacity:.2}}

/* ── Question « À toi ! » (beat.q) : carte posée sur la scène ── */
.quiz{position:absolute;z-index:7;left:50%;top:50%;transform:translate(-50%,-54%);width:min(600px,92%);
  padding:18px 20px 16px;border-radius:22px;background:rgba(6,20,45,.96);border:2px solid var(--or);
  box-shadow:0 24px 70px rgba(0,0,0,.55),0 0 0 6px rgba(246,201,57,.08);animation:qIn .45s cubic-bezier(.2,1.3,.4,1) both}
.quiz.sort{animation:qOut .4s ease both}
@keyframes qIn{from{opacity:0;transform:translate(-50%,-44%) scale(.94)}} @keyframes qOut{to{opacity:0;transform:translate(-50%,-60%) scale(.96)}}
.stage.q-on .soustitre{opacity:0;transition:opacity .3s}
.stage .soustitre{transition:opacity .3s}
.stage.q-on #scene{filter:brightness(.72);transition:filter .4s}
.stage #scene{transition:filter .4s}
.q-tete{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.q-badge{font:800 13px Inter;letter-spacing:.14em;text-transform:uppercase;color:#08183a;background:var(--or);padding:6px 12px;border-radius:30px}
.q-aide{font:600 13.5px Inter;color:var(--gris);flex:1}
.q-chrono{position:relative;width:40px;height:40px;flex:none}
.q-chrono svg{width:100%;height:100%;transform:rotate(-90deg)}
.q-chrono circle{fill:none;stroke:rgba(255,255,255,.12);stroke-width:4}
.q-chrono .q-arc{stroke:var(--or);stroke-dasharray:1;stroke-dashoffset:0;stroke-linecap:round}
.q-chrono.go .q-arc{animation:qArc var(--d,6s) linear forwards} @keyframes qArc{to{stroke-dashoffset:1}}
.q-chrono b{position:absolute;inset:0;display:grid;place-items:center;font:800 15px Inter;color:var(--or)}
.q-texte{font:700 clamp(17px,2vw,22px)/1.35 Inter;color:var(--blanc);margin:4px 0 14px}
.q-choix{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.q-c{display:flex;align-items:center;gap:12px;text-align:left;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.05);border:1.5px solid var(--bord);
  font:700 clamp(15px,1.7vw,19px) Inter;color:var(--blanc);transition:background .2s,border-color .2s,transform .12s}
.q-c:hover:not(:disabled){border-color:var(--cyan);background:rgba(56,225,245,.1)} .q-c:active:not(:disabled){transform:scale(.97)}
.q-c i{flex:none;width:28px;height:28px;border-radius:9px;display:grid;place-items:center;font:800 13px Inter;font-style:normal;background:rgba(255,255,255,.08);color:var(--gris)}
.q-c:disabled{cursor:default;opacity:.55}
.q-c.juste{opacity:1;background:rgba(52,211,153,.18);border-color:var(--vert);animation:qJuste .6s cubic-bezier(.2,1.5,.4,1)}
.q-c.juste i{background:var(--vert);color:#08183a}
.q-c.faux{opacity:1;background:rgba(255,107,107,.15);border-color:var(--rouge);animation:tremble .3s 2}
.q-c.faux i{background:var(--rouge);color:#08183a}
@keyframes qJuste{40%{transform:scale(1.05)}}
.quiz.gagne{border-color:var(--vert)} .quiz.gagne .q-aide{color:var(--vert)} .quiz.rate .q-aide{color:var(--rouge)} .quiz.auto .q-aide,.quiz.vu .q-aide{color:var(--or)}
.q-pied{display:flex;justify-content:center;margin-top:12px;min-height:20px}
.q-voir{font:600 13.5px Inter;color:var(--gris);text-decoration:underline;text-underline-offset:3px}
@media (max-width:640px){ .quiz{padding:14px 14px 12px;border-radius:18px} .q-choix{gap:8px} .q-c{padding:10px 11px} }
.film.plein .quiz{width:min(760px,86%)}
.film.plein .q-texte{font-size:clamp(20px,2.4vw,32px)} .film.plein .q-c{font-size:clamp(17px,2vw,26px);padding:16px 18px}

/* carte de question sur le côté (q.pos) : la scène reste lisible derrière */
.quiz.pos-gauche,.quiz.pos-droite{width:min(360px,40%);padding:14px 14px 12px}
.quiz.pos-gauche{left:2%;transform:translate(0,-50%)} .quiz.pos-droite{left:auto;right:2%;transform:translate(0,-50%)}
.quiz.pos-gauche,.quiz.pos-droite{animation-name:qInL} .quiz.pos-gauche.sort,.quiz.pos-droite.sort{animation-name:qOutL}
@keyframes qInL{from{opacity:0;transform:translate(0,-44%) scale(.94)}} @keyframes qOutL{to{opacity:0;transform:translate(0,-56%) scale(.96)}}
.quiz.pos-gauche .q-choix,.quiz.pos-droite .q-choix{grid-template-columns:1fr}
.quiz.pos-gauche .q-texte,.quiz.pos-droite .q-texte{font-size:clamp(15px,1.6vw,19px)}
.stage.q-on:has(.quiz.pos-gauche) #scene,.stage.q-on:has(.quiz.pos-droite) #scene{filter:none}
.film.plein .quiz.pos-gauche,.film.plein .quiz.pos-droite{width:min(460px,38%)}
/* téléphone en plein écran (portrait) et vidéo verticale : la carte se pose SOUS la scène, à la place des sous-titres */
@media (orientation:portrait), (max-width:640px){
  .film.plein .quiz,.film.plein .quiz.pos-gauche,.film.plein .quiz.pos-droite{top:auto;bottom:calc(var(--chapH,70px) + 8px);left:50%;right:auto;width:94%;transform:translateX(-50%);animation-name:qInB}
  .film.plein .quiz.sort{animation-name:qOutB}
  .film.plein .quiz .q-choix{grid-template-columns:1fr 1fr}
  .film.plein .stage.q-on #scene{filter:none}
}
@keyframes qInB{from{opacity:0;transform:translate(-50%,20px)}} @keyframes qOutB{to{opacity:0;transform:translate(-50%,20px)}}

/* ════════════════════════════════════════════════════════════════════════════
 *  TUTORIELS v3 (29/09/2026) — introduction, transitions entre étapes, conclusion (repris de /edu)
 *  Cartes dessinées DANS la scène (foreignObject 800×480) : mêmes proportions partout, vidéos comprises.
 *  Bas de carte laissé libre (≈ 70 px) : c'est là que se posent les sous-titres en plein écran.
 * ════════════════════════════════════════════════════════════════════════════ */
#evCarte{opacity:0;pointer-events:none;transition:opacity .55s ease}
#evCarte.on{opacity:1;pointer-events:auto}
.carte-film{width:800px;height:480px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  text-align:center;font-family:Inter,system-ui,sans-serif;color:#f4f8ff;padding:26px 70px 74px}
.carte-film *{box-sizing:border-box;margin:0}
#evCarte.on .carte-film>*{animation:cfIn .7s cubic-bezier(.2,1,.3,1) both}
@keyframes cfIn{from{opacity:0;transform:translateY(16px)}}
/* introduction */
.c-intro{background:radial-gradient(520px 320px at 85% 0%,rgba(246,201,57,.13),transparent 70%),radial-gradient(520px 380px at 0% 100%,rgba(56,225,245,.14),transparent 70%),linear-gradient(170deg,#0a1d45,#06142d 60%,#040c1e)}
.c-intro .ci-logo{width:74px;height:74px}.c-intro .ci-logo svg{width:100%;height:100%;display:block}
#evCarte.on .c-intro .ci-logo{animation:ciLogo .9s cubic-bezier(.2,1.5,.4,1) both}
@keyframes ciLogo{from{opacity:0;transform:scale(.3) rotate(-25deg)}}
.c-intro .ci-marque{font-weight:800;font-size:13px;letter-spacing:.34em;color:#f4f8ff}
.ci-bandeau{display:inline-block;font-weight:800;font-size:12px;letter-spacing:.14em;color:#08183a;background:#f6c939;border-radius:30px;padding:5px 14px}
.c-intro .ci-titre{font-size:33px;font-weight:800;line-height:1.12;letter-spacing:-.02em;max-width:640px}
.carte-film .o{color:#f6c939}.carte-film .c{color:#38e1f5}
.c-intro .ci-question{font-size:16.5px;font-weight:600;color:#9af3ff;max-width:600px}
.c-intro .ci-etapes{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-top:4px;max-width:680px}
.c-intro .ci-etapes span{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;padding:5px 10px 5px 5px;border-radius:14px;background:rgba(56,225,245,.1);border:1px solid rgba(56,225,245,.35);color:#9af3ff}
.c-intro .ci-etapes b{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#38e1f5;color:#08183a;font-size:10.5px}
#evCarte.on .c-intro>.ci-marque{animation-delay:.5s}#evCarte.on .c-intro>.ci-bandeau{animation-delay:.8s}#evCarte.on .c-intro>.ci-titre{animation-delay:1.1s}
#evCarte.on .c-intro>.ci-question{animation-delay:1.8s}#evCarte.on .c-intro>.ci-etapes{animation:none}
#evCarte.on .c-intro .ci-etapes span{animation:cfIn .6s cubic-bezier(.2,1,.3,1) both}
/* transition entre étapes : la scène de l'étape apparaît derrière le voile */
.c-lien{background:radial-gradient(ellipse at 50% 45%,rgba(6,20,45,.78),rgba(4,12,30,.94) 75%)}
.c-lien .cl-num{font-size:92px;font-weight:800;line-height:1;color:transparent;-webkit-text-stroke:2px rgba(246,201,57,.8)}
#evCarte.on .c-lien .cl-num{animation:clNum .8s cubic-bezier(.2,1.4,.4,1) both}
@keyframes clNum{from{opacity:0;transform:scale(1.5)}}
.c-lien .cl-sur{font-size:12.5px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:#9af3ff}
.c-lien .cl-titre{font-size:34px;font-weight:800;line-height:1.12;letter-spacing:-.02em;max-width:640px}
.c-lien .cl-accroche{font-size:17px;font-weight:600;color:#f6c939;max-width:600px}
.c-lien .cl-points{display:flex;gap:8px;margin-top:6px}
.c-lien .cl-points i{width:34px;height:6px;border-radius:4px;background:rgba(244,248,255,.16)}
.c-lien .cl-points i.fait{background:#34d399}.c-lien .cl-points i.cur{background:#f6c939;box-shadow:0 0 12px rgba(246,201,57,.6)}
#evCarte.on .c-lien>.cl-sur{animation-delay:.25s}#evCarte.on .c-lien>.cl-titre{animation-delay:.45s}#evCarte.on .c-lien>.cl-accroche{animation-delay:.9s}#evCarte.on .c-lien>.cl-points{animation-delay:1.1s}
/* conclusion */
.c-fin{background:radial-gradient(520px 320px at 15% 0%,rgba(52,211,153,.13),transparent 70%),radial-gradient(520px 380px at 100% 100%,rgba(246,201,57,.12),transparent 70%),linear-gradient(170deg,#0a1d45,#06142d 60%,#040c1e)}
.c-fin .cf-titre{font-size:30px;font-weight:800;line-height:1.12;letter-spacing:-.02em;max-width:660px}
.c-fin .cf-points{list-style:none;display:grid;gap:8px;text-align:left;max-width:600px;margin-top:4px}
.c-fin .cf-points li{display:flex;gap:10px;align-items:flex-start;font-size:15px;font-weight:600;line-height:1.35;animation:cfIn .6s both}
.c-fin .cf-points i{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#34d399;color:#08183a;font-style:normal;font-weight:900;font-size:12px;animation:ciCoche .5s cubic-bezier(.2,1.6,.4,1) both}
@keyframes ciCoche{from{transform:scale(0)}}
#evCarte.on .c-fin>.cf-points{animation:none}
.c-fin .cf-actions{display:flex;gap:10px;margin-top:8px}
.c-fin .cf-btn{font:700 14px Inter,sans-serif;padding:10px 16px;border-radius:12px;border:1.5px solid rgba(244,248,255,.25);background:rgba(255,255,255,.06);color:#f4f8ff;text-decoration:none;cursor:pointer}
.c-fin .cf-btn.or{background:#f6c939;border-color:#f6c939;color:#08183a}
.c-fin .cf-url{font-size:20px;font-weight:800;color:#38e1f5;border:1.5px solid rgba(56,225,245,.5);border-radius:14px;padding:8px 16px;margin-top:6px}
/* entrée des scènes : léger recul de caméra, plus doux qu'un simple fondu */
.sc.on{animation:scEntre .9s cubic-bezier(.2,1,.3,1) both;transform-origin:400px 240px}
@keyframes scEntre{from{opacity:0;transform:scale(1.035)}}
/* pendant les cartes : pas de projecteur ni d'outils inutiles */
.film.ph-intro .pill,.film.ph-fin .pill,.film.ph-fini .pill{opacity:.85}

/* ════════════════════════════════════════════════════════════════════════════
 *  TUTORIELS v3 (29/09/2026) — sous-titres DISCRETS (repris de /edu) : une ligne, petite, posée sur l'image,
 *  qui défile au rythme de la voix si la phrase est longue ; bouton « CC » pour les cacher.
 *  Pas de sous-titres sur l'introduction, les transitions et la conclusion (les cartes parlent d'elles-mêmes).
 * ════════════════════════════════════════════════════════════════════════════ */
.stage .soustitre,.film.plein .stage .soustitre{position:absolute!important;z-index:6;left:50%!important;right:auto!important;top:auto!important;
  bottom:12px!important;transform:translateX(-50%)!important;width:auto!important;max-width:min(760px,74%)!important;min-height:0!important;
  display:block!important;padding:6px 16px!important;border:0!important;border-radius:20px!important;overflow:hidden!important;
  background:rgba(2,8,23,.62)!important;backdrop-filter:blur(4px);box-shadow:none!important;
  transition:opacity .35s,bottom .45s cubic-bezier(.2,1,.3,1)!important}
.stage .soustitre .ic,.stage .soustitre .prog{display:none!important}
.stage .soustitre p,.film.plein .stage .soustitre p{display:inline-block;white-space:nowrap;font:500 14px/1.35 Inter,system-ui,sans-serif!important;
  color:#f4f8ff;text-shadow:0 1px 2px rgba(0,0,0,.6);animation:stFondu .35s both!important;transition:transform .25s linear;will-change:transform}
.stage .soustitre.long{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 16px,#000 calc(100% - 22px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 16px,#000 calc(100% - 22px),transparent 100%)}
@keyframes stFondu{from{opacity:0}}
.film.plein .stage .soustitre p{font-size:clamp(14px,1.25vw,19px)!important}
.film.plein.calme .stage .soustitre{bottom:calc(14px + env(safe-area-inset-bottom,0px))!important}
@media (orientation:landscape) and (min-width:641px){ .film.plein:not(.calme) .stage .soustitre{bottom:calc(var(--chapH,76px) + 8px)!important} }
@media (orientation:portrait), (max-width:640px){
  .stage .soustitre,.film.plein .stage .soustitre{max-width:90%!important;bottom:8px!important;padding:5px 12px!important}
  .stage .soustitre p,.film.plein .stage .soustitre p{font-size:13px!important}
  .film.plein .stage .soustitre{position:relative!important;left:auto!important;transform:none!important;margin:8px auto 0!important;bottom:auto!important}
}
/* pas de sous-titres sur les cartes (intro, transitions, conclusion), ni quand la personne les a cachés */
.film.ph-intro .soustitre,.film.ph-lien .soustitre,.film.ph-fin .soustitre,.film.ph-fini .soustitre,.film.st-off .soustitre{opacity:0!important;pointer-events:none}
/* bouton CC : discret quand actif (contour), barré quand coupé */
.outils-film .cc.on{background:rgba(6,20,45,.72);color:var(--or);border-color:rgba(246,201,57,.55)}
.outils-film .cc:not(.on){opacity:.75} .outils-film .cc:not(.on) svg{stroke-dasharray:3 2}

/* titres des cartes en Sora (identité EVISIONS) ; garanties de la conclusion (vidéo) */
.carte-film .ci-titre,.carte-film .cl-titre,.carte-film .cf-titre,.carte-film .cl-num,.c-intro .ci-marque{font-family:Sora,Inter,sans-serif}
.c-intro .ci-logo{width:84px;height:84px}
.c-fin .cf-gar{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:4px}
.c-fin .cf-gar span{font-size:13px;font-weight:700;padding:6px 12px;border-radius:12px;background:rgba(52,211,153,.12);border:1px solid rgba(52,211,153,.4);color:#34d399}
