/* ============================================================
   POLITUBE — L'HÉMICYCLE
   Une scène, pas une page : la chambre, le velum d'entrée,
   la tribune. Gauche rouge / Droite or, nuit institutionnelle.
   ============================================================ */

body.chambre {
  background: #07090f;
  color: var(--d-creme);
  font-family: var(--font-garamond);
  overflow: hidden;
  height: 100vh;
  cursor: none;
}

body.chambre.souris-libre { cursor: auto; }

.scene-product-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 330;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0 clamp(1rem, 2.6vw, 2.6rem);
  border-bottom: 1px solid rgba(240, 233, 216, .14);
  background: rgba(5, 8, 14, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-grotesk);
  cursor: auto;
}

.scene-brand { color: #7ce1ed; font-size: .82rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; }
.scene-product-links { display: flex; justify-content: center; gap: .15rem; }
.scene-product-links a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 .7rem; color: rgba(240,233,216,.68); font-size: .875rem; }
.scene-product-links a:hover, .scene-product-links a[aria-current="page"] { color: #fff; background: rgba(84,214,232,.1); }
.scene-product-nav button { min-height: 42px; border: 1px solid rgba(240,233,216,.22); background: transparent; color: rgba(240,233,216,.78); padding: 0 .75rem; font-size: .875rem; }

/* ---------- Curseur ---------- */

.curseur {
  position: fixed;
  z-index: 400;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--d-creme);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: background .25s;
}

.curseur-halo {
  position: fixed;
  z-index: 400;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(240, 233, 216, .5);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width .25s, height .25s, border-color .25s, background .25s;
}

body.cote-g .curseur { background: var(--g-rouge); }
body.cote-g .curseur-halo { border-color: rgba(200, 16, 46, .65); }
body.cote-d .curseur { background: var(--d-or); }
body.cote-d .curseur-halo { border-color: rgba(74, 144, 226, .7); }

body.sur-siege .curseur-halo {
  width: 68px; height: 68px;
  border-color: rgba(255, 255, 255, .88);
  background: rgba(84, 214, 232, .08);
  box-shadow: 0 0 28px rgba(84, 214, 232, .24);
}

@media (pointer: coarse) {
  .curseur, .curseur-halo { display: none; }
  body.chambre { cursor: auto; }
}

/* ---------- LE VELUM (écran d'entrée) ---------- */

.velum {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  /* fond de secours opaque : garantit qu'aucun HUD ne transparaît
     même si le dimensionnement JS des moitiés n'a pas encore calé */
  background: #0a0e16;
}

.velum-moitie {
  position: relative;
  min-width: 0;
  border: 0;
  appearance: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s cubic-bezier(.77, 0, .18, 1);
  will-change: transform;
  container-type: inline-size;
}

.velum-caricature {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  transform: scale(1.015);
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1), filter .45s ease;
}

.velum-g .velum-caricature {
  object-position: left center;
  filter: saturate(.9) contrast(1.02);
}

.velum-c .velum-caricature {
  object-position: center center;
  filter: saturate(.58) contrast(1.02) brightness(1.04);
}

.velum-d .velum-caricature {
  object-position: right center;
  filter: saturate(.74) contrast(1.08) brightness(.56);
}

.velum-moitie::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.velum-g::after {
  background:
    linear-gradient(90deg, rgba(244, 236, 216, .04), rgba(244, 236, 216, .18) 58%, rgba(244, 236, 216, .64)),
    linear-gradient(0deg, rgba(98, 23, 22, .08), transparent 42%);
}

.velum-c::after {
  background: rgba(245, 241, 229, .18);
  box-shadow: inset 28px 0 58px rgba(20, 27, 38, .08), inset -28px 0 58px rgba(20, 27, 38, .08);
}

.velum-d::after {
  background:
    linear-gradient(90deg, rgba(5, 12, 25, .82), rgba(5, 12, 25, .38) 46%, rgba(5, 12, 25, .1)),
    linear-gradient(0deg, rgba(5, 12, 25, .28), transparent 52%);
  box-shadow: inset 28px 0 80px rgba(5, 12, 25, .36);
}

.velum-g {
  background: var(--g-papier);
  color: var(--g-encre);
  font-family: var(--font-affiche);
}

.velum-c {
  background: #f4f1e8;
  color: #111722;
  font-family: var(--font-garamond);
}

