/* TemporX - page Salon 1564. Feuille autonome : elle ne charge pas studio.css.
   Palette (noir chaud, pierre, laiton) et polices (Marcellus, Marcellus SC, EB Garamond) du 14/11/2026.
   Contrastes sur --ground : stone 15,6:1, stone-dim 8,4:1, stone-faint 5,1:1, brass 7,0:1.
   23/11/2026, refonte de structure : cinq sections (découvrir, comment ça marche, énigme, six lieux, coulisses),
   un seul bouton plein par écran, détails en volets repliables, aucun texte sous 14 px
   (le texte courant en Garamond ne descend plus sous 16 px, et quitte le gris --stone-faint). */

@font-face { font-family: "Marcellus"; src: url("fonts/marcellus.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Marcellus SC"; src: url("fonts/marcellus-sc.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/garamond.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/garamond-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ground:      #12100E;
  --ground-2:    #181512;
  --ground-3:    #221E1A;
  --stone:       #ECE4D6;
  --stone-dim:   #B6AB99;
  --stone-faint: #8F8575;
  --brass:       #C9A15E;
  --brass-hi:    #E8C177;
  --brass-line:  #B08A4A;
  --brass-soft:  rgba(176, 138, 74, 0.30);
  --hairline:    rgba(236, 228, 214, 0.13);

  --shell:   min(1320px, 90vw);
  --top-h:   4.5rem;
  --sec:     clamp(3.5rem, 2.4rem + 4vw, 6.5rem);
  --r:       1.1rem;

  --display: "Marcellus", "Optima", Georgia, serif;
  --caps:    "Marcellus SC", "Marcellus", Georgia, serif;
  --body:    "EB Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --ease:    cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: var(--top-h);
  scrollbar-color: #4A4238 var(--ground); -webkit-text-size-adjust: 100%;
}
body {
  margin: 0; background: var(--ground); color: var(--stone);
  font-family: var(--body); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.6; font-weight: 450; font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { max-width: 100%; }
img { display: block; height: auto; }
::selection { background: var(--brass); color: var(--ground); }
input, textarea { caret-color: var(--brass); accent-color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.1rem, 1.35rem + 2.8vw, 3.9rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.65rem); line-height: 1.15; }
b, strong { font-weight: 600; }
.small { font-size: 1rem; line-height: 1.5; color: var(--stone-dim); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell { width: var(--shell); margin-inline: auto; }

.skip {
  position: fixed; left: 1rem; top: -5rem; z-index: 90;
  background: var(--brass); color: var(--ground); padding: .8rem 1.1rem; border-radius: 999px;
  font-family: var(--caps); text-decoration: none; transition: top 200ms;
}
.skip:focus { top: 1rem; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .8rem 1.6rem; border-radius: 999px;
  font-family: var(--caps); font-size: .98rem; letter-spacing: .06em; line-height: 1.15; text-align: center;
  text-decoration: none; cursor: pointer; border: 1px solid var(--brass);
  background: var(--brass); color: var(--ground);
  box-shadow: 0 10px 28px -12px rgba(201, 161, 94, .55);
  transition: background 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease), color 220ms;
}
.btn:hover { background: var(--brass-hi); transform: translateY(-1px); box-shadow: 0 16px 32px -14px rgba(232, 193, 119, .6); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: rgba(18, 16, 14, .35); color: var(--stone); border-color: var(--brass-soft); box-shadow: none; }
.btn-ghost:hover { background: rgba(201, 161, 94, .12); border-color: var(--brass-line); box-shadow: none; }
.btn-s { min-height: 2.75rem; padding: .55rem 1.15rem; font-size: .9rem; }
.btn-xl { min-height: 3.75rem; padding: 1rem 2.3rem; font-size: 1.1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--stone);
  font-family: var(--caps); font-size: .95rem; letter-spacing: .05em;
  text-decoration: underline; text-decoration-color: var(--brass-line); text-underline-offset: .4em;
}
.link-arrow::after { content: ""; width: .9rem; height: 1px; background: currentColor; box-shadow: 0 0 0 0; transition: width 220ms var(--ease); }
.link-arrow:hover::after { width: 1.4rem; }
.link-arrow:hover { color: var(--brass-hi); }

/* ---------- En-tête : la navigation, la démonstration en lien discret, « Jouer » une fois l'ouverture passée ---------- */

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--top-h);
  transition: background 300ms, border-color 300ms, transform 300ms var(--ease);
  border-bottom: 1px solid transparent;
}
.top.scrolled { background: rgba(18, 16, 14, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--hairline); }
body.playing .top { transform: translateY(-100%); }
.top-in { width: var(--shell); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: 1.8rem; }
.top-brand { display: inline-flex; min-height: 44px; align-items: center; flex: none; }
.top-brand img { width: 7.5rem; }
.top-nav { display: flex; gap: 1.8rem; margin-left: auto; }
.top-nav a {
  font-family: var(--caps); font-size: .95rem; letter-spacing: .06em; color: var(--stone-dim); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid transparent; white-space: nowrap;
}
.top-nav a:hover { color: var(--stone); }
.top-nav a[aria-current="true"] { color: var(--stone); border-bottom-color: var(--brass-line); }
.top-actions { display: flex; align-items: center; gap: 1.3rem; flex: none; }
.top-demo {
  min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--caps); font-size: .95rem; letter-spacing: .05em; color: var(--stone-dim);
  text-decoration: underline; text-decoration-color: var(--brass-soft); text-underline-offset: .4em;
}
.top-demo:hover { color: var(--stone); text-decoration-color: var(--brass-line); }
/* Le bouton « Jouer » de l'en-tête prend le relais de celui de l'ouverture : jamais deux boutons pleins à l'écran.
   .quiet : un autre bouton plein est à l'écran (mission, fin des six lieux, envoi du formulaire), celui-ci passe en contour. */
