/* Studio 230 — direction « Plateau ».
   Un site sombre comme un plateau de tournage : de très grands titres en capitales étroites (Anton),
   des décors numérotés, des filets fins, et un seul orange pour les prix et les boutons.
   Inspirée de South Side Studios et de Hana Road Studios (mentions honorables Awwwards, 2025). */

:root {
  --bg: #171612;
  --bg-2: #0E0D0A;
  --card: #1E1D18;
  --panel: #13120F;       /* fiche d'un décor */
  --field: #1B1A15;       /* choix, champs et récapitulatif de la réservation */
  --night: #0C0C0A;       /* barres du bas, pied de page, fond de la vue */
  --ink: #E6E2D6;
  --ink-2: #A9A497;
  --line: rgba(230, 226, 214, 0.2);
  --edge: rgba(230, 226, 214, 0.34);   /* contour des boutons de réglage et des champs */
  --accent: #FF6620;
  --accent-press: #FF8246;
  --on-accent: #14130F;   /* texte posé sur l'orange ou sur le clair */
  --ok: #3FBF83;
  --warn: #FF9480;
  --topbar-h: 56px;
  --cta-h: 97px;          /* hauteur de la barre de réservation du téléphone : la vue 3D s'arrête juste au-dessus */
  --font-head: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "Sofia Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Sofia Sans Condensed", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  /* flèche des liens d'action, dessinée pour ne dépendre d'aucune police */
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 18.5 18 6M8 5.5h10.5V16' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  padding-bottom: var(--cta-h);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Anton n'existe qu'en une graisse : on ne demande jamais de gras, le navigateur le simulerait */
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; }
button { font-family: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Barre du haut ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(23, 22, 18, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 23px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-mark { display: inline-flex; align-items: center; gap: 2.5px; height: 20px; }
.brand-mark i { display: block; width: 3.5px; border-radius: 2px; background: var(--accent); }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-mark i:nth-child(3) { height: 12px; }
.brand-mark i:nth-child(4) { height: 6px; }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.lang { display: inline-flex; }
.lang button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 4px;
  cursor: pointer;
}
.lang button + button::before { content: "/"; margin-right: 8px; color: var(--ink-2); font-weight: 500; }
.lang button[aria-pressed="true"] { color: var(--ink); }

.topbar .topbar-cta { display: none; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 3px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-press); }
/* la flèche qui suit « Réserver » et « Choisir » */
.btn-primary::after, .offer .btn::after {
  content: "";
  flex: none;
  width: 0.62em;
  height: 0.62em;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
}
.btn-outline {
  height: 48px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.btn-outline:hover { background: var(--ink); color: var(--on-accent); }
.btn-block { width: 100%; }

.link-btn {
  border: 0;
  background: none;
  padding: 6px 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

/* ---------- Scène ---------- */

.stage {
  --layout: stack;
  --bar-h: 50px;          /* hauteur de la barre des décors */
  --frame: 7px;           /* marge du cadre fin autour de la vue */
  position: relative;
  height: calc(100vh - var(--topbar-h) - var(--cta-h));
  height: calc(100svh - var(--topbar-h) - var(--cta-h));
  min-height: 400px;
  overflow: hidden;
  background: var(--night);
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.9s ease;
}
#scene.is-grabbing { cursor: grabbing; }
#scene.is-over { cursor: pointer; }
.stage.is-ready #scene { opacity: 1; }

.stage-loading {
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  margin: 0;
  text-align: center;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  transition: opacity 0.4s ease;
}
.stage.is-ready .stage-loading { opacity: 0; pointer-events: none; }
.stage.no-3d .stage-loading { display: none; }

/* Un voile pour lire le texte d'accueil, et un fondu au noir entre deux places */
.stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 64%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
  background: linear-gradient(180deg, rgba(14, 15, 17, 0.86) 0%, rgba(14, 15, 17, 0.6) 46%, rgba(14, 15, 17, 0) 100%);
}
.stage:not(.is-open)::before { opacity: 1; }
.stage-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0E0F11;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.stage.is-fading .stage-fade { opacity: 1; }

/* Un cadre fin autour de la vue, comme un viseur de caméra. Il s'arrête au-dessus de la barre des décors,
   et au-dessus de la fiche quand elle est ouverte. */
.stage::after {
  content: "";
  position: absolute;
  inset: var(--frame) var(--frame) calc(var(--bar-h) + var(--frame));
  z-index: 1;
  border: 1px solid rgba(230, 226, 214, 0.3);
  border-radius: 12px;
  pointer-events: none;
}
.stage.is-open::after { bottom: calc(var(--panel-h, 0px) + var(--bar-h) + var(--frame)); }

.hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 20px 20px 0;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.hero > * { pointer-events: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dot { width: 8px; height: 8px; background: var(--accent); }

/* Le grand titre : la première ligne en contour, le nom du studio en plein */
.hero h1 {
  margin: 8px auto;
  font-size: clamp(44px, 15.2vw, 70px);
  line-height: 1;
  text-wrap: balance;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--ink);
}
.hero h1 .h1-name { display: block; color: var(--ink); -webkit-text-stroke: 0; }
.lead {
  margin: 0 auto;
  max-width: 29em;
  font-size: 16px;
  color: rgba(230, 226, 214, 0.86);
  text-wrap: pretty;
}
.hero-cta { display: none; }

.stage.is-open .hero { opacity: 0; transform: translateY(-14px); }
.stage.is-open .hero > * { pointer-events: none; }

/* Étiquettes posées sur le studio : le numéro du décor en orange, son nom en capitales étroites */

.labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity 0.35s ease; counter-reset: lab; }
.label {
  --x: -200px;
  --y: -200px;
  position: absolute;
  left: 0;
  top: 0;
  transform: translate3d(calc(var(--x) - 50%), calc(var(--y) - 100% - 8px), 0);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px 6px 9px;
  border: 1px solid rgba(230, 226, 214, 0.55);
  border-radius: 2px;
  background: rgba(12, 12, 10, 0.84);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}
