/* LE RÉSEAU — deck webinaire du dimanche · v2 dynamique
   Tokens : le-reseau/01-FUNNEL/branding/design-system/tokens/tokens.json */

@font-face {
  font-family: 'Commissioner';
  src: url('fonts/commissioner-var.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-display: block;
}

:root {
  --noir: #070707;
  --noir-absolu: #000000;
  --jaune: #FFC400;
  --jaune-soft: #FFF3C2;
  --blanc: #FFFFFF;
  --texte: #1F1D18;
  --surface: #F4F4F2;
  --surface-soft: #FAFAF8;
  --g200: #E7E5E1;
  --g300: #D3D0C9;
  --g400: #A8A49B;
  --g500: #78746B;
  --g700: #3A362E;
  --success: #1F9D55;
  --error: #C0392B;
  --grad-noir: linear-gradient(180deg, #2A2822 0%, #070707 100%);
  --grad-jaune: linear-gradient(180deg, #FFD24A 0%, #F2B200 100%);
  --pad: 7cqw;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--noir-absolu);
  font-family: 'Commissioner', system-ui, sans-serif;
  letter-spacing: -0.04em;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- scène ---------- */

#stage { position: fixed; inset: 0; display: grid; place-items: center; }

#frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  container-type: inline-size;
  overflow: hidden;
  background: var(--noir);
}

.slide {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  background: var(--blanc);
  color: var(--texte);
  overflow: hidden;
}
.slide.on { display: flex; }

.slide.dark  { background: var(--grad-noir); color: var(--blanc); }
.slide.black { background: var(--noir-absolu); color: var(--blanc); }
.slide.yellow{ background: var(--grad-jaune); color: var(--noir); }
.slide.soft  { background: var(--surface-soft); }

/* fonds décorés */
.slide .bgfx { position: absolute; inset: 0; pointer-events: none; }
.bg-glow::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 38cqw at 102% -6%, rgba(255,196,0,.16) 0%, rgba(255,196,0,.05) 42%, transparent 70%);
}
.bg-glow-l::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 34cqw at -4% 106%, rgba(255,196,0,.13) 0%, rgba(255,196,0,.04) 45%, transparent 72%);
}
.bg-grid::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  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: 4.4cqw 4.4cqw;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 78%);
}
.light.bg-grid::after, .soft.bg-grid::after, .yellow.bg-grid::after {
  background-image:
    linear-gradient(rgba(7,7,7,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,7,7,.06) 1px, transparent 1px);
}
.bg-dots::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,196,0,.22) 1.5px, transparent 1.5px);
  background-size: 3.2cqw 3.2cqw;
  mask-image: linear-gradient(115deg, transparent 55%, #000 92%);
}

/* boucles de motion design : chaque slide texte en reçoit une différente */

/* anneaux circulaires qui tournent (pointillés, sens opposés) */
.fxwrap { position: absolute; inset: 0; overflow: clip; pointer-events: none; }

.fx-rings .fxwrap::before, .fx-rings .fxwrap::after {
  content: ''; position: absolute; border-radius: 50%;
  border: .18cqw dashed rgba(255,196,0,.28); pointer-events: none;
}
.fx-rings .fxwrap::before { width: 34cqw; height: 34cqw; right: -8cqw; top: -10cqw; animation: spin 34s linear infinite; }
.fx-rings .fxwrap::after  { width: 18cqw; height: 18cqw; right: 8cqw; bottom: -5cqw; border-color: rgba(255,196,0,.18); animation: spin-r 22s linear infinite; }
@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes spin-r { to { transform: rotate(-360deg); } }

/* rectangles qui dérivent en diagonale */
.fx-squares .fxwrap .sq {
  position: absolute; border: .2cqw solid rgba(255,196,0,.22);
  border-radius: .8cqw; pointer-events: none;
  animation: drift 11s ease-in-out infinite alternate;
}
.fx-squares .fxwrap .sq:nth-child(1) { width: 9cqw; height: 9cqw; right: 9cqw; top: 12cqh; transform: rotate(14deg); }
.fx-squares .fxwrap .sq:nth-child(2) { width: 5cqw; height: 5cqw; right: 22cqw; top: 58cqh; transform: rotate(-9deg); animation-duration: 9s; animation-delay: -3s; }
.fx-squares .fxwrap .sq:nth-child(3) { width: 13cqw; height: 13cqw; right: 3cqw; bottom: -4cqh; transform: rotate(6deg); animation-duration: 14s; animation-delay: -6s; border-color: rgba(255,196,0,.12); }
@keyframes drift { from { translate: 0 0; } to { translate: -3cqw 2.4cqw; } }

