/*
  Le deck du 11 novembre. Direction « Affiche », calmée : papier clair, texte marine, le prune en seul accent,
  le marine en fond pour les temps forts (ouvertures, citations), le jaune seulement sur marine.
  Canevas 1920 × 1080. Aucun texte sous 30 px.
*/

:root {
  --papier: #f7f2e8;
  --blanc: #fffdf8;
  --marine: #011c52;
  --prune: #a02957;
  --bleu: #006985;
  --ciel: #8fc9d4;
  --eau: #d1e4e3;
  --jaune: #febd00;
  --gris: #3e5278;
  --trait: #ded6c4;
  --f-titre: "Bricolage Grotesque Variable", system-ui, sans-serif;
  --f-texte: "DM Sans Variable", system-ui, sans-serif;
}

html,
body {
  height: 100%;
}

html body {
  background: var(--papier);
  transition: background-color 0.6s ease;
}

html:has(section.sombre.present) body {
  background: var(--marine);
}

.reveal {
  font-family: var(--f-texte);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--marine);
}

.reveal .slides {
  text-align: left;
}

.reveal .slides > section {
  height: 100%;
  padding: 0;
  box-sizing: border-box;
}

.page {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 84px 130px;
  display: flex;
  flex-direction: column;
  background: var(--papier);
}

.sombre .page {
  background: var(--marine);
  color: #fff;
}

.reveal h1,
.reveal h2,
.reveal h3 {
  font-family: var(--f-titre);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

.reveal h2 {
  font-size: 78px;
  margin-top: 22px;
  max-width: 1560px;
}

.reveal p,
.reveal ol,
.reveal ul,
.reveal dl,
.reveal dd,
.reveal figure {
  margin: 0;
  padding: 0;
}

.reveal ol,
.reveal ul {
  list-style: none;
}

.reveal img {
  display: block;
  max-width: 100%;
}

.sur {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--prune);
  display: flex;
  align-items: center;
  gap: 20px;
}

.sur::before {
  content: "";
  width: 56px;
  height: 6px;
  background: currentColor;
  flex: none;
}

.sombre .sur {
  color: var(--jaune);
}

.intro {
  font-size: 40px;
  line-height: 1.25;
  margin-top: 32px;
  color: var(--gris);
  max-width: 1500px;
}

/* Les fragments montent en apparaissant. */
.reveal .fragment {
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    visibility 0.6s;
}

.reveal .fragment.visible {
  transform: none;
}

/* ───────── Couverture ───────── */
.s-couverture .page {
  display: grid;
  grid-template-columns: 1fr 520px;
  align-items: center;
  gap: 80px;
}

.s-couverture h1 {
  margin-top: 40px;
}

.s-couverture h1 span {
  display: block;
}

.s-couverture .l1 {
  font-size: 128px;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.s-couverture .l2 {
  font-family: var(--f-texte);
  font-size: 54px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--gris);
  margin-top: 30px;
}

.s-couverture .l3 {
  font-size: 100px;
  color: var(--prune);
  margin-top: 8px;
}

.s-couverture .sous {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 40px;
  max-width: 980px;
  text-wrap: balance;
}

.s-couverture .infos {
  font-size: 34px;
  line-height: 1.4;
  color: var(--gris);
  margin-top: 44px;
  padding-top: 30px;
  border-top: 4px solid var(--marine);
  width: fit-content;
}

.s-couverture .logo img {
  width: 100%;
  mix-blend-mode: multiply;
}

/* ───────── Programme ───────── */
.s-programme .page {
  padding: 0;
  display: grid;
  grid-template-columns: 720px 1fr;
}

.s-programme .volet {
  background: var(--marine);
  color: #fff;
  padding: 96px 84px 90px;
  display: flex;
  flex-direction: column;
}

.s-programme h2 {
  font-size: 100px;
  margin: 0;
  line-height: 0.95;
}

.s-programme .sur {
  color: var(--jaune);
  margin-top: auto;
}

.s-programme .objectif {
  font-size: 36px;
  line-height: 1.34;
  margin-top: 26px;
  text-wrap: pretty;
}

.parties {
  padding: 60px 110px 60px 90px !important;
  display: flex;
  flex-direction: column;
}

.parties li {
  flex: 1;
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  border-bottom: 3px solid var(--trait);
}