.top.quiet .top-play { background: transparent; color: var(--stone); border-color: var(--brass-line); box-shadow: none; }
.top.quiet .top-play:hover { background: rgba(201, 161, 94, .12); transform: none; }
.top-play {
  white-space: nowrap; max-width: 16rem; overflow: hidden; gap: .32em;
  transition: max-width 350ms var(--ease), opacity 250ms, padding 350ms var(--ease), margin 350ms var(--ease),
              background 220ms var(--ease), color 220ms, transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.top.at-hero .top-play {
  max-width: 0; opacity: 0; padding-inline: 0; border-width: 0; margin-left: -1.3rem; visibility: hidden; pointer-events: none;
  transition: max-width 350ms var(--ease), opacity 250ms, padding 350ms var(--ease), margin 350ms var(--ease), visibility 0s linear 350ms;
}

/* ---------- 1. Découvrir Salon 1564 ---------- */

.hero {
  position: relative; isolation: isolate;
  padding: calc(var(--top-h) + clamp(1.25rem, 3vh, 2.5rem)) 0 clamp(2.5rem, 6vh, 4.5rem);
  background:
    radial-gradient(60rem 40rem at 78% 42%, rgba(201, 161, 94, .13), transparent 62%),
    radial-gradient(40rem 30rem at 0% 100%, rgba(180, 85, 58, .07), transparent 70%),
    var(--ground);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--brass-soft) 20%, var(--brass-soft) 80%, transparent);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 6rem); align-items: center;
}
.hero-text { display: grid; gap: clamp(1.1rem, 2.2vh, 1.7rem); align-content: center; }
.h1-l2 { display: block; color: var(--brass); }
.what { font-size: clamp(1.2rem, 1.02rem + .6vw, 1.5rem); line-height: 1.5; color: var(--stone); max-width: 35rem; }
.what strong { color: var(--brass-hi); font-weight: 500; }
.lede { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.55; color: var(--stone-dim); max-width: 35rem; }
.actions { display: grid; gap: .75rem; justify-items: start; padding-top: .3rem; }
.access { color: var(--stone-dim); font-size: 1.05rem; line-height: 1.4; }
.partner { display: flex; align-items: center; gap: 1.2rem; padding-top: clamp(.2rem, 1vh, .8rem); max-width: 35rem; }
.partner-logo { width: 6.5rem; height: 3.5rem; color: var(--stone-dim); flex: none; }
.partner p { font-size: 1.02rem; color: var(--stone-dim); line-height: 1.45; padding-left: 1.2rem; border-left: 1px solid var(--hairline); }
.partner b { color: var(--stone); font-weight: 500; }

/* Fil d'Ariane */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; font-family: var(--caps); font-size: .9rem; letter-spacing: .12em; text-transform: lowercase; color: var(--stone-dim); }
.crumb a { color: var(--brass); text-decoration: none; border-bottom: 1px solid var(--brass-soft); }
.crumb a:hover { border-bottom-color: var(--brass); }
.crumb b { font-weight: 400; color: var(--stone); }