/* le trait qui relie l'étiquette au décor */
.label::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 8px;
  margin-left: -0.5px;
  background: rgba(230, 226, 214, 0.85);
}
.label[data-set] { counter-increment: lab; }
.pin { color: var(--accent); font-family: var(--font-head); font-size: 15px; font-weight: 400; letter-spacing: 0.03em; line-height: 1; }
.pin::before { content: counter(lab, decimal-leading-zero); }
/* un petit chevron après le nom : l'étiquette d'un décor est un bouton, elle y emmène */
.label[data-set] > span:last-child::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 1px 1px 8px;
  border-top: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
  transform: rotate(45deg);
}
.label[data-set]:hover { border-color: var(--accent); }
.stage:not(.is-ready) .labels { opacity: 0; }
.label.is-off { opacity: 0; pointer-events: none; }
/* Étiquettes des endroits à personnaliser. Sur téléphone on s'en passe : les mêmes réglages
   sont dans la fiche, juste sous le décor, et elles encombreraient une vue déjà petite. */
.label-spot {
  display: none;
  border-color: transparent;
  background: var(--accent);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--on-accent);
}
.label-spot::after { display: none; } /* un bouton posé près de ce qu'il règle, pas une épingle */
.label-spot .plus { font-family: var(--font-body); font-size: 17px; font-weight: 800; line-height: 0.9; }
/* Pastille arc-en-ciel : « ici, tu choisis la couleur » */
.hue {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--on-accent);
  background: conic-gradient(#F2542D, #F2B01E, #19B58B, #2F7BFF, #8B5CF6, #F04C9B, #F2542D);
}

/* Petites consignes posées dans le cadre de la vue, juste au-dessus de la barre des décors :
   « glisse pour regarder », « entre dans un décor » et, sur ordinateur, les touches du clavier.
   app.js efface les deux premières dès que le visiteur a fait le geste : elles guident, sans rester. */