.parties li:last-child {
  border-bottom: 0;
}

.parties b {
  font-family: var(--f-titre);
  font-size: 92px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--prune);
}

.parties span {
  text-wrap: balance;
  font-family: var(--f-titre);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

/* ───────── Ouverture de partie ───────── */
.s-ouverture .page {
  display: grid;
  grid-template-columns: 1fr 700px;
  align-items: center;
  gap: 100px;
}

.s-ouverture .numero {
  font-family: var(--f-titre);
  font-size: 330px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: var(--eau);
  margin-left: -14px;
}

.s-ouverture h1 {
  font-size: 112px;
  margin-top: 64px;
}

.s-ouverture .image {
  background: #fafaf8;
  border-radius: 50%;
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.s-ouverture .image img {
  width: 88%;
}

/* ───────── Frise : les dates grossissent, l'histoire s'accélère ───────── */
.jalons {
  margin-top: auto !important;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: 236px auto 236px;
}

.jalons::before {
  content: "";
  grid-row: 2;
  grid-column: 1 / -1;
  height: 8px;
  background: var(--marine);
}

.jalons li {
  grid-column-end: span 2;
  position: relative;
  padding: 0 20px 0 26px;
  border-left: 5px solid var(--marine);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jalons li:nth-child(odd) {
  grid-row: 1;
}

.jalons li:nth-child(even) {
  grid-row: 3;
  padding-top: 26px;
}

.jalons li:nth-child(1) { grid-column-start: 1; --n: 1; }
.jalons li:nth-child(2) { grid-column-start: 2; --n: 2; }
.jalons li:nth-child(3) { grid-column-start: 3; --n: 3; }
.jalons li:nth-child(4) { grid-column-start: 4; --n: 4; }
.jalons li:nth-child(5) { grid-column-start: 5; --n: 5; }
.jalons li:nth-child(6) { grid-column-start: 6; --n: 6; }
.jalons li:nth-child(7) { grid-column-start: 7; --n: 7; }

/* Le point posé sur l'axe, de plus en plus gros. */
.jalons li::before {
  content: "";
  position: absolute;
  --d: calc(16px + var(--n) * 5px);
  width: var(--d);
  height: var(--d);
  left: calc(var(--d) / -2 - 2.5px);
  border-radius: 50%;
  background: var(--prune);
  box-shadow: 0 0 0 6px var(--papier);
}

.jalons li:nth-child(odd)::before {
  bottom: calc(var(--d) / -2 - 4px);
}

.jalons li:nth-child(even)::before {
  top: calc(var(--d) / -2 - 4px);
}

.jalons b {
  font-family: var(--f-titre);
  font-size: calc(46px + var(--n) * 5px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--prune);
  white-space: nowrap;
}

.jalons span {
  font-size: 32px;
  line-height: 1.2;
}

.jalons li.fort b {
  width: fit-content;
  background: var(--marine);
  color: #fff;
  padding: 4px 18px 10px;
  margin-left: -6px;
}

.jalons li.fort span {
  font-weight: 700;
}

/* ───────── Familles : quatre cercles emboîtés ───────── */
.s-familles .page {
  padding-top: 64px;
  padding-bottom: 56px;
}

.s-familles .corps {
  flex: 1;
  min-height: 0;
  margin-top: 16px;
  display: grid;
  grid-template-columns: 660px 1fr;
  gap: 90px;
  align-items: center;
}

.poupees {
  position: relative;
  width: 660px;
  height: 660px;
}

.poupees .c {
  position: absolute;
  border-radius: 50%;
  width: var(--d);
  height: var(--d);
  left: calc(50% - var(--d) / 2);
  bottom: var(--b);
  text-align: center;
  font-family: var(--f-titre);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  transform-origin: 50% 100%;
}

.reveal .poupees .fragment {
  transform: scale(0.86);
}

.reveal .poupees .fragment.visible {
  transform: none;
}

.poupees .c span {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--t);
}

.poupees .c1 { --d: 660px; --b: 0px; --t: 26px; background: var(--eau); font-size: 36px; }
.poupees .c2 { --d: 510px; --b: 22px; --t: 46px; background: var(--ciel); font-size: 32px; }
.poupees .c3 { --d: 360px; --b: 44px; --t: 46px; background: var(--bleu); color: #fff; font-size: 31px; }
.poupees .c4 { --d: 210px; --b: 66px; --t: 66px; background: var(--marine); color: #fff; font-size: 34px; }

.definitions {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.definitions > div {
  padding-left: 34px;
  border-left: 14px solid var(--teinte);
}

.definitions .d1 { --teinte: var(--eau); }
.definitions .d2 { --teinte: var(--ciel); }
.definitions .d3 { --teinte: var(--bleu); }
.definitions .d4 { --teinte: var(--marine); }

.definitions dt {
  font-family: var(--f-titre);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.definitions dt i {
  font-family: var(--f-texte);
  font-style: normal;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--gris);
}

.definitions dd {
  font-size: 30px;
  line-height: 1.25;
  margin-top: 4px;
  text-wrap: pretty;
}

.definitions dd.ex {
  color: var(--prune);
  font-weight: 600;
}

/* ───────── Chaîne : du prompt à la réponse, et retour ───────── */
.s-chaine h2 {
  font-size: 70px;
}

.s-chaine .intro {
  font-size: 36px;
  margin-top: 32px;
}

.chaine {
  margin-top: auto !important;
  display: grid;
  grid-template-columns: 1fr 0.9fr 0.8fr 1.75fr 1.05fr;
  gap: 62px;
  align-items: stretch;
}

.chaine > li {
  position: relative;
  background: var(--blanc);
  border: 3px solid var(--marine);
  padding: 26px 26px 30px;
  min-height: 400px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chaine > li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -50px;
  top: calc(50% - 20px);
  border: 20px solid transparent;
  border-left: 30px solid var(--prune);
  border-right: 0;
}

.chaine h3 {
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  min-height: 66px;
}

.chaine .bulle {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: auto;
  margin-bottom: auto;
}

.chaine .bulle strong {
  color: #fff;
  background: var(--prune);
  display: inline-block;
  margin-top: 8px;
  padding: 2px 14px 6px;
  white-space: nowrap;
}

.chaine .note {
  font-size: 30px;
  color: var(--gris);
}

.jetons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto !important;
  margin-bottom: auto !important;
}

.jetons i {
  font-style: normal;
  font-size: 42px;
  font-weight: 600;
  padding: 4px 16px 8px;
  background: var(--eau);
}

.jetons i:nth-child(2) { background: #f6dc9a; }
.jetons i:nth-child(3) { background: #efc3d2; }
.jetons i:nth-child(4) { background: var(--ciel); }

.chaine .e-modele {
  background: var(--marine);
  color: #fff;
  align-items: center;
  text-align: center;
}

.chaine .e-modele h3 {
  min-height: 0;
  font-size: 46px;
  margin-top: auto;
}

.chaine .rond {
  font-size: 36px;
  line-height: 1.15;
  color: var(--eau);
  margin-bottom: auto;
}

.candidats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto !important;
  margin-bottom: auto !important;
}

.candidats li {
  display: grid;
  grid-template-columns: 218px 1fr;
  align-items: center;
  gap: 14px;
  font-size: 31px;
  white-space: nowrap;
  line-height: 1.2;
}

.candidats i {
  height: 26px;
  width: calc(var(--part) * 100%);
  background: var(--bleu);
}

.candidats .retenu {
  font-weight: 800;
  color: var(--prune);
}

.candidats .retenu i {
  background: var(--prune);
}

.boucle {
  margin-top: 4px;
}

.boucle svg {
  display: block;
  width: 100%;
  height: 60px;
  overflow: visible;
}

.boucle path {
  fill: none;
  stroke: var(--prune);
  stroke-width: 5;
}

.boucle .pointe {
  fill: var(--prune);
  stroke: none;
}

.boucle p {
  font-size: 34px;
  font-weight: 600;
  text-align: center;
  margin-top: 6px;
}

/* ───────── Probabilités ───────── */
.s-probabilites h2 {
  font-size: 68px;
}

.tableau {
  margin-top: auto;
  display: grid;
  grid-template-columns: 290px 1fr 1fr;
  column-gap: 44px;
  row-gap: 30px;
  align-items: center;
}

.tableau .rang {
  font-family: var(--f-titre);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.tableau .demande {
  align-self: stretch;
  background: var(--eau);
  padding: 24px 40px 30px;
  font-size: 46px;
  font-weight: 600;
  line-height: 1.16;
  text-wrap: balance;
}

.tableau .demande b {
  color: var(--prune);
  font-weight: 800;
}

.probas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 40px !important;
}

.probas li {
  display: grid;
  grid-template-columns: 220px 1fr 140px;
  align-items: center;
  gap: 22px;
  font-size: 40px;
  line-height: 1.2;
}

.probas i {
  position: relative;
  height: 32px;
  background: var(--trait);
}

.probas i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--part) * 100%);
  background: var(--bleu);
  transform-origin: 0 50%;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}

.probas.fragment:not(.visible) i::after {
  transform: scaleX(0);
}

.probas b {
  font-family: var(--f-titre);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: right;
}

.probas .retenu {
  font-weight: 800;
  color: var(--prune);
}

.probas .retenu i::after {
  background: var(--prune);
}

.tableau .reponse {
  align-self: stretch;
  background: var(--marine);
  color: #fff;
  padding: 24px 40px 30px;
  font-size: 46px;
  font-weight: 600;
  line-height: 1.16;
  text-wrap: balance;
}

.tableau .reponse strong {
  color: var(--jaune);
  font-weight: 800;
}

/* ───────── Trois colonnes illustrées ───────── */
.colonnes {
  flex: 1;
  min-height: 0;
  margin-top: 44px !important;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.colonnes figure {
  position: relative;
  margin-bottom: 46px;
}

.colonnes figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.colonnes figure b {
  position: absolute;
  left: 0;
  bottom: -30px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  background: var(--prune);
  color: #fff;
  font-family: var(--f-titre);
  font-size: 62px;
  font-weight: 700;
}

.colonnes h3 {
  font-size: 44px;
  line-height: 1.04;
  min-height: 92px;
}

.colonnes p {
  font-size: 32px;
  line-height: 1.26;
  margin-top: 16px;
  text-wrap: pretty;
}

.colonnes .appui {
  font-weight: 700;
  color: var(--prune);
}

/* ───────── Six cartes illustrées ───────── */
.s-cartes .page {
  padding-top: 76px;
  padding-bottom: 76px;
}

.s-cartes h2 {
  font-size: 72px;
}

.cartes {
  flex: 1;
  min-height: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 22px;
}

.cartes figure {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.cartes img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.cartes figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--marine);
  color: #fff;
}

.cartes b {
  font-family: var(--f-titre);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.cartes figcaption span {
  font-size: 30px;
  line-height: 1.2;
  color: var(--eau);
}

/* ───────── Portrait ───────── */
.s-portrait .page {
  padding: 0 130px 0 0;
  display: grid;
  grid-template-columns: 740px 1fr;
  gap: 100px;
  align-items: center;
}

.s-portrait .image {
  align-self: stretch;
}

.s-portrait .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-portrait h2 {
  font-size: 118px;
  margin-top: 28px;
}

.s-portrait .corps {
  font-size: 52px;
  line-height: 1.26;
  margin-top: 44px;
  text-wrap: pretty;
}

.s-portrait .corps strong {
  color: var(--jaune);
  font-weight: 800;
}

.s-portrait .mention {
  font-size: 30px;
  margin-top: 48px;
  color: var(--eau);
}

/* ───────── Citation ───────── */
.s-citation .page {
  justify-content: center;
  align-items: flex-start;
  padding-left: 330px;
}

.s-citation blockquote {
  position: relative;
  margin: 0;
  max-width: 1440px;
}

.s-citation blockquote::before {
  content: "«";
  position: absolute;
  left: -262px;
  top: -138px;
  font-family: var(--f-titre);
  font-weight: 800;
  font-size: 400px;
  line-height: 1;
  color: var(--jaune);
}

.s-citation blockquote p {
  font-family: var(--f-titre);
  font-size: 98px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: pretty;
}

.s-citation .source {
  margin-top: 60px;
  font-size: 38px;
  font-weight: 600;
  color: var(--eau);
  padding-top: 26px;
  border-top: 4px solid var(--jaune);
}

/* ───────── Chute ───────── */
.s-chute .page {
  justify-content: center;
}

.s-chute h2 {
  font-size: 196px;
  letter-spacing: -0.05em;
  line-height: 0.94;
  margin-top: 40px;
  max-width: none;
}

.s-chute .non {
  color: var(--prune);
}

.lignes {
  margin-top: 64px !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 54px;
  font-weight: 600;
}

.lignes li {
  display: block;
}

.lignes li::before {
  content: "";
  display: inline-block;
  width: 44px;
  height: 8px;
  background: var(--prune);
  margin-right: 24px;
  vertical-align: 0.28em;
}

.lignes em {
  font-style: normal;
  color: var(--prune);
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .reveal .fragment,
  .reveal .poupees .fragment {
    transform: none;
  }
  .probas i::after {
    transition: none;
  }
}

/* ═════════ Les autres mises en page du deck complet ═════════ */

.reveal h2.long {
  font-size: 64px;
}

.reveal .slides section .notes {
  display: none;
}

.a-remplir {
  color: var(--gris);
  font-weight: 500;
  font-style: italic;
  border-bottom: 3px dashed var(--prune);
}

.mention {
  font-size: 30px;
  color: var(--gris);
}

.jalons b small {
  font-family: var(--f-texte);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  display: block;
  margin-bottom: 4px;
}

/* ───────── Vidéo et écran du quiz : tout l'écran ───────── */
.s-video .page,
.s-direct .page {
  padding: 0;
}

.s-video .ecran {
  position: absolute;
  inset: 0;
}

.s-video video,
.s-video iframe,
.s-direct iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  max-width: none;
  max-height: none;
  object-fit: contain;
  background: var(--marine);
}

.s-direct iframe {
  background: #0b0d14;
}

/* ───────── Citations : trois corps selon la longueur ───────── */
.s-citation blockquote.moyenne p {
  font-size: 82px;
}

.s-citation blockquote.longue p {
  font-size: 70px;
  line-height: 1.08;
}

.s-citation .question {
  font-family: var(--f-titre);
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--jaune);
  margin-bottom: 110px;
  max-width: 1300px;
  text-wrap: balance;
}

.s-citation .question + blockquote p {
  font-size: 72px;
}

/* ───────── Chapeau et liste ───────── */
.s-chapeau .corps {
  flex: 1;
  min-height: 0;
  margin-top: 48px;
  display: grid;
  grid-template-columns: 740px 1fr;
  gap: 80px;
  align-items: start;
}

.chapeau {
  background: var(--marine);
  color: #fff;
  padding: 44px 48px 50px !important;
  font-size: 37px;
  line-height: 1.32;
  text-wrap: pretty;
}

.puces {
  display: flex;
  flex-direction: column;
}

.puces li {
  font-size: 35px;
  font-weight: 600;
  line-height: 1.2;
  padding: 18px 0 20px 56px;
  border-bottom: 3px solid var(--trait);
  position: relative;
  text-wrap: pretty;
}

.puces li:first-child {
  padding-top: 0;
}

.puces li:last-child {
  border-bottom: 0;
}

.puces li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 34px;
  width: 30px;
  height: 8px;
  background: var(--prune);
}