/* faisceau lumineux qui balaye de gauche à droite */
.fx-sweep .fxwrap::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255,196,0,.09) 46%, rgba(255,255,255,.05) 50%, transparent 58%);
  background-size: 260% 100%;
  animation: sweep 6.5s ease-in-out infinite;
}
@keyframes sweep { 0% { background-position: 130% 0; } 55%, 100% { background-position: -75% 0; } }

/* point qui orbite autour d'un grand cercle */
.fx-orbit .fxwrap::before {
  content: ''; position: absolute; width: 30cqw; height: 30cqw;
  right: -6cqw; bottom: -8cqw; border-radius: 50%;
  border: .16cqw solid rgba(255,196,0,.2); pointer-events: none;
}
.fx-orbit .fxwrap .dot {
  position: absolute; right: 9cqw; bottom: 7cqw;
  width: 30cqw; height: 30cqw; margin: 0; pointer-events: none;
  animation: spin 9s linear infinite;
}
.fx-orbit .fxwrap .dot::before {
  content: ''; position: absolute; top: -0.9cqw; left: 50%;
  width: 1.8cqw; height: 1.8cqw; border-radius: 50%;
  background: var(--jaune); box-shadow: 0 0 2cqw rgba(255,196,0,.8);
}

/* bandeau défilant gauche → droite (chapitres) */
.mq {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4cqw 0;
  border-top: 1px solid rgba(255,196,0,.25);
  overflow: hidden; white-space: nowrap; pointer-events: none;
}
.mq span {
  display: inline-block; padding-right: 2cqw;
  font-size: 2.4cqw; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,196,0,.5);
  animation: mq 14s linear infinite;
}
@keyframes mq { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.yellow .mq { border-top-color: rgba(7,7,7,.25); }
.yellow .mq span { color: rgba(7,7,7,.45); }

/* photo de fond dans une carte (villes) */
.card .cardimg {
  margin: -1.7cqw -2cqw .9cqw; height: 8cqh; overflow: hidden;
  border-radius: 1.1cqw 1.1cqw 0 0;
}
.card .cardimg img { width: 100%; height: 100%; object-fit: cover; }

/* numéro géant en fond (chapitres d'étape) */
.bigidx-clip { position: absolute; inset: 0; overflow: clip; pointer-events: none; }
.bigidx {
  position: absolute; right: 0; bottom: 0; transform: translate(2%, 24%);
  font-size: 42cqw; font-weight: 900; line-height: 1;
  color: transparent;
  -webkit-text-stroke: .22cqw rgba(255,196,0,.28);
  letter-spacing: -0.05em;
  user-select: none;
}
.yellow .bigidx { -webkit-text-stroke-color: rgba(7,7,7,.18); }

/* ---------- animations d'entrée ---------- */
/* chaque [data-a] reçoit --d (délai) par le JS au moment où la slide s'affiche */

.on [data-a] { animation-fill-mode: both; animation-duration: .65s; animation-delay: var(--d, 0s); }
.on [data-a="up"]    { animation-name: a-up; }
.on [data-a="pop"]   { animation-name: a-pop; animation-duration: .5s; animation-timing-function: cubic-bezier(.2,1.6,.4,1); }
.on [data-a="left"]  { animation-name: a-left; }
.on [data-a="right"] { animation-name: a-right; }
.on [data-a="blur"]  { animation-name: a-blur; animation-duration: .8s; }
.on [data-a="drop"]  { animation-name: a-drop; animation-duration: .55s; animation-timing-function: cubic-bezier(.3,1.4,.5,1); }

@keyframes a-up    { from { opacity: 0; transform: translateY(3.2cqw); } to { opacity: 1; transform: none; } }
@keyframes a-pop   { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: scale(1); } }
@keyframes a-left  { from { opacity: 0; transform: translateX(-4cqw); } to { opacity: 1; transform: none; } }
@keyframes a-right { from { opacity: 0; transform: translateX(4cqw); } to { opacity: 1; transform: none; } }
@keyframes a-blur  { from { opacity: 0; filter: blur(14px); transform: scale(1.04); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes a-drop  { from { opacity: 0; transform: translateY(-4cqw) rotate(-2deg); } to { opacity: 1; transform: none; } }

/* boucles discrètes */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.1cqw); } }
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,196,0,.35); }
  55%     { box-shadow: 0 0 0 1.6cqw rgba(255,196,0,0); }
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, -1.2%); } }
@keyframes reveal-w { from { width: 0; } to { width: 100%; } }