.velum-d {
  background:
    radial-gradient(700px 420px at 50% 30%, rgba(74, 144, 226, .13), transparent 60%),
    linear-gradient(180deg, var(--d-nuit), #070d19);
  color: var(--d-creme);
  font-family: var(--font-serif);
}

.velum.ouvert .velum-g { transform: translateX(-101%); }
.velum.ouvert .velum-c { transform: translateY(-101%); }
.velum.ouvert .velum-d { transform: translateX(101%); }

.velum-moitie .mot {
  position: relative;
  z-index: 2;
  font-size: clamp(1.9rem, 15cqw, 5.5rem);
  text-transform: uppercase;
  line-height: .95;
  text-align: center;
  user-select: none;
  transition: opacity .3s, letter-spacing .6s;
}

.velum-moitie:hover .velum-caricature { transform: scale(1.045); }

.velum-g .mot { color: var(--g-encre); }
.velum-g .mot span { color: var(--g-rouge); display: block; }
.velum-c .mot { color: #111722; font-weight: 600; transform: translateY(-5.4rem); }
.velum-c .mot span { display: block; color: #111722; text-shadow: 0 1px 0 rgba(255, 255, 255, .9); }
.velum-d .mot { font-weight: 600; }
.velum-d .mot em { font-style: italic; color: #78afea; display: block; }

.velum-moitie:hover .mot { letter-spacing: .04em; }

.velum-moitie .indice {
  position: absolute;
  bottom: 3.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0;
  transition: opacity .3s;
  white-space: nowrap;
}

.velum-g .indice { font-family: var(--font-grotesk); font-weight: 700; }
.velum-c .indice { color: #111722; font-family: var(--font-grotesk); font-weight: 700; }
.velum-d .indice { font-family: var(--font-garamond); color: #78afea; }
.velum-moitie:hover .indice { opacity: .8; }

/* la couture centrale */
.couture {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, .72);
  z-index: 302;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(255, 255, 255, .22);
  transition: opacity .4s;
}
.couture-gc { left: 33.333%; }
.couture-cd { left: 66.666%; }

.velum.ouvert .couture { opacity: 0; }

/* masthead + séance */
.velum-tete {
  position: absolute;
  top: 5.2rem;
  left: 0; right: 0;
  text-align: center;
  z-index: 303;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #fff;
}

.velum-tete .marque {
  font-family: var(--font-garamond);
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.velum-pied {
  position: absolute;
  bottom: 1.7rem;
  left: 0; right: 0;
  text-align: center;
  z-index: 303;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #fff;
  font-family: var(--font-garamond);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .8;
}

/* le sceau d'entrée, à cheval sur la couture */
.sceau-entree {
  position: absolute;
  top: 63%;
  left: 50%;
  z-index: 304;
  transform: translate(-50%, -50%);
  width: 148px; height: 148px;
  border-radius: 50%;
  background: #0a0e16;
  border: 1px solid rgba(244, 241, 232, .9);
  box-shadow: 0 0 0 7px #0a0e16, 0 0 0 8px rgba(244, 241, 232, .38), 0 18px 60px rgba(0, 0, 0, .6);
  display: grid;
  place-items: center;
  text-align: center;
  transition: transform .35s cubic-bezier(.22, 1.4, .36, 1);
}

.sceau-entree:hover { transform: translate(-50%, -50%) scale(1.08); }

.sceau-entree .haut {
  display: block;
  font-family: var(--font-garamond);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(240, 233, 216, .75);
}

.sceau-entree .centre {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  font-style: italic;
  color: #f4f1e8;
  margin: .25rem 0 .4rem;
}

.velum.ouvert .sceau-entree { opacity: 0; pointer-events: none; transition: opacity .3s; }

.skip-intro {
  position: absolute;
  right: 1.5rem;
  bottom: 1.2rem;
  z-index: 305;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(5,8,14,.62);
  color: #fff;
  padding: 0 .9rem;
  font: .875rem var(--font-grotesk);
}

/* ---------- ÉTAT « avant entrée » ---------- */
/* Tant que la séance n'est pas ouverte, le HUD de la scène est
   entièrement masqué : garantie qu'aucun élément ne transparaît
   derrière le velum, quelle que soit la taille de fenêtre. */
body.pre-entree .chambre-tete,
body.pre-entree .seance-bar,
body.pre-entree .camera-nav,
body.pre-entree .legende,
body.pre-entree .hint-nav,
body.pre-entree .scene-empty,
body.pre-entree .plaque {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Le canevas n'est révélé qu'après trois images de préchauffage. Cela masque
   la compilation initiale WebGL et garantit que la première image publique
   utilise déjà l'ancrage définitif derrière le pupitre. */
#scene canvas { opacity: 1; transition: opacity .22s ease; }
body.scene-warming #scene canvas { opacity: 0; }

/* révélation douce du HUD à l'entrée */
.chambre-tete, .seance-bar, .camera-nav, .hint-nav {
  transition: opacity .6s ease .2s;
}

/* En lecture de dossier, les aides périphériques s'effacent pour laisser le
   siège sélectionné respirer. La navigation et les filtres restent disponibles. */
body.dossier-ouvert .legende,
body.dossier-ouvert .hint-nav,
body.dossier-ouvert .camera-nav,
body.dossier-ouvert .living-mode,
body.dossier-ouvert .scene-access,
body.dossier-ouvert .camp {
  opacity: 0;
  pointer-events: none;
  transition-delay: 0s;
}

/* ---------- LA CHAMBRE ---------- */

.chambre-scene {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.plafond {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 600px at 50% 88%, rgba(74, 144, 226, .09), transparent 60%),
    radial-gradient(900px 500px at 18% 0%, rgba(200, 16, 46, .07), transparent 55%),
    radial-gradient(900px 500px at 82% 0%, rgba(74, 144, 226, .06), transparent 55%);
}

#poussiere { position: absolute; inset: 0; pointer-events: none; opacity: .5; }

.chambre-tete {
  position: relative;
  z-index: 5;
  text-align: center;
  padding-top: 4.7rem;
}

.chambre-tete .marque {
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(240, 233, 216, .6);
}

.chambre-tete .marque b { color: var(--d-or-clair); font-weight: 500; }

.chambre-tete h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  margin-top: .5rem;
}

.chambre-tete h1 em { font-style: italic; color: var(--d-or-clair); }

.chambre-tete .seance {
  margin-top: .45rem;
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(240, 233, 216, .42);
}

/* filtre de contenu — toutes les voix / personnes / médias */
.scene-modes {
  position: absolute;
  z-index: 8;
  top: 10.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .35rem;
  border: 1px solid rgba(84, 214, 232, .24);
  background: rgba(6, 11, 18, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  cursor: auto;
  width: min(980px, calc(100vw - 180px));
}

.scene-mode-row, .scene-filter-row { display: flex; align-items: center; gap: .35rem; width: 100%; }
.scene-filter-row { border-top: 1px solid rgba(84,214,232,.18); padding-top: .35rem; }
.scene-filter-row label:first-child { flex: 1 1 240px; }
.scene-filter-row label:nth-child(2) { flex: 0 0 130px; }
.scene-filter-row label:nth-child(3) { flex: 0 0 165px; }
.scene-filter-row input, .scene-filter-row select { min-height: 42px; width: 100%; border: 1px solid rgba(84,214,232,.25); background: #0b151d; color: #eef2f7; padding: 0 .65rem; font: .875rem var(--font-grotesk); }
.scene-filter-row input { min-width: 210px; }
.scene-filter-row a { margin-left: auto; }

.scene-modes button,
.scene-modes a {
  border: 0;
  background: transparent;
  color: rgba(240, 233, 216, .62);
  padding: .55rem .72rem;
  font-size: .875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.scene-modes button b { margin-left: .35rem; color: var(--d-or-clair); font-family: var(--font-serif); font-size: .72rem; }
.scene-modes button:hover, .scene-modes button.actif { background: rgba(84, 214, 232, .12); color: #b8f5fb; }
.scene-modes button.actif { box-shadow: inset 0 0 0 1px rgba(84, 214, 232, .42); }
.scene-modes a { border-left: 1px solid rgba(84, 214, 232, .22); color: #78dce8; }

.scene-access {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto minmax(190px, 280px) auto;
  align-items: center;
  gap: .55rem;
  padding: .45rem .55rem;
  background: rgba(6, 11, 18, .8);
  border: 1px solid rgba(84, 214, 232, .2);
  opacity: .62;
  transition: opacity .2s;
}

.scene-access:hover, .scene-access:focus-within { opacity: 1; }
.scene-access label { color: rgba(240, 233, 216, .6); font-size: .56rem; letter-spacing: .13em; text-transform: uppercase; }
.scene-access label { font-size: .875rem; }
.scene-access select { min-width: 0; border: 1px solid rgba(84, 214, 232, .28); background: #0b151d; color: #eef2f7; padding: .42rem .55rem; font-size: .875rem; }
.scene-access button { min-height: 42px; border: 1px solid rgba(84, 214, 232, .42); background: rgba(84, 214, 232, .12); color: #a8edf4; padding: .48rem .62rem; font-size: .875rem; letter-spacing: .05em; text-transform: uppercase; }

/* étiquettes latérales des camps */
.camp {
  position: absolute;
  top: 50%;
  z-index: 6;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-transform: uppercase;
  letter-spacing: .4em;
  font-size: .8rem;
  padding: 1.2rem .6rem;
  transition: opacity .3s;
}

.camp small {
  font-size: .6rem;
  letter-spacing: .3em;
  opacity: .55;
}

.camp-g {
  left: clamp(.6rem, 2.4vw, 2.4rem);
  transform: translateY(-50%) rotate(180deg);
  color: #e05a6d;
  font-family: var(--font-grotesk);
  font-weight: 700;
  border-right: 2px solid rgba(200, 16, 46, .55);
  padding-right: .9rem;
}

.camp-d {
  right: clamp(.6rem, 2.4vw, 2.4rem);
  transform: translateY(-50%);
  color: var(--d-or-clair);
  border-left: 1px solid rgba(74, 144, 226, .55);
  padding-left: .9rem;
}

.camp:hover { opacity: .8; }

/* la scène WebGL plein cadre */
#scene {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#scene canvas { display: block; }

/* Diagnostic QA, injecté uniquement avec `?debug3d=1`. Il n'existe donc pas
   dans l'expérience publique mais donne une lecture immédiate à l'équipe. */
.scene-debug {
  position: fixed;
  top: 5rem;
  right: 1rem;
  z-index: 280;
  max-width: min(88vw, 300px);
  padding: .75rem .85rem;
  border: 1px solid rgba(84, 214, 232, .42);
  border-radius: 12px;
  background: rgba(7, 13, 22, .86);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .36);
  color: #bdf1f7;
  white-space: pre-line;
  font: 600 .68rem/1.5 var(--font-grotesk);
  letter-spacing: .02em;
  pointer-events: none;
}

/* vignettage cinéma + assise du titre */
.chambre-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 4, 8, .58) 0%, transparent 19%),
    radial-gradient(125% 95% at 50% 44%, transparent 55%, rgba(2, 3, 7, .5) 100%);
}

.chambre-tete, .camp, .legende, .hint-nav { pointer-events: none; }
.camp { pointer-events: auto; }

/* légende des travées */
.legende {
  position: absolute;
  left: clamp(1rem, 3vw, 2.6rem);
  bottom: clamp(1rem, 3vw, 2.4rem);
  z-index: 6;
  background: rgba(9, 11, 18, .72);
  border: 1px solid rgba(74, 144, 226, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.1rem 1.4rem 1rem;
  max-width: 300px;
}

.legende .l-titre {
  font-size: .66rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--d-or);
  margin-bottom: .7rem;
}

.legende .l-ligne {
  font-family: var(--font-garamond);
  font-size: .88rem;
  line-height: 1.9;
  color: rgba(240, 233, 216, .85);
}

.legende .l-ligne b {
  font-family: var(--font-serif);
  color: var(--d-or-clair);
  font-weight: 600;
  margin-right: .45rem;
}

.legende .l-ligne span { opacity: .5; font-style: italic; font-size: .8rem; }

.legende .l-note {
  margin-top: .7rem;
  padding-top: .6rem;
  border-top: 1px solid rgba(74, 144, 226, .25);
  font-style: italic;
  font-size: .78rem;
  color: rgba(240, 233, 216, .55);
}

.legende .l-demo { margin-top: .65rem; color: #e6b23c; font: 700 .72rem var(--font-grotesk); letter-spacing: .06em; text-transform: uppercase; }

/* aide navigation */
.hint-nav {
  position: absolute;
  right: clamp(1rem, 3vw, 2.6rem);
  bottom: clamp(1rem, 3vw, 2.4rem);
  z-index: 6;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(240, 233, 216, .45);
  text-align: right;
  max-width: 380px;
  line-height: 2;
}

/* Navigation caméra compacte : un seul rail discret, sans recouvrir la scène. */
.camera-nav {
  position: fixed;
  left: 50%;
  bottom: 5.25rem;
  z-index: 14;
  display: flex;
  align-items: center;
  gap: .25rem;
  transform: translateX(-50%);
  padding: .32rem;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 999px;
  background: rgba(7, 11, 18, .72);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-grotesk);
  cursor: auto;
}

.camera-nav-label {
  padding: 0 .55rem 0 .65rem;
  color: rgba(240, 233, 216, .46);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.camera-nav button {
  min-height: 34px;
  padding: 0 .72rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(240, 233, 216, .68);
  font: 600 .72rem var(--font-grotesk);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.camera-nav button:hover,
.camera-nav button:focus-visible {
  color: #fff;
  border-color: rgba(124, 225, 237, .28);
  background: rgba(124, 225, 237, .08);
}

.camera-nav button:active { transform: scale(.97); }

.camera-nav button.actif {
  color: #ecfcff;
  border-color: rgba(124, 225, 237, .38);
  background: rgba(124, 225, 237, .14);
  box-shadow: inset 0 0 20px rgba(124, 225, 237, .05);
}

.living-mode {
  position: absolute;
  right: clamp(1rem, 3vw, 2.6rem);
  bottom: 6.2rem;
  z-index: 7;
  min-height: 40px;
  border: 1px solid rgba(216,185,104,.34);
  background: rgba(9,11,18,.74);
  color: rgba(240,233,216,.62);
  padding: 0 .85rem;
  font: .74rem var(--font-grotesk);
  cursor: not-allowed;
}

.scene-empty {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 2rem));
  border: 1px solid rgba(84,214,232,.36);
  background: rgba(6,11,18,.9);
  color: #dceff0;
  padding: 1.2rem 1.4rem;
  text-align: center;
  font: .9rem/1.5 var(--font-grotesk);
}

/* bascule sans 3D */
body.sans-3d .chambre-scene,
body.sans-3d .curseur,
body.sans-3d .curseur-halo { display: none; }

body.sans-3d {
  overflow: auto;
  cursor: auto;
}

body.sans-3d .acces-mobile { display: flex; flex-direction: column; min-height: 100vh; }

body.sans-3d .acces-mobile .am-tete { text-align: center; padding: 2.6rem 1.4rem 1.8rem; }
body.sans-3d .acces-mobile .am-tete .marque { font-size: .7rem; letter-spacing: .46em; text-transform: uppercase; color: rgba(240,233,216,.6); }
body.sans-3d .acces-mobile .am-tete h1 { font-family: var(--font-serif); font-weight: 600; font-size: 2rem; margin-top: .5rem; }
body.sans-3d .acces-mobile a.am-moitie { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .6rem; padding: 3rem 1.4rem; text-align: center; }
body.sans-3d .acces-mobile .am-g { background: var(--g-papier); color: var(--g-encre); font-family: var(--font-affiche); text-transform: uppercase; }
body.sans-3d .acces-mobile .am-g .titre { font-size: 2.2rem; }
body.sans-3d .acces-mobile .am-g .titre span { color: var(--g-rouge); }
body.sans-3d .acces-mobile .am-d { background: linear-gradient(180deg, var(--d-nuit), #070d19); color: var(--d-creme); font-family: var(--font-serif); }
body.sans-3d .acces-mobile .am-d .titre { font-size: 2.2rem; font-weight: 600; }
body.sans-3d .acces-mobile .am-d .titre em { font-style: italic; color: var(--d-or-clair); }
body.sans-3d .acces-mobile .am-m { background: #0d2a33; color: #a8edf4; font-family: var(--font-grotesk); }
body.sans-3d .acces-mobile .am-m .titre { font-family: var(--font-serif); font-size: 2rem; }
body.sans-3d .acces-mobile .sous { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; opacity: .65; font-family: var(--font-garamond); }

/* arcs de travées */
.travee-arc {
  fill: none;
  stroke: rgba(240, 233, 216, .2);
  stroke-width: 1.2;
}

.rayon { stroke: rgba(240, 233, 216, .06); stroke-width: 1; }

.rappel { stroke: rgba(240, 233, 216, .3); stroke-width: 1; }

.axe-central {
  stroke: rgba(240, 233, 216, .12);
  stroke-width: 1;
  stroke-dasharray: 1 6;
}

/* étiquettes de travées dans l'allée centrale */
.travee-nom {
  font-family: var(--font-garamond);
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  fill: rgba(240, 233, 216, .5);
  text-anchor: middle;
}

.travee-nom .num { fill: var(--d-or); }

/* sièges */
.siege { cursor: none; }
@media (pointer: coarse) { .siege { cursor: pointer; } }

.siege .assise {
  transition: transform .22s cubic-bezier(.22, .61, .36, 1), filter .22s;
  transform-box: fill-box;
  transform-origin: center;
}

.siege-g .assise { fill: #571623; stroke: #e8495f; stroke-width: 1.4; }
.siege-d .assise { fill: #1a2540; stroke: #4a90e2; stroke-width: 1.2; }

.siege .lueur {
  opacity: 0;
  transition: opacity .25s;
}

.siege-g .lueur { fill: rgba(200, 16, 46, .32); }
.siege-d .lueur { fill: rgba(74, 144, 226, .3); }

.siege:hover .assise, .siege.actif .assise { transform: scale(1.22); }
.siege-g:hover .assise, .siege-g.actif .assise { fill: var(--g-rouge); filter: drop-shadow(0 0 14px rgba(200, 16, 46, .8)); }
.siege-d:hover .assise, .siege-d.actif .assise { fill: var(--d-or); filter: drop-shadow(0 0 14px rgba(74, 144, 226, .8)); }
.siege:hover .lueur, .siege.actif .lueur { opacity: 1; }

/* couche des noms, au-dessus des sièges */
.couche-noms { pointer-events: none; }

.couche-noms .etiquette {
  opacity: 0;
  transition: opacity .6s;
}

.couche-noms .etiquette.pose { opacity: 1; }

.couche-noms .nom {
  font-family: var(--font-garamond);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  fill: rgba(240, 233, 216, .55);
  paint-order: stroke;
  stroke: rgba(7, 9, 15, .85);
  stroke-width: 3px;
  transition: fill .2s;
}

.couche-noms .etiquette.lit .nom-g { fill: #ff98a6; }
.couche-noms .etiquette.lit .nom-d { fill: var(--d-or-clair); }

/* apparition des sièges — animée sur le groupe intérieur uniquement,
   le <g> extérieur porte la position en attribut SVG */
.siege .pose-anim {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s, transform .5s cubic-bezier(.22, .61, .36, 1);
}
.siege.pose .pose-anim { opacity: 1; transform: none; }

/* atténuation du camp opposé quand un camp est choisi */
.parquet.focus-g .siege-d { opacity: .25; }
.parquet.focus-d .siege-g { opacity: .25; }

/* la tribune */
.tribune {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  text-align: center;
  padding-bottom: 1.3rem;
  pointer-events: none;
}

.tribune .pupitre {
  width: 130px;
  height: 40px;
  margin: 0 auto .7rem;
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg, var(--g-rouge) 0 50%, var(--d-or) 50% 100%);
  opacity: .85;
  box-shadow: 0 -6px 30px rgba(74, 144, 226, .25);
}

.tribune .invite {
  font-size: .7rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(240, 233, 216, .55);
}

/* plaque nominative flottante */
.plaque {
  position: fixed;
  z-index: 260;
  pointer-events: none;
  width: max-content;
  max-width: min(360px, calc(100vw - 32px));
  background: rgba(8, 13, 22, .94);
  border: 1px solid rgba(74, 144, 226, .65);
  border-radius: 12px;
  padding: .72rem 1rem .62rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .54), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translate(-50%, calc(-100% - 22px)) scale(.96);
  transition: opacity .18s, transform .18s;
  text-align: center;
  white-space: normal;
}

.plaque.visible { opacity: 1; transform: translate(-50%, calc(-100% - 26px)) scale(1); }

.plaque .p-nom {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--d-creme);
}

.plaque .p-role {
  font-family: var(--font-garamond);
  font-style: italic;
  font-size: .8rem;
  line-height: 1.3;
  color: var(--d-or-clair);
  margin-top: .1rem;
}

.plaque.plaque-g { border-color: rgba(200, 16, 46, .75); }
.plaque.plaque-g .p-role { color: #e05a6d; }
.plaque.plaque-n { border-color: rgba(240, 138, 104, .78); }
.plaque.plaque-n .p-role { color: #ffc0ad; }
.plaque.plaque-p { border-color: rgba(169, 140, 255, .78); }
.plaque.plaque-p .p-role { color: #d1c3ff; }
.plaque.plaque-m { border-color: rgba(84, 214, 232, .78); }
.plaque.plaque-m .p-role { color: #a8edf4; }

/* projection continue : tendance gauche ← · zone centrale · → tendance droite */
.p-spectre {
  position: relative;
  height: 3px;
  margin: .6rem .2rem .1rem;
  background: linear-gradient(90deg, var(--g-rouge), rgba(240, 233, 216, .25) 50%, var(--d-or));
  border-radius: 2px;
}

.p-spectre i {
  position: absolute;
  top: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--d-creme);
  border: 2px solid #0a0e16;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(240, 233, 216, .8);
}

.p-spectre.grande {
  height: 4px;
  margin: 1.6rem auto .2rem;
  max-width: 320px;
}

.modal-g .p-spectre.grande { background: linear-gradient(90deg, var(--g-rouge), rgba(22, 19, 15, .25) 50%, var(--d-or)); }
.modal-g .p-spectre.grande i { background: var(--g-encre); border-color: var(--g-papier-clair); box-shadow: none; }

.plaque .p-travee {
  margin-top: .42rem;
  padding-top: .42rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font: 700 .66rem/1.2 var(--font-grotesk);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(236, 242, 250, .66);
}
.plaque .p-action {
  margin-top: 9px; padding-top: 8px; color: #edf5ff;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: .61rem; font-weight: 720; letter-spacing: .04em;
}
body.seat-selected .curseur-halo {
  width: 36px; height: 36px; border-color: rgba(255,255,255,.88);
  box-shadow: 0 0 0 5px rgba(55,196,214,.12), 0 0 24px rgba(55,196,214,.38);
}

.plaque .p-confidence { margin-top: .4rem; color: rgba(240,233,216,.72); font: .72rem var(--font-grotesk); }
.plaque .p-position-unpublished { margin-top: .55rem; color: #b9dfe5; font: .72rem/1.4 var(--font-grotesk); }
.plaque .p-demo { margin-top: .35rem; color: #e6b23c; font: 700 .66rem var(--font-grotesk); letter-spacing: .1em; text-transform: uppercase; }

.position-details {
  margin-top: 1.3rem;
  padding: 1rem;
  border: 1px solid rgba(84,214,232,.3);
  background: rgba(84,214,232,.08);
  color: inherit;
}
.position-details strong, .position-details span { display: block; }
.position-details strong { color: #a8edf4; font: 700 .76rem var(--font-grotesk); letter-spacing: .08em; text-transform: uppercase; }
.position-details span { margin-top: .45rem; color: rgba(234,245,242,.7); font: .78rem var(--font-grotesk); }
.position-details p { margin-top: .65rem; font-size: .86rem; }
.position-details > div { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.position-details a { min-height: 40px; display: inline-flex; align-items: center; border: 1px solid rgba(84,214,232,.38); padding: 0 .75rem; color: #a8edf4; font: .74rem var(--font-grotesk); }
.modal-g .position-details { border-color: rgba(22,19,15,.28); background: rgba(22,19,15,.06); }
.modal-g .position-details strong, .modal-g .position-details a { color: var(--g-rouge); }
.modal-g .position-details span { color: rgba(22,19,15,.72); }

/* nav fiche (précédent / suivant) */
.fiche-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
}

.modal-g .fiche-nav { border-top: 1.5px dashed rgba(22, 19, 15, .4); }
.modal-d .fiche-nav { border-top: 1px solid rgba(74, 144, 226, .3); }

.fiche-nav button {
  background: none;
  border: none;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: .3rem 0;
}

.modal-g .fiche-nav button { font-family: var(--font-affiche); color: var(--g-encre); }
.modal-g .fiche-nav button:hover { color: var(--g-rouge); }
.modal-d .fiche-nav button { font-family: var(--font-garamond); color: rgba(240, 233, 216, .7); }
.modal-d .fiche-nav button:hover { color: var(--d-or-clair); }

/* mention "à la tribune" dans la fiche */
.a-la-tribune {
  font-size: .68rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.modal-g .a-la-tribune { font-family: var(--font-affiche); color: var(--g-rouge); padding-right: 120px; }
.modal-d .a-la-tribune { font-family: var(--font-garamond); color: var(--d-or); }

/* ---------- Mobile : accès direct ---------- */

.acces-mobile { display: none; }

@media (max-width: 760px), (max-height: 540px) {
  body.chambre { overflow: auto; cursor: auto; }
  .curseur, .curseur-halo, .velum, .chambre-scene { display: none; }

  .acces-mobile {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .acces-mobile .am-tete {
    text-align: center;
    padding: 2.6rem 1.4rem 1.8rem;
  }

  .acces-mobile .am-tete .marque {
    font-size: .7rem;
    letter-spacing: .46em;
    text-transform: uppercase;
    color: rgba(240, 233, 216, .6);
  }

  .acces-mobile .am-tete h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 2rem;
    margin-top: .5rem;
  }

  .acces-mobile a.am-moitie {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .6rem;
    padding: 3rem 1.4rem;
    text-align: center;
  }

  .acces-mobile .am-g {
    background: var(--g-papier);
    color: var(--g-encre);
    font-family: var(--font-affiche);
    text-transform: uppercase;
  }

  .acces-mobile .am-g .titre { font-size: 2.2rem; }
  .acces-mobile .am-g .titre span { color: var(--g-rouge); }

  .acces-mobile .am-d {
    background: linear-gradient(180deg, var(--d-nuit), #070d19);
    color: var(--d-creme);
    font-family: var(--font-serif);
  }

  .acces-mobile .am-d .titre { font-size: 2.2rem; font-weight: 600; }
  .acces-mobile .am-d .titre em { font-style: italic; color: var(--d-or-clair); }

  .acces-mobile .am-m {
    background: linear-gradient(180deg, #0d2a33, #07181e);
    color: #a8edf4;
    font-family: var(--font-grotesk);
  }

  .acces-mobile .am-m .titre { font-family: var(--font-serif); font-size: 2rem; }

  .acces-mobile .sous {
    font-size: .7rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    opacity: .65;
    font-family: var(--font-garamond);
  }
}

@media (max-width: 1120px) {
  .scene-product-links a:nth-last-child(-n+2) { display: none; }
  .scene-modes { top: 10rem; }
  .scene-access { display: none; }
  .scene-filter-row a { display: none; }
}

@media (max-height: 800px) and (min-width: 761px) {
  .chambre-tete { padding-top: 4.2rem; }
  .chambre-tete h1 { margin-top: .2rem; }
  .chambre-tete .seance { margin-top: .2rem; }
  .scene-modes { top: 9.5rem; transform: translateX(-50%) scale(.92); transform-origin: top center; }
  .legende { transform: scale(.9); transform-origin: left bottom; }
}

@media (max-width: 760px) {
  .scene-product-nav { position: fixed; grid-template-columns: 1fr; gap: .28rem; padding: .45rem .65rem; }
  .scene-brand { justify-self: center; font-size: .7rem; }
  .scene-product-links { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; overscroll-behavior-inline: contain; }
  .scene-product-links::-webkit-scrollbar { display: none; }
  .scene-product-links a { min-height: 34px; padding-inline: .58rem; white-space: nowrap; font-size: .76rem; }
  .scene-product-nav button { display: none; }
  body.sans-3d .acces-mobile { min-height: calc(100vh - 110px); }
}

/* ============================================================
   LOT D — DOSSIER DE SÉANCE (panneau latéral de la scène)
   ============================================================ */

.dossier {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 92vw);
  z-index: 340;
  background:
    linear-gradient(160deg, rgba(13, 18, 30, .93), rgba(9, 12, 20, .97));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-left: 1px solid color-mix(in srgb, var(--accent, #37c4d6) 60%, transparent);
  box-shadow: -30px 0 80px rgba(0, 0, 0, .55);
  transform: translateX(102%);
  transition: transform .38s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.dossier::before {
  content: ""; position: absolute; inset: 0 0 0 0;
  background: var(--grain-url, none);
  opacity: .04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dossier.ouvert { transform: none; }

.dossier-scroll {
  position: relative;
  height: 100%;
  overflow-y: auto;
  padding: 2rem 1.8rem 2.4rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .16) transparent;
}
.dossier-scroll::-webkit-scrollbar { width: 6px; }
.dossier-scroll::-webkit-scrollbar-track { background: transparent; }
.dossier-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 8px; }

.dossier-close {
  position: absolute; top: 1.1rem; right: 1.2rem;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .04);
  color: rgba(240, 233, 216, .8); font-size: 1.3rem; line-height: 1;
}
.dossier-close:hover { color: #fff; border-color: var(--accent); }

/* ---- Dossier (fiche in-scène) — DA app validée ---- */
.dossier { font-family: var(--font-grotesk); }
.dossier-kicker {
  font-family: var(--font-grotesk);
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
  color: var(--accent, #37c4d6); margin-bottom: 1.3rem; padding-right: 2.5rem;
}

.dossier-tete { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.dossier-medaillon {
  flex-shrink: 0; width: 68px; height: 68px; border-radius: 50%; overflow: hidden; position: relative;
  display: grid; place-items: center;
  font: 700 1.35rem var(--font-grotesk); color: #06121a;
  background: linear-gradient(150deg, var(--accent, #37c4d6), color-mix(in srgb, var(--accent, #37c4d6) 55%, #0a0e16));
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent, #37c4d6) 40%, transparent);
}
.dossier-medaillon.has-img { background: #0f1521; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.dossier-medaillon:not(.has-img)::after { content: attr(data-ini); }
.dossier-medaillon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dossier-tete h2 { font-family: var(--font-grotesk); font-weight: 700; font-size: 1.5rem; line-height: 1.14; letter-spacing: -.01em; color: #eef2f7; }
.dossier-tagline { font-family: var(--font-grotesk); font-size: .9rem; color: var(--accent, #37c4d6); font-weight: 600; margin-top: .35rem; }

.dossier-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem;
  padding: 1rem 0; margin-bottom: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.dossier-stats > div { display: flex; flex-direction: column; gap: .2rem; }
.dossier-stats b { font-family: var(--font-grotesk); font-weight: 700; font-size: 1.05rem; color: #eef2f7; }
.dossier-stats span { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: #6b7688; }
.dossier-chip {
  align-self: start; padding: .3rem .6rem; border-radius: 999px; font-size: .64rem !important; font-weight: 700;
  letter-spacing: .04em !important; color: #e6b23c !important;
  background: rgba(230, 178, 60, .13); box-shadow: inset 0 0 0 1px rgba(230, 178, 60, .32);
}

.dossier-positionnement { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1.6rem; }
.dossier-positionnement.dossier-unpublished { display: block; border: 1px solid rgba(55, 196, 214, .28); border-left: 3px solid var(--accent, #37c4d6); border-radius: 10px; padding: .9rem 1rem; background: rgba(55, 196, 214, .055); }
.dossier-unpublished p { margin: 0; color: #b7c2d0; font: .84rem/1.55 var(--font-grotesk); }
.dossier-jauge-wrap { flex: 1; min-width: 0; }
.dossier-jauge-tete { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #9aa6b8; margin-bottom: .6rem; }
.dossier-jauge {
  position: relative; height: 6px; border-radius: 4px;
  background: linear-gradient(90deg, #e8495f, #e6b23c 50%, #4a90e2);
}
.dossier-jauge i {
  position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid #0a0e16; transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.dossier-jauge-legende { display: flex; justify-content: space-between; margin-top: .45rem; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: #6b7688; }
.dossier-demo { margin-top: .5rem; font-size: .68rem; color: #6b7688; }
.dossier-donut { flex-shrink: 0; width: 62px; text-align: center; position: relative; }
.dossier-donut svg { width: 56px; height: 56px; }
.dossier-donut b { position: absolute; top: 17px; left: 0; right: 0; font-family: var(--font-grotesk); font-weight: 700; font-size: .92rem; color: #eef2f7; }
.dossier-donut span { display: block; font-size: .54rem; letter-spacing: .08em; text-transform: uppercase; color: #6b7688; margin-top: .1rem; }

.dossier-section { margin-bottom: 1.3rem; }
.dossier-section h3 { font-family: var(--font-grotesk); font-weight: 700; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent, #37c4d6); margin-bottom: .5rem; }
.dossier-section p { font-family: var(--font-grotesk); font-size: .92rem; line-height: 1.6; color: #9aa6b8; }

.dossier-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.6rem; }
.dossier-tags span {
  font-size: .68rem; letter-spacing: .02em; padding: .28rem .6rem; border-radius: 7px;
  color: #9aa6b8; background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

.dossier-cta { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.8rem; }
.dossier-btn {
  display: block; text-align: center; padding: .8rem 1rem; border-radius: 11px;
  font-family: var(--font-grotesk); font-weight: 600; font-size: .86rem;
  border: 1px solid rgba(255, 255, 255, .14); color: #eef2f7; transition: background .2s, border-color .2s, filter .2s;
}
.dossier-btn:hover { border-color: var(--accent, #37c4d6); background: rgba(255, 255, 255, .05); }
.dossier-btn.primary { background: var(--accent, #37c4d6); border-color: var(--accent, #37c4d6); color: #06121a; font-weight: 700; }
.dossier-btn.primary:hover { filter: brightness(1.08); }
.dossier-btn.ghost { font-size: .8rem; color: #9aa6b8; }

.dossier-footer {
  position: sticky; bottom: -2.4rem; display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; padding: .9rem 0 .5rem; margin-top: .5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, transparent, rgba(9, 12, 20, .96) 40%);
}
.dossier-nav {
  background: none; border: none; font-family: var(--font-grotesk); font-weight: 600;
  font-size: .8rem; color: #9aa6b8; padding: .4rem 0; cursor: pointer;
}
.dossier-nav:hover { color: var(--accent, #37c4d6); }
.dossier-pos { font-family: var(--font-grotesk); font-size: .8rem; color: #6b7688; }
.dossier-retour {
  display: block; width: 100%; margin-top: .6rem; padding: .7rem; border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .14); background: none; cursor: pointer;
  font-family: var(--font-grotesk); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: #9aa6b8;
}
.dossier-retour:hover { color: #eef2f7; border-color: var(--accent, #37c4d6); background: rgba(255, 255, 255, .04); }

/* mobile : bottom-sheet */
@media (max-width: 760px) {
  .dossier {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%;
    height: 74vh; border-left: none; border-top: 2px solid var(--accent);
    border-radius: 20px 20px 0 0; transform: translateY(102%);
  }
  .dossier.ouvert { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dossier { transition: none; }
}

/* ============================================================
   PHASE 1 — Réorganisation de l'index : 3 zones
   Z1 nav (existant) · Z2 titre discret · Z3 barre de séance
   ============================================================ */

/* Z2 · titre-signature discret, en haut, qui laisse respirer la scène */
.chambre-tete {
  top: 4.6rem;
  z-index: 6;
}
.chambre-tete h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.chambre-tete .marque { font-size: .72rem; letter-spacing: .28em; }
.chambre-tete .seance { font-size: .74rem; opacity: .72; }
/* s'estompe une fois qu'on explore, pour ne pas concurrencer la scène */
body:not(.pre-entree) .chambre-tete { opacity: .58; transition: opacity 1.2s ease 1.4s; }
body:not(.pre-entree) .chambre-tete:hover { opacity: 1; }
body[data-camera-view="gauche"] .chambre-tete,
body[data-camera-view="droite"] .chambre-tete { opacity: .22; transition-delay: 0s; }
body[data-camera-view="tribune"] .chambre-tete { opacity: .08; transition-delay: 0s; }

/* aide navigation : visible à l'entrée, s'efface toute seule */
.hint-nav {
  bottom: 6.2rem;
  animation: hint-fade 1s ease 6s forwards;
}
@keyframes hint-fade { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .hint-nav { animation: none; opacity: .5; } }

@media (max-width: 920px) {
  .camera-nav-label { display: none; }
  .camera-nav button { padding-inline: .62rem; }
}

/* ---------- Z3 · barre de séance unique ---------- */
.seance-bar {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 14;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .6rem;
  max-width: min(97vw, 1080px);
  background: rgba(9, 13, 20, .72);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  font-family: var(--font-grotesk);
}

.sb-families { display: flex; gap: .25rem; }

.sb-fam {
  display: inline-flex;
  align-items: center;
  gap: .1rem;
  height: 38px;
  padding: 0 .85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(240, 244, 250, .82);
  font: 600 .84rem var(--font-grotesk);
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.sb-fam b { font-weight: 700; opacity: .55; font-size: .78rem; }
.sb-fam:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sb-fam.actif { background: rgba(255, 255, 255, .12); color: #fff; }
.sb-fam.actif b { opacity: .85; }

.fam-dot { width: 8px; height: 8px; border-radius: 50%; margin-right: .35rem; }
.fam-dot.n { background: var(--fam-newseur, #ff6b5e); }
.fam-dot.p { background: var(--fam-politique, #8b7bd8); }
.fam-dot.m { background: var(--fam-media, #37c4d6); }
.fam-dot.vox { background: #f4f1e8; box-shadow: 0 0 9px rgba(55,196,214,.65); }
.sb-fam-vox { color: #d8f8fc; border: 1px solid rgba(55,196,214,.16); }
.sb-fam-vox.actif { color: #06151b; background: #7ce1ed; }

.sb-search {
  display: flex;
  align-items: center;
  gap: .45rem;
  height: 38px;
  padding: 0 .5rem 0 .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  min-width: 190px;
  flex: 1;
}
.sb-search svg { width: 16px; height: 16px; color: rgba(240, 244, 250, .5); flex-shrink: 0; }
.sb-search input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  color: #eef3fa; font: 500 .86rem var(--font-grotesk);
}
.sb-search input::placeholder { color: rgba(240, 244, 250, .4); }

.sb-more {
  display: inline-flex; align-items: center; gap: .4rem;
  height: 38px; padding: 0 .95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: rgba(240, 244, 250, .85);
  font: 600 .82rem var(--font-grotesk);
  white-space: nowrap;
}
.sb-more svg { width: 15px; height: 15px; }
.sb-more:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sb-more[aria-expanded="true"] { background: rgba(84, 214, 232, .16); border-color: rgba(84, 214, 232, .45); color: #bff3fb; }

/* panneau repliable, au-dessus de la barre */
.sb-panel[hidden] { display: none; }
.sb-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + .6rem);
  width: min(92vw, 340px);
  padding: 1rem 1.1rem 1.1rem;
  background: rgba(11, 16, 25, .94);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .6);
  display: grid;
  gap: .8rem;
  animation: sb-panel-in .22s ease;
}
@keyframes sb-panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sb-field { display: grid; gap: .3rem; }
.sb-field > span { font: 700 .64rem var(--font-grotesk); letter-spacing: .14em; text-transform: uppercase; color: rgba(240, 244, 250, .5); }
.sb-field select {
  width: 100%; height: 40px;
  border: 1px solid rgba(84, 214, 232, .28);
  background: #0b151d; color: #eef2f7;
  border-radius: 10px; padding: 0 .6rem; font: 500 .86rem var(--font-grotesk);
}
.sb-access-row { display: flex; gap: .4rem; }
.sb-access-row select { flex: 1; min-width: 0; }
.sb-access-row button {
  height: 40px; padding: 0 .95rem;
  border: 1px solid rgba(84, 214, 232, .42);
  background: rgba(84, 214, 232, .14); color: #bff3fb;
  border-radius: 10px; font: 600 .82rem var(--font-grotesk); white-space: nowrap;
}
.sb-access-row button:hover { background: rgba(84, 214, 232, .24); }

.sb-panel-foot { display: grid; gap: .5rem; padding-top: .3rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.sb-info-toggle {
  text-align: left; border: 0; background: none;
  color: rgba(240, 244, 250, .8); font: 600 .8rem var(--font-grotesk); padding: .2rem 0;
}
.sb-info-toggle:hover { color: #fff; }
.sb-panel-foot a { color: #78dce8; font: 500 .8rem var(--font-grotesk); }
.sb-panel-foot a:hover { color: #bff3fb; }

/* ---------- Légende : popover contextuel ---------- */
.legende {
  position: fixed;
  left: 1.6rem;
  bottom: 1.6rem;
  top: auto; right: auto;
  z-index: 15;
  width: min(90vw, 300px);
  padding: 1rem 1.2rem;
  background: rgba(11, 16, 25, .94);
  border: 1px solid rgba(74, 144, 226, .35);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  animation: sb-panel-in .22s ease;
}
.legende[hidden] { display: none; }
.legende .l-badge {
  margin-top: .7rem; padding-top: .6rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font: 700 .68rem var(--font-grotesk); letter-spacing: .06em; text-transform: uppercase;
  color: rgba(240, 233, 216, .5);
}

/* Le visiteur explore des voix, pas un tableau de contrôle. */
.sb-more,
.sb-panel,
.legende {
  display: none !important;
}

/* variables de couleur de famille (arbitrage Phase 7, posées ici) */
:root { --fam-newseur: #ff6b5e; --fam-politique: #8b7bd8; --fam-media: #37c4d6; }

@media (max-width: 720px) {
  .chambre-tete { top: 6.2rem; padding-inline: .7rem; }
  .chambre-tete .marque { display: none; }
  .chambre-tete h1 { font-size: 1.85rem; }
  .chambre-tete .seance { font-size: .65rem; }
  .hint-nav { display: none; }

  .camera-nav {
    bottom: 8.15rem;
    width: calc(100vw - 12px);
    justify-content: center;
    overflow-x: auto;
  }
  .camera-nav button { min-height: 32px; padding-inline: .48rem; font-size: .65rem; }

  .seance-bar {
    bottom: .5rem;
    width: calc(100vw - 12px);
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .35rem;
    padding: .42rem;
    border-radius: 18px;
  }
  .sb-families {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sb-families::-webkit-scrollbar { display: none; }
  .sb-fam { height: 32px; padding-inline: .65rem; font-size: .72rem; }
  .sb-search { order: 1; width: 100%; min-width: 0; height: 34px; }
}

/* Correctif compact : une petite fenêtre n'est jamais assimilée à une panne
   WebGL. Ces règles, volontairement placées après l'ancien accès direct,
   rétablissent la scène et son velum quand le chargeur a activé scene-compact. */
@media (max-width: 760px), (max-height: 540px) {
  body.chambre.scene-compact { overflow: hidden; cursor: auto; }
  body.scene-compact .chambre-scene { display: flex; }
  body.scene-compact .velum { display: grid; }
  body.scene-compact .acces-mobile,
  body.scene-compact .curseur,
  body.scene-compact .curseur-halo { display: none; }

  body.scene-compact .velum-tete { top: 7.2rem; padding-inline: .8rem; }
  body.scene-compact .velum-tete .marque { font-size: .58rem; letter-spacing: .14em; }
  body.scene-compact .velum-moitie .mot { font-size: clamp(.78rem, 13cqw, 1.35rem); }
  body.scene-compact .velum-c .mot { transform: translateY(-2.8rem); }
  body.scene-compact .velum-moitie .indice,
  body.scene-compact .velum-pied { display: none; }
  body.scene-compact .sceau-entree { top: 58%; width: 116px; height: 116px; }
  body.scene-compact .sceau-entree .haut { font-size: .56rem; }
  body.scene-compact .sceau-entree .centre { font-size: 1.02rem; }
  body.scene-compact .skip-intro {
    right: .65rem;
    bottom: .65rem;
    min-height: 38px;
    padding-inline: .7rem;
    font-size: .74rem;
  }
}