.cues {
  position: absolute;
  left: calc(var(--frame) + 8px);
  right: calc(var(--frame) + 8px);
  bottom: calc(var(--panel-h, 0px) + var(--bar-h) + var(--frame) + 8px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: bottom 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
}
.stage:not(.is-ready) .cues { opacity: 0; }
.cue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 5px 9px;
  border-radius: 2px;
  background: rgba(12, 12, 10, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: rgba(230, 226, 214, 0.92);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.4s ease;
}
.cue[hidden] { display: none; }
.cue.is-done { opacity: 0; }
.cue svg { flex: none; color: var(--accent); }
/* les deux pictogrammes bougent à peine : une double flèche qui va et vient, une flèche qui pointe la barre */
.cue-drag { animation: nudge-x 1.8s ease-in-out infinite; }
.cue-down { animation: nudge-y 1.6s ease-in-out infinite; }
@keyframes nudge-x {
  0%, 100% { transform: translateX(-2.5px); }
  50% { transform: translateX(2.5px); }
}
@keyframes nudge-y {
  0%, 100% { transform: translateY(-1.5px); }
  50% { transform: translateY(2px); }
}
/* « Entre dans un décor » : à droite, et seulement à l'accueil */
.cue-enter { margin-left: auto; }
.stage.is-open .cue-enter { display: none; }
/* Les touches du clavier : sur ordinateur seulement, une fois dans un décor (voir plus bas) */
.cue-keys { display: none; }
.cue kbd {
  min-width: 20px;
  padding: 1px 5px;
  border: 1px solid rgba(230, 226, 214, 0.5);
  border-radius: 2px;
  font: inherit;
  letter-spacing: 0.04em;
  text-align: center;
}
.cue kbd + span { margin-right: 9px; }
.cue kbd + span:last-child { margin-right: 0; }

/* « Formules ↓ », au bout de la barre des décors : sur ordinateur, rappelle que la page continue plus bas */
.stage-more { display: none; }

/* Onglets des décors : une barre noire au bas de la vue ; le décor choisi est souligné d'orange */

.tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 16px;
  height: var(--bar-h);
  padding: 0 10px;
  border-top: 1px solid var(--line);
  background: var(--night);
  transition: bottom 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-x: auto;
  scrollbar-width: none;
  counter-reset: tab;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  border: 0;
  border-radius: 0;
  background: none;
  color: rgba(230, 226, 214, 0.42);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  padding: 6px 1px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.tab:not(.tab-home) { counter-increment: tab; }
.tab-home { display: grid; place-items: center; padding: 6px 4px; }
.tab[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.tab-home[aria-pressed="true"] { color: var(--accent); box-shadow: none; }
.t-long { display: none; }
.stage.is-open .tabs { bottom: var(--panel-h, 0px); }


/* Fiche du décor */

.panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 10px 20px 12px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  transform: translateY(105%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stage[data-sheet="set"] #panel { transform: translateY(0); }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kicker {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.count { margin-right: 8px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* Sur téléphone, la fiche reste aussi basse que possible : chaque pixel gagné montre un peu plus du studio */
.panel h2 { margin: 2px 0 3px; font-size: 32px; line-height: 1; }
.panel-pitch { margin: 0; font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
/* Sur téléphone, un résumé d'une ligne remplace la description et la liste, pour laisser voir le studio */
.panel-brief { margin: 0; font-size: 13.5px; color: var(--ink-2); text-wrap: pretty; }
#panel .panel-pitch, #panel .points { display: none; }
/* et il s'efface quand la fiche propose le logo, pour laisser voir le décor */
#panel:has(.logo-box:not([hidden])) .panel-brief { display: none; }
.points { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.points li { position: relative; padding-left: 22px; font-size: 14.5px; }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 11px;
  height: 0;
  border-top: 2px solid var(--accent);
}
.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px dashed rgba(230, 226, 214, 0.42);
  border-radius: 3px;
  background: rgba(230, 226, 214, 0.04);
}
.logo-box[hidden] { display: none; }
.logo-add {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.logo-thumb {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 2px;
  background: var(--accent) center / contain no-repeat;
  color: var(--on-accent);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}
.logo-thumb::before { content: "+"; }
.logo-thumb.has-logo { background-color: #0E1418; }
.logo-thumb.has-logo::before { content: ""; }
.logo-txt { display: grid; gap: 1px; min-width: 0; }
.logo-txt strong { font-family: var(--font-ui); font-size: 16.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.logo-txt small { font-size: 13px; color: var(--ink-2); }
/* « Il reste sur ton appareil » : affiché sur grand écran ; sur téléphone la place va au format conseillé */
.logo-keep { display: none; }
.logo-error { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--warn); }
.logo-error:empty { display: none; }
.panel-seat { width: 100%; height: 44px; margin-top: 10px; }
.panel-cta { display: none; }

/* Réglages du décor : nombre de voix, couleur du fond, lumières. Une ligne par réglage, séparée par un filet. */

.opts { display: grid; margin-top: 8px; border-top: 1px solid var(--line); }
.opts:empty { display: none; }
.opt { display: grid; gap: 6px; min-width: 0; padding: 7px 0; border-bottom: 1px solid var(--line); }
.opt-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.opt-label {
  margin: 0;
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.swatches { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; }
.sw {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c, #ccc);
  box-shadow: inset 0 0 0 1.5px rgba(230, 226, 214, 0.3);
  cursor: pointer;
}
.sw[aria-pressed="true"], .sw-pick[data-on] {
  box-shadow: inset 0 0 0 1.5px rgba(230, 226, 214, 0.3), 0 0 0 2px var(--panel), 0 0 0 4px var(--ink);
}
/* « Autre couleur » : ouvre le sélecteur de couleur de l'appareil */
.sw-pick {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: conic-gradient(#F2542D, #F2B01E, #19B58B, #2F7BFF, #8B5CF6, #F04C9B, #F2542D);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}
.sw-pick[data-on] { background: var(--c); }
.sw-pick[data-on] span { display: none; }
.sw-pick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.seg { display: inline-flex; gap: 6px; }
.seg button {
  min-width: 42px;
  padding: 6px 12px;
  border: 1px solid var(--edge);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.seg button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-accent); }


/* ---------- Barre de réservation (mobile) ---------- */

.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: grid;
  gap: 6px;
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--night);
}
.cta-note {
  margin: 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- Sections ---------- */

.section { padding: 54px 0 58px; scroll-margin-top: var(--topbar-h); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 900px; }
/* un peu d'air entre les lignes : en capitales, les accents (É, À) touchaient la ligne du dessus */
.section h2 { margin: 0 0 10px; font-size: clamp(42px, 12.6vw, 128px); line-height: 1.07; text-wrap: balance; }
.section-sub {
  margin: 0 0 24px;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Les trois formules : trois lignes numérotées, le prix en grand et en orange.
   Sur téléphone, le numéro tient dans une colonne étroite et tout le reste se suit dans l'autre. */
.offer-grid { display: grid; border-bottom: 1px solid var(--line); counter-reset: offer; }
.offer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0 14px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
  counter-increment: offer;
}
.offer::before {
  content: counter(offer, decimal-leading-zero);
  grid-row: 1 / span 6;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.55;
  letter-spacing: 0.03em;
}
.offer > * { grid-column: 2; }
.offer-spacer { display: none; }
.offer h3 { margin: 0 0 8px; font-size: 34px; line-height: 1; }
.offer p { margin: 0; font-size: 16px; color: var(--ink-2); }
/* la mention « par heure » passe au-dessus du prix */
.price { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 3px; margin-top: 16px; }
.price strong { color: var(--accent); font-family: var(--font-head); font-size: 60px; font-weight: 400; letter-spacing: 0.01em; line-height: 1; }
.price span { font-family: var(--font-ui); font-size: 13.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.offer .was { margin-top: 6px; font-size: 14.5px; }
.offer .was s { color: var(--ink-2); }
.offer .deposit { margin-top: 2px; font-size: 14.5px; }
.offer .btn { justify-self: start; margin-top: 16px; }
/* sous les formules : ce qu'elles comprennent toutes, et ce qu'est le pré-montage */
.offers-note { margin: 20px 0 0; max-width: 76ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; text-wrap: pretty; }

/* les questions partent du même bord gauche que les formules et le pied de page, sur une largeur qui reste lisible */
.faq #faqList { max-width: 900px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 15px 0; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.55; max-width: 60ch; }

.footer { padding: 30px 0 34px; border-top: 1px solid var(--line); background: var(--night); font-size: 13.5px; }
.footer p { margin: 0 0 4px; }
/* Le nom du studio en très grand, en contour : toujours sur une seule ligne, à la largeur de la page.
   Sa taille se déduit de la largeur disponible ; app.js mesure la largeur du nom (en em) et la donne
   dans --name-em, pour que cela reste vrai si le nom du studio change. */
.footer .wrap { container-type: inline-size; }
.footer .footer-name {
  margin-bottom: 12px;
  color: transparent;
  font-family: var(--font-head);
  font-size: clamp(48px, 19vw, 250px);              /* navigateurs qui ne connaissent pas l'unité cqw */
  font-size: calc(100cqw / var(--name-em, 4.4));
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-text-stroke: 1.3px rgba(230, 226, 214, 0.6);
}
.footer .footer-pre { margin-bottom: 8px; font-family: var(--font-ui); font-size: 15px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.muted { color: var(--ink-2); }
.footer a, .note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.note + .note { margin-top: 8px; }

/* ---------- Réservation ---------- */

.booking {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
}
.booking::backdrop { background: rgba(0, 0, 0, 0.72); }
.booking-shell { display: flex; flex-direction: column; height: 100%; }
.booking-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.icon-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { background: rgba(230, 226, 214, 0.1); }
.icon-btn.is-hidden { visibility: hidden; }
.progress { flex: 1; height: 3px; background: rgba(230, 226, 214, 0.16); overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: var(--accent); transition: width 0.35s ease; }

.booking-body { flex: 1; overflow-y: auto; padding: 6px 20px 22px; -webkit-overflow-scrolling: touch; }
.step-label {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.booking-body h2 { margin: 6px 0 16px; font-size: 38px; line-height: 1.07; text-wrap: balance; }

.choices { display: grid; gap: 10px; }
.choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--field);
  color: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.choice[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
/* le pictogramme du décor, dans un petit cadre ; il passe à l'orange quand le décor est choisi */
.choice .set-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--edge);
  border-radius: 2px;
  color: var(--ink);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.choice .set-icon svg { width: 26px; height: 26px; }
.choice[aria-pressed="true"] .set-icon { border-color: var(--accent); color: var(--accent); }
.choice .txt { display: grid; gap: 2px; }
.choice strong { font-family: var(--font-ui); font-size: 18px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.choice small { font-size: 14px; color: var(--ink-2); }
.choice .right { text-align: right; white-space: nowrap; }
.choice .right strong { display: block; color: var(--accent); font-family: var(--font-head); font-size: 23px; font-weight: 400; letter-spacing: 0.02em; }
.choice .right small { font-size: 12.5px; }
.choice .radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(230, 226, 214, 0.4);
}
.choice[aria-pressed="true"] .radio { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 45%, transparent 50%); }

.q { margin-top: 20px; }
.q:first-of-type { margin-top: 0; }
.q > p { margin: 0 0 9px; font-family: var(--font-ui); font-size: 16.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--edge);
  border-radius: 2px;
  background: none;
  color: var(--ink);
  padding: 9px 14px;
  font-family: var(--font-ui);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip small { margin-left: 5px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-accent); }
.chip[aria-pressed="true"] small { color: rgba(20, 19, 15, 0.7); }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { color: var(--ink-2); font-family: var(--font-ui); font-size: 13.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.field input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--edge);
  border-radius: 3px;
  background: var(--field);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
}
.field input:focus { outline: 2.5px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.note { margin: 0; font-size: 13.5px; color: var(--ink-2); }

.recap { margin: 0; padding: 4px 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--field); }
.recap div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.recap div:last-child { border-bottom: 0; }
.recap dt { font-size: 14px; color: var(--ink-2); }
.recap dd { margin: 0; font-size: 14.5px; font-weight: 700; text-align: right; }
.recap .total dd { color: var(--accent); font-family: var(--font-head); font-size: 24px; font-weight: 400; letter-spacing: 0.02em; }
.recap .dot { display: inline-block; width: 12px; height: 12px; margin: 0 1px -1px 2px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(230, 226, 214, 0.4); }
.recap-note { margin-top: 10px; }

.terms { margin-top: 18px; }
.terms h3 { margin: 0 0 6px; font-family: var(--font-ui); font-size: 16px; font-weight: 700; letter-spacing: 0.08em; }
.terms ul { margin: 0; padding-left: 19px; font-size: 14px; color: var(--ink-2); }
.terms li { margin: 4px 0; }
.agree { display: flex; align-items: flex-start; gap: 11px; margin-top: 16px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.agree input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }

.booking-bottom {
  padding: 10px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.error { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--warn); }
.error:empty { display: none; }

.done { padding-top: 34px; text-align: center; }
.done .tick {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ok);
  color: var(--on-accent);
}
.done p { margin: 0 auto; max-width: 30em; color: var(--ink-2); }
/* Rappel affiché tant que les liens de paiement ne sont pas branchés : rien n'a été encaissé */
.done .demo-note {
  margin: 20px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 200, 87, 0.5);
  border-radius: 3px;
  background: rgba(255, 200, 87, 0.1);
  color: #FFD98A;
  font-size: 13.5px;
  text-align: left;
}

/* ---------- Écrans moyens et larges ---------- */

@media (min-width: 720px) {
  /* chaque formule devient une ligne : numéro, nom et description, prix, puis « Choisir » */
  /* le prix occupe deux rangées : la description peut ainsi commencer juste sous le nom de la formule */
  .offer { grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1fr) auto; grid-template-rows: auto auto auto 1fr; gap: 0 28px; padding: 30px 0 32px; }
  .offer::before { grid-row: 1 / span 4; font-size: 26px; line-height: 1.9; }
  .offer h3 { grid-column: 2; grid-row: 1; margin-bottom: 10px; font-size: 48px; }
  .offer h3 + p { grid-column: 2; grid-row: 2 / span 3; max-width: 38ch; }
  .price { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; }
  .price strong { font-size: 72px; }
  .offer .was { grid-column: 3; grid-row: 3; }
  .offer .deposit { grid-column: 3; grid-row: 4; }
  /* « Choisir » devient un lien d'action orange */
  .offer .btn {
    grid-column: 4;
    grid-row: 1 / span 4;
    align-self: center;
    margin-top: 0;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.03em;
  }
  .offer .btn:hover { background: none; color: var(--ink); }

  .booking {
    width: 560px;
    height: auto;
    max-height: min(780px, 92vh);
    margin: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  }
  .booking-shell { max-height: min(780px, 92vh); }
  .booking-bottom { border-radius: 0 0 6px 6px; }
}

@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  :root { --cta-h: 0px; }
  .topbar { padding: 0 28px; }
  .topbar .topbar-cta { display: inline-flex; height: 40px; padding: 0 16px; border-radius: 3px; font-size: 17px; }
  .cta-bar { display: none; }

  .stage { --layout: wide; --bar-h: 74px; --frame: 12px; min-height: 600px; max-height: 1000px; }
  .stage::after { border-radius: 16px; }

  .hero {
    top: 50%;
    left: clamp(32px, 5vw, 84px);
    right: auto;
    width: min(560px, 38vw);
    padding: 0;
    text-align: left;
    transform: translateY(-56%);
  }
  .hero h1 { margin: 14px 0; font-size: clamp(54px, 5.3vw, 100px); }
  .lead { margin: 0; font-size: 18.5px; }
  /* le voile s'arrête plus tôt qu'avant : le face-à-face se trouve juste à droite du texte */
  .stage::before {
    right: auto;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(14, 15, 17, 0.88) 0%, rgba(14, 15, 17, 0.7) 50%, rgba(14, 15, 17, 0) 100%);
  }
  .hero-cta { display: inline-flex; margin-top: 24px; height: 58px; font-size: 23px; }
  .stage.is-open .hero { transform: translate(-18px, -56%); }

  /* les consignes : « entre dans un décor » se place au-dessus des noms des décors, au centre */
  .cue { padding: 7px 11px; font-size: 13px; }
  .cue-enter { position: absolute; left: 50%; bottom: 0; margin-left: 0; transform: translateX(-50%); }
  .stage-more {
    position: absolute;
    right: 28px;
    bottom: 0;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: var(--bar-h);
    color: var(--ink-2);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
  }
  .stage-more:hover { color: var(--ink); }
  .stage-more svg { color: var(--accent); }
  .stage.is-open .stage-more { display: none; }   /* la fiche du décor occupe alors ce coin */

  .label { padding: 7px 12px 7px 10px; font-size: 14.5px; }
  .pin { font-size: 16px; }
  .label-spot { display: inline-flex; }
  .logo-keep { display: block; }

  /* sur grand écran : les décors non choisis en contour, leur numéro au-dessus */
  .tabs { gap: 0 clamp(18px, 2.6vw, 34px); }
  /* fiche ouverte : les noms se regroupent à gauche de la fiche, qui peut descendre jusqu'en bas */
  .stage.is-open .tabs { bottom: 0; padding-right: calc(clamp(24px, 4vw, 64px) + 410px); }
  .tab { padding: 4px 2px 6px; color: transparent; font-size: clamp(22px, 2.3vw, 30px); -webkit-text-stroke: 1px rgba(230, 226, 214, 0.6); }
  .tab:not(.tab-home)::before {
    content: counter(tab, decimal-leading-zero);
    display: block;
    margin-bottom: 3px;
    color: var(--accent);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-align: left;
    -webkit-text-stroke: 0;
  }
  .tab:hover { -webkit-text-stroke-color: var(--ink); }
  .tab[aria-pressed="true"] { color: var(--ink); box-shadow: none; -webkit-text-stroke: 0; }
  .tab-home { align-self: flex-end; margin-bottom: 14px; color: rgba(230, 226, 214, 0.6); -webkit-text-stroke: 0; }
  .t-long { display: inline; }
  .t-short { display: none; }


  /* la fiche flotte à droite ; si elle est plus haute que la vue, elle défile */
  .panel {
    left: auto;
    right: clamp(24px, 4vw, 64px);
    bottom: auto;
    top: 50%;
    z-index: 5;
    width: 400px;
    max-height: calc(100% - 28px);
    padding: 22px 26px 24px;
    overflow-y: auto;
    border: 1px solid rgba(230, 226, 214, 0.3);
    border-radius: 6px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    transform: translate(calc(100% + 90px), -50%);
  }
  .stage[data-sheet="set"] #panel { transform: translate(0, -50%); }
  .panel h2 { margin: 6px 0 8px; font-size: 46px; }
  .panel-pitch { font-size: 16px; }
  #panel .panel-pitch { display: block; }
  #panel .points { display: grid; }
  .panel-brief { display: none; }
  .points { margin-top: 14px; }
  .points li { font-size: 15px; }
  /* ici la place ne manque pas : le logo, les réglages et le bouton retrouvent leur taille pleine */
  .logo-box { margin-top: 10px; padding: 9px 12px; }
  .logo-thumb { width: 46px; height: 46px; font-size: 26px; }
  .opts { margin-top: 14px; }
  .opt { gap: 7px; padding: 8px 0; }
  .seg button { padding: 7px 12px; }
  .panel-seat { height: 48px; margin-top: 16px; }
  .panel-cta { display: flex; width: 100%; margin-top: 10px; }

  .section { padding: 76px 0 84px; }
  .wrap { padding: 0 clamp(20px, 4.4vw, 64px); }
  .faq summary { font-size: 23px; }
}

