/* ============================================================
   Diapositives — canevas fixe 1600 × 900, mis à l'échelle en JS
   ============================================================ */
@font-face {
  font-family: "InterVar";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "InterVar";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #181B3F;
  --ink2: #3A3F5C;
  --panel: #262A52;
  --white: #FFFFFF;
  --soft: #F4F5F9;
  --orange: #F26B3A;
  --teal: #1A9E8F;
  --amber: #F2B134;
  --violet: #6C63FF;
  --muted: #6B7085;
  --line: #E3E5EE;
  --light: #C9CCDD;
  --font: "InterVar", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------- conteneur de mise à l'échelle ---------- */
.stage { position: relative; overflow: hidden; }
.stage > .slide { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* ---------- base ---------- */
.slide {
  width: 1600px; height: 900px;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  overflow: hidden;
  box-sizing: border-box;
  padding: 52px 72px 0;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.slide *, .slide *::before, .slide *::after { box-sizing: border-box; }
.slide.dark { background: var(--ink); color: var(--white); }

.slide .chap {
  font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); height: 22px;
}
.slide.dark .chap { color: var(--amber); }
.slide h1 {
  font-size: 40px; line-height: 1.15; font-weight: 750; letter-spacing: -.015em;
  margin: 10px 0 0; max-width: 1400px;
}
.slide .body { flex: 1; position: relative; margin-top: 40px; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding-bottom: 24px; }
.slide .body > * { flex: none; }
.slide .foot {
  height: 56px; display: flex; align-items: center; gap: 24px;
  font-size: 13px; color: var(--muted);
}
.slide.dark .foot { color: var(--light); }
.slide .foot .src { flex: 1; }
.slide .foot .pg { font-variant-numeric: tabular-nums; }

/* ---------- typographie utilitaire ---------- */
.k { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.k.teal { color: var(--teal); } .k.amber { color: var(--amber); } .k.violet { color: var(--violet); } .k.muted { color: var(--muted); } .k.light { color: var(--light); }
.c-orange { color: var(--orange); } .c-teal { color: var(--teal); } .c-amber { color: var(--amber); } .c-violet { color: var(--violet); } .c-muted { color: var(--muted); } .c-light { color: var(--light); } .c-white { color: #fff; }
.b { font-weight: 700; }
.it { font-style: italic; }
.t15 { font-size: 15px; } .t17 { font-size: 17px; } .t19 { font-size: 19px; } .t21 { font-size: 21px; } .t24 { font-size: 24px; } .t28 { font-size: 28px; line-height: 1.25; } .t34 { font-size: 34px; line-height: 1.2; }
.sub { color: var(--ink2); }
.dark .sub { color: var(--light); }

/* ---------- mise en page ---------- */
.row { display: flex; gap: 32px; }
.col { display: flex; flex-direction: column; gap: 16px; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g5 { grid-template-columns: repeat(5, 1fr); }
.fill { flex: 1; min-width: 0; }
.center { display: flex; align-items: center; justify-content: center; }

/* ---------- cartes ---------- */
.card { background: var(--soft); border-radius: 16px; padding: 26px 28px; }
.dark .card { background: var(--panel); }
.card.ink { background: var(--ink); color: #fff; }
.card h3 { margin: 6px 0 0; font-size: 22px; font-weight: 700; line-height: 1.25; }
.card p { margin: 8px 0 0; font-size: 17px; line-height: 1.45; color: var(--ink2); }
.dark .card p, .card.ink p { color: var(--light); }

/* ---------- icônes ---------- */
.dot { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; color: #fff; }
.dot svg { width: 46%; height: 46%; fill: currentColor; }
.bg-orange { background: var(--orange); } .bg-teal { background: var(--teal); } .bg-amber { background: var(--amber); } .bg-violet { background: var(--violet); } .bg-ink { background: var(--ink); } .bg-muted { background: var(--muted); } .bg-panel { background: var(--panel); }

/* ---------- chiffres ---------- */
.big { font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .big { font-size: 76px; }
.stat p { margin: 12px 0 0; font-size: 18px; line-height: 1.4; color: var(--ink2); }
.dark .stat p { color: var(--light); }

/* ---------- pastilles / listes ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 12px 26px; font-weight: 700; font-size: 18px; }
.sep { border-bottom: 1px solid var(--line); }
.dark .sep { border-color: rgba(255,255,255,.12); }
ul.clean { list-style: none; margin: 0; padding: 0; }
ul.dots { margin: 0; padding-left: 22px; }
ul.dots li { margin: 10px 0; font-size: 20px; line-height: 1.4; }
ul.dots li::marker { color: var(--orange); }

/* ---------- images ---------- */
.illu { display: block; }
.illu.round { border-radius: 18px; }
.feather { -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%); }

/* ---------- graphiques SVG ---------- */
.chart text { font-family: var(--font); }

/* ============================================================
   Gabarits spéciaux
   ============================================================ */
/* couverture */
.slide.cover { padding: 0; background: var(--ink) center/cover no-repeat; color: #fff; }
.cover .inner { position: absolute; left: 96px; top: 70px; width: 760px; }
.cover .eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .16em; color: var(--light); }
.cover h1 { font-size: 80px; line-height: 1.02; margin: 110px 0 0; letter-spacing: -.035em; font-weight: 800; }
.cover .lead { font-size: 26px; line-height: 1.4; color: var(--amber); margin-top: 30px; max-width: 640px; }

/* intercalaire de chapitre */
.slide.chapter { background: var(--ink); color: #fff; padding: 0; }
.chapter .txt { position: absolute; left: 96px; top: 120px; width: 690px; }
.chapter .n { font-size: 170px; font-weight: 850; color: var(--orange); line-height: .9; letter-spacing: -.05em; }
.chapter h1 { font-size: 56px; line-height: 1.08; margin: 40px 0 0; letter-spacing: -.025em; }
.chapter .q { font-size: 26px; line-height: 1.4; font-style: italic; color: var(--amber); margin-top: 34px; }
.chapter .illu { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); width: 760px; height: 760px; }

/* question au public */
.slide.question .qtext { font-size: 48px; line-height: 1.15; font-weight: 750; letter-spacing: -.02em; margin-top: 70px; max-width: 1400px; }
.question .opts { display: grid; gap: 28px; margin-top: 70px; }
.question .opt { background: var(--panel); border-radius: 18px; padding: 34px 36px; min-height: 250px; }
.question .opt .l { font-size: 40px; font-weight: 800; color: var(--amber); }
.question .opt .t { font-size: 25px; font-weight: 700; margin-top: 16px; line-height: 1.3; }
.question .vote { margin-top: 36px; font-size: 20px; font-style: italic; color: var(--light); }

/* conclusion */
.slide.closing { background: var(--ink); color: #fff; padding: 0; }
.closing .inner { position: absolute; left: 96px; right: 96px; top: 50%; transform: translateY(-50%); }

/* noir */
.blackout { position: fixed; inset: 0; background: #000; z-index: 50; display: none; }
.blackout.on { display: block; }