/* Avant / après */
.aa { margin: 0; display: grid; gap: .9rem; justify-self: end; width: min(100%, calc((100svh - var(--top-h) - 10.5rem) * .75), 36rem); }
.aa-frame {
  --pos: 50%;
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r);
  touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(236, 228, 214, .08);
  background: var(--ground-3);
}
.aa-img, .aa-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aa-then { clip-path: inset(0 0 0 var(--pos)); }
.aa-tag {
  position: absolute; top: 1rem; padding: .35rem .8rem; border-radius: 999px;
  font-family: var(--caps); font-size: .9rem; letter-spacing: .08em;
  background: rgba(18, 16, 14, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--stone); pointer-events: none;
}
.aa-tag-now { left: 1rem; }
.aa-tag-then { right: 1rem; color: var(--brass-hi); }
.aa-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--brass-hi); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none;
}
.aa-knob {
  position: absolute; top: 50%; left: 50%; width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem; border-radius: 50%;
  background: var(--ground); border: 2px solid var(--brass-hi);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
}
.aa-knob::before, .aa-knob::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px;
  border: 5px solid transparent;
}
.aa-knob::before { left: 7px; border-right-color: var(--brass-hi); }
.aa-knob::after { right: 7px; border-left-color: var(--brass-hi); }
.aa-range:focus-visible ~ .aa-handle .aa-knob,
.aa-frame:has(.aa-range:focus-visible) .aa-knob { outline: 2px solid var(--stone); outline-offset: 3px; }
.aa-cap { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem; }
.aa-cap-text { display: grid; gap: .15rem; min-height: 4.4rem; }
.aa-place { font-family: var(--caps); font-size: 1rem; letter-spacing: .06em; color: var(--brass); }
.aa-note { color: var(--stone-dim); font-size: 1.05rem; line-height: 1.45; }
.aa-nav { display: flex; align-items: center; gap: .35rem; flex: none; }
.aa-arrow {
  width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--brass-soft); color: var(--stone);
  transition: background 200ms, border-color 200ms, color 200ms;
}
.aa-arrow:hover { background: var(--brass); border-color: var(--brass); color: var(--ground); }
.aa-arrow svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aa-count { font-family: var(--caps); font-size: .95rem; letter-spacing: .1em; color: var(--stone-dim); min-width: 3.2rem; text-align: center; }
.aa-count span { color: var(--stone); }
.aa-legend { font-size: 1rem; line-height: 1.45; color: var(--stone-dim); }

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

.sec { position: relative; padding-block: var(--sec); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.2rem clamp(2rem, 6vw, 7rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-lede { color: var(--stone-dim); font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.55; max-width: 38rem; }
.sec-head .sec-lede { padding-bottom: .4rem; }

/* ---------- 2. Comment ça marche ---------- */

.how { background: var(--ground-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3.5rem); }
.step { display: grid; grid-template-columns: clamp(7.5rem, 10vw, 10rem) minmax(0, 1fr); gap: clamp(1rem, 2vw, 1.8rem); align-items: center; }
.step-shot {
  display: block; padding: .4rem; border-radius: 1.5rem; background: #0A0908;
  box-shadow: 0 0 0 1px rgba(236, 228, 214, .14), 0 30px 60px -30px rgba(0, 0, 0, .9), inset 0 0 0 2px #2B2621;
}
.step-shot img { width: 100%; aspect-ratio: 786 / 1704; object-fit: cover; border-radius: 1.15rem; }
.step-body { display: grid; gap: .65rem; align-content: center; justify-items: start; }
.step-num {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.15rem; background: var(--brass); color: var(--ground);
}
.step h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); }
.step p { color: var(--stone-dim); font-size: 1.08rem; line-height: 1.5; }
.how-more { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--hairline); }
.note { color: var(--stone-dim); font-size: 1rem; line-height: 1.45; }
.film {
  position: relative; display: grid; grid-template-columns: 9.5rem auto; align-items: center; gap: 1.1rem;
  padding: .45rem 1.3rem .45rem .45rem; border-radius: 999px; cursor: pointer; min-height: 44px;
  background: var(--ground-3); color: var(--stone); border: 1px solid var(--hairline);
  font-family: var(--caps); font-size: .95rem; letter-spacing: .05em; text-align: left;
  transition: border-color 220ms, background 220ms;
}
.film:hover { border-color: var(--brass-line); background: #2A251F; }
.film picture img { width: 9.5rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 999px; }
.film-play {
  position: absolute; left: calc(.45rem + 4.75rem - 1.1rem); top: 50%; width: 2.2rem; height: 2.2rem; margin-top: -1.1rem;
  border-radius: 50%; background: rgba(18, 16, 14, .78); border: 1px solid var(--brass-hi);
}
.film-play::after {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -6px 0 0 -3px;
  border-left: 10px solid var(--brass-hi); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

/* ---------- 3. Essayez une énigme ---------- */

.mission {
  background:
    radial-gradient(70rem 30rem at 50% 0%, rgba(201, 161, 94, .10), transparent 70%),
    var(--ground);
}
.mission-head { text-align: center; display: grid; justify-items: center; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.mission-head h2 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem); max-width: 16ch; }
.h-accent { color: var(--brass); }
.mission-head .sec-lede { max-width: 38rem; }

.stage { position: relative; }
.stage-view {
  position: relative; height: min(78svh, 48rem); min-height: 30rem; border-radius: calc(var(--r) * 1.4); overflow: hidden;
  background: var(--ground-3);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(236, 228, 214, .1);
}
.stage-poster img, .stage-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.stage-view canvas { opacity: 0; transition: opacity 600ms ease; cursor: grab; touch-action: pan-y; }
.stage-view canvas.on { opacity: 1; }
.stage-view canvas.is-grabbing { cursor: grabbing; }
body.playing .stage-view canvas { touch-action: none; cursor: crosshair; }
.stage-view::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(18, 16, 14, .55), rgba(18, 16, 14, 0) 45%), linear-gradient(0deg, rgba(18, 16, 14, .4), transparent 30%);
  transition: opacity 500ms;
}
body.playing .stage-view::after { opacity: .35; }
.marks { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.target-ring {
  position: absolute; top: 0; left: 0; width: 7rem; height: 7rem; border-radius: 50%; opacity: 0; pointer-events: none;
  border: 2px solid var(--brass-hi); box-shadow: 0 0 2.2rem rgba(232, 193, 119, .5), inset 0 0 1.2rem rgba(232, 193, 119, .3);
}
.aim { position: fixed; z-index: 70; left: 0; top: 0; pointer-events: none; opacity: 0; }
.aim.on { animation: tap 900ms var(--ease) forwards; }
.aim::before {
  content: ""; position: absolute; left: -1.5rem; top: -1.5rem; width: 3rem; height: 3rem;
  border-radius: 50%; border: 1.5px solid var(--stone); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4);
}
.aim.hit::before { border-color: var(--brass-hi); border-width: 2px; }
@keyframes tap { 0% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.4); } }
.stage-hint {
  position: absolute; right: 1.2rem; top: 1.2rem; z-index: 3; pointer-events: none;
  padding: .45rem 1rem; border-radius: 999px; background: rgba(18, 16, 14, .7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--caps); font-size: .95rem; letter-spacing: .06em; color: var(--stone);
  transition: opacity 400ms;
}
.stage-hint.gone, body.playing .stage-hint { opacity: 0; }

