/* ==========================================================================
   Yugurten Studio — V2
   L'affiche comme interface.
   ========================================================================== */

:root {
  /* papier & encre */
  --paper: #ede6d6;
  --paper-2: #e3d9c4;
  --paper-3: #d8ccb3;
  --ink: #171613;
  --ink-2: #57514a;
  --line: rgba(23, 22, 19, 0.2);

  /* nuit */
  --night: #121311;
  --night-2: #1b1d1a;
  --on-night: #ece4d2;
  --on-night-2: #a49d8d;
  --line-night: rgba(236, 228, 210, 0.16);

  /* une couleur par pièce */
  --a: #d9532b; /* Accueil — orange */
  --b: #24624e; /* Régie — vert */
  --c: #2d4fb0; /* Cabine voix — cobalt */
  --d: #cf9b3a; /* Cabine en L — ocre */

  --amber: #f2a43a;
  --led: #5be3a6;

  --gutter: clamp(16px, 3.5vw, 48px);
  --max: 1480px;
  --gap: clamp(16px, 2vw, 28px);

  --f-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --f-tif: "Noto Sans Tifinagh", sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(16px, 0.35vw + 14.6px, 18px);
  line-height: 1.5;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--a); color: var(--paper); }

:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.mono {
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tif { font-family: var(--f-tif); }

/* ---------- petites pièces du système ---------- */

.dots { display: inline-flex; gap: 4px; align-items: center; }
.dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: 0.25; display: block;
}
.dots i.on { opacity: 1; }
.dots i[data-r="a"].on { background: var(--a); }
.dots i[data-r="b"].on { background: var(--b); }
.dots i[data-r="c"].on { background: var(--c); }
.dots i[data-r="d"].on { background: var(--d); }
.dots--full i { opacity: 1; }
.dots--full i:nth-child(1) { background: var(--a); }
.dots--full i:nth-child(2) { background: var(--b); }
.dots--full i:nth-child(3) { background: var(--c); }
.dots--full i:nth-child(4) { background: var(--d); }

.lz { /* losange */
  display: inline-block; width: 0.55em; height: 0.55em;
  background: currentColor; transform: rotate(45deg); flex: none;
}

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 22px 14px;
  font-family: var(--f-sans); font-weight: 650; font-size: 15px; letter-spacing: 0.01em;
  text-decoration: none; border: 1.5px solid currentColor; border-radius: 0;
  background: transparent; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn .arr { transition: transform 0.3s var(--ease); }
.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--ghost-paper { color: var(--paper); }
/* Les états de survol ne s'appliquent qu'aux appareils à souris : sur écran tactile, :hover reste « collé » après un toucher. */
@media (hover: hover) {
  .btn:hover .arr { transform: translateX(4px); }
  .btn--ink:hover { background: var(--a); border-color: var(--a); }
  .btn--line:hover { background: var(--ink); color: var(--paper); }
  .btn--paper:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .btn--ghost-paper:hover { background: var(--paper); color: var(--ink); }
}

/* tête de section : une règle, des petites infos, comme le haut d'une affiche */
.sec-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding-top: 14px;
  border-top: 1.5px solid currentColor;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.sec-head__title { font-weight: 500; }
.sec-head .tif { font-size: 15px; letter-spacing: 0.1em; text-transform: none; }

.h2 {
  font-weight: 760;
  font-size: clamp(38px, 5.6vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-weight: 720; font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.05; letter-spacing: -0.02em; margin: 0;
}
.lead { font-size: clamp(18px, 1.3vw, 21px); line-height: 1.45; max-width: 46ch; }
.muted { color: var(--ink-2); }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); /* repli pour les navigateurs sans color-mix (iOS < 16.2) */
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: 24px; height: 60px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 22px; height: auto; }
.brand b {
  font-weight: 850; font-stretch: 75%; font-size: 19px;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.brand span { color: var(--ink-2); }

.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a {
  text-decoration: none; font-size: 14.5px; font-weight: 520; position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }

.status {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--ink-2);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); opacity: 0.5; }
.status.is-open .status__dot {
  background: var(--b); opacity: 1;
  box-shadow: 0 0 0 0 rgba(36, 98, 78, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(36, 98, 78, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(36, 98, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(36, 98, 78, 0); }
}

.nav__cta { padding: 10px 16px 9px; font-size: 14px; }
.nav__burger { display: none; }

@media (max-width: 1100px) {
  .nav .status { display: none; }
}
@media (max-width: 480px) {
  .status { white-space: normal; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger {
    display: inline-flex; margin-left: auto; align-items: center; gap: 10px;
    background: none; border: 0; padding: 14px 0 14px 16px; cursor: pointer; /* zone tactile ≥ 44 px */
  }
  .nav__burger i { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; }
  .nav__burger i::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 1.5px; background: currentColor; }
}

.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; padding: 18px var(--gutter) 28px;
  /* défilable : en paysage ou sur petit écran, les six liens dépassent la hauteur de l'écran */
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(-100%); visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
}
.menu.is-open { transform: none; visibility: visible; transition: transform 0.5s var(--ease), visibility 0s; }
.menu__top { display: flex; justify-content: space-between; align-items: center; height: 24px; flex: none; }
.menu__close { background: none; border: 0; cursor: pointer; padding: 14px 0 14px 16px; margin-block: -14px; }
.menu nav { margin-top: auto; display: grid; gap: 4px; padding-top: 16px; }
.menu nav a {
  text-decoration: none; font-weight: 850; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(34px, min(15vw, 11vh), 96px); line-height: 0.95; display: flex; align-items: baseline; gap: 14px;
}
.menu__foot a { padding-block: 10px; margin-block: -10px; }
.menu nav a .mono { color: var(--on-night-2); font-weight: 400; }
.menu__foot { margin-top: 32px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--on-night-2); }

/* ==========================================================================
   Hero — l'affiche d'ouverture
   ========================================================================== */

.hero { padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(16px, 2vw, 24px); }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1.5px solid var(--ink);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__dots { margin-left: auto; }