.puces li:first-child::before {
  top: 16px;
}

/* ───────── Image sous un titre ───────── */
.s-image-titree .grande {
  flex: 1;
  min-height: 0;
  margin-top: 36px;
  position: relative;
}

.s-image-titree .grande img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.s-cartes.avec-mention .page {
  padding-bottom: 50px;
}

.s-cartes .mention {
  margin-top: 16px;
}

/* ───────── Quatre mécanismes ───────── */
.s-mecanismes .blocs {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.s-mecanismes .blocs li,
.s-mecanismes .bandeau > div {
  position: relative;
  padding-left: 96px;
}

.s-mecanismes .blocs li {
  background: var(--blanc);
  border-top: 10px solid var(--marine);
  padding: 30px 30px 34px 112px;
}

.s-mecanismes b {
  position: absolute;
  left: 30px;
  top: 22px;
  font-family: var(--f-titre);
  font-size: 84px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--prune);
}

.s-mecanismes h3 {
  font-size: 50px;
}

.s-mecanismes p {
  font-size: 33px;
  line-height: 1.24;
  margin-top: 12px;
  text-wrap: pretty;
}

.s-mecanismes .bandeau {
  flex: 1;
  min-height: 0;
  margin-top: 32px;
  background: var(--eau);
  border-top: 10px solid var(--marine);
  padding: 26px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.s-mecanismes .bandeau .tete {
  position: relative;
  padding-left: 82px;
  display: flex;
  align-items: baseline;
  gap: 30px;
}

.s-mecanismes .bandeau .tete p {
  margin-top: 0;
  font-size: 36px;
}

.s-mecanismes .bandeau b {
  left: 0;
  top: -12px;
}

/* Les deux images à la même hauteur, entières : 16:9 pour le montage, 5:1 pour le GIF aux trois volets. */
.s-mecanismes .vues {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: center;
}

.s-mecanismes .vues img {
  min-width: 0;
  height: auto;
  max-height: 100%;
}

.s-mecanismes .vues img:first-child {
  flex: 1.778 1 0;
}

.s-mecanismes .vues img:last-child {
  flex: 5 1 0;
}

/* ───────── Quiz : l'annonce, les images sont dans l'app ───────── */
.s-quiz .page {
  justify-content: center;
}

.s-quiz h2 {
  font-size: 150px;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin-top: 36px;
  max-width: 1500px;
}

.s-quiz .consigne {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 60px;
  color: var(--gris);
}

.s-quiz .appel {
  font-family: var(--f-titre);
  font-size: 84px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-top: 14px;
  color: var(--prune);
}

.hesiter {
  margin-top: 70px !important;
  background: var(--marine);
  color: #fff;
  padding: 26px 40px 30px !important;
  font-size: 44px;
  width: fit-content;
}

.hesiter strong {
  font-family: var(--f-titre);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--jaune);
  margin-right: 18px;
}