.mission-card {
  position: absolute; z-index: 4; left: clamp(1rem, 2.4vw, 2rem); bottom: clamp(1rem, 2.4vw, 2rem);
  width: min(27rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); overflow-y: auto;
  display: grid; gap: 1rem; padding: 1.4rem;
  background: rgba(18, 16, 14, .84); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid rgba(236, 228, 214, .12); border-radius: var(--r);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
}
.consigne { margin: 0; display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.consigne img { width: 4rem; height: 4rem; object-fit: cover; object-position: 50% 8%; border-radius: 50%; border: 1px solid var(--brass-soft); background: var(--ground-3); }
.consigne-who { font-family: var(--caps); font-size: .95rem; letter-spacing: .08em; color: var(--brass); margin-bottom: .2rem; }
.consigne-q { font-style: italic; font-size: 1.15rem; line-height: 1.45; }
.mission-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.mission-actions .btn { min-height: 2.9rem; padding: .6rem 1.15rem; font-size: .9rem; }
.mission-feedback { min-height: 1.5em; color: var(--stone-dim); font-size: 1.05rem; }
.mission-feedback:empty { display: none; }
.mission-feedback.ok { color: var(--brass-hi); }
/* Trouvé : la révélation porte déjà le mot, la consigne a servi. On ne garde que la révélation et le bouton de sortie. */
.mission-card.found .mission-feedback { display: none; }
body.playing .mission-card.found .consigne { display: none; }
body.playing .mission-card.found .reveal { border-top: 0; padding-top: 0; order: -1; }
.reveal { display: grid; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--brass-soft); outline: none; }
.reveal-t { font-size: 1.4rem; color: var(--brass-hi); }
.reveal p:not(.small) { font-size: 1.05rem; line-height: 1.5; }
.reveal-cta { display: grid; gap: .7rem; justify-items: start; margin-top: .4rem; padding: 1rem; border-radius: calc(var(--r) * .8); background: rgba(201, 161, 94, .1); border: 1px solid var(--brass-soft); }
.reveal-cta p { font-family: var(--display); font-size: 1.15rem !important; line-height: 1.3; }
.reveal-demo {
  min-height: 44px; display: inline-flex; align-items: center; color: var(--stone-dim); font-size: 1.02rem;
  text-decoration: underline; text-decoration-color: var(--brass-line); text-underline-offset: .3em;
}
.reveal-demo:hover { color: var(--stone); }