.hero__word {
  position: relative;
  margin: 0; line-height: 0.8;
  font-weight: 900; font-stretch: 62%;
  text-transform: uppercase; letter-spacing: -0.01em;
  padding-top: clamp(10px, 1.6vw, 22px);
  overflow: hidden;
}
/* Signature STUDIO — sous le N, hors du mot (qui reste masqué par overflow) ; hauteur nulle : aucun décalage de mise en page. */
.hero__sigrow { position: relative; height: 0; container-type: inline-size; }
.hero__sig {
  position: absolute; display: flex; align-items: center; gap: 0.9em;
  right: calc(1.05cqw - 0.34em); top: max(-0.2cqw, 0px);
  font-family: var(--f-mono); font-weight: 500; line-height: 1; white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.34em;
  font-size: max(1.25cqw, 11px);
  pointer-events: none;
}
.hero__sig i {
  display: block; flex: none; width: 0.78em; height: 0.78em; background: var(--a);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.fit { display: inline-block; white-space: nowrap; font-size: 22vw; }
.fit span { display: inline-block; }
.js .fit span {
  transform: translateY(105%);
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 55ms + 120ms);
}
@keyframes rise { to { transform: none; } }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: clamp(18px, 2.4vw, 34px);
  padding-top: clamp(18px, 2vw, 26px);
  border-top: 1.5px solid var(--ink);
}
.hero__tif {
  display: none;
  font-family: var(--f-tif);
  writing-mode: vertical-rl; text-orientation: upright;
  font-size: 30px; letter-spacing: 0.18em; line-height: 1;
}
.hero__text { display: flex; flex-direction: column; gap: 22px; }
.hero__lead {
  margin: 0; font-weight: 720; letter-spacing: -0.03em;
  font-size: clamp(30px, 3.6vw, 54px); line-height: 1.0; text-wrap: balance;
}
.hero__lead em { font-style: normal; color: var(--a); }
.hero__text p { margin: 0; max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 8px 0 0;
  border-top: 1px solid var(--line);
}
.facts div { padding: 14px 0 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.facts div:nth-child(odd) { padding-right: 12px; }
.facts dt {
  font-weight: 850; font-stretch: 62%; font-size: clamp(38px, 3.6vw, 52px); line-height: 0.9;
}
.facts dd { margin: 6px 0 0; }

.hero__photo { margin: 0; position: relative; }
.hero__photo .frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--night); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__photo figcaption {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; color: var(--ink-2);
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 44px minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap) clamp(24px, 3vw, 48px); }
  .hero__tif { display: block; }
  .hero__text { justify-content: space-between; }
  .hero__photo .frame { aspect-ratio: 5 / 5.4; }
}

/* ==========================================================================
   01 — La maison
   ========================================================================== */