/* Avec une souris et un clavier : une fois dans un décor, les touches utiles s'affichent en bas du cadre */
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) and (hover: hover) and (pointer: fine) {
  .stage.is-open .cue-keys { display: inline-flex; }
}

/* Téléphones étroits : les deux consignes se resserrent pour tenir côte à côte dans le cadre */
@media (max-width: 380px) {
  .cue { gap: 5px; padding: 4px 7px; font-size: 11px; letter-spacing: 0.06em; }
  .cue-drag { width: 18px; height: 9px; }
}

@media (max-width: 370px) {
  /* le bandeau d'accueil et l'en-tête de la fiche tiennent sur une ligne */
  .badge { font-size: 12px; letter-spacing: 0.06em; }
  .kicker { font-size: 12.5px; letter-spacing: 0.1em; }
  .link-btn { font-size: 13px; letter-spacing: 0.05em; }
  .tabs { gap: 0 11px; padding: 0 6px; }
  .tab { font-size: 17px; }
  .swatches { gap: 6px; }
  .sw { width: 27px; height: 27px; }
}

/* Téléphones peu hauts, ou navigateur intégré d'Instagram et de Facebook */
@media (max-width: 999px) and (max-height: 740px) {
  .hero { padding-top: 14px; }
  .hero h1 { margin: 6px auto; font-size: 44px; }
  .lead { font-size: 14.5px; }
  .panel { padding: 10px 18px 12px; }
  .panel h2 { font-size: 30px; }
}
/* Écrans très peu hauts : petits téléphones, ou navigateur d'Instagram avec ses deux barres.
   Tout se resserre (barres, fiche, réglages) pour que le studio reste visible derrière la fiche. */