/* ---------- 4. Les six lieux du parcours ---------- */

.lieux { background: var(--ground-2); }
.route { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 16.5rem) minmax(0, 1fr); gap: clamp(1.5rem, 3.5vw, 4rem); align-items: center; }
.route-map { margin: 0; }
.route-map svg { width: 100%; height: auto; display: block; }
.m-route { fill: none; stroke: var(--brass-line); stroke-width: 1.5; stroke-dasharray: 4 5; }
.m-stop { cursor: pointer; }
.m-stop circle { r: 16px; fill: var(--ground); stroke: var(--brass-line); stroke-width: 1.2; transition: fill 200ms; }
.m-stop text { font-family: var(--display); font-size: 16px; fill: var(--stone); pointer-events: none; dominant-baseline: central; }
.m-stop:hover circle { fill: var(--ground-3); }
.m-stop.on circle { fill: var(--brass); stroke: var(--brass); }
.m-stop.on text { fill: var(--ground); }
.m-north path { fill: var(--stone-dim); }
.m-north text, .m-scale text { font-family: var(--caps); font-size: 15px; fill: var(--stone-dim); }
.m-scale path { stroke: var(--stone-dim); fill: none; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: .5rem; }
.stop {
  width: 100%; min-height: 3.1rem; display: flex; align-items: center; gap: .7rem; padding: .4rem 1rem .4rem .45rem; border-radius: 999px;
  background: transparent; border: 1px solid var(--hairline); color: var(--stone-dim); cursor: pointer; font: inherit; text-align: left;
  transition: color 200ms, background 200ms, border-color 200ms;
}
.stop-num {
  min-width: 2.3rem; height: 2.3rem; padding: 0 .3rem; border-radius: 999px; display: grid; place-items: center; flex: none;
  font-family: var(--display); font-size: 1rem; color: var(--brass); border: 1px solid var(--brass-soft);
}
.stop-name { font-family: var(--caps); font-size: .98rem; letter-spacing: .05em; line-height: 1.2; }
.stop:hover { color: var(--stone); border-color: var(--brass-soft); }
.stop[aria-pressed="true"] { background: var(--stone); color: var(--ground); border-color: var(--stone); }
.stop[aria-pressed="true"] .stop-num { background: var(--ground); color: var(--brass-hi); border-color: var(--ground); }
.stop-card { min-width: 0; }
.card { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: clamp(1.2rem, 2.5vw, 2.2rem); align-items: center; animation: rise 500ms var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.card-body { display: grid; gap: .85rem; align-content: center; min-height: 100%; }
.card-body h3 { font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); display: flex; align-items: baseline; gap: .7rem; }
.card-num { font-size: 1rem; color: var(--brass); font-family: var(--caps); }
.card-q { font-style: italic; font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.5; color: var(--stone); max-width: 34rem; }
.card-k + .card-k { margin-top: -.5rem; }
.card-k { color: var(--stone-dim); font-size: 1.05rem; }
.card-k b { color: var(--stone); font-weight: 500; }

.quatrain {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--hairline);
  display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.6fr) minmax(0, .6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
.q-cast { margin: 0; display: grid; gap: .7rem; }
.q-cast img { height: clamp(9rem, 13vw, 12rem); width: auto; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); }
.q-cast-l { justify-items: start; }
.q-cast-r { justify-items: end; text-align: right; }
.q-pair { display: flex; align-items: flex-end; gap: .2rem; }
.q-cast figcaption { font-size: 1rem; color: var(--stone-dim); line-height: 1.4; max-width: 19rem; }
.q-cast figcaption b { color: var(--stone); font-weight: 500; }
.q-text { text-align: center; display: grid; gap: 1rem; justify-items: center; align-self: center; }
.q-text h3 { color: var(--brass); font-family: var(--caps); font-size: 1rem; letter-spacing: .12em; }
.verse { margin: 0; font-style: italic; font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); line-height: 1.32; color: var(--stone); }
.verse p { text-wrap: balance; }
.q-src { color: var(--stone-dim); font-size: 1rem; max-width: 34rem; }
.lieux-cta { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3.5rem); }

/* ---------- 5. Histoire et coulisses : volets repliables (details / summary natifs) ---------- */

