/* Titan Crew : le dossier remis à l'équipage du tour 32.
   Une page sombre comme une cabine de nuit ; la machine en jaune ; l'émail des tableaux de bord ; le papier de l'Office.
   Mise en page : une colonne de lecture, des planches pleine largeur pour les images, des onglets de manuel sur le bord. */
:root {
  --graphite: #101517;
  --acier: #172023;
  --acier-2: #1f292d;
  --trait: #2c383c;
  --texte: #d8ddd8;
  --sourd: #95a19d;
  --creme: #e6dbbb;
  --jaune: #f2c14e;
  --jaune-sombre: #b8891f;
  --eau: #6cb8d9;
  --vert: #4cc47c;
  --ambre: #f0a23a;
  --rouge: #e25544;
  --papier: #ebe4d0;
  --papier-ombre: #d9d0b8;
  --encre: #24211c;
  --tampon: #4c4fa3;
  --email: #e3dfd2;
  --email-ombre: #c8c2b2;
  --noir: #0a0d0e;

  --f-titre: "Big Shoulders Stencil Display", "Big Shoulders Display", Impact, "Arial Narrow Bold", sans-serif;
  --f-label: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-texte: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-doc: "Courier Prime", "Courier New", Courier, monospace;

  --t-titre: clamp(2.7rem, 5.2vw + 1rem, 6rem);
  --t-sous: clamp(1.7rem, 2.2vw + 0.9rem, 2.6rem);
  --t-gros: clamp(1.15rem, 0.6vw + 1rem, 1.4rem);
  --t-corps: 1.0625rem;
  --t-petit: 0.9rem;
  --t-label: 0.8rem;

  --gouttiere-g: max(16px, env(safe-area-inset-left, 0px));
  --gouttiere-d: max(16px, env(safe-area-inset-right, 0px));
  --barre: 58px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--graphite);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: var(--t-corps);
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--graphite);
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
[hidden] { display: none !important; }
/* Une langue à la fois : le français sans script ni choix, sinon celle de data-lang. */
html:not([data-lang="en"]) [data-l="en"],
html:not([data-lang="ja"]) [data-l="ja"],
html[data-lang="en"] [data-l="fr"],
html[data-lang="ja"] [data-l="fr"] { display: none !important; }

/* Le japonais : les lettres latines gardent leurs polices, les kana et kanji prennent la suite. */
html[data-lang="ja"] {
  --f-titre: "Big Shoulders Stencil Display", "Dela Gothic One", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-label: "Barlow Condensed", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-texte: "Barlow", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-doc: "Courier Prime", "M PLUS 1 Code", "Noto Sans JP", monospace;
  --t-titre: clamp(2.2rem, 3.6vw + 1rem, 4.4rem);
  --t-sous: clamp(1.45rem, 1.6vw + 0.9rem, 2.1rem);
}
html[data-lang="ja"] body { line-height: 1.85; }
html[data-lang="ja"] :is(.titre, .sous-titre, .acte h3, .plan h3, .communaute h3, .fiche-pont h3, .sans-combat .grand, .appel p) {
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 400;
  word-break: auto-phrase;
}
html[data-lang="ja"] :is(.etiquette, .zone-nom, .bouton, .hero-date, .hero-faits, .puce, .onglets a, .sommaire a, .regles b) { letter-spacing: 0.04em; }
html[data-lang="ja"] .onglets a { text-orientation: upright; letter-spacing: 0.1em; }
html[data-lang="ja"] :is(.chapeau, .texte p, .acte p, .plan dd) { word-break: auto-phrase; line-break: strict; }
a { color: var(--jaune); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--jaune); outline-offset: 3px; }
::selection { background: var(--jaune); color: var(--noir); }

.cadre {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: var(--gouttiere-g);
  padding-right: var(--gouttiere-d);
}
.saut { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 14px; background: var(--jaune); color: var(--noir); }
.saut:focus { left: 12px; top: calc(env(safe-area-inset-top, 0px) + 8px); }

/* --- Les mots de tous les jours ------------------------------------------------------------------------- */
.etiquette {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sourd);
  margin: 0;
}
.etiquette b { color: var(--jaune); font-weight: 700; }
.titre {
  font-family: var(--f-titre);
  font-weight: 800;
  font-size: var(--t-titre);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--creme);
  margin: 0.35em 0 0.4em;
  text-wrap: balance;
}
.sous-titre {
  font-family: var(--f-titre);
  font-weight: 800;
  font-size: var(--t-sous);
  line-height: 1;
  text-transform: uppercase;
  color: var(--creme);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
.chapeau { font-size: var(--t-gros); line-height: 1.5; color: var(--texte); max-width: 62ch; margin: 0 0 1em; }
.texte p, .texte ul { max-width: 64ch; }
.texte p { margin: 0 0 1em; }
.sourd { color: var(--sourd); }
.plaque-mot {
  font-family: var(--f-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.86em;
  padding: 0.05em 0.4em;
  border: 1px solid currentColor;
  border-radius: 2px;
  white-space: nowrap;
}
.section { position: relative; padding-block: clamp(72px, 9vw, 136px); scroll-margin-top: var(--barre); }
.section + .section { border-top: 1px solid var(--trait); }
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .deux-colonnes { grid-template-columns: minmax(0, 1fr); } }

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.7em 1.25em;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.bouton svg { width: 1.15em; height: 1.15em; flex: none; }
.bouton-jaune { background: var(--jaune); color: var(--noir); }
.bouton-jaune:hover { background: #ffd469; }
.bouton-trait { border-color: color-mix(in srgb, var(--creme) 55%, transparent); color: var(--creme); background: rgba(10, 13, 14, 0.35); }
.bouton-trait:hover { border-color: var(--creme); background: rgba(10, 13, 14, 0.6); }
.bouton:active { transform: translateY(1px); }

.voyant {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: #3a2e14;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
  vertical-align: 0.05em;
  flex: none;
}
.voyant.vert { background: var(--vert); box-shadow: 0 0 10px color-mix(in srgb, var(--vert) 70%, transparent); }
.voyant.ambre { background: var(--ambre); box-shadow: 0 0 10px color-mix(in srgb, var(--ambre) 70%, transparent); }
.voyant.rouge { background: var(--rouge); box-shadow: 0 0 10px color-mix(in srgb, var(--rouge) 70%, transparent); }
.voyant.clignote { animation: clignote 0.9s steps(2, jump-none) infinite; }
@keyframes clignote { 0% { opacity: 1; } 50% { opacity: 0.25; } }

.bande-danger {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--jaune) 0 14px, var(--noir) 14px 28px);
}

