/* ═══════════════════════════════════════════════════════════════════════
   SOSIDE SCHOOL — moteur de présentation
   Toile fixe 1600×900 mise à l'échelle de l'écran ; diapositives, étapes
   (fragments), animations d'entrée, vue d'ensemble, notes, plein écran.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --blue-300: #7cc0ff; --blue-400: #40a2ff; --blue-500: #1a7cf0; --blue-600: #0052d6; --blue-700: #003fa8; --blue-900: #00266e;
  --yellow: #ffcc00; --red: #e5383b; --green: #18a058;
  --bg: #070d18; --panel: #0f1a2d; --panel-2: #13213a; --line: #22324f;
  --text: #eef3fb; --soft: #a9b7cf; --mute: #6f7f9a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--blue-300); }
button { font: inherit; }

/* ── Fond animé ─────────────────────────────────────────────────────── */
.bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.bg .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; transition: transform 1.6s var(--ease), background 1.6s; }
.bg .orb--1 { width: 60vw; height: 60vw; background: var(--blue-600); top: -30vw; right: -20vw; transform: translate(var(--ox, 0), var(--oy, 0)); }
.bg .orb--2 { width: 40vw; height: 40vw; background: var(--yellow); bottom: -25vw; left: -15vw; opacity: 0.14; transform: translate(calc(var(--ox, 0) * -1), 0); }
.bg .orb--3 { width: 34vw; height: 34vw; background: var(--blue-400); top: 40%; left: 40%; opacity: 0.12; transform: translate(0, var(--oy, 0)); }
.bg .grid {
  position: absolute; inset: -2px;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

/* ── Toile et diapositives ──────────────────────────────────────────── */
.stage { position: fixed; inset: 0; display: grid; place-items: center; z-index: 1; perspective: 2000px; }
.deck { position: relative; width: 1600px; height: 900px; flex: none; transform-origin: center center; }
/* Toile encadrée (hors plein écran) : un écran posé au centre, avec ses marges. */
.stage { box-sizing: border-box; }
body.is-framed .deck {
  border-radius: 36px; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 0%, rgba(26, 124, 240, 0.28), transparent 60%),
              radial-gradient(80% 70% at 0% 100%, rgba(255, 204, 0, 0.10), transparent 60%),
              linear-gradient(180deg, #0c1628, #08101e);
  box-shadow: 0 0 0 1px rgba(124, 192, 255, 0.16), 0 60px 120px -40px rgba(0, 0, 0, 0.85), 0 20px 50px -20px rgba(0, 82, 214, 0.35);
}
body.is-framed .bg .orb { opacity: 0.22; }
body.is-framed .dots { right: max(10px, calc(var(--frame-x, 24px) / 2 - 5px)); }
.slide {
  position: absolute; inset: 0; padding: 80px 100px; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(120px) scale(0.98);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), visibility 0s linear 0.9s, filter 0.7s;
}
.slide.is-past { transform: translateX(-120px) scale(0.98); }
.slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity 0.7s var(--ease) 0.1s, transform 0.9s var(--ease), visibility 0s, filter 0.7s; }
.slide[data-transition="zoom"]:not(.is-active) { transform: scale(1.12); filter: blur(8px); }
.slide[data-transition="zoom"].is-past { transform: scale(0.88); }
.slide[data-transition="up"]:not(.is-active) { transform: translateY(120px); }
.slide[data-transition="up"].is-past { transform: translateY(-120px); }
.slide[data-transition="flip"]:not(.is-active) { transform: rotateY(-35deg) translateZ(-200px); transform-origin: left center; }
.slide[data-transition="flip"].is-past { transform: rotateY(35deg) translateZ(-200px); transform-origin: right center; }
.slide[data-transition="fade"]:not(.is-active) { transform: none; }

/* Animations d'entrée des éléments : data-a="up|down|left|right|zoom|blur|pop|flip" */
.slide [data-a] { opacity: 0; transition: opacity 0.3s, transform 0.3s, filter 0.3s; }
.slide [data-a="up"] { transform: translateY(50px); }
.slide [data-a="down"] { transform: translateY(-50px); }
.slide [data-a="left"] { transform: translateX(-70px); }
.slide [data-a="right"] { transform: translateX(70px); }
.slide [data-a="zoom"] { transform: scale(0.85); }
.slide [data-a="pop"] { transform: scale(0.4); }
.slide [data-a="blur"] { filter: blur(18px); transform: scale(1.05); }
.slide [data-a="flip"] { transform: perspective(1200px) rotateX(35deg) translateY(40px); transform-origin: bottom; }
.slide.is-active [data-a] {
  opacity: 1; transform: none; filter: none;
  transition: opacity 0.9s var(--ease), transform 1s var(--ease), filter 0.9s var(--ease);
  transition-delay: calc(var(--d, 0s) + 0.25s);
}
.slide.is-active [data-a="pop"] { transition-timing-function: ease, cubic-bezier(0.34, 1.56, 0.64, 1), ease; }