@media (max-width: 999px) and (max-height: 600px) {
  :root { --topbar-h: 48px; --cta-h: 73px; }
  .cta-note { display: none; }
  .lead { display: none; }
  .stage { --bar-h: 44px; }

  .panel { padding: 9px 18px 10px; }
  .panel h2 { margin: 1px 0 2px; font-size: 27px; }
  .panel-brief { display: none; }
  .logo-box { margin-top: 7px; padding: 6px 10px; }
  .logo-add { gap: 10px; }
  .logo-thumb { width: 36px; height: 36px; font-size: 21px; }
  .logo-txt strong { font-size: 15px; }
  .logo-txt small { font-size: 12.5px; line-height: 1.3; }
  .opts { margin-top: 7px; }
  .opt { gap: 5px; padding: 6px 0; }
  .seg button { padding: 5px 11px; }
  .swatches { gap: 7px; padding: 1px 2px; }
  .sw { width: 28px; height: 28px; }
  .panel-seat { height: 40px; margin-top: 8px; }
}

/* Écrans larges mais peu hauts (ordinateurs portables) : la fiche se resserre pour tenir en entier */
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) and (max-height: 880px) {
  .panel { padding: 18px 24px 20px; }
  .panel h2 { font-size: 40px; }
  .panel-pitch { font-size: 15.5px; }
  .logo-keep { display: none; }
  .points { margin-top: 12px; gap: 5px; }
  .points li { font-size: 14.5px; }
  .panel-seat { margin-top: 14px; }
}
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) and (max-height: 730px) {
  #panel .points { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