.float-1 { animation: floaty 4.5s ease-in-out infinite; }
.float-2 { animation: floaty 5.6s ease-in-out .8s infinite; }
.float-3 { animation: floaty 5s ease-in-out 1.6s infinite; }

/* ---------- typographie ---------- */

.slide h1, .slide h2, .slide .big {
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 0.94;
  text-wrap: balance;
}
.t-xxl { font-size: 9.2cqw; }
.t-xl  { font-size: 7.2cqw; }
.t-l   { font-size: 5.4cqw; }
.t-m   { font-size: 4.0cqw; }
.t-s   { font-size: 2.9cqw; font-weight: 500; line-height: 1.25; }
.t-xs  { font-size: 2.2cqw; font-weight: 500; line-height: 1.35; }

.kicker {
  display: flex; align-items: center; gap: 1.1cqw;
  font-size: 1.7cqw; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--g400);
  margin-bottom: 2.4cqw;
}
.kicker::before { content: ''; width: 3.2cqw; height: .38cqw; background: var(--jaune); }
.dark .kicker, .black .kicker { color: var(--jaune); }
.yellow .kicker { color: rgba(7,7,7,.55); }
.yellow .kicker::before { background: var(--noir); }

.lead { font-size: 3.2cqw; font-weight: 400; line-height: 1.3; color: var(--g500); margin-top: 2.4cqw; max-width: 74%; }
.dark .lead, .black .lead { color: var(--g300); }
.yellow .lead { color: rgba(7,7,7,.68); }