/* ───────── Grande liste ───────── */
.grandes {
  flex: 1;
  min-height: 0;
  margin-top: 40px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  counter-reset: rang;
}

.grandes li {
  counter-increment: rang;
  position: relative;
  padding: 24px 0 26px 120px;
  border-bottom: 3px solid var(--trait);
  font-size: 44px;
  line-height: 1.2;
  text-wrap: pretty;
}

.grandes li:last-child {
  border-bottom: 0;
}

.grandes li::before {
  content: counter(rang);
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--f-titre);
  font-size: 76px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--prune);
}

.grandes li strong {
  font-weight: 800;
}

.grandes.aeree li {
  font-size: 52px;
  padding-top: 30px;
  padding-bottom: 32px;
}

.grandes.dense li {
  font-size: 37px;
  padding-top: 18px;
  padding-bottom: 20px;
}

.grandes.dense li::before {
  font-size: 64px;
}

/* ───────── Chute : la suite ───────── */
.s-chute .suite {
  margin-top: 56px;
  padding-top: 30px;
  border-top: 4px solid var(--marine);
  font-size: 40px;
  font-weight: 600;
  color: var(--gris);
  width: fit-content;
}

/* ───────── Quatre aquarelles ───────── */
.rangee {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.rangee figure,
.paire figure {
  text-align: center;
}

.rangee figure {
  background: var(--papier);
}

.rangee img {
  width: 92%;
  margin: 0 auto;
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.rangee figcaption,
.paire figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

.rangee b,
.paire b {
  font-family: var(--f-titre);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.rangee figcaption span,
.paire figcaption span {
  font-size: 34px;
  color: var(--prune);
  font-weight: 700;
}

.s-quatre .appui {
  margin-top: auto;
  background: var(--marine);
  color: #fff;
  padding: 28px 44px 32px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.26;
  text-wrap: pretty;
}

/* ───────── Texte et image ───────── */
.s-texte-image .page {
  padding: 0 130px 0 0;
  display: grid;
  grid-template-columns: 800px 1fr;
  gap: 90px;
  align-items: center;
}

.s-texte-image .image,
.s-questions .image {
  align-self: stretch;
  position: relative;
}

.s-texte-image .image img,
.s-questions .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-texte-image h2,
.s-questions h2 {
  font-size: 68px;
}

.s-texte-image .lignes {
  font-size: 44px;
  line-height: 1.2;
  gap: 26px;
  margin-top: 54px !important;
}

.s-texte-image .lignes li {
  padding-left: 68px;
  text-indent: -68px;
  text-wrap: pretty;
}

.s-texte-image .lignes li.duo {
  padding-left: 0;
  text-indent: 0;
  border-left: 10px solid var(--prune);
  padding-left: 30px;
}

.s-texte-image .lignes li.duo::before {
  display: none;
}

.s-texte-image .lignes li.duo strong {
  display: block;
  font-family: var(--f-titre);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.s-texte-image .lignes li.duo span {
  font-weight: 500;
}

.s-texte-image .mention {
  margin-top: 44px;
}

/* ───────── Deux images reliées ───────── */
.paire {
  flex: 1;
  min-height: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 330px 1fr;
  gap: 30px;
  align-items: center;
}

.paire img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.paire .lien {
  align-self: center;
  margin-bottom: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--prune);
}

.paire .lien i {
  width: 100%;
  height: 6px;
  background: var(--prune);
}

/* ───────── Qui doit répondre ? ───────── */
.s-questions .page {
  padding: 0 130px 0 0;
  display: grid;
  grid-template-columns: 800px 1fr;
  gap: 90px;
  align-items: center;
}

.s-questions figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--marine);
  color: #fff;
  padding: 22px 34px 26px;
  font-size: 32px;
  line-height: 1.22;
}

.qui {
  margin-top: 44px !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qui li {
  font-family: var(--f-titre);
  font-size: 84px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--prune);
}

.s-questions .appui {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 4px solid var(--marine);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.22;
}

/* ───────── Repères : une date ou un nom, puis le fait ───────── */
.reperes {
  flex: 1;
  min-height: 0;
  margin-top: 40px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reperes li {
  display: grid;
  grid-template-columns: 470px 1fr;
  gap: 50px;
  align-items: baseline;
  padding: 30px 0 34px;
  border-bottom: 3px solid var(--trait);
}

.reperes li:last-child {
  border-bottom: 0;
}

.reperes b {
  font-family: var(--f-titre);
  font-size: 58px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--prune);
  text-wrap: balance;
}

.reperes span {
  font-size: 44px;
  line-height: 1.22;
  text-wrap: pretty;
}

.reperes li.sans {
  grid-template-columns: 1fr;
}

.reperes li.sans span {
  font-weight: 700;
}

.affirmation {
  margin-top: auto !important;
  margin-bottom: auto !important;
  font-family: var(--f-titre);
  font-size: 84px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 1500px;
  text-wrap: balance;
}

/* ───────── Image pleine ───────── */
.s-image-pleine .page {
  padding: 0;
}

.s-image-pleine img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reveal em {
  font-style: italic;
}

.lignes em {
  font-style: normal;
}

.soude {
  white-space: nowrap;
}

/* ───────── Flèches et barre de progression de Reveal, aux couleurs du deck ───────── */
.reveal .controls {
  color: var(--prune);
}

.reveal .progress {
  color: var(--prune);
  background: rgb(1 28 82 / 0.12);
  height: 8px;
}

html:has(section.sombre.present) .reveal .controls,
html:has(section.sombre.present) .reveal .progress {
  color: var(--jaune);
}

html:has(section.sombre.present) .reveal .progress {
  background: rgb(255 255 255 / 0.16);
}

/* ───────── Numéro de slide ───────── */
.reveal .slide-number {
  right: 1.6vw;
  bottom: 1.5vw;
  padding: 0;
  background: none;
  font-family: var(--f-titre);
  font-size: 1.35vw;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gris);
}