/* --- La barre du haut et les onglets du manuel ----------------------------------------------------------- */
.barre {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  height: var(--barre);
  background: rgba(16, 21, 23, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}
.barre .cadre { height: 100%; display: flex; align-items: center; gap: 12px; max-width: none; }
.barre-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.barre-logo img { height: 24px; width: auto; }
.barre-logo span { font-family: var(--f-label); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; color: var(--sourd); text-transform: uppercase; white-space: nowrap; }
@media (max-width: 720px) { .barre-logo span { display: none; } }
.langues { display: inline-flex; border: 1px solid var(--trait); border-radius: 2px; overflow: hidden; flex: none; }
.langues button {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  min-height: 36px;
  font-family: var(--f-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--sourd);
  cursor: pointer;
}
.langues button[aria-pressed="true"] { background: var(--creme); color: var(--noir); }
.langues a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  min-height: 36px;
  font-family: var(--f-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--sourd);
  text-decoration: none;
  white-space: nowrap;
}
.langues a:hover { color: var(--creme); }
@media (max-width: 440px) {
  .barre .cadre { gap: 8px; }
  .langues a { padding: 6px 7px; letter-spacing: 0.04em; }
  .sommaire-bouton { padding: 0 8px; }
  .barre .bouton { padding: 0.45em 0.7em; }
}
.langues a[aria-current="true"] { background: var(--creme); color: var(--noir); }