.house { padding-block: clamp(40px, 5.2vw, 76px); }
.house__statement {
  font-weight: 650; letter-spacing: -0.025em;
  font-size: clamp(22px, 2.5vw, 38px); line-height: 1.12; margin: 0;
  max-width: 30ch; text-wrap: balance;
}
.house__statement s { text-decoration-thickness: 0.07em; text-decoration-color: var(--a); color: var(--ink-2); }
.house__cols {
  display: grid; gap: 14px; margin-top: clamp(28px, 3.8vw, 52px);
  grid-template-columns: 1fr;
}
.house__col {
  position: relative; display: flex; flex-direction: column; text-align: left;
  background: var(--paper); border: 1.5px solid var(--ink); padding: 0;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
@media (hover: hover) { .house__col:hover { transform: translateY(-4px); } }
.house__col .ticket__stub { align-items: center; margin: 0; }
.house__col .ticket__stub::before,
.house__col .ticket__stub::after { background: var(--paper); }
.house__col .ticket__main { position: relative; padding: 18px 16px 16px; gap: 12px; }
.house__col .ticket__dur { margin: 0; font-size: clamp(38px, 3.4vw, 52px); line-height: 0.86; }
.house__col .ticket__txt { margin: 0; max-width: none; }
.house__col .ruler { margin-top: auto; padding-top: 8px; }
/* Mobile : le pictogramme passe dans le flux, au-dessus du titre (aucun recouvrement) */
.house__illu {
  position: static; display: block; margin: 0 0 6px;
  width: 64px; height: 43px; pointer-events: none; overflow: visible;
}
.illu-cone { transform-box: fill-box; transform-origin: center; animation: illu-cone 2.2s ease-in-out infinite alternate; }
.illu-needle { transform-box: fill-box; transform-origin: 50% 92%; animation: illu-needle 2.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate; }
.illu-knob--1 { transform-box: fill-box; transform-origin: center; animation: illu-knob-1 3.4s ease-in-out infinite alternate; }
.illu-knob--2 { transform-box: fill-box; transform-origin: center; animation: illu-knob-2 4.2s ease-in-out infinite alternate; }
.illu-ring--1 { transform-box: fill-box; transform-origin: center; animation: illu-ring-rot 14s linear infinite; }
.illu-ring--2 { transform-box: fill-box; transform-origin: center; animation: illu-ring-pulse 2.5s ease-in-out infinite alternate; }
.illu-fader--1 { animation: illu-fader-1 3.2s ease-in-out infinite alternate; }
.illu-fader--2 { animation: illu-fader-2 2.8s ease-in-out infinite alternate; }
.illu-pad--1 { animation: illu-pad 2.4s ease-in-out infinite alternate; }
.illu-pad--2 { animation: illu-pad 2.4s ease-in-out -1.2s infinite alternate; }
.illu-reel--1 { transform-box: fill-box; transform-origin: center; animation: illu-ring-rot 9s linear infinite; }
.illu-reel--2 { transform-box: fill-box; transform-origin: center; animation: illu-ring-rot 9s linear infinite; }
.illu-bar { transform-box: fill-box; transform-origin: left center; }
.illu-bar--1 { animation: illu-bar 1.8s ease-in-out infinite alternate; }
.illu-bar--2 { animation: illu-bar 2.3s ease-in-out -0.7s infinite alternate; }
.illu-bar--3 { animation: illu-bar 1.5s ease-in-out -0.4s infinite alternate; }
.patch-flow { animation: patch-flow 3.5s linear infinite; }
@keyframes illu-cone { from { transform: scale(0.9); } to { transform: scale(1.1); } }
@keyframes illu-needle { from { transform: rotate(-34deg); } to { transform: rotate(24deg); } }
@keyframes illu-knob-1 { from { transform: rotate(-32deg); } to { transform: rotate(28deg); } }
@keyframes illu-knob-2 { from { transform: rotate(26deg); } to { transform: rotate(-30deg); } }
@keyframes illu-ring-rot { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes illu-ring-pulse { from { transform: scale(0.92); opacity: 0.45; } to { transform: scale(1.08); opacity: 0.85; } }
@keyframes illu-fader-1 { from { transform: translateY(-4px); } to { transform: translateY(7px); } }
@keyframes illu-fader-2 { from { transform: translateY(5px); } to { transform: translateY(-6px); } }
@keyframes illu-pad { from { opacity: 0.35; } to { opacity: 1; } }
@keyframes illu-bar { from { transform: scaleX(0.55); } to { transform: scaleX(1.08); } }
@keyframes patch-flow { from { stroke-dashoffset: 18; } to { stroke-dashoffset: 0; } }
@media (min-width: 800px) {
  .house__cols { grid-template-columns: repeat(3, 1fr); }
}
/* Superposition en haut à droite seulement si la carte est assez large pour ne pas toucher le titre */
@media (min-width: 1100px) {
  .house__illu { position: absolute; top: 8px; right: 14px; margin: 0; width: clamp(54px, 5.4vw, 82px); height: clamp(37px, 3.7vw, 56px); }
}

/* ==========================================================================
   02 — Le plan (nuit)
   ========================================================================== */

.night { background: var(--night); color: var(--on-night); }
.night .muted { color: var(--on-night-2); }
.night ::selection { background: var(--amber); color: var(--ink); }

.plan { padding-block: clamp(40px, 5.2vw, 76px); }
.plan__intro { display: grid; gap: 24px; margin-bottom: clamp(33px, 4.6vw, 59px); }
.plan__intro .lead { color: var(--on-night-2); }
@media (min-width: 900px) {
  .plan__intro { grid-template-columns: 7fr 5fr; align-items: end; }
}

.plan__body { display: grid; gap: clamp(20px, 2vw, 32px); }

/* La feuille : papier crème posé sur le fond nuit de la section ; murs en noir comme sur le relevé. */
.plan__stage {
  --sheet: var(--paper); --grid: rgba(23, 22, 19, 0.13); --wall: var(--ink);
  --floor: #f6f1e7; --corr: #e2d9c6; --fink: rgba(23, 22, 19, 0.62);
  --letter: rgba(23, 22, 19, 0.14); --code: rgba(23, 22, 19, 0.7); --code-bg: #f6f1e7;
  --glass: #bcd5de; --glass-ink: #2f4b57; --path: var(--ink); --band: rgba(23, 22, 19, 0.78); --band-2: rgba(23, 22, 19, 0.52);
  position: relative; border: 1px solid var(--line-night); background: var(--night-2);
}
.plan__stage-head, .plan__stage-foot {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; color: var(--on-night-2); font-size: 12px;
}
.plan__stage-head { border-bottom: 1px solid var(--line-night); }
.plan__stage-head span { white-space: nowrap; }
.plan__stage-foot { border-top: 1px solid var(--line-night); flex-wrap: wrap; }

.plan__svg { display: block; width: 100%; height: auto; background: var(--sheet); }
.plan__svg.is-port { max-height: 86vh; max-height: min(86svh, 1000px); }
.plan__svg .grid-dot { fill: var(--grid); }

/* sols */
.plan__svg .corr { fill: var(--corr); }
.plan__svg .room { cursor: pointer; outline: none; }
.plan__svg .room[data-room="a"] { --rc: var(--a); --rh: #f0cebe; }
.plan__svg .room[data-room="b"] { --rc: var(--b); --rh: #c8d2c5; }
.plan__svg .room[data-room="c"] { --rc: var(--c); --rh: #cacddb; }
.plan__svg .room[data-room="d"] { --rc: var(--d); --rh: #eddec1; }
.plan__svg .room .shape { fill: var(--floor); stroke: none; transition: fill 0.5s var(--ease); }
@media (hover: hover) { .plan__svg .room:hover .shape { fill: var(--rh); } }
.plan__svg .room.is-on .shape, .plan__svg .room.is-on:hover .shape { fill: var(--rc); }
.plan__svg .room:focus-visible .shape { stroke: var(--amber); stroke-width: 3px; vector-effect: non-scaling-stroke; }
.plan__svg .continuity { fill: none; stroke: var(--fink); stroke-width: 2px; stroke-dasharray: 10 10; opacity: 0.55; }

/* mobilier : tons d'encre au repos ; encre sombre et crème sur la couleur de la pièce quand elle est allumée */
.plan__svg .plan__furn {
  --s: rgba(23, 22, 19, 0.55);
  --t1: rgba(23, 22, 19, 0.6); --t2: rgba(23, 22, 19, 0.42); --t3: rgba(23, 22, 19, 0.26); --t4: rgba(23, 22, 19, 0.14); --t5: rgba(23, 22, 19, 0.05);
  pointer-events: none;
}
.plan__svg .plan__furn.is-on {
  --s: rgba(237, 230, 214, 0.85);
  --t1: rgba(23, 22, 19, 0.58); --t2: rgba(23, 22, 19, 0.3); --t3: rgba(237, 230, 214, 0.16); --t4: rgba(237, 230, 214, 0.34); --t5: rgba(237, 230, 214, 0.55);
}
.plan__svg .plan__furn[data-room="d"].is-on {
  --s: rgba(23, 22, 19, 0.75);
  --t1: rgba(23, 22, 19, 0.66); --t2: rgba(23, 22, 19, 0.44); --t3: rgba(23, 22, 19, 0.22); --t4: rgba(237, 230, 214, 0.3); --t5: rgba(237, 230, 214, 0.6);
}
.plan__svg .plan__furn * { transition: fill 0.4s var(--ease), stroke 0.4s var(--ease); }
.plan__svg .plan__furn .t1 { fill: var(--t1); } .plan__svg .plan__furn .t2 { fill: var(--t2); } .plan__svg .plan__furn .t3 { fill: var(--t3); }
.plan__svg .plan__furn .t4 { fill: var(--t4); } .plan__svg .plan__furn .t5 { fill: var(--t5); }
.plan__svg .plan__furn .n { fill: none; }
.plan__svg .plan__furn .pc { display: none; }
.plan__svg .plan__furn.is-on .pe { display: none; }
.plan__svg .plan__furn.is-on .pc { display: inline; }
.plan__svg .plan__furn[data-room="d"].is-on .pe { display: inline; }
.plan__svg .plan__furn[data-room="d"].is-on .pc { display: none; }
.plan__svg .plan__furn .s, .plan__svg .plan__furn .w { stroke: var(--s); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.plan__svg .plan__furn .w { stroke-width: 2px; }
.plan__svg .plan__furn .f { stroke-opacity: 0.5; }
/* Tapis du Studio B : même dessin, même place, mais en retrait pour que le mobilier ressorte. */
.plan__svg .plan__furn .rug { opacity: 0.55; }
.plan__svg .plan__furn .rug .s, .plan__svg .plan__furn .rug .w { stroke-width: 0.6px; }
.plan__svg.no-furn .plan__furn { opacity: 0; }

/* murs, vitrages, portes */
.plan__svg .wall { fill: var(--wall); }
.plan__svg .jamb { fill: var(--corr); stroke: var(--wall); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.plan__svg .glass, .plan__svg .leaf { fill: var(--glass); stroke: var(--glass-ink); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.plan__svg .glass-l { fill: none; stroke: var(--glass-ink); stroke-width: 1px; vector-effect: non-scaling-stroke; opacity: 0.8; }
.plan__svg .plenum { stroke: var(--wall); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.plan__svg .arc, .plan__svg .sill { fill: none; stroke: var(--fink); }
.plan__svg .hinge { fill: var(--wall); }
.plan__svg.is-land .arc { stroke-width: 2.5px; stroke-dasharray: 9 9; } .plan__svg.is-port .arc { stroke-width: 4.5px; stroke-dasharray: 16 14; }
.plan__svg.is-land .sill { stroke-width: 2px; stroke-dasharray: 8 8; } .plan__svg.is-port .sill { stroke-width: 4px; stroke-dasharray: 14 12; }
.plan__svg .entry { fill: none; stroke: var(--path); stroke-linecap: round; stroke-linejoin: round; }
.plan__svg.is-land .entry { stroke-width: 4px; } .plan__svg.is-port .entry { stroke-width: 7px; }

/* signal vers la régie */
.plan__svg .link { fill: none; stroke-linecap: round; opacity: 0; transition: opacity 0.4s var(--ease); }
.plan__svg .link--case { stroke: var(--wall); }
.plan__svg .link--sig { stroke: var(--amber); }
.plan__svg.is-land .link--case { stroke-width: 15px; } .plan__svg.is-port .link--case { stroke-width: 26px; }
.plan__svg.is-land .link--sig { stroke-width: 6px; stroke-dasharray: 4 18; } .plan__svg.is-port .link--sig { stroke-width: 11px; stroke-dasharray: 7 32; }
.plan__svg .link--case.is-on { opacity: 0.85; }
.plan__svg .link--sig.is-on { opacity: 1; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -44; } }
.plan__svg .hub circle { fill: var(--sheet); stroke: var(--amber); stroke-width: 2px; vector-effect: non-scaling-stroke; opacity: 0.4; transition: opacity 0.4s; }
.plan__svg .hub.is-on circle { opacity: 1; fill: var(--amber); stroke: var(--wall); }
.plan__svg .station path { fill: var(--sheet); stroke: var(--fink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; transition: fill 0.4s var(--ease), stroke 0.4s; }
.plan__svg .station.is-on path { fill: var(--ink); stroke: var(--paper); }

/* parcours (situation « Entrer et circuler ») */
.plan__svg .route { fill: none; opacity: 0; transition: opacity 0.4s var(--ease); stroke-linecap: round; stroke-linejoin: round; }
.plan__svg .route--main { stroke: var(--path); } .plan__svg .route--a { stroke: var(--a); } .plan__svg .route--c { stroke: var(--c); }
.plan__svg.is-land .route { stroke-width: 6px; stroke-dasharray: 16 12; } .plan__svg.is-port .route { stroke-width: 11px; stroke-dasharray: 28 22; }
.plan__svg.show-path .route { opacity: 1; animation: walk 1.6s linear infinite; }
@keyframes walk { to { stroke-dashoffset: -56; } }

/* textes posés à plat */
.plan__svg .plan__pins { pointer-events: none; }
.plan__svg .letter {
  font-family: var(--f-sans); font-weight: 900; font-stretch: 62%; fill: var(--letter);
  text-anchor: middle; transition: fill 0.4s var(--ease);
}
.plan__svg.is-land .letter { font-size: 170px; } .plan__svg.is-port .letter { font-size: 210px; }
.plan__svg .letter.is-on { fill: var(--paper); } .plan__svg .letter[data-room="d"].is-on { fill: var(--ink); }
.plan__svg .code text { font-family: var(--f-mono); font-size: 30px; font-weight: 500; letter-spacing: 0.04em; fill: var(--code); text-anchor: middle; }
.plan__svg .code rect { fill: var(--code-bg); stroke: var(--code); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.plan__svg .code.is-on rect, .plan__svg.show-path .code rect { fill: var(--ink); stroke: var(--ink); }
.plan__svg .code.is-on text, .plan__svg.show-path .code text { fill: var(--paper); }
.plan__svg .entry-label { font-family: var(--f-mono); letter-spacing: 0.08em; fill: var(--code); }
.plan__svg.is-land .entry-label { font-size: 30px; text-anchor: middle; } .plan__svg.is-port .entry-label { font-size: 56px; text-anchor: start; }

/* noms des espaces, le long du bâtiment */
.plan__svg .plan__band { pointer-events: none; }
.plan__svg .plan__band line { stroke: var(--band-2); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.plan__svg .plan__band .tick-lz { fill: var(--band-2); transition: fill 0.4s; }
.plan__svg .plan__band .nm { font-family: var(--f-sans); font-weight: 680; fill: var(--band); letter-spacing: -0.01em; }
.plan__svg .plan__band .sb { font-family: var(--f-mono); letter-spacing: 0.05em; fill: var(--band-2); text-transform: uppercase; }
.plan__svg.is-land .plan__band .nm { font-size: 46px; } .plan__svg.is-land .plan__band .sb { font-size: 30px; }
.plan__svg.is-port .plan__band .nm { font-size: 66px; } .plan__svg.is-port .plan__band .sb { font-size: 52px; }
.plan__svg .plan__band g[data-room="a"] { --rc: var(--a); } .plan__svg .plan__band g[data-room="b"] { --rc: #3a8f73; }
.plan__svg .plan__band g[data-room="c"] { --rc: var(--c); } .plan__svg .plan__band g[data-room="d"] { --rc: var(--d); }
.plan__svg .plan__band g.is-on .tick-lz { fill: var(--rc); }
.plan__svg .plan__band g.is-on line { stroke: var(--rc); stroke-width: 2px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .sw-link { width: 18px; height: 0; border-top: 2.5px dotted var(--amber); }
.legend .sw-glass { width: 16px; height: 6px; background: #bcd5de; border: 1px solid #2f4b57; }
.legend .sw-corr { width: 14px; height: 10px; background: #e2d9c6; }
.legend .sw-path { width: 18px; height: 0; border-top: 2px dashed var(--on-night); }
.legend .lz { width: 8px; height: 8px; background: var(--on-night); }

.configs { display: flex; flex-direction: column; }
.configs__label { margin-bottom: 10px; color: var(--on-night-2); font-size: 10px; }
.config {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px;
  text-align: left; background: none; border: 0; border-top: 1px solid var(--line-night);
  padding: 10px 0; cursor: pointer; color: var(--on-night-2); font-size: 13px;
  transition: color 0.25s var(--ease), padding 0.35s var(--ease);
}
.config:last-of-type { border-bottom: 1px solid var(--line-night); }
.config__n { color: inherit; white-space: nowrap; } /* « ▶ 04 » ne doit pas passer à la ligne : la rangée sautait à la sélection */
.config__t { font-weight: 650; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -0.015em; }
@media (hover: hover) { .config:hover { color: var(--on-night); } }
.config[aria-checked="true"] { color: var(--on-night); padding-left: 10px; }
.config[aria-checked="true"] .config__n::before { content: "▶ "; color: var(--amber); }

.config-detail {
  margin-top: 18px; padding: 16px; background: var(--night-2); border: 1px solid var(--line-night);
}
.config-detail h3 { margin: 0 0 6px; font-size: 18px; }
.config-detail p { margin: 0; color: var(--on-night-2); max-width: 46ch; font-size: 13px; }
.readout { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--line-night); }
.readout div { padding-top: 8px; }
.readout b {
  display: block; font-weight: 850; font-stretch: 62%; font-size: 40px; line-height: 0.9; color: var(--on-night);
}
.readout b small { font-size: 0.5em; color: var(--on-night-2); font-weight: 600; }
.readout .mono { color: var(--on-night-2); }

/* ==========================================================================
   03 — Les pièces (affiches)
   ========================================================================== */

.rooms { padding-block: clamp(40px, 5.2vw, 76px); }
.rooms__head { display: grid; gap: 20px; margin-bottom: clamp(33px, 4.6vw, 59px); }
@media (min-width: 900px) { .rooms__head { grid-template-columns: 7fr 5fr; align-items: end; } }

.posters { display: grid; gap: clamp(28px, 2.4vw, 36px) var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.room-card { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 90px; }

@media (min-width: 1180px) { .posters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.poster {
  --bg: var(--a); --fg: var(--paper);
  position: relative; aspect-ratio: 5 / 7; background: var(--bg); color: var(--fg);
  padding: clamp(14px, 1.4vw, 20px);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 0 0 10px var(--paper), 0 0 0 11px var(--line);
  margin: 11px;
  transition: transform 0.6s var(--ease);
}
@media (hover: hover) { .room-card:hover .poster { transform: translateY(-4px) rotate(-0.4deg); } }
.poster[data-room="b"] { --bg: var(--b); }
.poster[data-room="c"] { --bg: var(--c); }
.poster[data-room="d"] { --bg: var(--d); --fg: var(--ink); }
/* Affiche A : texte encre sur orange (4,87:1), légende pleine opacité pour rester lisible */
.poster[data-room="a"] { --fg: #0c0c0a; }
.poster[data-room="a"] .poster__fine { opacity: 1; }

.poster__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.poster__top .dots i { opacity: 0.35; background: currentColor; }
.poster__top .dots i.on { opacity: 1; background: currentColor; }
.poster__art { position: relative; flex: 1; padding-block: 8px; min-height: 0; }
/* Le dessin est sorti du flux : sa taille ne dépend plus d'un « height: 100% » dans un enfant flex,
   que WebKit (iOS) résout autrement et qui agrandissait l'affiche au-delà de son ratio 5/7. */
.poster__art svg { position: absolute; left: 0; right: 0; top: 8px; bottom: 8px; width: 100%; height: calc(100% - 16px); }
.poster__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.poster__name {
  font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(44px, 4.4vw, 64px); line-height: 0.82; margin: 0; letter-spacing: -0.005em;
}
.poster__letter { font-weight: 900; font-stretch: 62%; font-size: 26px; line-height: 1; }
.poster__fine { font-size: 9.5px; opacity: 0.85; max-width: 22ch; margin-top: 8px; }

.room-card__body { display: flex; flex-direction: column; flex: 1; padding-inline: 11px; }
.room-card__body p { flex: 1; margin: 0 0 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin-top: auto; list-style: none; }
.tags li {
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  border: 1px solid var(--line); padding: 4px 8px 3px;
}
.night .tags li { border-color: var(--line-night); }

/* art : micro-interactions */
.art-needle { transform-origin: 150px 238px; transform: rotate(-38deg); transition: transform 1.2s cubic-bezier(0.3, 1.6, 0.4, 1); }
.art-rings circle { transition: transform 0.9s var(--ease); transform-origin: 150px 170px; }
.art-arches path { transition: transform 0.8s var(--ease); transform-origin: 150px 360px; }
.art-l { transition: transform 0.8s var(--ease); }
@media (hover: hover) {
  .room-card:hover .art-needle { transform: rotate(18deg); }
  .room-card:hover .art-rings circle { transform: scale(1.06); }
  .room-card:hover .art-arches path:nth-child(odd) { transform: scaleY(1.04); }
  .room-card:hover .art-l { transform: translate(6px, -6px); }
}

/* ==========================================================================
   04 — Services & billets
   ========================================================================== */

.services { background: var(--paper-2); padding-block: clamp(40px, 5.2vw, 76px); }
.services__head { display: grid; gap: 20px; margin-bottom: clamp(33px, 4.6vw, 59px); }
@media (min-width: 900px) { .services__head { grid-template-columns: 7fr 5fr; align-items: end; } }

.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.svc {
  display: grid; gap: 10px 14px; padding: 20px 0 22px; border-bottom: 1px solid var(--line);
  grid-template-columns: 36px auto 1fr;
  transition: background 0.3s var(--ease);
}
.svc__n { grid-column: 1; grid-row: 1 / span 3; padding-top: 6px; }
.svc__t {
  grid-column: 2 / -1;
  margin: 0; font-weight: 750; letter-spacing: -0.03em;
  font-size: clamp(28px, 3.2vw, 48px); line-height: 1;
}
.svc__d { grid-column: 2 / -1; margin: 0; max-width: 58ch; color: var(--ink-2); }
.svc__ico { grid-column: 2; width: 46px; height: 35px; display: block; overflow: visible; flex: none; align-self: center; }
.svc__where { grid-column: 3; display: flex; align-items: center; gap: 7px; flex-wrap: nowrap; align-self: center; }
.where-chip { display: inline-flex; align-items: center; }
.where-chip i, .svc__where .dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.svc__where .dots { gap: 7px; }
@media (min-width: 900px) {
  .svc {
    grid-template-columns: 48px minmax(0, 4.4fr) minmax(0, 6fr) 56px 58px;
    gap: 10px 24px;
    padding: 22px 0 24px;
    align-items: start;
  }
  .svc__n, .svc__t, .svc__d, .svc__ico, .svc__where { grid-column: auto; grid-row: auto; }
  .svc__n { padding-top: 12px; }
  .svc__d { padding-top: 6px; }
  .svc__ico { width: 52px; height: 40px; align-self: center; justify-self: end; }
  .svc__where { align-self: center; justify-self: start; padding-top: 0; }
}
@media (min-width: 900px) and (hover: hover) { .svc:hover { background: var(--paper-3); } }

.formats { margin-top: clamp(64px, 8vw, 120px); }
.formats__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.formats__head p { margin: 0; max-width: 46ch; color: var(--ink-2); }

.tickets { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tickets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tickets { grid-template-columns: repeat(4, 1fr); } }

.ticket {
  position: relative; display: flex; flex-direction: column; text-align: left;
  background: var(--paper); border: 1.5px solid var(--ink); padding: 0; cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
@media (hover: hover) { .ticket:hover { transform: translateY(-4px); } }
.ticket.is-picked { background: var(--ink); color: var(--paper); }
.ticket__stub {
  display: flex; justify-content: space-between; padding: 10px 14px;
  border-bottom: 1.5px dashed currentColor; position: relative;
}
.ticket__stub::before, .ticket__stub::after {
  content: ""; position: absolute; bottom: -9px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper-2); border: 1.5px solid var(--ink);
}
.ticket__stub::before { left: -9px; clip-path: inset(0 0 0 50%); }
.ticket__stub::after { right: -9px; clip-path: inset(0 50% 0 0); }
.ticket__main { padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ticket__dur { font-weight: 900; font-stretch: 62%; font-size: 76px; line-height: 0.82; text-transform: uppercase; }
.ticket__dur small { font-size: 0.5em; }
.ticket__sub { font-weight: 650; font-size: 17px; letter-spacing: -0.01em; line-height: 1.2; }
.ticket__txt { font-size: 15px; line-height: 1.45; opacity: 0.8; }
.ticket__go { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; }

.ruler { display: grid; gap: 4px; margin-top: 4px; }
.ruler__bar { position: relative; height: 10px; border: 1px solid currentColor; }
.ruler__bar span { position: absolute; top: 0; bottom: 0; background: var(--a); }
.ruler__ticks { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 9.5px; opacity: 0.7; }
.ticket.is-picked .ruler__bar span { background: var(--amber); }

/* ==========================================================================
   05 — Une nuit au studio (essai photo)
   ========================================================================== */

.essay { padding-block: clamp(40px, 5.2vw, 76px); }

.essay__head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
@media (min-width: 900px) {
  .essay__head {
    grid-template-columns: 7fr 5fr;
    align-items: end;
  }
}

.essay__head-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.essay__head-side p {
  margin: 0;
  color: var(--on-night-2);
  max-width: 48ch;
  line-height: 1.55;
}
.essay__head-side p strong {
  color: var(--on-night);
  font-weight: 600;
}
.essay__head-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.essay__art {
  max-width: 140px;
  pointer-events: none;
}
.essay__art svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Photo gallery grid */
.essay__grid {
  display: grid;
  gap: clamp(10px, 1.2vw, 16px);
  grid-template-columns: repeat(2, 1fr);
}

.fig {
  margin: 0;
}

.fig button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--night-2);
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
}

.fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.4s;
}

@media (hover: hover) {
  .fig button:hover img {
    transform: scale(1.035);
  }
}

.fig--2 img { object-position: center 38%; }
.fig--6 img { object-position: center 56%; }
.fig--7 img { object-position: center 52%; }
.fig--8 img { object-position: center 40%; }
.fig--9 img { object-position: center 46%; }

/* Mobile (under 640px): Fig 1 spans full width, others in pairs */
@media (max-width: 639px) {
  .fig--1 {
    grid-column: span 2;
  }
  .fig--1 button {
    aspect-ratio: 16 / 10;
  }
}

/* Tablet (640px to 899px): 3 rows (3 + 3 + 3) */
@media (min-width: 640px) and (max-width: 899px) {
  .essay__grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .fig--1, .fig--2, .fig--3 {
    grid-column: span 2;
  }
  .fig--1 button, .fig--2 button, .fig--3 button {
    aspect-ratio: 4 / 4.2;
  }
  .fig--4, .fig--5, .fig--6, .fig--7, .fig--8, .fig--9 {
    grid-column: span 2;
  }
  .fig--4 button, .fig--5 button, .fig--6 button, .fig--7 button, .fig--8 button, .fig--9 button {
    aspect-ratio: 4 / 4.2;
  }
}

/* Desktop (900px+): 3 rows of 3 photos */
@media (min-width: 900px) {
  .essay__grid {
    grid-template-columns: repeat(12, 1fr);
  }
  /* Row 1: 3 photos */
  .fig--1, .fig--2, .fig--3 {
    grid-column: span 4;
  }
  .fig--1 button, .fig--2 button, .fig--3 button {
    aspect-ratio: 4 / 3.4;
  }
  /* Rows 2 and 3: 3 photos each */
  .fig--4, .fig--5, .fig--6, .fig--7, .fig--8, .fig--9 {
    grid-column: span 4;
  }
  .fig--4 button, .fig--5 button, .fig--6 button, .fig--7 button, .fig--8 button, .fig--9 button {
    aspect-ratio: 4 / 3.4;
  }
}

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; max-height: 92dvh;
  color: var(--on-night);
}
.lightbox::backdrop { background: rgba(10, 10, 9, 0.92); }
.lightbox img { max-height: 82vh; max-height: 82dvh; width: auto; margin-inline: auto; } /* dvh : tient compte de la barre d'adresse mobile */
.lightbox:focus { outline: none; }
.lightbox__stage { display: flex; align-items: center; justify-content: center; gap: 6px; touch-action: pan-y; }
.lightbox__stage img { display: block; flex: 0 1 auto; min-width: 0; max-width: 100%; height: auto; margin-inline: 0; }
.lightbox__nav {
  flex: none; order: -1; display: grid; place-items: center; width: 36px; height: 64px; padding: 0;
  background: none; border: 0; color: var(--on-night); opacity: 0.4; cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.lightbox__nav--next { order: 1; }
.lightbox__nav:hover { opacity: 0.85; }
.lightbox__nav--prev:hover { transform: translateX(-2px); }
.lightbox__nav--next:hover { transform: translateX(2px); }
.lightbox__nav:focus { outline: none; }
.lightbox__nav:focus-visible { opacity: 1; outline: 1px solid var(--line-night); outline-offset: -6px; }
.lightbox--single .lightbox__nav { display: none; }
@media (max-width: 639px) {
  .lightbox { max-width: 100vw; }
  .lightbox__stage { gap: 0; }
  .lightbox__bar { padding-inline: 12px; }
  .lightbox__nav { width: 26px; height: 56px; }
}
.lightbox__bar { display: flex; justify-content: space-between; gap: 18px; padding-top: 12px; align-items: start; }
.lightbox__close { background: none; border: 1px solid var(--line-night); color: var(--on-night); padding: 8px 12px; cursor: pointer; }
@media (pointer: coarse) { .lightbox__close { padding: 12px 14px; } }

/* ==========================================================================
   06 — Écouter
   ========================================================================== */

.listen { padding-block: clamp(40px, 5.2vw, 76px); }
.listen__grid { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 1000px) { .listen__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

.player { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.player img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.4s, transform 1s var(--ease); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__play {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 16px; background: linear-gradient(transparent 50%, rgba(10, 10, 9, 0.75)); color: var(--paper);
  border: 0; cursor: pointer; text-align: left; width: 100%;
  z-index: 1; /* au-dessus de la vignette (opacité < 1 = contexte d'empilement) : sinon elle recouvrait le bouton et interceptait le toucher */
}
@media (hover: hover) { .player__play:hover img { opacity: 1; } }
.player__btn {
  width: 64px; height: 64px; border-radius: 50%; background: var(--a); display: grid; place-items: center; flex: none;
  transition: transform 0.3s var(--ease);
}
@media (hover: hover) { .player__play:hover .player__btn { transform: scale(1.08); } }
.player__btn::before {
  content: ""; width: 0; height: 0; margin-left: 5px;
  border-left: 18px solid var(--paper); border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.player__now { display: grid; gap: 4px; }
.player__now b { font-weight: 750; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; line-height: 1.05; }
.player-meta { display: flex; justify-content: space-between; margin-top: 10px; color: var(--ink-2); gap: 12px; }

.tracks { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); counter-reset: t; }
.track {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; width: 100%;
  padding: 16px 0; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left;
  transition: padding 0.3s var(--ease), color 0.2s;
}
@media (hover: hover) { .track:hover { padding-left: 8px; } }
.track__t { display: grid; gap: 2px; }
.track__t b { font-weight: 680; font-size: 19px; letter-spacing: -0.015em; }
.track__t span { color: var(--ink-2); }
.track[aria-pressed="true"] .track__n { color: var(--a); }
.track[aria-pressed="true"] .track__n::before { content: "▶"; }
.track[aria-pressed="true"] .track__n span { display: none; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; opacity: 0; }
.eq i { width: 3px; background: var(--a); height: 30%; display: block; }
.track[aria-pressed="true"] .eq { opacity: 1; }
.track[aria-pressed="true"] .eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.track[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: 0.2s; }
.track[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: 0.45s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }

.channel {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 28px; padding: 18px; border: 1.5px solid var(--ink);
}
.channel b { font-weight: 900; font-stretch: 62%; font-size: 52px; line-height: 0.85; display: block; }
.channel__art { width: 92px; height: 42px; display: block; flex: none; overflow: visible; }
@media (max-width: 560px) { .channel__art { display: none; } }

/* ==========================================================================
   07 — Réserver (affiche verte)
   ========================================================================== */

.book { background: var(--b); color: var(--paper); padding-block: clamp(36px, 4.5vw, 64px) 0; }
.book ::selection { background: var(--paper); color: var(--b); }
.book :focus-visible { outline-color: var(--paper); }
.contact { display: grid; gap: 20px; max-width: 640px; align-content: start; }
.contact h2 { margin: 0; }
.form { display: grid; gap: 16px; }
.field { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; min-width: 0; align-content: start; }
.field > label { padding: 0; margin: 0; opacity: 0.83; line-height: 1.2; }
.row-2 { display: grid; gap: 16px 20px; align-items: start; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.input {
  width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid rgba(237, 230, 214, 0.55);
  padding: 4px 0 6px; font-size: 17px; font-weight: 520; color: var(--paper); border-radius: 0;
  transition: border-color 0.2s;
}
.input:focus { outline: none; border-color: var(--paper); }
.input.is-invalid { border-color: var(--amber); }
textarea.input { resize: vertical; min-height: 54px; line-height: 1.4; }
.form__err { color: var(--amber); margin: 0; }
.form__err:empty { display: none; }
.form__send { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding-top: 2px; }
.form__mail {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--paper); opacity: 0.83;
  font-family: var(--f-mono); font-size: 14px; text-decoration: underline; text-underline-offset: 4px;
  transition: opacity 0.2s;
}
.form__mail:hover, .form__mail:focus-visible { opacity: 1; }

/* Réserver + Venir : une seule étape finale (contact à gauche, lieu à droite) */
.book__split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); }
.book__split > * { min-width: 0; }
.place { position: relative; display: grid; gap: 18px; align-content: start; border-top: 1.5px solid rgba(237, 230, 214, 0.5); padding-top: 28px; }
.place__stamp {
  position: absolute; top: 20px; right: 0; width: 118px; height: 48px;
  transform: rotate(3.5deg); pointer-events: none; overflow: visible;
}
.place > p { margin: 0; }
.place__coords { display: flex; flex-wrap: wrap; gap: 6px 18px; opacity: 0.85; padding-right: 124px; }
.place .big { font-weight: 720; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; line-height: 1.12; }
.place__hours { display: grid; gap: 12px; margin-top: 8px; }
.place__hours h3 { margin: 0; }
.book .muted { color: rgba(237, 230, 214, 0.83); }
.book .hours { display: grid; gap: 6px; margin: 0; }
.book .hours div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted rgba(237, 230, 214, 0.3); padding-bottom: 6px; }
.book .hours dt { font-weight: 600; }
.book .hours dd { margin: 0; font-family: var(--f-mono); font-size: 14px; }
.book .hours div.is-today dt::before { content: "▶ "; color: var(--amber); }
.book .status { color: var(--paper); margin: 0; }
.book .status__dot { background: var(--paper); }
.book .status.is-open .status__dot { background: var(--amber); }
.book .sec-head .dots--full i:nth-child(2) { box-shadow: 0 0 0 1.25px rgba(237, 230, 214, 0.8); }
.book__band { height: clamp(90px, 10vw, 140px); margin-top: clamp(36px, 4.5vw, 64px); }
.book__band svg { display: block; width: 100%; height: 100%; }
@media (min-width: 900px) {
  .book { padding-block: clamp(36px, 4.5vw, 64px) 0; }
  .book__split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .contact { display: flex; flex-direction: column; }
  .form { display: flex; flex-direction: column; flex: 1; }
  .form__send { margin-top: auto; }
  .place { border-top: 0; padding-top: 0; border-left: 1.5px solid rgba(237, 230, 214, 0.5); padding-left: clamp(28px, 4vw, 56px); }
  .place__stamp { top: -2px; }
}

/* ==========================================================================
   Pied de page
   ========================================================================== */

.foot { background: var(--night); color: var(--on-night); padding-top: clamp(36px, 4.5vw, 64px); margin-top: clamp(11.25px, 1.25vw, 17.5px); }
.fit-tif { display: inline-block; white-space: nowrap; }
.foot__tif {
  font-family: var(--f-tif); font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: 0.02em;
  color: var(--on-night); opacity: 0.92; white-space: nowrap; overflow: hidden;
  text-align: center; padding-block: clamp(16px, 2vw, 28px);
}
.foot__grid {
  display: grid; gap: 28px; margin-top: clamp(18px, 2.5vw, 36px); padding-block: 22px 32px;
  border-top: 1px solid var(--line-night); grid-template-columns: 1fr 1fr;
}
.foot__grid h4 { margin: 0 0 10px; color: var(--on-night-2); font-weight: 400; }
.foot__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot__grid a { text-decoration: none; }
.foot__grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__brand { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; }
.foot__brand svg { width: 34px; color: var(--on-night); flex: none; }
.foot__brand p { margin: 0; color: var(--on-night-2); max-width: 34ch; }
.foot__legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 16px 22px; border-top: 1px solid var(--line-night); color: var(--on-night-2); }
.foot__legal > span:last-child { text-transform: none; }
/* Écrans tactiles : liens du pied de page assez hauts pour être touchés sans erreur */
@media (pointer: coarse) {
  .foot__grid ul { gap: 0; }
  .foot__grid a { display: inline-block; padding-block: 8px; }
}
@media (min-width: 900px) {
  .foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .foot__brand { grid-column: auto; }
}

/* ==========================================================================
   Page fiche technique
   ========================================================================== */

.spec-hero { padding-block: clamp(20px, 3vw, 40px) clamp(24px, 3.2vw, 44px); }
.spec-hero__word .fit { padding-top: 0.15em; }
.spec-hero__word { margin: 0; font-weight: 900; font-stretch: 62%; text-transform: uppercase; line-height: 0.8; overflow: hidden; }
.spec-hero__row { display: grid; gap: 24px; margin-top: clamp(18px, 2.4vw, 34px); padding-top: clamp(18px, 2vw, 26px); border-top: 1.5px solid var(--ink); }
@media (min-width: 900px) { .spec-hero__row { grid-template-columns: 7fr 5fr; } }

.chains { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); margin-bottom: clamp(32px, 4.2vw, 56px); }
@media (min-width: 800px) {
  /* minmax(0, …) + titre proportionnel : à 800–1000 px (tablette, téléphone en paysage) la 3e carte débordait de la page */
  .chains { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.chain { padding: 18px; color: var(--paper); min-height: 220px; display: flex; flex-direction: column; justify-content: flex-start; gap: 24px; }
.chain__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chain__art { width: 78px; height: 41px; display: block; flex: none; overflow: visible; }
.chain:nth-child(1) { background: var(--ink); }
.chain:nth-child(2) { background: var(--c); }
.chain:nth-child(3) { background: var(--b); }
.chain h3 { margin: 0; font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: min(54px, 15vw); line-height: 0.85; }
@media (min-width: 800px) { .chain h3 { font-size: min(54px, 5vw); } }
.chain p { margin: 0; opacity: 0.85; }

.spec { display: grid; gap: 0 var(--gap); grid-template-columns: 1fr; border-top: 1.5px solid var(--ink); }
@media (min-width: 700px) { .spec { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .spec { grid-template-columns: repeat(3, 1fr); } }
.spec__block { padding: 18px 0 28px; border-bottom: 1px solid var(--line); }
.spec__block header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.spec__block h2 { margin: 0; font-weight: 720; font-size: 26px; letter-spacing: -0.02em; }
.spec__block > p { margin: 0 0 14px; color: var(--ink-2); font-size: 15.5px; max-width: 40ch; }
.spec__block ul { list-style: none; margin: 0; padding: 0; }
.spec__block li {
  display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px dotted var(--line);
  font-weight: 560;
}
.spec__block li .mono { color: var(--ink-2); text-align: right; }

.other-rooms { margin-top: clamp(32px, 4.2vw, 56px); display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 800px) { .other-rooms { grid-template-columns: repeat(3, 1fr); } }
.other-rooms article { border-top: 6px solid var(--r); padding-top: 14px; }
.other-rooms h3 { margin: 0 0 8px; font-weight: 720; font-size: 22px; letter-spacing: -0.02em; }
.other-rooms p { margin: 0; color: var(--ink-2); }

/* ==========================================================================
   Apparitions
   ========================================================================== */

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .fit span { transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .plan__svg .link--sig.is-on { stroke-dasharray: none; }
  .house__illu *, .svc__ico *, .essay__art *, .channel__art *, .place__stamp *, .chain__art * { animation: none !important; }
}

/* Plan : sous 1000 px le plan passe en portrait au-dessus de la liste ; au-dessus, il occupe toute la largeur
   et les situations passent dessous, sur deux colonnes, avec le détail à droite. */
.plan__side .configs { border-top: 1px solid var(--line-night); }
.plan__side .configs .config { border-top: 0; border-bottom: 1px solid var(--line-night); }
@media (min-width: 1000px) {
  .plan__side { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
  .plan__side .configs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .plan__side .config__t { font-size: clamp(16px, 1.25vw, 19px); }
  .plan__side .config-detail { margin-top: 26px; }
}

/* Plan → matériel : puces discrètes sous la description de la situation */
.plan__gear { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-night); display: grid; gap: 8px; }
.plan__gear[hidden] { display: none; }
.plan__gear-h { margin: 0; color: var(--on-night-2); }
.plan__gear-h span { color: var(--amber); }
.plan__gear-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gchip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px 6px; cursor: pointer;
  background: none; color: var(--on-night); border: 1px solid var(--line-night); font-size: 14px; font-weight: 560;
  transition: background 0.2s var(--ease), border-color 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.gchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--gc, var(--amber)); display: block; flex: none; }
.gchip[data-k="b"] { --gc: var(--b); } .gchip[data-k="d"] { --gc: var(--d); } .gchip[data-k="a"] { --gc: var(--a); }
.gchip:focus-visible { background: var(--on-night); color: var(--night); border-color: var(--on-night); transform: translateY(-2px); }
@media (hover: hover) { .gchip:hover { background: var(--on-night); color: var(--night); border-color: var(--on-night); transform: translateY(-2px); } }
.gchip[data-k="b"] i { background: #3fae8a; }
.plan__gear-all { color: var(--on-night-2); text-decoration: none; justify-self: start; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.plan__gear-all:hover { color: var(--amber); border-color: var(--amber); }