em { font-style: normal; color: var(--jaune); }
.yellow em, .light em { color: var(--noir); }
.hl { background: var(--jaune); color: var(--noir); padding: 0 .18em .06em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- icônes ---------- */

.ic {
  flex: 0 0 auto;
  display: inline-grid; place-items: center;
  width: 3.6cqw; height: 3.6cqw; border-radius: 1cqw;
  background: var(--jaune); color: var(--noir);
}
.ic svg { width: 62%; height: 62%; stroke-width: 2.2; }
.dark .ic, .black .ic { box-shadow: 0 .4cqw 1.6cqw rgba(255,196,0,.25); }
.yellow .ic { background: var(--noir); color: var(--jaune); }
.ic.ghost { background: transparent; border: .16cqw solid rgba(255,255,255,.3); color: var(--blanc); box-shadow: none; }
.ic.big { width: 6cqw; height: 6cqw; border-radius: 1.6cqw; }

/* ---------- blocs empilés ---------- */

.blocks { display: flex; flex-direction: column; align-items: flex-start; gap: .5cqw; position: relative; }
.blocks span {
  display: inline-block;
  font-size: 6.5cqw; font-weight: 800; line-height: 1.0;
  letter-spacing: -0.03em;
  padding: .12em .3em;
  background: var(--noir); color: var(--blanc);
  box-shadow: .35cqw .35cqw 0 rgba(0,0,0,.28);
}
.blocks span.y { background: var(--jaune); color: var(--noir); }

/* ---------- chiffres ---------- */

.stat { display: flex; flex-direction: column; gap: 1.2cqw; position: relative; }
.stat .num { font-size: 16cqw; font-weight: 900; line-height: .82; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.dark .stat .num, .black .stat .num { color: var(--jaune); text-shadow: 0 0 4cqw rgba(255,196,0,.35); }
.stat .lbl { font-size: 3.2cqw; font-weight: 600; line-height: 1.15; max-width: 70%; }

.stat-row { display: flex; gap: 4cqw; align-items: flex-start; justify-content: space-between; }
.stat-row .stat { flex: 1 1 0; min-width: 0; padding-left: 2.2cqw; border-left: .45cqw solid var(--jaune); }
.stat-row .stat .num { font-size: 8cqw; text-shadow: none; }
.stat-row .stat .lbl { font-size: 1.8cqw; font-weight: 500; max-width: none; color: var(--g400); }
.yellow .stat-row .stat { border-left-color: var(--noir); }
.yellow .stat-row .stat .lbl { color: rgba(7,7,7,.62); }
.light .stat-row .stat .lbl { color: var(--g500); }

/* ---------- listes ---------- */

ul.points { list-style: none; display: flex; flex-direction: column; gap: 1.9cqw; margin-top: 3cqw; }
ul.points li {
  display: flex; align-items: center; gap: 1.8cqw;
  font-size: 3.1cqw; font-weight: 600; line-height: 1.18;
}
ul.points.tight { gap: 1.4cqw; }
ul.points.tight li { font-size: 2.5cqw; }
ul.points.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw 3.5cqw; }

ul.crosses { list-style: none; display: flex; flex-direction: column; gap: 1.5cqw; margin-top: 2.6cqw; }
ul.crosses li { display: flex; align-items: center; gap: 1.6cqw; font-size: 2.7cqw; font-weight: 500; line-height: 1.2; color: var(--g300); }
ul.crosses li .x {
  flex: 0 0 auto; width: 3cqw; height: 3cqw; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(192,57,43,.16); color: var(--error);
  font-weight: 800; font-size: 1.7cqw;
}
.light ul.crosses li, .soft ul.crosses li { color: var(--g500); }

/* ---------- colonnes / cartes ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; align-items: center; height: 100%; }
.split .media { height: 100%; display: grid; place-items: center; position: relative; }
.split .media img { max-width: 100%; max-height: 74cqh; object-fit: contain; border-radius: 1.2cqw; }

.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; margin-top: 2.2cqw; }
.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6cqw; margin-top: 2.6cqw; }
.card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1.4cqw;
  padding: 2cqw 2.4cqw;
  position: relative;
}
.light .card, .soft .card { background: var(--blanc); border-color: var(--g200); box-shadow: 0 .3cqw 2cqw rgba(0,0,0,.05); }
.card h3 { font-size: 2.4cqw; font-weight: 800; margin-bottom: .9cqw; letter-spacing: -0.02em; display: flex; align-items: center; gap: 1.2cqw; }
.card p, .card li { font-size: 1.75cqw; font-weight: 500; line-height: 1.3; }
.card ul { list-style: none; display: flex; flex-direction: column; gap: .65cqw; }
.card.accent { border-color: var(--jaune); box-shadow: 0 0 2.4cqw rgba(255,196,0,.14); }
.card.accent h3 { color: var(--jaune); }
.light .card.accent h3, .soft .card.accent h3 { color: var(--noir); }
.cols4 .card { padding: 1.7cqw 2cqw; border-radius: 1cqw; }
.cols4 .card h3 { font-size: 1.85cqw; margin-bottom: .9cqw; }
.cols4 .card p, .cols4 .card li { font-size: 1.5cqw; line-height: 1.3; }

/* ---------- images ---------- */

.slide.full { padding: 0; }
.slide.full img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 9s ease-out both; }
.slide.contain { padding: 3cqw; background: var(--noir-absolu); }
.slide.contain img { width: 100%; height: 100%; object-fit: contain; }
.caption {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 5cqw;
  font-size: 2.8cqw; font-weight: 700; line-height: 1.15;
  color: var(--blanc); text-shadow: 0 .2cqw 2cqw rgba(0,0,0,.7);
}
.scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.05) 45%, rgba(0,0,0,.82) 100%); }

/* capture d'écran posée en carte */
.shot {
  background: #fff; border-radius: 1.3cqw; overflow: hidden;
  box-shadow: 0 2.2cqw 5cqw rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.09);
}
.shot img { display: block; width: 100%; height: auto; }

/* éventail de preuves */
.fan { position: relative; height: 100%; display: grid; place-items: center; }
.fan .shot { position: absolute; width: 30cqw; max-height: 54cqh; }
.fan .shot img { max-height: 54cqh; object-fit: cover; object-position: top; }
.fan .shot:nth-child(1) { transform: rotate(-5deg) translate(-11cqw, -9cqh); z-index: 1; }
.fan .shot:nth-child(2) { transform: rotate(1.5deg) translate(-2cqw, 6cqh); z-index: 3; width: 32cqw; }
.fan .shot:nth-child(3) { transform: rotate(5.5deg) translateX(13cqw); z-index: 2; }