/* La proposition d'une autre langue du site, en bas de l'écran, sans redirection. */
.proposition-langue {
  position: fixed;
  z-index: 65;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: min(520px, calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  background: var(--acier-2);
  border: 1px solid var(--trait);
  border-left: 4px solid var(--jaune);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.proposition-langue span { color: var(--creme); }
.proposition-langue .bouton { min-height: 40px; padding: 0.4em 0.9em; font-size: 0.9rem; }
.barre .bouton { min-height: 38px; padding: 0.45em 0.9em; font-size: 0.9rem; }
.barre .bouton { white-space: nowrap; }
.libelle-court { display: none; }
@media (max-width: 560px) { .barre .libelle-long { display: none; } .barre .libelle-court { display: inline; } }
.sommaire-bouton {
  display: none;
  border: 1px solid var(--trait);
  background: transparent;
  border-radius: 2px;
  min-height: 38px;
  padding: 0 10px;
  font-family: var(--f-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  cursor: pointer;
}
@media (max-width: 1399px) { .sommaire-bouton { display: inline-flex; align-items: center; white-space: nowrap; } }
.langues button { white-space: nowrap; }

.onglets { display: none; }
@media (min-width: 1400px) {
  .onglets {
    position: fixed;
    right: env(safe-area-inset-right, 0px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
}
.onglets a {
  writing-mode: vertical-rl;
  padding: 12px 7px;
  background: var(--onglet, var(--acier-2));
  color: #f4eedc;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px 0 0 3px;
  transform: translateX(7px);
  opacity: 0.78;
  transition: transform 0.2s, opacity 0.2s;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.35);
}
.onglets a:hover, .onglets a[aria-current="true"] { transform: translateX(0); opacity: 1; }

.sommaire {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 11, 12, 0.94);
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gouttiere-d) 24px var(--gouttiere-g);
  overflow-y: auto;
}
.sommaire-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.sommaire ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sommaire a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--acier);
  border-left: 8px solid var(--onglet, var(--trait));
  text-decoration: none;
  color: var(--creme);
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fermer {
  border: 1px solid var(--trait);
  background: transparent;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--f-label);
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* --- Le haut de page ------------------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(580px, 88vh, 960px);
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--noir);
  overflow: hidden;
  isolation: isolate;
}
.hero-film, .hero-film video, .hero-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-film { z-index: -2; }
.hero-film video { object-position: 50% 40%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(10, 13, 14, 0.96) 0%, rgba(10, 13, 14, 0.72) 26%, rgba(10, 13, 14, 0.12) 58%, rgba(10, 13, 14, 0.35) 100%),
    linear-gradient(to right, rgba(10, 13, 14, 0.78) 0%, rgba(10, 13, 14, 0.25) 46%, rgba(10, 13, 14, 0) 70%);
}
.hero-contenu { align-self: end; padding-top: 64px; padding-bottom: 28px; }
.hero-sur { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero-logo { margin: 18px 0 18px; }
.hero-logo img { width: clamp(220px, 30vw, 430px); height: auto; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.55)); }
.hero-phrase { font-size: var(--t-gros); line-height: 1.45; max-width: 46ch; margin: 0 0 18px; color: #eef0ea; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero-date { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-family: var(--f-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.95rem; color: var(--creme); }
.hero-date .compte { color: var(--jaune); }
.hero-faits { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 22px; padding: 0; list-style: none; font-family: var(--f-label); font-size: 0.95rem; letter-spacing: 0.06em; color: #c9cfca; text-transform: uppercase; }
.hero-faits li { display: flex; align-items: center; gap: 8px; }
.hero-faits li::before { content: ""; width: 6px; height: 6px; background: var(--jaune); flex: none; }

.radio-bande {
  margin-inline: auto;
  margin-bottom: 18px;
  width: min(880px, calc(100% - 32px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(6, 8, 9, 0.72);
  border: 1px solid rgba(230, 219, 187, 0.14);
  border-radius: 3px;
}
.radio-bande .voyant { grid-row: span 2; }
.radio-qui { font-family: var(--f-label); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; color: var(--jaune); text-transform: uppercase; margin: 0; }
.radio-texte { margin: 0; color: #f1ede1; font-size: 1.02rem; line-height: 1.45; min-height: 2.9em; grid-column: 2; }
.radio-bande .ecouter { grid-row: 1 / span 2; grid-column: 3; }
.ecouter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid rgba(230, 219, 187, 0.35);
  border-radius: 2px;
  color: var(--creme);
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.ecouter svg { width: 14px; height: 14px; }
.ecouter:hover { border-color: var(--creme); }
.ecouter[aria-pressed="true"] { background: var(--creme); color: var(--noir); }
@media (max-width: 600px) {
  .radio-bande { grid-template-columns: auto minmax(0, 1fr); }
  .radio-bande .ecouter { grid-row: auto; grid-column: 2; justify-self: start; }
  .radio-bande .voyant { grid-row: 1; }
}

/* --- La machine : la coupe et la plaque -------------------------------------------------------------- */
.machine-tete { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 64px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
@media (max-width: 900px) { .machine-tete { grid-template-columns: minmax(0, 1fr); } }
.plaque-serie {
  position: relative;
  background: linear-gradient(160deg, #c9c4b4, #a9a493 60%, #b7b2a1);
  color: #1d1b17;
  border-radius: 4px;
  padding: 22px 26px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.45);
  font-family: var(--f-label);
}
.plaque-serie::before, .plaque-serie::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ece8dc, #6f6a5d 70%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 calc(100% + 0px) 0 0 transparent;
}
.plaque-serie::before { left: 9px; }
.plaque-serie::after { right: 9px; }
.plaque-serie h3 { margin: 0 0 2px; font-family: var(--f-titre); font-weight: 900; font-size: 1.9rem; letter-spacing: 0.04em; line-height: 1; }
.plaque-serie .num { margin: 0 0 12px; font-weight: 700; letter-spacing: 0.12em; font-size: 0.85rem; }
.plaque-serie dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 18px; margin: 0; font-size: 0.98rem; }
.plaque-serie dt { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; align-self: center; color: #3b3830; }
.plaque-serie dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; border-bottom: 1px solid rgba(0, 0, 0, 0.14); padding: 3px 0; }
.plaque-serie .bas { margin: 12px 0 0; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #4a463c; }

.coupe { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .coupe { grid-template-columns: minmax(0, 1fr); } }
.coupe-dessin {
  position: relative;
  max-width: 470px;
  width: 100%;
  margin-inline: auto;
  aspect-ratio: 1400 / 2467;
}
.coupe-dessin img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0.95) contrast(1.05); }
.regle { position: absolute; top: 0; bottom: 0; left: -2px; width: 34px; pointer-events: none; }
.regle span { position: absolute; left: 0; width: 8px; height: 1px; background: var(--sourd); opacity: 0.55; }
.regle span.cinq { width: 16px; opacity: 0.9; }
.regle span b { position: absolute; left: 20px; top: -0.6em; font-family: var(--f-label); font-weight: 600; font-size: 0.7rem; color: var(--sourd); white-space: nowrap; }
.pont {
  position: absolute;
  left: 8%;
  right: -2%;
  height: 0;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.pont::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  border-top: 2px dashed rgba(230, 219, 187, 0.45);
  transition: border-color 0.2s;
}
.pont span {
  position: absolute;
  right: 0;
  bottom: 4px;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--creme);
  background: rgba(16, 21, 23, 0.82);
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.pont:hover::before, .pont[aria-pressed="true"]::before { border-top: 2px solid var(--jaune); }
.pont:hover span, .pont[aria-pressed="true"] span { background: var(--jaune); color: var(--noir); }
.pont:focus-visible { outline: none; }
.pont:focus-visible span { outline: 2px solid var(--jaune); outline-offset: 2px; }
.fiche-pont { position: sticky; top: calc(var(--barre) + 24px); }
.fiche-pont figure { margin: 0 0 16px; background: var(--acier); border: 1px solid var(--trait); }
.fiche-pont figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fiche-pont figcaption { padding: 8px 12px; font-size: var(--t-petit); color: var(--sourd); }
.fiche-pont h3 { font-family: var(--f-titre); font-weight: 800; font-size: 2.2rem; text-transform: uppercase; color: var(--creme); margin: 0; line-height: 1; }
.fiche-pont .haut { font-family: var(--f-label); font-weight: 700; letter-spacing: 0.1em; color: var(--jaune); margin: 4px 0 10px; }
.fiche-pont p { margin: 0 0 10px; max-width: 58ch; }
.note-coupe { margin-top: 14px; font-size: var(--t-petit); color: var(--sourd); max-width: 58ch; }

/* --- L'équipage ------------------------------------------------------------------------------------------- */
.postes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
@media (max-width: 1060px) { .postes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .postes { grid-template-columns: minmax(0, 1fr); } }
.poste { background: var(--acier); border: 1px solid var(--trait); display: flex; flex-direction: column; min-width: 0; }
.poste img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.poste div { padding: 14px 16px 18px; }
.poste h3 { margin: 0 0 6px; font-family: var(--f-label); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--creme); }
.poste p { margin: 0; font-size: 0.98rem; color: #c3cac5; }
.planche-film { position: relative; margin-top: 36px; aspect-ratio: 16 / 7; background: var(--noir); overflow: hidden; border: 1px solid var(--trait); }
.planche-film video, .planche-film img { width: 100%; height: 100%; object-fit: cover; }
.planche-film p { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 18px 14px; background: linear-gradient(to top, rgba(8, 10, 11, 0.9), transparent); font-family: var(--f-label); font-weight: 600; letter-spacing: 0.06em; color: var(--creme); }
.regles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
@media (max-width: 860px) { .regles { grid-template-columns: minmax(0, 1fr); } }
.regles p { margin: 0; padding: 14px 16px; border-left: 3px solid var(--jaune); background: var(--acier); font-size: 0.98rem; }
.regles b { color: var(--creme); }

/* --- Démarrer : le tableau ------------------------------------------------------------------------------- */
.demarrer { background: radial-gradient(ellipse at 50% 0%, #17231e 0%, var(--graphite) 60%); }
.tableau-cadre { margin-top: 34px; }
.tableau {
  position: relative;
  color: var(--encre);
  background-color: #aaa699;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.06));
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-family: var(--f-label);
  transition: background-color 1.4s ease;
}
.tableau::after {
  /* l'éclairage : secours avant la batterie, service à 30 %, normal après la génération */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 45% 35%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.42) 100%);
  transition: opacity 1.4s ease;
}
.tableau[data-eclairage="service"] { background-color: #cbc7ba; }
.tableau[data-eclairage="service"]::after { opacity: 0.7; }
.tableau[data-eclairage="normal"] { background-color: var(--email); }
.tableau[data-eclairage="normal"]::after { opacity: 0.22; }
.tableau-haut { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 14px 18px; border-bottom: 1px solid var(--email-ombre); }
.plaque {
  display: inline-block;
  background: #f4f0e4;
  color: #1a1814;
  border: 1px solid #8f897a;
  border-radius: 2px;
  padding: 2px 8px;
  font-family: var(--f-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  text-transform: uppercase;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
.plaque-grande { font-size: 1rem; padding: 4px 12px; }
.demarrage-voyants { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.demarrage-voyants .groupe { display: flex; flex-direction: column; align-items: center; gap: 3px; font-weight: 700; font-size: 0.72rem; color: #3d3a32; }
.demarrage-voyants .voyant { width: 15px; height: 15px; }
.chrono { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.06em; color: #2a2721; min-width: 4.2em; text-align: right; }
.zones { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.85fr); }
@media (max-width: 1000px) { .zones { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .zone-cockpit { grid-column: 1 / -1; } }
@media (max-width: 640px) { .zones { grid-template-columns: minmax(0, 1fr); } }
.zone { padding: 16px 18px 20px; border-right: 1px solid var(--email-ombre); border-bottom: 1px solid var(--email-ombre); min-width: 0; }
.zone:last-child { border-right: 0; }
.zone-nom { margin: 0 0 14px; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; color: #34312b; text-transform: uppercase; }
.cadrans { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.cadran { width: 152px; flex: none; }
.cadran svg { width: 100%; height: auto; overflow: visible; }
.commandes { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-start; }
.commande {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  min-width: 84px;
  color: var(--encre);
}
.commande .num { font-weight: 700; font-size: 0.72rem; color: #3b3831; letter-spacing: 0.1em; }
.commande .lieu { font-weight: 600; font-size: 0.72rem; color: #3b3831; letter-spacing: 0.04em; max-width: 9em; text-align: center; line-height: 1.2; }
.commande:disabled { cursor: default; }
.commande:focus-visible { outline: 2px solid #1d1b16; outline-offset: 2px; }
.rotatif {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #4b4f52, #1d2022 70%);
  box-shadow: 0 3px 0 #8c8676, 0 6px 12px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.25s cubic-bezier(.5, 1.6, .5, 1);
  transform: rotate(-45deg);
}
.rotatif::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  bottom: 5px;
  width: 12px;
  margin-left: -6px;
  border-radius: 5px;
  background: linear-gradient(90deg, #2c3033, #5a6064 50%, #2c3033);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.rotatif::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 12px; margin-left: -2px; background: var(--creme); border-radius: 2px; }
.commande[aria-pressed="true"] .rotatif { transform: rotate(45deg); }
.positions { display: flex; justify-content: space-between; width: 70px; font-weight: 700; font-size: 0.66rem; color: #5b574e; margin-top: -4px; }
.poussoir {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 38%, #3c4144, #121415 72%);
  box-shadow: 0 0 0 5px #b9b3a3, 0 0 0 6px #8c8676, 0 4px 0 6px #8c8676, 0 8px 14px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.1s, box-shadow 0.1s;
}
.commande:active:not(:disabled) .poussoir { transform: translateY(2px); box-shadow: 0 0 0 5px #b9b3a3, 0 0 0 6px #8c8676, 0 2px 0 6px #8c8676, 0 4px 8px 6px rgba(0, 0, 0, 0.25); }
.bascule {
  width: 40px;
  height: 64px;
  border-radius: 6px;
  background: linear-gradient(180deg, #2b2f31, #151718);
  box-shadow: 0 0 0 4px #b9b3a3, 0 0 0 5px #8c8676, 0 6px 12px rgba(0, 0, 0, 0.3);
  position: relative;
}
.bascule::after { content: ""; position: absolute; left: 7px; right: 7px; top: 8px; height: 22px; border-radius: 4px; background: linear-gradient(180deg, #6a7074, #3a3f42); transition: top 0.18s; }
.commande[aria-pressed="true"] .bascule::after { top: 34px; background: linear-gradient(180deg, #d9a637, #a5761b); }
.etat-lampes { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.lampe-etat { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.1em; }
.lampe-etat .voyant { width: 13px; height: 13px; }
.etat-machine {
  display: block;
  margin: 2px 0 14px;
  padding: 10px 12px;
  background: #0d1112;
  color: #3f4b47;
  border-radius: 3px;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.16em;
  text-align: center;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2;
}
.etat-machine[data-etat="PRET"] { color: var(--ambre); text-shadow: 0 0 12px color-mix(in srgb, var(--ambre) 70%, transparent); }
.etat-machine[data-etat="MARCHE"] { color: var(--vert); text-shadow: 0 0 12px color-mix(in srgb, var(--vert) 70%, transparent); }
.etat-machine[data-etat="ARRET"] { color: #8a3b30; }
.tableau-bas { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
@media (max-width: 860px) { .tableau-bas { grid-template-columns: minmax(0, 1fr); } }
.annonces { padding: 16px 18px 18px; border-right: 1px solid var(--email-ombre); min-width: 0; }
.annonces ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ecran {
  background: #0c1011;
  color: #cfe7d6;
  border-radius: 3px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.85);
  font-family: var(--f-texte);
}
.annonces .ecran { padding: 10px 12px; min-height: 9.6em; }
.annonces li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; font-size: 0.95rem; line-height: 1.35; padding: 3px 0; border-bottom: 1px solid #1c2426; }
.annonces li:last-child { border-bottom: 0; }
.annonces li .age { font-family: var(--f-label); font-size: 0.78rem; color: #6f857a; font-variant-numeric: tabular-nums; }
.annonces li.refus { color: #ffb4a6; }
.annonces li.vide { color: #4e5d57; }
.camera { padding: 16px 18px 18px; min-width: 0; }
.camera .ecran { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin-top: 8px; }
.camera video, .camera img { width: 100%; height: 100%; object-fit: cover; }
.camera .pas-signal { position: absolute; inset: 0; display: grid; place-items: center; color: #3c4a45; font-family: var(--f-label); font-weight: 700; letter-spacing: 0.14em; font-size: 0.85rem; text-transform: uppercase; }
.tableau-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.lien-bouton { background: none; border: 0; color: var(--creme); font-family: var(--f-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.9rem; cursor: pointer; padding: 10px 0; text-decoration: underline; text-underline-offset: 4px; }
.interrupteur-son { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-family: var(--f-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.9rem; color: var(--creme); background: none; border: 1px solid var(--trait); border-radius: 2px; padding: 8px 12px; min-height: 44px; }
.interrupteur-son[aria-pressed="true"] { border-color: var(--jaune); color: var(--jaune); }
.resultat { font-size: 1.05rem; color: var(--creme); margin: 14px 0 0; max-width: 70ch; }

/* --- Lire la machine -------------------------------------------------------------------------------------- */
.incidents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
@media (max-width: 720px) { .incidents { grid-template-columns: minmax(0, 1fr); } }
.incident { margin: 0; background: var(--acier); border: 1px solid var(--trait); min-width: 0; }
.incident .film { position: relative; aspect-ratio: 16 / 9; background: var(--noir); overflow: hidden; }
.incident video, .incident img { width: 100%; height: 100%; object-fit: cover; }
.incident figcaption { padding: 12px 16px 16px; }
.incident .ref { font-family: var(--f-label); font-weight: 700; letter-spacing: 0.14em; font-size: 0.74rem; color: var(--rouge); text-transform: uppercase; margin: 0 0 4px; }
.incident p { margin: 0; }
.outils { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(48px, 7vw, 96px); align-items: center; }
@media (max-width: 860px) { .outils { grid-template-columns: minmax(0, 1fr); } }
.outils figure { margin: 0; border: 1px solid var(--trait); }
.outils figure img { width: 100%; }
.outils figcaption { padding: 8px 12px; font-size: var(--t-petit); color: var(--sourd); background: var(--acier); }
.liste-outils { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.liste-outils li { font-family: var(--f-label); font-weight: 600; letter-spacing: 0.06em; font-size: 0.95rem; padding: 4px 10px; border: 1px solid var(--trait); background: var(--acier); }

/* --- Le manuel -------------------------------------------------------------------------------------------- */
.manuel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .manuel { grid-template-columns: minmax(0, 1fr); } }
.pages { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin-inline: auto; }
.pages button {
  position: absolute;
  width: 62%;
  aspect-ratio: 1024 / 1448;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--papier) center / cover no-repeat;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(.3, .8, .3, 1), z-index 0s 0.2s;
}
.pages button img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.pages .couverture { left: 4%; top: 6%; transform: rotate(-6deg); z-index: 5; }
.pages .schema { aspect-ratio: auto; height: auto; background: #fbf7ec; padding: 6px; }
.pages .schema img { height: auto; object-fit: contain; }
.pages .s1 { left: 30%; top: 2%; transform: rotate(5deg); z-index: 4; width: 66%; }
.pages .s2 { left: 34%; top: 24%; transform: rotate(-3deg); z-index: 3; width: 64%; }
.pages .s3 { left: 22%; top: 44%; transform: rotate(7deg); z-index: 2; width: 66%; }
.pages .s4 { left: 6%; top: 50%; transform: rotate(-8deg); z-index: 1; width: 64%; }
.pages button[aria-pressed="true"] { z-index: 9; transform: rotate(0deg) scale(1.04); }
.pages button:hover { transform: rotate(0deg) translateY(-6px); }
.manuel-film { margin-top: 26px; border: 1px solid var(--trait); aspect-ratio: 16 / 9; overflow: hidden; background: var(--noir); }
.manuel-film video, .manuel-film img { width: 100%; height: 100%; object-fit: cover; }
.chapitres { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0 0; padding: 0; list-style: none; }
.chapitres li { font-family: var(--f-label); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; padding: 4px 8px; color: #f4eedc; background: var(--c); border-radius: 2px; }

/* --- Le bassin et la campagne ----------------------------------------------------------------------------- */
.avis {
  position: relative;
  background: var(--papier);
  color: var(--encre);
  padding: 28px 30px 26px;
  max-width: 560px;
  font-family: var(--f-doc);
  font-size: 1rem;
  line-height: 1.55;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  transform: rotate(-1.2deg);
  background-image: linear-gradient(transparent 96%, rgba(0, 0, 0, 0.04) 96%);
  background-size: 100% 1.55em;
}
.avis h3 { font-family: var(--f-doc); font-size: 1.02rem; font-weight: 700; letter-spacing: 0.04em; margin: 0 0 14px; text-transform: uppercase; border-bottom: 2px solid var(--encre); padding-bottom: 8px; }
.avis p { margin: 0 0 10px; }
.noirci { background: var(--encre); color: transparent; border-radius: 1px; padding: 0 0.2em; user-select: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tampon {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border: 3px solid var(--tampon);
  color: var(--tampon);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-9deg);
  opacity: 0.82;
  line-height: 1.25;
  text-align: center;
  mix-blend-mode: multiply;
}
.avis .legende { font-family: var(--f-texte); font-size: 0.85rem; color: #5b554a; margin: 16px 0 0; max-width: 32ch; }

.voyage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(20px, 3vw, 44px); align-items: start; margin-top: clamp(40px, 6vw, 80px); }
.carte-colle { position: sticky; top: calc(var(--barre) + 16px); }
@media (max-width: 960px) {
  .voyage { grid-template-columns: minmax(0, 1fr); }
  .carte-colle { top: var(--barre); z-index: 5; background: var(--graphite); padding-block: 8px; }
}
.carte { position: relative; background: #111d20; border: 1px solid var(--trait); border-radius: 4px; overflow: hidden; }
.carte svg { width: 100%; height: auto; display: block; touch-action: manipulation; }
@media (max-width: 960px) { .carte svg { max-height: 44vh; } }
.carte-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 12px; border-top: 1px solid var(--trait); background: var(--acier); }
.niveaux { display: inline-flex; border: 1px solid var(--trait); border-radius: 2px; overflow: hidden; }
.niveaux button { border: 0; background: transparent; padding: 6px 10px; min-height: 34px; font-family: var(--f-label); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sourd); cursor: pointer; }
.niveaux button[aria-pressed="true"] { background: var(--eau); color: var(--noir); }
.carte-note { font-size: 0.82rem; color: var(--sourd); margin: 0; }
.infobulle {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  max-width: 260px;
  padding: 8px 10px;
  background: rgba(8, 11, 12, 0.94);
  border: 1px solid var(--trait);
  border-radius: 3px;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--texte);
}
.infobulle b { display: block; color: var(--creme); font-family: var(--f-label); letter-spacing: 0.04em; font-size: 0.98rem; }
.infobulle .m { color: var(--jaune); font-family: var(--f-label); }
.actes { display: grid; gap: clamp(26vh, 30vh, 40vh); padding-bottom: 20vh; }
@media (max-width: 960px) { .actes { gap: 18px; padding-bottom: 0; } }
.acte { background: var(--acier); border: 1px solid var(--trait); border-top: 4px solid var(--acte, var(--jaune)); padding: 20px 20px 22px; min-width: 0; transition: border-color 0.3s, background-color 0.3s; }
.acte[data-actif="true"] { background: var(--acier-2); }
.acte .num { font-family: var(--f-titre); font-weight: 900; font-size: 3.2rem; line-height: 0.9; color: var(--acte, var(--jaune)); margin: 0; }
.acte h3 { font-family: var(--f-titre); font-weight: 800; font-size: 1.9rem; line-height: 1; text-transform: uppercase; color: var(--creme); margin: 6px 0 10px; text-wrap: balance; }
.puce { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-label); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; border: 1px solid currentColor; }
.puce.dispo { color: var(--vert); }
.puce.prevu { color: var(--sourd); }
.acte .appui { font-size: 0.9rem; color: var(--sourd); margin: 10px 0 8px; }
.acte p { margin: 0 0 10px; font-size: 1rem; }
.missions { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.missions li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 8px; font-size: 0.95rem; }
.missions li span:first-child { font-family: var(--f-label); font-weight: 700; color: var(--acte, var(--jaune)); letter-spacing: 0.04em; }
.regions-puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.regions-puces span { font-family: var(--f-label); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 2px; background: color-mix(in srgb, var(--c) 22%, transparent); color: color-mix(in srgb, var(--c) 70%, white); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); }

/* --- Les plans --------------------------------------------------------------------------------------------- */
.plans-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
@media (max-width: 900px) { .plans-tete { grid-template-columns: minmax(0, 1fr); } }
.repartiteur { background: #0e1a1d; border: 1px solid var(--trait); border-radius: 4px; padding: 10px; }
.repartiteur svg { width: 100%; height: auto; display: block; }
.plans-choix { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.plans-choix button { border: 1px solid var(--trait); background: var(--acier); color: var(--creme); padding: 10px 14px; min-height: 44px; font-family: var(--f-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; border-radius: 2px; }
.plans-choix button[aria-pressed="true"] { background: var(--eau); color: var(--noir); border-color: var(--eau); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
@media (max-width: 980px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { border: 1px solid var(--trait); background: var(--acier); padding: 18px 18px 20px; min-width: 0; transition: border-color 0.25s, background-color 0.25s; }
.plan[data-actif="true"] { border-color: var(--eau); background: #13242a; }
.plan h3 { font-family: var(--f-titre); font-weight: 800; font-size: 1.8rem; text-transform: uppercase; color: var(--creme); margin: 0 0 4px; line-height: 1; }
.plan .eau { font-family: var(--f-label); font-weight: 600; letter-spacing: 0.06em; color: var(--eau); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.plan dl { margin: 0; display: grid; gap: 10px; }
.plan dt { font-family: var(--f-label); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sourd); }
.plan dd { margin: 2px 0 0; font-size: 0.98rem; }
.vote { margin-top: 26px; padding: 16px 18px; border: 1px dashed var(--trait); max-width: 80ch; }

/* --- La radio ------------------------------------------------------------------------------------------------ */
.radio { background: linear-gradient(180deg, #0f1a1c, var(--graphite)); }
.communautes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
@media (max-width: 1000px) { .communautes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .communautes { grid-template-columns: minmax(0, 1fr); } }
.communaute { background: var(--acier); border: 1px solid var(--trait); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.communaute h3 { margin: 0; font-family: var(--f-titre); font-weight: 800; font-size: 1.75rem; text-transform: uppercase; line-height: 1; color: var(--creme); }
.communaute .qui { margin: 0; font-family: var(--f-label); font-weight: 600; letter-spacing: 0.06em; color: var(--sourd); font-size: 0.92rem; }
.communaute .veut { margin: 0; font-size: 0.98rem; }
.communaute .assiette { margin: 0; font-size: 0.9rem; color: var(--sourd); }
.communaute .assiette b { color: var(--creme); font-weight: 600; }
.transmission { margin: auto 0 0; padding: 12px 12px 10px; background: #0b1112; border-left: 3px solid var(--eau); border-radius: 2px; }
.transmission .indicatif { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.transmission .indicatif span { font-family: var(--f-label); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.14em; color: var(--eau); text-transform: uppercase; }
.transmission p { margin: 0; font-size: 0.97rem; color: #e8ebe4; line-height: 1.45; }
.transmission[data-joue="true"] { border-left-color: var(--jaune); }
.transmission[data-joue="true"] .indicatif span { color: var(--jaune); }
.cinq-reponses { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ecoute-tout { display: inline-flex; }
.vumetre { display: inline-flex; gap: 2px; align-items: flex-end; height: 18px; }
.vumetre i { width: 3px; background: var(--eau); height: 20%; border-radius: 1px; transition: height 0.08s; }
.journal-radio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
@media (max-width: 760px) { .journal-radio { grid-template-columns: minmax(0, 1fr); } }
.journal-radio .transmission { margin: 0; }
.oren { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .oren { grid-template-columns: minmax(0, 1fr); } }
.enregistreur { background: #191512; border: 1px solid #3a3029; border-radius: 4px; padding: 16px 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.enregistreur .compteur { font-family: var(--f-label); font-weight: 700; color: var(--ambre); letter-spacing: 0.14em; font-size: 0.8rem; margin: 0 0 10px; text-transform: uppercase; }
.enregistreur p.dit { font-family: var(--f-doc); font-size: 1rem; line-height: 1.6; color: #efe6d2; margin: 0 0 12px; }

/* --- Relève : registre et gabarits ------------------------------------------------------------------------ */
.registre {
  font-family: var(--f-doc);
  background: #e9e3cf;
  color: var(--encre);
  padding: 18px 20px;
  max-width: 640px;
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  background-image: repeating-linear-gradient(transparent 0 1.6em, rgba(76, 79, 163, 0.08) 1.6em 3.2em);
  line-height: 1.6;
}
.registre .entete { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; border-bottom: 1px dashed #8a8270; padding-bottom: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.registre p { margin: 0; }
.registre .ordre { font-weight: 700; }
.registre .actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.registre .ecouter { color: var(--encre); border-color: rgba(36, 33, 28, 0.4); }
.registre .ecouter[aria-pressed="true"] { background: var(--encre); color: var(--papier); }
.gabarits { margin-top: clamp(40px, 6vw, 80px); }
.gabarits-graphe { overflow-x: auto; background: var(--acier); border: 1px solid var(--trait); padding: 14px 12px 10px; }
.gabarits-graphe svg { display: block; min-width: 640px; width: 100%; height: auto; }
.gabarits-legende { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; font-size: 0.88rem; color: var(--sourd); }
.gabarits-legende span { display: inline-flex; align-items: center; gap: 8px; }
.gabarits-legende i { width: 18px; height: 8px; display: inline-block; }
.sans-combat { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px; background: var(--acier); border: 1px solid var(--trait); }
@media (max-width: 640px) { .sans-combat { grid-template-columns: minmax(0, 1fr); } }
.sans-combat .grand { font-family: var(--f-titre); font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; color: var(--jaune); line-height: 0.95; margin: 0; }
.sans-combat p { margin: 0; }

/* --- À bord ---------------------------------------------------------------------------------------------------- */
.bord { position: relative; overflow: hidden; isolation: isolate; }
.bord-fond { position: absolute; inset: 0; z-index: -1; }
.bord-fond img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.bord-fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--graphite) 10%, rgba(16, 21, 23, 0.7) 55%, rgba(16, 21, 23, 0.85)); }
.besoins { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.besoin { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; background: rgba(23, 32, 35, 0.86); border: 1px solid var(--trait); }
.besoin img { width: 36px; height: 36px; }
.besoin span { font-family: var(--f-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.bord-photos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.bord-photos figure { margin: 0; border: 1px solid var(--trait); background: var(--acier); }
.bord-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bord-photos figcaption { padding: 8px 10px; font-size: 0.86rem; color: var(--sourd); }
.page-cafe {
  margin-top: 18px;
  background: var(--papier);
  color: var(--encre);
  padding: 16px 18px;
  font-family: var(--f-doc);
  font-size: 0.95rem;
  transform: rotate(0.8deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  max-width: 460px;
}
.page-cafe b { display: block; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }

/* --- La bande-annonce ------------------------------------------------------------------------------------------ */
.lecteur { position: relative; aspect-ratio: 16 / 9; background: var(--noir); border: 1px solid var(--trait); margin-top: 28px; overflow: hidden; }
.lecteur video { width: 100%; height: 100%; object-fit: contain; background: var(--noir); }
.lecteur .lancer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 10, 11, 0.25);
  border: 0;
  cursor: pointer;
  padding: 0;
}
.lecteur .lancer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.lecteur .lancer span { display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; background: var(--jaune); color: var(--noir); font-family: var(--f-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 1.05rem; border-radius: 2px; }
.lecteur .lancer svg { width: 20px; height: 20px; }

/* --- L'accès anticipé ----------------------------------------------------------------------------------------- */
.acces { background: linear-gradient(180deg, var(--graphite), #15190f 140%); }
.compte-a-rebours { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.compte-a-rebours div { background: var(--noir); border: 1px solid var(--trait); padding: 10px 16px 8px; min-width: 96px; text-align: center; }
.compte-a-rebours b { display: block; font-family: var(--f-titre); font-weight: 900; font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--jaune); line-height: 1; font-variant-numeric: tabular-nums; }
.compte-a-rebours span { font-family: var(--f-label); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sourd); }
.contenu-ea { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contenu-ea li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.contenu-ea li::before { content: ""; width: 12px; height: 12px; margin-top: 0.45em; border-radius: 50%; background: var(--vert); box-shadow: 0 0 8px color-mix(in srgb, var(--vert) 60%, transparent); }
.feuille-route { margin-top: clamp(40px, 6vw, 72px); }
.etapes-route { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; position: relative; }
.etapes-route::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--trait); }
.etapes-route li { position: relative; padding: 32px 10px 0 0; min-width: 0; }
.etapes-route li::before { content: ""; position: absolute; top: 6px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--graphite); border: 2px solid var(--sourd); }
.etapes-route li.fait::before { background: var(--jaune); border-color: var(--jaune); box-shadow: 0 0 12px color-mix(in srgb, var(--jaune) 60%, transparent); }
.etapes-route b { display: block; font-family: var(--f-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--creme); }
.etapes-route span { font-size: 0.9rem; color: var(--sourd); }
@media (max-width: 860px) {
  .etapes-route { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .etapes-route::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .etapes-route li { padding: 0 0 0 30px; }
  .etapes-route li::before { top: 4px; }
}
.questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 5vw, 64px); }
@media (max-width: 800px) { .questions { grid-template-columns: minmax(0, 1fr); } }
.questions div { background: var(--acier); border: 1px solid var(--trait); padding: 18px; min-width: 0; }
.questions h3 { margin: 0 0 8px; font-family: var(--f-label); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.04em; color: var(--creme); }
.questions p { margin: 0; font-size: 0.98rem; }
.config { margin-top: clamp(36px, 5vw, 64px); }
.table-defile { overflow-x: auto; border: 1px solid var(--trait); }
.config table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.95rem; }
.config th, .config td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.config th { font-family: var(--f-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; color: var(--sourd); background: var(--acier); }
.config td:first-child { font-family: var(--f-label); font-weight: 600; color: var(--creme); letter-spacing: 0.04em; white-space: nowrap; }
.config .mesure { font-variant-numeric: tabular-nums; }
.galerie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: clamp(36px, 5vw, 64px); }
@media (max-width: 860px) { .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.galerie img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--trait); }
.appel { margin-top: clamp(40px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px; background: var(--jaune); color: var(--noir); }
.appel p { margin: 0; font-family: var(--f-titre); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; line-height: 1; }
.appel .bouton { background: var(--noir); color: var(--jaune); }
.appel .bouton:hover { background: #22292c; }

/* --- Les questions fréquentes ---------------------------------------------------------------------------------- */
.en-bref { display: flex; flex-wrap: wrap; gap: 1px; margin: 8px 0 clamp(32px, 5vw, 56px); background: var(--trait); border: 1px solid var(--trait); }
.en-bref div { flex: 1 1 210px; background: var(--acier); padding: 12px 14px; min-width: 0; }
.en-bref dt { font-family: var(--f-label); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sourd); }
.en-bref dd { margin: 4px 0 0; color: var(--creme); }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 800px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.question { background: var(--acier); border: 1px solid var(--trait); padding: 18px 18px 16px; min-width: 0; }
.question h3 { margin: 0 0 8px; font-family: var(--f-label); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--creme); }
.question p { margin: 0; font-size: 0.98rem; }

/* --- Le pied de page ------------------------------------------------------------------------------------------- */
.liens-pied a { color: var(--creme); }
.pied { border-top: 1px solid var(--trait); padding-block: 40px 48px; background: var(--noir); }
.pied .cadre { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 40px; align-items: start; }
@media (max-width: 700px) { .pied .cadre { grid-template-columns: minmax(0, 1fr); } }
.pied img { width: 150px; height: auto; }
.pied p { margin: 0 0 8px; font-size: 0.92rem; color: var(--sourd); max-width: 70ch; }
.pied .derniere { font-family: var(--f-label); font-weight: 600; letter-spacing: 0.06em; color: var(--creme); font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