.reveal .slide-number a {
  color: inherit;
  text-decoration: none;
}

html:has(section.sombre.present) .reveal .slide-number {
  color: var(--eau);
}

/* Rien par-dessus une vidéo, l'écran du quiz ou une image pleine. */
html:has(section:is(.s-video, .s-direct, .s-image-pleine).present) .reveal .slide-number {
  display: none !important;
}

/* ───────── Numéro de slide ───────── */
.reveal .slide-number {
  right: 1.6vw;
  bottom: 1.5vw;
  padding: 0;
  background: none;
  font-family: var(--f-titre);
  font-size: 1.35vw;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gris);
}

.reveal .slide-number a {
  color: inherit;
  text-decoration: none;
}

html:has(section.sombre.present) .reveal .slide-number {
  color: var(--eau);
}

/* Rien par-dessus une vidéo, l'écran du quiz ou une image pleine. */
html:has(section:is(.s-video, .s-direct, .s-image-pleine).present) .reveal .slide-number {
  display: none !important;
}

/* Le cadre épouse la vidéo, pour que le bandeau des sous-titres tombe juste sur le bas de l'image. */
.s-video .ecran {
  container-type: size;
  display: grid;
  place-items: center;
  background: var(--marine);
}

.s-video .cadre {
  --proportions: 1.7778;
  position: relative;
  width: min(100cqw, calc(100cqh * var(--proportions)));
  aspect-ratio: var(--proportions);
}