/* personne détourée sur halo (recette avatars du réseau) */
.halo-wrap { position: relative; height: 100%; display: grid; place-items: end center; overflow: clip; }
.halo {
  position: absolute; left: 50%; top: 54%; transform: translate(-50%,-50%);
  width: 34cqw; height: 34cqw; border-radius: 50%;
  background: radial-gradient(circle, #3B382F 0%, #1C1B17 55%, transparent 76%);
}
.yellow .halo { background: radial-gradient(circle, #FFE174 0%, #FFC400 55%, transparent 78%); }
.halo-wrap img.person { position: relative; z-index: 2; max-height: 68cqh; max-width: 36cqw; object-fit: contain; filter: drop-shadow(0 1.4cqw 3cqw rgba(0,0,0,.45)); }

/* badges flottants autour d'une photo */
.chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 1cqw;
  background: rgba(10,10,10,.86); color: var(--blanc);
  border: 1px solid rgba(255,196,0,.4);
  border-radius: 999px;
  padding: .9cqw 1.7cqw;
  font-size: 1.65cqw; font-weight: 700; letter-spacing: -0.02em;
  backdrop-filter: blur(4px);
  box-shadow: 0 .8cqw 2.4cqw rgba(0,0,0,.4);
}
.chip .ic { width: 2.6cqw; height: 2.6cqw; border-radius: .8cqw; }
.light .chip, .yellow .chip { background: rgba(255,255,255,.94); color: var(--noir); border-color: rgba(7,7,7,.14); }

/* entrée + boucle qui cohabitent */
.on .hub .core[data-a] {
  animation-name: a-pop, pulse-glow;
  animation-duration: .5s, 2.8s;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: both, none;
}
.on .stepchips .sc.now[data-a] {
  animation-name: a-up, pulse-glow;
  animation-duration: .65s, 2.4s;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: both, none;
}

/* ---------- étapes en chips numérotées ---------- */

.stepchips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1.3cqw; margin-top: 3.4cqw; }
.stepchips .sc {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 1.1cqw;
  padding: 1.6cqw 1.2cqw;
  display: flex; flex-direction: column; gap: 1.1cqw; align-items: flex-start;
}
.light .stepchips .sc, .soft .stepchips .sc { background: var(--blanc); border-color: var(--g200); box-shadow: 0 .3cqw 1.6cqw rgba(0,0,0,.06); }
.stepchips .sc .n {
  width: 3cqw; height: 3cqw; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--jaune); color: var(--noir);
  font-weight: 800; font-size: 1.6cqw;
}
.stepchips .sc .t { font-size: 1.55cqw; font-weight: 700; line-height: 1.16; letter-spacing: -0.02em; }
.stepchips .sc.done { opacity: .38; }
.stepchips .sc.now { border-color: var(--jaune); box-shadow: 0 0 2cqw rgba(255,196,0,.25); animation: pulse-glow 2.4s infinite; }

/* ---------- schéma en étoile ---------- */

.hub { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr 1fr; gap: 2.2cqw; align-items: center; margin-top: 3cqw; }
.hub .core {
  grid-column: 2; grid-row: 1 / span 2;
  width: 17cqw; height: 17cqw; border-radius: 50%;
  background: var(--grad-jaune); color: var(--noir);
  display: grid; place-items: center; text-align: center;
  font-size: 2.1cqw; font-weight: 800; line-height: 1.1; padding: 2cqw;
  animation: pulse-glow 2.8s infinite;
}
.hub .node { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14); border-radius: 1.2cqw; padding: 2cqw 2.2cqw; display: flex; gap: 1.6cqw; align-items: flex-start; }
.light .hub .node { background: var(--blanc); border-color: var(--g200); }
.hub .node h4 { font-size: 2.1cqw; font-weight: 800; letter-spacing: -0.02em; }
.hub .node p { font-size: 1.6cqw; font-weight: 500; line-height: 1.3; color: var(--g400); margin-top: .5cqw; }
.light .hub .node p { color: var(--g500); }

/* ---------- les 4 temps ---------- */

.beat { display: flex; align-items: center; gap: 2.2cqw; margin-bottom: 2.4cqw; }
.beat .n {
  flex: 0 0 auto; width: 4.4cqw; height: 4.4cqw;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--jaune); color: var(--noir);
  font-weight: 800; font-size: 2cqw;
}
.beat .txt { font-size: 2.4cqw; font-weight: 700; }

/* ---------- bandeau logos ---------- */