.coulisses { background: var(--ground); }
.coul-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.coul-head { display: grid; gap: 1.2rem; }
.folds { border-top: 1px solid var(--hairline); }
.fold { border-bottom: 1px solid var(--hairline); }
.fold > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 2.75rem; column-gap: 1.5rem; row-gap: .15rem;
  align-items: center; padding: 1.15rem .25rem;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold-t { grid-column: 1; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.65rem); transition: color 200ms; }
.fold-d { grid-column: 1; color: var(--stone-dim); font-size: 1.05rem; line-height: 1.4; }
.fold > summary::after {
  content: ""; grid-column: 2; grid-row: 1 / span 2; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--brass-soft);
  background:
    linear-gradient(var(--brass-hi), var(--brass-hi)) center / .9rem 1.5px no-repeat,
    linear-gradient(var(--brass-hi), var(--brass-hi)) center / 1.5px .9rem no-repeat;
  transition: transform 300ms var(--ease), background-color 200ms, border-color 200ms;
}
.fold[open] > summary::after { background: linear-gradient(var(--brass-hi), var(--brass-hi)) center / .9rem 1.5px no-repeat; transform: rotate(180deg); }
.fold > summary:hover .fold-t { color: var(--brass-hi); }
.fold > summary:hover::after { border-color: var(--brass-line); background-color: rgba(201, 161, 94, .12); }
.fold-body { padding: .2rem .25rem 1.8rem; display: grid; gap: 1.1rem; color: var(--stone-dim); max-width: 44rem; }
.fold-body p, .fold-body li { font-size: 1.08rem; line-height: 1.55; }
.fold-body b { color: var(--stone); font-weight: 500; }
.src-list, .rec-list, .pilot-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.src-list li, .rec-list li, .pilot-facts li { padding-left: 1.4rem; position: relative; }
.src-list li { color: var(--stone); }
.src-list li::before, .pilot-facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--brass); }
.rec-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; border: 1.5px solid var(--stone-dim); }
.src { display: block; font-size: 1rem; color: var(--stone-dim); font-style: italic; margin-top: .15rem; }
.pilot { grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: 1.2rem 2.2rem; align-items: start; }
.partner-logo-l { width: 10rem; height: 5.3rem; color: var(--stone); }
.pilot-text { display: grid; gap: 1rem; }
.suite-liens { display: flex; flex-wrap: wrap; gap: .4rem 2.2rem; }

/* ---------- Demande de démonstration : accès discret, formulaire replié ---------- */

.contact { background: var(--ground-2); border-top: 1px solid var(--hairline); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.contact-in { display: grid; gap: 1.4rem; }
.contact-text { display: grid; gap: .6rem; max-width: 46rem; }
.contact-text h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.2rem); letter-spacing: 0; line-height: 1.15; }
.contact-lede { color: var(--stone-dim); font-size: 1.1rem; line-height: 1.5; }
.demo > summary { list-style: none; width: fit-content; }
.demo > summary::-webkit-details-marker { display: none; }
.demo > summary::after { content: ""; width: .5rem; height: .5rem; margin-left: .2rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.15rem) rotate(45deg); transition: transform 250ms var(--ease); }
.demo[open] > summary::after { transform: translateY(.1rem) rotate(-135deg); }
.demo[open] > summary { margin-bottom: 1.8rem; }
.form { width: 100%; max-width: 52rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem 1.4rem; }
.field-wide { grid-column: 1 / -1; }
.form-send { justify-self: start; min-width: 16rem; }
.field { display: grid; gap: .4rem; border: 0; margin: 0; padding: 0; min-width: 0; align-content: start; }
.field label, .field legend { font-family: var(--caps); font-size: .95rem; letter-spacing: .05em; color: var(--stone); padding: 0; }
.req { color: var(--brass); }
.opt { color: var(--stone-dim); font-family: var(--body); letter-spacing: 0; text-transform: none; }
.field input, .field textarea {
  width: 100%; min-height: 3.1rem; padding: .7rem 1rem; border-radius: .7rem;
  background: var(--ground); border: 1px solid rgba(236, 228, 214, .22); color: var(--stone);
  font: inherit; font-size: 1.05rem; transition: border-color 200ms, box-shadow 200ms;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--stone-faint); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: rgba(236, 228, 214, .36); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201, 161, 94, .3); }