.s-video .sous-titree {
  cursor: pointer;
}

/* Bandeau opaque : il recouvre les sous-titres incrustés dans l'image (les 15 % du bas). */
.s-video .sous-titres {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 15%;
  box-sizing: border-box;
  padding: 14px 60px 20px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--marine);
  color: #fff;
  font-size: 50px;
  font-weight: 600;
  line-height: 1.2;
}

/* ───────── Numéro de slide ───────── */
.reveal .slide-number {
  right: 1.6vw;
  bottom: 1.5vw;
  padding: 0;
  background: none;
  font-family: var(--f-titre);
  font-size: 1.35vw;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gris);
}

.reveal .slide-number a {
  color: inherit;
  text-decoration: none;
}

html:has(section.sombre.present) .reveal .slide-number {
  color: var(--eau);
}

/* Rien par-dessus une vidéo, l'écran du quiz ou une image pleine. */
html:has(section:is(.s-video, .s-direct, .s-image-pleine).present) .reveal .slide-number {
  display: none !important;
}

/* Sous-titres des vidéos : gros, sur un aplat opaque qui recouvre les sous-titres incrustés dans l'image. */
.s-video video::cue {
  font-family: "DM Sans Variable", system-ui, sans-serif;
  font-size: 0.062em;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  background: #011c52;
}