.logoline { display: flex; align-items: center; gap: 4cqw; margin-top: 4cqw; flex-wrap: wrap; }
.logoline .lg {
  background: #fff; border-radius: 1.1cqw; padding: 1.4cqw 2.6cqw;
  display: grid; place-items: center;
  box-shadow: 0 .6cqw 2cqw rgba(0,0,0,.35);
}
.logoline .lg img { height: 3.4cqw; width: auto; object-fit: contain; }

/* ---------- prix / pills ---------- */

.price { display: flex; align-items: baseline; gap: 1.2cqw; }
.price .amount { font-size: 11cqw; font-weight: 900; letter-spacing: -0.04em; }
.price .unit { font-size: 2.6cqw; font-weight: 600; color: var(--g400); }
.pill {
  display: inline-flex; align-items: center; gap: .8cqw;
  background: var(--jaune); color: var(--noir);
  border-radius: 999px; padding: 1.1cqw 2.4cqw;
  font-size: 2.2cqw; font-weight: 700;
}

.todo { box-shadow: inset 0 0 0 .5cqw var(--error); }
.todo::after {
  content: 'À VALIDER';
  position: absolute; left: 0; bottom: 0;
  background: var(--error); color: #fff;
  font-size: 1.2cqw; font-weight: 800; letter-spacing: .1em;
  padding: .5cqw 1.2cqw; z-index: 9;
}

/* ---------- carton de chapitre ---------- */

.chapter { display: flex; flex-direction: column; gap: 2cqw; position: relative; z-index: 2; }
.chapter .idx { font-size: 2cqw; font-weight: 800; letter-spacing: .2em; color: var(--jaune); }
.yellow .chapter .idx { color: var(--noir); }
.chapter .rule { width: 12cqw; height: .45cqw; background: var(--jaune); margin-top: 1.5cqw; animation: reveal-w .9s .3s both; }
.yellow .chapter .rule { background: var(--noir); }

/* ---------- marqueurs permanents ---------- */

.wm {
  position: absolute; top: 3cqw; right: 3.4cqw; z-index: 8;
  display: flex; align-items: center; gap: .8cqw;
  font-size: 1.5cqw; font-weight: 800; letter-spacing: -0.02em;
  opacity: .85;
}
.wm img { height: 2.1cqw; }
.wm .dot { color: var(--jaune); }
.slide.yellow .wm .dot, .slide.light .wm .dot { color: var(--noir); }

/* ---------- HUD ---------- */

#hud {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0;
  color: #7a7a7a; background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  transition: opacity .25s; z-index: 50;
}
#hud.hidden { opacity: 0; pointer-events: none; }
#bar { flex: 1; height: 3px; background: #262626; border-radius: 999px; overflow: hidden; }
#bar i { display: block; height: 100%; background: var(--jaune); width: 0; }
#hud b { color: #ddd; font-weight: 700; }
#hud .sec { color: var(--jaune); }

#notes {
  position: fixed; left: 0; right: 0; bottom: 34px;
  max-height: 26vh; overflow: auto;
  padding: 14px 18px;
  background: rgba(10,10,10,.94); color: #d8d8d8;
  font-size: 14px; line-height: 1.45; letter-spacing: 0;
  border-top: 2px solid var(--jaune);
  display: none; z-index: 51;
}
#notes.on { display: block; }
#notes b { color: var(--jaune); }

#toc {
  position: fixed; inset: 0;
  background: rgba(7,7,7,.97); color: #fff;
  padding: 40px; overflow: auto; display: none;
  letter-spacing: 0; z-index: 60;
}
#toc.on { display: block; }
#toc h2 { font-size: 22px; margin-bottom: 18px; color: var(--jaune); letter-spacing: -0.02em; }
#toc ol { list-style: none; columns: 2; column-gap: 40px; }
#toc li { padding: 7px 0; font-size: 15px; cursor: pointer; border-bottom: 1px solid #1c1c1c; }
#toc li:hover { color: var(--jaune); }
#toc li span { color: #666; margin-right: 10px; font-variant-numeric: tabular-nums; }

@media print {
  html, body { overflow: visible; background: #fff; }
  #hud, #notes, #toc { display: none !important; }
  #stage { position: static; display: block; }
  #frame { width: 100%; height: auto; }
  .slide { position: relative; display: flex !important; page-break-after: always; aspect-ratio: 16/9; }
  .on [data-a] { animation: none !important; }
}
