/* ==========================================================================
   Formation « L'IA au travail » : feuille de style du diaporama
   Charte : nuit / orange, Big Shoulders + IBM Plex. Aucun code couleur hors :root.
   ========================================================================== */

@font-face { font-family: "Big Shoulders"; src: url("fonts/big-shoulders-display-fr-700-normal.woff2") format("woff2"); font-weight: 700; font-display: block; }
@font-face { font-family: "Big Shoulders"; src: url("fonts/big-shoulders-display-fr-800-normal.woff2") format("woff2"); font-weight: 800; font-display: block; }
@font-face { font-family: "Big Shoulders"; src: url("fonts/big-shoulders-display-fr-900-normal.woff2") format("woff2"); font-weight: 900; font-display: block; }
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: block; }
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: block; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: block; }

:root {
  --nuit: #17324D;
  --nuit-2: #1F3F60;
  --nuit-3: #2B4A68;
  --nuit-fonce: #0C1E30;
  --orange: #D9692B;
  --orange-clair: #EE8A4E;
  --orange-fonce: #A84B17;
  --encre: #1D2A36;
  --ardoise: #5D6B78;
  --gris: #C3CFDB;
  --filet: #E3E7EC;
  --papier: #F5F7F9;
  --blanc: #FFFFFF;
  /* Teintes d'accompagnement : paliers et recette du prompt */
  --ciel: #8EC5E8;
  --menthe: #7DCFB0;
  --sable: #F0C36D;
  --lavande: #A9A6E8;
  --alerte: #E25B4B;

  --titre: "Big Shoulders", "Arial Narrow", sans-serif;
  --texte: "Plex Sans", "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --rebond: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--nuit-fonce); }
body { font-family: var(--texte); color: var(--encre); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

.stage {
  position: absolute; top: 50%; left: 50%;
  width: 1920px; height: 1080px;
  transform-origin: center; overflow: hidden;
  background: var(--papier);
  box-shadow: 0 30px 120px rgba(0, 0, 0, .45);
}
.deck { position: absolute; inset: 0; }

/* ---------- Diapositives ---------- */
.slide {
  position: absolute; inset: 0;
  padding: 96px 140px 120px;
  visibility: hidden; opacity: 0;
  transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s .8s;
  transform: scale(1.02);
  background: var(--papier);
  overflow: hidden;
}
.slide.active { visibility: visible; opacity: 1; transform: none; transition: opacity .7s var(--ease), transform 1s var(--ease), visibility 0s; z-index: 2; }
.slide.leaving { visibility: visible; opacity: 0; transform: scale(.985); z-index: 1; transition: opacity .55s var(--ease), transform .8s var(--ease), visibility 0s .8s; }
.slide.instant, .slide.instant * { transition: none !important; }

/* Fonds */
.slide.light {
  background:
    radial-gradient(circle at 1px 1px, rgba(23, 50, 77, .09) 1.2px, transparent 1.6px) 0 0 / 40px 40px,
    radial-gradient(1100px 700px at 100% 0%, rgba(217, 105, 43, .07), transparent 60%),
    var(--papier);
}
.slide.dark {
  color: var(--papier);
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 96px 96px,
    radial-gradient(1200px 820px at 88% 8%, rgba(217, 105, 43, .22), transparent 62%),
    radial-gradient(1000px 760px at 0% 100%, rgba(142, 197, 232, .12), transparent 60%),
    linear-gradient(160deg, var(--nuit) 0%, var(--nuit-fonce) 100%);
}

/* Halo qui respire, en arrière-plan des fonds sombres */
.glow {
  position: absolute; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 138, 78, .28), transparent 65%);
  filter: blur(20px); pointer-events: none;
  animation: respirer 9s ease-in-out infinite alternate;
}
@keyframes respirer { from { transform: translate(0, 0) scale(1); } to { transform: translate(-80px, 60px) scale(1.15); } }

/* ---------- Typographie ---------- */
.kicker {
  font: 500 24px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange); margin: 0 0 28px; display: flex; align-items: center; gap: 18px;
}
.kicker::before { content: ""; width: 56px; height: 3px; background: currentColor; border-radius: 2px; }
.dark .kicker { color: var(--orange-clair); }