.field input[aria-invalid="true"] { border-color: #E07A5F; }
.err { color: #F0A08A; font-size: 1rem; min-height: 0; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.chips label { position: relative; cursor: pointer; font-family: var(--body); letter-spacing: 0; font-size: 1.02rem; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid rgba(236, 228, 214, .22); color: var(--stone-dim); transition: background 200ms, color 200ms, border-color 200ms;
}
.chips input:checked + span { background: var(--stone); color: var(--ground); border-color: var(--stone); }
.chips input:focus-visible + span { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.rgpd a { color: var(--stone); }
.form-status { font-size: 1.05rem; line-height: 1.5; outline: none; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--brass-hi); padding: 1rem 1.2rem; border-radius: .8rem; background: rgba(201, 161, 94, .1); border: 1px solid var(--brass-soft); }
.form-status.ko { color: #F0A08A; padding: 1rem 1.2rem; border-radius: .8rem; background: rgba(224, 122, 95, .08); border: 1px solid rgba(224, 122, 95, .4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page ---------- */

.foot { padding-block: 3rem 2.5rem; background: var(--ground); border-top: 1px solid var(--hairline); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.foot-brand { display: grid; gap: 1rem; }
.foot-brand img { width: 8rem; }
.foot-nav, .foot-legal { display: grid; gap: .1rem; }
.foot-nav a, .foot-legal a { color: var(--stone-dim); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; font-family: var(--caps); font-size: .95rem; letter-spacing: .05em; }
.foot-nav a:hover, .foot-legal a:hover { color: var(--stone); text-decoration: underline; text-decoration-color: var(--brass-line); }
.foot-legal p { margin-top: .6rem; }

/* ---------- Vidéo ---------- */

.video-dialog { padding: 0; border: 0; background: transparent; max-width: min(64rem, 94vw); width: 100%; color: var(--stone); }
.video-dialog::backdrop { background: rgba(10, 9, 8, .9); backdrop-filter: blur(4px); }
.video-box { display: grid; gap: .9rem; justify-items: end; }
.video-box video { width: 100%; height: auto; display: block; background: #000; aspect-ratio: 16 / 9; border-radius: .8rem; }
.video-box p { justify-self: start; }

/* ---------- Mouvement ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
}

/* ---------- Écrans moyens ---------- */

@media (max-width: 1260px) {
  .top-nav { gap: 1.3rem; }
  .top-in { gap: 1.3rem; }
}

@media (max-width: 1180px) {
  .route { grid-template-columns: minmax(0, 13rem) minmax(0, 20rem); justify-content: start; }
  .stop-card { grid-column: 1 / -1; }
  .card { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); }
  .quatrain { grid-template-columns: minmax(0, .5fr) minmax(0, 1.6fr) minmax(0, .7fr); gap: 1.5rem; }
}

@media (max-width: 1100px) {
  .top-nav { display: none; }
  .top-actions { margin-left: auto; }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.2rem; }
  .step-shot { width: min(11rem, 100%); }
  .step-body { justify-items: center; }
}

/* ---------- Tablette et téléphone ---------- */

@media (max-width: 860px) {
  :root { --top-h: 4rem; --shell: 90vw; }
  /* Premier écran : le titre, ce que c'est, le bouton, puis le comparateur. Le scénario suit. */
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-text { display: contents; }
  .hero-text > .crumb { order: 0; margin-bottom: 1rem; }
  .hero-text > h1 { order: 0; margin-bottom: 1rem; }
  .hero-text > .what { order: 1; margin-bottom: 1.2rem; }
  .hero-text > .actions { order: 2; margin-bottom: 1.8rem; }
  .hero-grid > .aa { order: 3; margin-bottom: 1.8rem; justify-self: start; width: min(100%, 30rem); }
  .hero-text > .lede { order: 4; margin-bottom: 1.5rem; }
  .hero-text > .partner { order: 5; }
  .sec-head { grid-template-columns: 1fr; align-items: start; }

  .stage-view { height: 68svh; min-height: 26rem; border-radius: var(--r); }
  .stage-view::after { background: linear-gradient(0deg, rgba(18, 16, 14, .5), transparent 35%); }
  .mission-card { position: relative; left: auto; bottom: auto; width: auto; max-height: none; margin-top: -2.5rem; margin-inline: .6rem; }
  /* Jeu sur téléphone : la scène prend l'écran, la carte devient un bandeau bas. */
  body.playing { overflow: hidden; }
  body.playing .stage-view { position: fixed; inset: 0; height: 100%; min-height: 0; border-radius: 0; z-index: 60; }
  body.playing .mission-card {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; margin: 0; width: auto;
    max-height: 46svh; overflow-y: auto; gap: .7rem; border-radius: var(--r) var(--r) 0 0;
    padding: 1rem 5vw calc(1rem + env(safe-area-inset-bottom));
    background: rgba(18, 16, 14, .95);
  }
  body.playing .consigne { grid-template-columns: 2.6rem minmax(0, 1fr); gap: .7rem; }
  body.playing .consigne img { width: 2.6rem; height: 2.6rem; }
  body.playing .consigne-q { font-size: 1.02rem; }
  body.playing .consigne-who { display: none; }
  body.playing .mission-actions .btn { min-height: 2.75rem; padding: .5rem .75rem; font-size: .875rem; letter-spacing: .02em; }
  body.playing .mission-card.found { max-height: 66svh; }
  body.playing .mission-card.found .reveal > p.small { display: none; }

  /* Six lieux : la carte et la liste côte à côte, la fiche dessous. */
  .route { grid-template-columns: 44% minmax(0, 1fr); gap: 1.2rem 1rem; justify-content: stretch; }
  .m-stop circle { r: 22px; }
  .m-stop text { font-size: 22px; }
  .m-north text, .m-scale text { font-size: 21px; }
  .stops { gap: .4rem; }
  .stop { min-height: 2.75rem; padding: .25rem .7rem .25rem .3rem; gap: .5rem; }
  .stop-num { min-width: 2.1rem; height: 2.1rem; font-size: .95rem; }
  .stop-name { font-size: .92rem; letter-spacing: .03em; }
  .quatrain { grid-template-columns: 1fr 1fr; align-items: end; gap: 1.5rem; }
  .q-text { grid-column: 1 / -1; grid-row: 1; }
  .q-cast img { height: 8.5rem; }

  .coul-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .step { grid-template-columns: 6.75rem minmax(0, 1fr); justify-items: stretch; text-align: left; gap: 1.2rem; }
  .step-shot { width: auto; padding: .28rem; border-radius: 1.1rem; }
  .step-shot img { border-radius: .85rem; }
  .step-body { justify-items: start; gap: .5rem; }
  .step-num { width: 2.3rem; height: 2.3rem; font-size: 1.05rem; }
  .form { grid-template-columns: 1fr; }
  .form-send { justify-self: stretch; }
  .pilot { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .top-brand img { width: 6rem; }
  .top-actions { gap: .9rem; }
  .top-play-l { display: none; }
  .top.at-hero .top-play { margin-left: -.9rem; }
  .top-demo { font-size: .9rem; }
  .actions { justify-items: stretch; }
  .actions .btn { width: 100%; }
  .partner { align-items: center; gap: .9rem; }
  .partner-logo { width: 5.6rem; height: 3rem; }
  .partner p { font-size: 1rem; padding-left: .9rem; }
  .film { grid-template-columns: 6.5rem auto; font-size: .92rem; }
  .film picture img { width: 6.5rem; }
  .film-play { left: calc(.45rem + 3.25rem - 1.1rem); }
  .aa-cap { flex-direction: column; gap: .7rem; }
  .aa-cap-text { min-height: 0; }
  /* Fiche d'un lieu : la vue en vignette à côté du nom, le reste sur toute la largeur. */
  .card { grid-template-columns: 6.5rem minmax(0, 1fr); gap: .8rem 1rem; align-items: center; }
  .card-body { display: contents; }
  .card-img { grid-column: 1; grid-row: 1; }
  .card-body h3 { grid-column: 2; grid-row: 1; font-size: 1.5rem; gap: .6rem; }
  .card-q, .card-k, .card-aa { grid-column: 1 / -1; }
  .card-k + .card-k { margin-top: -.45rem; }
  .q-cast img { height: 7.5rem; }
  .mission-card { margin-inline: 0; padding: 1.15rem; }
  .mission-actions .btn { flex: 1 1 auto; }
  .lieux-cta .btn { width: 100%; }
  .demo > summary { width: 100%; }
}

@media (max-width: 360px) {
  .top-brand img { width: 5rem; }
  .top:not(.at-hero) .top-demo { display: none; }
  .aa-tag { font-size: .875rem; top: .7rem; }
  .aa-tag-now { left: .7rem; } .aa-tag-then { right: .7rem; }
  .route { grid-template-columns: 40% minmax(0, 1fr); }
}

/* Tablette (600-860 px) : l'avant/après ne laisse plus un vide à droite ; image jamais agrandie au-delà de 30rem. */
@media (min-width: 600px) and (max-width: 860px) {
  .hero-grid > .aa { width: 100%; justify-self: stretch; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); column-gap: 1.75rem; align-items: end; }
  .aa-frame { grid-column: 1; grid-row: 1 / span 2; }
  .aa-cap { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .aa-legend { grid-column: 2; grid-row: 2; }
  .route { grid-template-columns: minmax(0, 14rem) minmax(0, 20rem); justify-content: start; gap: 1.5rem 2rem; }
  .m-stop circle { r: 16px; }
  .m-stop text { font-size: 16px; }
  .m-north text, .m-scale text { font-size: 15px; }
}