/* ───────── Frise à quatre jalons au plus : étalée sur toute la largeur (partie 5) ───────── */
.jalons.etales li:nth-child(1) { grid-column-start: 1; }
.jalons.etales li:nth-child(2) { grid-column-start: 3; }
.jalons.etales li:nth-child(3) { grid-column-start: 5; }
.jalons.etales li:nth-child(4) { grid-column-start: 7; }
.jalons.etales b { font-size: 58px; }
.jalons.etales span { font-size: 40px; }

/* ───────── Crédits des images : présents et lisibles de près, discrets de loin ─────────
   La seule exception à « aucun texte sous 30 px » : une mention légale, pas un texte pour la salle.
   Dans le coin bas gauche de la slide ; « sur-image » quand ce coin est une image. */
.reveal .credit {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  max-width: 700px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--gris);
  opacity: 0.62;
}

/* Sur une image, claire ou sombre : un petit cartouche marine translucide, pour rester lisible de près. */
.reveal .credit.sur-image {
  left: 12px;
  bottom: 18px;
  padding: 3px 9px 4px;
  border-radius: 3px;
  background: rgb(1 28 82 / 0.5);
  color: rgb(255 255 255 / 0.82);
  opacity: 1;
}

/* Une image plus haute que la slide (illustration en hauteur) est rognée, elle n'agrandit pas la grille. */
.s-texte-image .page {
  grid-template-rows: minmax(0, 1fr);
}

.s-texte-image .image {
  min-height: 0;
}

/* ───────── Citation illustrée : l'image à gauche sur toute la hauteur, la citation à droite ───────── */
.s-citation.illustree .page {
  padding-left: 930px;
  padding-right: 120px;
}

.s-citation.illustree .image {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 800px;
}

.s-citation.illustree .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-citation.illustree blockquote::before {
  left: -10px;
  top: -200px;
  font-size: 260px;
}

.s-citation.illustree blockquote p {
  font-size: 84px;
}

/* ───────── Phrase illustrée (partie 5) : la phrase à gauche, l'image et sa mention à droite ───────── */
.s-reperes.illustree .page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 800px;
  grid-template-rows: minmax(0, 1fr);
  gap: 80px;
}
.s-reperes.illustree .texte { display: flex; flex-direction: column; min-width: 0; }
.s-reperes.illustree .affirmation { font-size: 72px; }
.s-reperes.illustree .image { align-self: center; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.s-reperes.illustree .image img { width: 100%; max-height: 800px; object-fit: cover; object-position: top; }