.h-xxl, .h-xl, .h-l, .h-m, .h-s { font-family: var(--titre); font-weight: 900; text-transform: uppercase; margin: 0; letter-spacing: .005em; }
.h-xxl { font-size: 250px; line-height: .82; }
.h-xl { font-size: 170px; line-height: .86; }
.h-l { font-size: 112px; line-height: .9; }
.h-m { font-size: 76px; line-height: .95; font-weight: 800; }
.h-s { font-size: 48px; line-height: 1; font-weight: 800; }
.dark .h-l, .dark .h-xl, .dark .h-xxl, .dark .h-m { color: var(--blanc); }
.light .h-l, .light .h-xl, .light .h-m { color: var(--nuit); }
.acc { color: var(--orange); }
.dark .acc { color: var(--orange-clair); }
.outline { color: transparent !important; -webkit-text-stroke: 3px var(--orange-clair); }

.lead { font-size: 42px; line-height: 1.32; margin: 0; font-weight: 400; }
.body { font-size: 34px; line-height: 1.4; margin: 0; }
.small { font-size: 26px; line-height: 1.4; margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--ardoise); }
.dark .muted { color: var(--gris); }
b, strong { font-weight: 600; }

.source {
  position: absolute; left: 140px; right: 140px; bottom: 54px;
  font: 400 18px/1.4 var(--mono); color: var(--ardoise); margin: 0;
}
.dark .source { color: var(--gris); opacity: .8; }

/* Surlignage qui se trace */
.hl {
  background: linear-gradient(transparent 58%, rgba(217, 105, 43, .35) 58%) no-repeat 0 0 / 0% 100%;
  transition: background-size 1s var(--ease);
  padding: 0 .08em;
}
.on > .hl, .hl.on, .on .hl { background-size: 100% 100%; }
.dark .hl { background-image: linear-gradient(transparent 58%, rgba(238, 138, 78, .45) 58%); }

/* Soulignement dessiné */
.ul { position: relative; white-space: nowrap; }
.ul::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: .09em;
  background: var(--orange); border-radius: 4px; transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease) .5s;
}
.on .ul::after, .ul.on::after { transform: scaleX(1); }

/* ---------- Révélations ---------- */
.rv {
  opacity: 0;
  transition:
    opacity .7s var(--ease) calc(var(--d, 0) * 1s),
    transform 1s var(--ease) calc(var(--d, 0) * 1s),
    clip-path 1s var(--ease) calc(var(--d, 0) * 1s),
    filter .9s var(--ease) calc(var(--d, 0) * 1s);
}
.rv.up { transform: translateY(48px); }
.rv.down { transform: translateY(-48px); }
.rv.left { transform: translateX(-80px); }
.rv.right { transform: translateX(80px); }
.rv.zoom { transform: scale(.8); }
.rv.pop { transform: scale(.4); transition-timing-function: var(--rebond); }
.rv.blur { filter: blur(18px); transform: scale(1.06); }
.rv.mask { clip-path: inset(0 0 100% 0); transform: translateY(40%); }
.rv.wipe { clip-path: inset(0 100% 0 0); }
.rv.on { opacity: 1; transform: none; clip-path: inset(-20% -5% -20% -5%); filter: none; }
/* Éléments à changement d'état : visibles d'emblée, l'étape change leur aspect */
.rv.state { opacity: 1; transform: none; clip-path: none; filter: none; }
.rv.type { opacity: 1; transform: none; }

/* Tracés SVG */
.draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 1.6s var(--ease) calc(var(--d, 0) * 1s); }
.draw.on, .on .draw { stroke-dashoffset: 0; }

/* Machine à écrire */
.type .w { white-space: nowrap; }
.type .ch { opacity: 0; }
.type.on .ch { opacity: 1; transition: opacity 0s calc(var(--d, 0) * 1s + var(--c) * var(--spd, 28ms)); }
.type .caret { display: inline-block; width: .5em; height: 1em; vertical-align: -.12em; background: var(--orange); margin-left: 2px; animation: clignoter 1s steps(1) infinite; opacity: 0; }
.type.on .caret { opacity: 1; }
@keyframes clignoter { 50% { visibility: hidden; } }