/* Étapes (fragments) révélées une à une */
.slide .f { opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.slide .f.f--zoom { transform: scale(0.6); }
.slide .f.f--left { transform: translateX(-40px); }
.slide .f.is-shown { opacity: 1; transform: none; }
.slide .f.f--dim.is-shown ~ .f--dim.is-shown, .slide .f.is-faded { opacity: 0.35; }

/* ── Typographie ─────────────────────────────────────────────────────── */
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 20px; }
.kicker::before { content: ""; width: 34px; height: 4px; border-radius: 4px; background: var(--yellow); }
.h-xl { font-size: 104px; line-height: 1; font-weight: 850; letter-spacing: -0.035em; margin: 0; }
.h-l { font-size: 68px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 24px; }
.h-m { font-size: 48px; line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 18px; }
.lead { font-size: 28px; line-height: 1.45; color: var(--soft); margin: 0; max-width: 1100px; }
.small { font-size: 21px; color: var(--soft); line-height: 1.5; }
.grad { background: linear-gradient(100deg, #8fd0ff, var(--blue-400) 55%, #2f7dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.yellow { color: var(--yellow); }
.row { display: flex; gap: 48px; align-items: center; }
.col { flex: 1; min-width: 0; }
.center { text-align: center; align-items: center; }

/* ── Listes et cartes ───────────────────────────────────────────────── */
.points { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; }
.points li { display: flex; gap: 18px; align-items: flex-start; font-size: 25px; color: var(--soft); line-height: 1.4; }
.points li b { color: var(--text); }
.points li::before { content: ""; flex: none; width: 30px; height: 30px; margin-top: 2px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 50px; }
.tile { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 26px; padding: 34px 30px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.tile .ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(160deg, var(--blue-400), var(--blue-600)); }
.tile .ico svg { width: 32px; height: 32px; color: #fff; }
.tile .ico--y { background: linear-gradient(160deg, #ffd84d, #f0a800); } .tile .ico--y svg { color: #1b1300; }
.tile .ico--r { background: linear-gradient(160deg, #ff6b6e, #c41f22); }
.tile .ico--g { background: linear-gradient(160deg, #3dd68c, #128a4a); }
.tile h3 { font-size: 28px; margin: 0 0 10px; letter-spacing: -0.01em; }
.tile p { font-size: 20px; color: var(--soft); margin: 0; line-height: 1.45; }
.tile .strike { position: relative; display: inline-block; }

/* ── Cadres d'appareil ──────────────────────────────────────────────── */
.win { position: relative; border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid #2a3b5c; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255,255,255,.03); }
.win__bar { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; background: #0c1526; border-bottom: 1px solid #22324f; font-size: 15px; color: var(--mute); font-weight: 600; }
.win__bar i { width: 13px; height: 13px; border-radius: 50%; background: #ff5f57; } .win__bar i:nth-child(2) { background: #febc2e; } .win__bar i:nth-child(3) { background: #28c840; margin-right: 10px; }
.win__screen { position: relative; aspect-ratio: 1366 / 820; overflow: hidden; background: #f4f5f8; }
.win__screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.phone { position: relative; border-radius: 46px; padding: 12px; background: #05070c; border: 2px solid #2a3344; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9); }
.phone__screen { position: relative; aspect-ratio: 390 / 844; border-radius: 36px; overflow: hidden; background: #f4f5f8; }
.phone__screen::before { content: ""; position: absolute; z-index: 3; top: 10px; left: 50%; width: 34%; height: 24px; transform: translateX(-50%); background: #05070c; border-radius: 14px; }
.phone__screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Lent zoom « Ken Burns » sur une capture */
.slide.is-active .kb > img { animation: kenburns 14s ease-in-out infinite alternate; transform-origin: 30% 20%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -1%); } }

/* Points d'intérêt sur une capture */
.hotspot { position: absolute; z-index: 4; transform: translate(-50%, -50%); }
.hotspot .ring { position: relative; display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 6px rgba(255, 204, 0, 0.3); }
.hotspot .ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--yellow); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(0.8); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.hotspot .label {
  position: absolute; left: 44px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  background: #0b1424; color: #fff; border: 1px solid #2a3b5c; padding: 12px 18px; border-radius: 14px; font-size: 19px; font-weight: 600;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}
.hotspot .label small { display: block; font-weight: 500; color: var(--soft); font-size: 16px; }
.hotspot--left .label { left: auto; right: 44px; }
.hotspot--below .label { left: 50%; top: 44px; transform: translateX(-50%); }

/* Curseur animé */
.cursor { position: absolute; z-index: 6; left: 0; top: 0; width: 34px; height: 34px; pointer-events: none; opacity: 0; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.cursor svg { width: 100%; height: 100%; }
.cursor .click { position: absolute; left: -16px; top: -16px; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--blue-400); opacity: 0; }
.cursor.is-clicking .click { animation: clickfx 0.6s ease-out; }
@keyframes clickfx { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* Défilement de captures (assistants) */
.cycle { position: relative; }
.cycle-item { position: absolute; inset: 0; opacity: 0; transform: translateX(40px) scale(0.98); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.cycle-item.is-on { opacity: 1; transform: none; }
.cycle-item.is-off { opacity: 0; transform: translateX(-40px) scale(0.98); }
.stepper { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; counter-reset: s; }
.stepper li { counter-increment: s; display: flex; align-items: center; gap: 18px; font-size: 25px; color: var(--mute); transition: color 0.4s; }
.stepper li::before { content: counter(s); display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 800; transition: background 0.4s, color 0.4s, transform 0.4s var(--ease); }
.stepper li.is-on { color: var(--text); }
.stepper li.is-on::before { background: var(--yellow); color: #1b1300; border-color: var(--yellow); transform: scale(1.1); }
.stepper li.is-done::before { background: var(--green); color: #fff; border-color: var(--green); content: "✓"; }

/* Éventail de captures */
.fan { position: relative; height: 620px; }
.fan > * { position: absolute; width: 690px; transition: transform 1.1s var(--ease), opacity 0.8s; }
.slide:not(.is-active) .fan > * { transform: none !important; opacity: 0; }
.slide.is-active .fan > :nth-child(1) { transition-delay: 0.3s; }
.slide.is-active .fan > :nth-child(2) { transition-delay: 0.5s; }
.slide.is-active .fan > :nth-child(3) { transition-delay: 0.7s; }

/* Orbite des modules */
.orbit { position: relative; width: 640px; height: 640px; margin: 0 auto; }
.orbit__core { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; transform: translate(-50%, -50%); filter: drop-shadow(0 30px 60px rgba(0, 82, 214, 0.6)); }
.orbit__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(124, 192, 255, 0.25); animation: spin 60s linear infinite; }
.orbit__ring--2 { inset: 90px; animation-duration: 40s; animation-direction: reverse; }
.orbit__item { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.orbit__item > span { position: absolute; transform: translate(-50%, -50%); }
.orbit__item > span > b {
  display: block; white-space: nowrap; padding: 12px 20px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); font-size: 19px; font-weight: 700; box-shadow: 0 16px 30px -10px rgba(0,0,0,.6);
  animation: spin 50s linear infinite reverse;
}
.orbit__spin { position: absolute; inset: 0; animation: spin 50s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Monnaie */
.fxbig { display: flex; align-items: center; gap: 30px; margin-top: 36px; }
.fxbig .val { font-size: 64px; font-weight: 850; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fxbig .arrow { font-size: 42px; color: var(--yellow); animation: swap 2.4s ease-in-out infinite; }
@keyframes swap { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }

/* Graphique à barres */
.bars { display: flex; align-items: flex-end; gap: 18px; height: 300px; padding: 0 6px; border-bottom: 2px solid var(--line); }
.bars i { flex: 1; height: var(--h); border-radius: 10px 10px 0 0; background: linear-gradient(180deg, var(--blue-400), var(--blue-600)); transform: scaleY(0); transform-origin: bottom; transition: transform 1.2s var(--ease); position: relative; }
.bars i:nth-child(even) { background: linear-gradient(180deg, #ffe066, #f0a800); }
.slide.is-active .bars i { transform: scaleY(1); }
.bars i b { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 18px; color: var(--soft); }
.bar-labels { display: flex; gap: 18px; padding: 10px 6px 0; } .bar-labels span { flex: 1; text-align: center; font-size: 16px; color: var(--mute); }

/* Flux de demande de fonds */
.flow { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.flow .node { padding: 18px 24px; border-radius: 18px; background: var(--panel-2); border: 1px solid var(--line); font-size: 22px; font-weight: 700; text-align: center; }
.flow .node small { display: block; font-size: 16px; color: var(--soft); font-weight: 500; }
.flow .link { flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue-400) 50%, transparent 50%) 0 0 / 24px 4px repeat-x; animation: dash 1s linear infinite; min-width: 40px; }
@keyframes dash { to { background-position: 24px 0; } }

/* Schémas SVG animés */
.svg-flow { stroke-dasharray: 10 12; animation: flowdash 1.2s linear infinite; }
@keyframes flowdash { to { stroke-dashoffset: -44; } }
.svg-draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
.slide.is-active .svg-draw { animation: draw 1.6s var(--ease) forwards; animation-delay: var(--d, 0.4s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.packet { offset-rotate: 0deg; animation: travel 3s var(--ease) infinite; }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.netstate { animation: netblink 6s steps(1) infinite; }
.netstate--on { animation-delay: -3s; }
@keyframes netblink { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
.pulse-ring { transform-box: fill-box; transform-origin: center; animation: pr 2.4s ease-out infinite; }
@keyframes pr { from { transform: scale(0.7); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }

/* Comparateur clair / sombre */
.compare { position: relative; user-select: none; touch-action: none; }
.compare .top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .top img, .compare .bottom img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 4px; margin-left: -2px; background: #fff; z-index: 5; cursor: ew-resize; }
.compare .handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: #fff; color: #0b1424; display: grid; place-items: center; font-size: 24px; font-weight: 800; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.compare .tag { position: absolute; top: 16px; z-index: 4; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; font-weight: 700; }

/* Chronologie */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 60px; }
.timeline::before { content: ""; position: absolute; left: 4%; right: 4%; top: 31px; height: 4px; border-radius: 4px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 4%; top: 31px; height: 4px; border-radius: 4px; width: 0; background: linear-gradient(90deg, var(--blue-400), var(--yellow)); transition: width 2.4s var(--ease) 0.4s; }
.slide.is-active .timeline::after { width: 92%; }
.timeline .t { position: relative; z-index: 1; text-align: center; }
.timeline .t .n { width: 66px; height: 66px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 3px solid var(--blue-400); font-size: 26px; font-weight: 850; }
.timeline .t h3 { font-size: 27px; margin: 0 0 10px; }
.timeline .t p { font-size: 20px; color: var(--soft); margin: 0; line-height: 1.45; }

/* Rôles */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.role { padding: 24px 26px; border-radius: 20px; background: var(--panel-2); border: 1px solid var(--line); }
.role b { display: block; font-size: 24px; margin-bottom: 8px; }
.role span { font-size: 18px; color: var(--soft); line-height: 1.45; }
.role--accent { background: linear-gradient(160deg, var(--blue-500), var(--blue-700)); border-color: transparent; }
.role--accent span { color: rgba(255,255,255,.85); }

/* Statistiques chiffrées */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.kpi { padding: 30px; border-radius: 24px; background: var(--panel-2); border: 1px solid var(--line); }
.kpi strong { display: block; font-size: 72px; font-weight: 850; letter-spacing: -0.04em; line-height: 1; color: var(--blue-300); }
.kpi span { font-size: 20px; color: var(--soft); }

/* Logo animé de couverture */
.cover-mark { width: 190px; height: 190px; margin-bottom: 40px; filter: drop-shadow(0 30px 60px rgba(0, 82, 214, 0.55)); }
.slide.is-active .cover-mark { animation: markin 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) both, bob 6s ease-in-out 1.4s infinite; }
@keyframes markin { from { transform: scale(0.2) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hint { display: inline-flex; align-items: center; gap: 12px; margin-top: 56px; font-size: 19px; color: var(--mute); }
.key { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 9px; border: 1px solid #33456a; border-bottom-width: 3px; background: var(--panel-2); color: var(--text); font-size: 17px; font-weight: 700; }
.slide.is-active .hint .key:last-child { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.flagbar { display: flex; width: 120px; height: 6px; border-radius: 6px; overflow: hidden; margin-top: 30px; } .flagbar i { flex: 1; }

/* ── Interface : barre de contrôle ─────────────────────────────────── */
.progress { position: fixed; left: 0; top: 0; height: 4px; z-index: 20; background: linear-gradient(90deg, var(--blue-400), var(--yellow)); transition: width 0.6s var(--ease); }
.autobar { position: fixed; left: 0; top: 4px; height: 2px; z-index: 20; background: rgba(255,255,255,.5); width: 0; }
.autobar.is-running { animation: autobar var(--auto-ms, 8000ms) linear forwards; }
@keyframes autobar { to { width: 100%; } }
.hud {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 6px;
  padding: 8px; border-radius: 999px; background: rgba(12, 21, 38, 0.82); border: 1px solid #22324f; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); transition: opacity 0.4s, transform 0.4s var(--ease);
}
body.is-idle .hud { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
body.is-idle { cursor: none; }
.hud button, .hud a {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--soft); display: grid; place-items: center; cursor: pointer; text-decoration: none;
}
.hud button:hover, .hud a:hover, .hud button[aria-pressed="true"] { background: rgba(255,255,255,.08); color: #fff; }
.hud svg { width: 20px; height: 20px; }
.hud .count { min-width: 76px; text-align: center; font-size: 15px; font-weight: 700; color: var(--soft); font-variant-numeric: tabular-nums; }
.hud .sep { width: 1px; height: 24px; background: #22324f; margin: 0 4px; }

.dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 20; display: flex; flex-direction: column; gap: 10px; transition: opacity 0.4s; }
body.is-idle .dots { opacity: 0; }
.dots button { position: relative; width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: #33456a; cursor: pointer; transition: transform 0.3s, background 0.3s; }
.dots button.is-on { background: var(--yellow); transform: scale(1.5); }
.dots button span { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: #0b1424; border: 1px solid #22324f; color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.dots button:hover span { opacity: 1; }

.brandtag { position: fixed; left: 26px; top: 22px; z-index: 20; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; letter-spacing: 0.02em; color: var(--soft); text-decoration: none; transition: opacity 0.4s; }
.brandtag img { width: 30px; height: 30px; }
body.is-idle .brandtag { opacity: 0.25; }

/* Notes de l'orateur */
.notes { display: none; }
.notes-panel {
  position: fixed; left: 50%; bottom: 84px; z-index: 19; width: min(900px, 92vw); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: rgba(12, 21, 38, 0.94); border: 1px solid #22324f; border-radius: 18px; padding: 18px 24px; font-size: 17px; line-height: 1.55; color: var(--soft);
  transition: opacity 0.3s, transform 0.3s var(--ease); max-height: 32vh; overflow: auto;
}
.notes-panel.is-open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.notes-panel h4 { margin: 0 0 6px; color: #fff; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Vue d'ensemble */
.overview { position: fixed; inset: 0; z-index: 30; background: rgba(5, 9, 18, 0.94); backdrop-filter: blur(10px); overflow: auto; padding: 70px 50px 50px; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.overview.is-open { opacity: 1; pointer-events: auto; }
.overview h2 { margin: 0 0 26px; font-size: 22px; color: var(--soft); font-weight: 700; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.ov-item { cursor: pointer; border: 0; background: none; padding: 0; text-align: left; color: var(--soft); }
.ov-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--bg); border: 2px solid #22324f; transition: border-color 0.2s, transform 0.3s var(--ease); }
.ov-item:hover .ov-thumb, .ov-item:focus-visible .ov-thumb { border-color: var(--blue-400); transform: translateY(-4px); }
.ov-item.is-current .ov-thumb { border-color: var(--yellow); }
.ov-thumb .deck-clone { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; pointer-events: none; }
.ov-thumb .slide, .ov-thumb .slide * { transition: none !important; animation: none !important; }
.ov-thumb .slide { opacity: 1 !important; visibility: visible !important; transform: none !important; filter: none !important; }
.ov-thumb .slide [data-a], .ov-thumb .slide .f, .ov-thumb .cycle-item:first-child { opacity: 1 !important; transform: none !important; filter: none !important; }
.ov-thumb .bars i { transform: none !important; }
.ov-item span { display: block; margin-top: 10px; font-size: 15px; font-weight: 600; }
.ov-item span b { color: var(--yellow); margin-right: 8px; }

/* Aide */
.help { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(5, 9, 18, 0.8); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.help.is-open { opacity: 1; pointer-events: auto; }
.help > div { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 32px 38px; min-width: 420px; }
.help h3 { margin: 0 0 18px; font-size: 22px; }
.help dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 22px; margin: 0; font-size: 17px; align-items: center; }
.help dd { margin: 0; color: var(--soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
@media print {
  html, body { overflow: visible; height: auto; }
  .hud, .dots, .progress, .autobar, .brandtag, .bg, .notes-panel, .overview, .help { display: none !important; }
  .stage { position: static; display: block; }
  .deck { transform: none !important; width: 1600px; height: auto; }
  .slide { position: relative; height: 900px; opacity: 1 !important; visibility: visible !important; transform: none !important; page-break-after: always; break-after: page; }
  .slide [data-a], .slide .f { opacity: 1 !important; transform: none !important; filter: none !important; }
  @page { size: 1600px 900px; margin: 0; }
}