/* ---------- HUD ---------- */
.hud { position: absolute; left: 0; right: 0; bottom: 0; height: 0; z-index: 10; pointer-events: none; transition: opacity .4s; }
.hud.hidden { opacity: 0; }
.hud-num, .hud-chap { position: absolute; bottom: 34px; font: 500 18px/1 var(--mono); letter-spacing: .12em; color: var(--ardoise); }
.hud-num { right: 56px; }
.hud-chap { left: 56px; text-transform: uppercase; }
.hud-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(23, 50, 77, .08); }
.hud-bar i { display: block; height: 100%; background: var(--orange); transform-origin: left; transition: transform .9s var(--ease); }
body[data-theme="dark"] .hud-num, body[data-theme="dark"] .hud-chap { color: var(--gris); }
body[data-theme="dark"] .hud-bar { background: rgba(255, 255, 255, .08); }

.blackout .stage::after { content: ""; position: absolute; inset: 0; background: #000; z-index: 50; }

/* Bouton plein écran : hors de la scène, il garde sa taille quelle que soit l'échelle */
.btn-fs {
  position: fixed; top: 16px; right: 16px; z-index: 60;
  width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(12, 30, 48, .72); color: var(--blanc); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .4s, background .2s;
}
.btn-fs.visible, .btn-fs:focus-visible { opacity: 1; }
.btn-fs:hover { background: var(--orange); }
.btn-fs:focus-visible { outline: 3px solid var(--orange-clair); outline-offset: 2px; }
.btn-fs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-fs .fs-out, .btn-fs.actif .fs-in { display: none; }
.btn-fs.actif .fs-out { display: block; }

/* ---------- Mise en page ---------- */
.row { display: flex; gap: 48px; }
.col { display: flex; flex-direction: column; gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.center { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.fill { position: absolute; inset: 96px 140px 120px; }
.abs { position: absolute; }

/* ---------- Cartes ---------- */
.card {
  background: var(--blanc); border-radius: 28px; padding: 44px 48px;
  box-shadow: 0 1px 0 rgba(23, 50, 77, .06), 0 24px 60px -24px rgba(23, 50, 77, .28);
  border: 1px solid rgba(23, 50, 77, .06);
}
.dark .card, .card.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
  color: var(--papier);
}
.card .h-s { color: var(--nuit); margin-bottom: 14px; }
.dark .card .h-s { color: var(--blanc); }
.card .body { color: var(--ardoise); }
.dark .card .body { color: var(--gris); }

.chip {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 24px/1 var(--mono); letter-spacing: .04em;
  padding: 16px 26px; border-radius: 999px;
  background: rgba(23, 50, 77, .07); color: var(--nuit);
}
.dark .chip { background: rgba(255, 255, 255, .09); color: var(--papier); border: 1px solid rgba(255, 255, 255, .12); }
.chip.or { background: var(--orange); color: var(--blanc); }

.num-badge {
  width: 72px; height: 72px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font: 900 40px/1 var(--titre); background: var(--orange); color: var(--blanc);
}

/* ---------- Escalier ---------- */
.stairs svg { display: block; overflow: visible; }
.stairs .st { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1s var(--ease) calc(var(--i) * 55ms + var(--d, 0) * 1s), fill .6s, stroke .6s; stroke-width: 2.5; }
.stairs.on .st { transform: scaleY(1); }
.dark .stairs .st.fut, .stairs.on-dark .st.fut { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .22); }
.light .stairs .st.fut { fill: rgba(23, 50, 77, .05); stroke: rgba(23, 50, 77, .2); }
.stairs .st.done { fill: var(--orange); stroke: var(--orange); }
.stairs .st.cur { fill: var(--orange-clair); stroke: var(--orange-clair); animation: pulsation 2.4s ease-in-out infinite 1.6s; }
.stairs .st.g5.fut { stroke-dasharray: 8 8; }
@keyframes pulsation { 50% { filter: drop-shadow(0 0 22px rgba(238, 138, 78, .9)); } }
.stairs .st-num { font: 500 20px var(--mono); fill: rgba(255, 255, 255, .55); opacity: 0; transition: opacity .6s calc(var(--i) * 55ms + .5s); }
.light .stairs .st-num { fill: rgba(23, 50, 77, .5); }
.stairs .st-num.done, .stairs .st-num.cur { fill: var(--blanc); }
.stairs.on .st-num { opacity: 1; }
.stairs .mk { opacity: 0; transform: translate(var(--x0), var(--y0)); transition: transform 1.4s var(--ease) 1.3s, opacity .4s 1.1s; }
.stairs.on .mk { opacity: 1; transform: translate(var(--x1), var(--y1)); }
.stairs .mk-dot { fill: var(--blanc); stroke: var(--orange); stroke-width: 6; }
.light .stairs .mk-dot { fill: var(--nuit); stroke: var(--orange); }
.stairs .mk-halo { fill: rgba(238, 138, 78, .25); animation: halo 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
/* Mode « paliers » : chaque groupe prend sa couleur quand on l'annonce */
.stairs.pal .st { transition: transform 1s var(--ease) calc(var(--i) * 55ms), fill .8s var(--ease), stroke .8s var(--ease); }
.slide .stairs.lit-1 .st.g1 { fill: var(--ciel); stroke: var(--ciel); }
.slide .stairs.lit-2 .st.g2 { fill: var(--menthe); stroke: var(--menthe); }
.slide .stairs.lit-3 .st.g3 { fill: var(--sable); stroke: var(--sable); }
.slide .stairs.lit-4 .st.g4 { fill: var(--orange); stroke: var(--orange); }
.slide .stairs.lit-5 .st.g5 { fill: rgba(169, 166, 232, .35); stroke: var(--lavande); }
.slide .stairs.lit-6 .st.g6 { fill: var(--blanc); stroke: var(--blanc); }

/* Légende des paliers */
.pal-leg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; }
.pal-leg .it { border-top: 6px solid var(--c); padding-top: 18px; }
.pal-leg .it b { display: block; font: 800 36px/1 var(--titre); text-transform: uppercase; color: var(--blanc); margin-bottom: 8px; }
.pal-leg .it span { font: 400 21px/1.35 var(--texte); color: var(--gris); }
.pal-leg .it em { font: 500 18px var(--mono); font-style: normal; color: var(--c); letter-spacing: .1em; display: block; margin-bottom: 10px; }

/* ---------- Ouverture de palier ---------- */
.opener .big-num { position: absolute; right: 120px; top: 30px; font: 900 560px/1 var(--titre); color: transparent; -webkit-text-stroke: 3px rgba(255, 255, 255, .12); }
.opener .stairs { position: absolute; left: 140px; bottom: 120px; }
.opener .marches { position: absolute; right: 140px; bottom: 150px; width: 640px; display: flex; flex-direction: column; gap: 18px; }
.opener .marches li { list-style: none; display: flex; gap: 22px; align-items: baseline; font-size: 34px; color: var(--papier); }
.opener .marches li i { font: 500 22px var(--mono); font-style: normal; color: var(--orange-clair); min-width: 104px; }
.opener ul { margin: 0; padding: 0; }

/* ---------- Fenêtre d'application (maquettes) ---------- */
.win {
  background: var(--blanc); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(12, 30, 48, .45), 0 0 0 1px rgba(23, 50, 77, .08);
  color: var(--encre);
}
.win-bar { height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 22px; background: var(--filet); }
.win-bar i { width: 14px; height: 14px; border-radius: 50%; background: var(--gris); }
.win-bar i:nth-child(1) { background: #E8796B; } .win-bar i:nth-child(2) { background: #F0C36D; } .win-bar i:nth-child(3) { background: #7DCFB0; }
.win-bar span { margin-left: 16px; font: 500 18px var(--mono); color: var(--ardoise); }
.win-body { padding: 36px 40px; }

.bubble { border-radius: 24px; padding: 24px 30px; font-size: 27px; line-height: 1.42; }
.bubble.me { background: var(--nuit); color: var(--blanc); border-bottom-right-radius: 6px; margin-left: 80px; font-family: var(--mono); font-size: 24px; }
.bubble.ai { background: var(--papier); border: 1px solid var(--filet); border-bottom-left-radius: 6px; margin-right: 40px; }
.tag { display: inline-block; font: 500 18px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; border-radius: 8px; }
.tag.bad { background: rgba(226, 91, 75, .12); color: #B23A2C; }
.tag.good { background: rgba(125, 207, 176, .25); color: #1E6B50; }

/* Segments R·C·T·F */
.seg-r { --sc: var(--orange); } .seg-c { --sc: var(--ciel); } .seg-t { --sc: var(--sable); } .seg-f { --sc: var(--menthe); }
.seg { border-bottom: 5px solid transparent; transition: border-color .6s, background-color .6s; padding-bottom: 2px; }
.seg.on { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 18%, transparent); }

.brick {
  height: 128px; border-radius: 18px; display: flex; align-items: center; gap: 28px; padding: 0 40px;
  background: var(--sc); color: var(--nuit-fonce);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5);
}
.brick b { font: 900 64px/1 var(--titre); text-transform: uppercase; min-width: 300px; }
.brick span { font-size: 28px; line-height: 1.3; }
.rv.brick { transform: translateY(-420px) rotate(-3deg); transition-timing-function: cubic-bezier(.34, 1.3, .64, 1); }
.rv.brick.on { transform: none; }

/* ---------- Icônes animées ---------- */
.ico { width: 150px; height: 150px; border-radius: 40px; display: grid; place-items: center; background: rgba(217, 105, 43, .1); margin-bottom: 30px; }
.dark .ico { background: rgba(238, 138, 78, .14); }
.ico svg { width: 92px; height: 92px; stroke: var(--orange); fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.wave { display: flex; gap: 9px; align-items: center; height: 92px; }
.wave i { width: 10px; border-radius: 6px; background: var(--orange); height: 30%; animation: onde 1.1s ease-in-out infinite; animation-delay: calc(var(--k) * -.15s); }
@keyframes onde { 50% { height: 100%; } }
.hand { transform-origin: 50px 50px; animation: tourner 6s linear infinite; }
@keyframes tourner { to { transform: rotate(360deg); } }

/* Voyants (réflexes de prudence) */
.lamp { width: 64px; height: 64px; border-radius: 50%; flex: none; margin-top: 6px; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .2); transition: background .5s, box-shadow .5s, border-color .5s; }
.on .lamp { background: radial-gradient(circle at 35% 35%, #FFD2B0, var(--orange-clair) 45%, var(--orange)); border-color: var(--orange-clair); box-shadow: 0 0 40px 6px rgba(238, 138, 78, .6); }
.reflex { display: flex; gap: 36px; align-items: flex-start; padding: 30px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.reflex .h-s { font-size: 54px; color: var(--blanc); }
.reflex p { margin: 10px 0 0; font-size: 30px; color: var(--gris); }
.reflex p b { color: var(--orange-clair); font-weight: 600; }

/* ---------- Fil rouge Bois & Cie ---------- */
.persona { display: flex; flex-direction: column; gap: 26px; }
.avatar { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; font: 900 60px/1 var(--titre); color: var(--nuit-fonce); flex: none; }
.av-c { background: var(--sable); } .av-n { background: var(--menthe); } .av-y { background: var(--ciel); }
.persona-head { display: flex; gap: 24px; align-items: center; }
.persona-head b { display: block; font: 800 52px/1 var(--titre); text-transform: uppercase; color: var(--blanc); }
.bc-grid .persona-head b { font-size: 41px; line-height: 1.05; }
.bc-grid .gain { font-size: 25px; min-height: 170px; }
.persona-head div span { font: 500 20px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.gain { position: relative; padding: 30px 34px; border-radius: 24px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); font-size: 29px; line-height: 1.4; color: var(--papier); }
.gain::before { content: ""; position: absolute; top: -12px; left: 52px; width: 24px; height: 24px; background: inherit; border-left: 1px solid rgba(255, 255, 255, .13); border-top: 1px solid rgba(255, 255, 255, .13); transform: rotate(45deg); backdrop-filter: blur(14px); }
.gain em { display: block; font: 500 19px var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-clair); margin-bottom: 10px; }
.logo-bc { display: inline-flex; align-items: center; gap: 16px; font: 800 30px/1 var(--titre); text-transform: uppercase; letter-spacing: .06em; color: var(--sable); }
.logo-bc svg { width: 44px; height: 44px; }

/* ---------- Concentrateur (connecteurs) ---------- */
/* Centrage par marges et non par transform : l'export PDF découpe les pages d'après la position avant transformation. */
.hub { position: absolute; left: 50%; top: 242px; width: 1000px; height: 640px; margin-left: -500px; }
.hub svg.links { position: absolute; inset: 0; overflow: visible; }
.flow { stroke: var(--orange-clair); stroke-width: 3; stroke-dasharray: 6 14; fill: none; opacity: 0; transition: opacity .6s calc(var(--d, 0) * 1s); animation: flux 1.2s linear infinite; }
.light .flow { stroke: var(--orange); stroke-width: 4; }
.on .flow, .flow.on { opacity: 1; }
@keyframes flux { to { stroke-dashoffset: -40; } }
.hub-core { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; display: grid; place-items: center; font: 900 80px/1 var(--titre); color: var(--blanc); background: radial-gradient(circle at 35% 30%, var(--orange-clair), var(--orange) 60%, var(--orange-fonce)); box-shadow: 0 0 0 18px rgba(238, 138, 78, .14), 0 0 0 40px rgba(238, 138, 78, .06), 0 30px 80px rgba(0, 0, 0, .4); }
.node { position: absolute; width: 230px; margin-left: -115px; margin-top: -54px; padding: 22px 0; text-align: center; border-radius: 20px; font: 600 26px/1.2 var(--texte); }
.node small { display: block; font: 500 16px var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-top: 6px; }

/* ---------- Cartes à retourner ---------- */
.flip { perspective: 1800px; }
.flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.1s var(--ease); }
.flip.on .flip-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 26px; padding: 40px 38px; display: flex; flex-direction: column; }
.face.back { transform: rotateY(180deg); }

/* ---------- Divers ---------- */

.check { display: flex; gap: 26px; align-items: center; font-size: 34px; padding: 22px 0; border-bottom: 1px solid var(--filet); }
.dark .check { border-color: rgba(255, 255, 255, .1); }
.box { width: 54px; height: 54px; border-radius: 14px; border: 3px solid var(--gris); flex: none; display: grid; place-items: center; transition: background .4s, border-color .4s; }
.box svg { width: 34px; height: 34px; stroke: var(--blanc); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .5s var(--ease) .25s; }
.on .box, .box.on { background: var(--orange); border-color: var(--orange); }
.on .box svg, .box.on svg { stroke-dashoffset: 0; }

.live { display: inline-flex; align-items: center; gap: 16px; font: 500 26px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--blanc); }
.live i { width: 22px; height: 22px; border-radius: 50%; background: var(--alerte); box-shadow: 0 0 0 0 rgba(226, 91, 75, .7); animation: direct 1.6s infinite; }
@keyframes direct { 70% { box-shadow: 0 0 0 26px rgba(226, 91, 75, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 91, 75, 0); } }

.code { font: 400 26px/1.65 var(--mono); color: var(--gris); }
.code .k { color: var(--orange-clair); } .code .s { color: var(--menthe); } .code .c { color: var(--ardoise); } .code .f { color: var(--ciel); }

.btn-valider {
  display: inline-flex; align-items: center; gap: 22px; padding: 40px 80px; border-radius: 999px;
  background: var(--orange); color: var(--blanc); font: 900 76px/1 var(--titre); text-transform: uppercase; letter-spacing: .04em;
  position: relative; box-shadow: 0 30px 60px -20px rgba(217, 105, 43, .7);
}
.btn-valider::before, .btn-valider::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 3px solid var(--orange-clair); animation: onde-btn 2.4s ease-out infinite; }
.btn-valider::after { animation-delay: 1.2s; }
@keyframes onde-btn { from { transform: scale(1); opacity: .9; } to { transform: scale(1.45, 1.9); opacity: 0; } }


/* Notes du formateur : jamais à l'écran */
.notes { display: none; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- Impression / PDF ---------- */
@media print {
  @page { size: 1920px 1080px; margin: 0; }
  html, body { overflow: visible; height: auto; background: none; }
  .stage { position: static; transform: none !important; box-shadow: none; overflow: visible; height: auto; background: none; }
  .deck { position: static; }
  .slide { position: relative; width: 1920px; height: 1080px; visibility: visible !important; opacity: 1 !important; transform: none !important; page-break-after: always; break-after: page; }
  .slide * { animation: none !important; transition: none !important; }
  .hud, .btn-fs { display: none; }
  .stairs .mk { opacity: 1; }
  .print-hide { display: none !important; }
  /* Le flou d'arrière-plan et les tirets animés s'impriment mal : versions statiques */
  .slide * { backdrop-filter: none !important; }
  .flow { stroke-dasharray: 8 10; opacity: 1 !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
