/* ============================================================
   AIRMIND CREATION — Design System « L'Avant-Première » (v2)
   (voir DESIGN-airmind.md)
   Le site s'ouvre dans le noir de la salle : le film présenté
   comme un produit Apple. Display sérif Cormorant (maisons de
   vente), interface Inter, un seul accent : le bleu nuit.
   Composition Apple (tuiles alternées, une ombre — les médias),
   matière Airbnb (pilule d'offre, cartes photo-first, rail
   collant), codes du luxe (kickers espacés, cartons de planche,
   sur devis). Porcelaine, noir profond, bleu nuit — pas de beige.
   ============================================================ */

/* ----------------------------------------------------------
   1. Tokens
   ---------------------------------------------------------- */

/* Swap invisible : le fallback occupe la même place que la webfont (CLS 0) */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107.4%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Cormorant Fallback';
  src: local('Georgia');
  /* valeurs de départ pour Cormorant Garamond (glyphes petits sur l'em) —
     vérifier à l'œil en throttlant le réseau, ajuster size-adjust ±3 % */
  size-adjust: 88%; ascent-override: 100%; descent-override: 27%; line-gap-override: 0%;
}

:root {
  /* Accent — le bleu nuit */
  --accent: #1e3d5f;
  --accent-hover: #2a4e77;
  --accent-press: #16304c;
  --accent-on-dark: #a9c5e5;
  --accent-wash: rgba(30, 61, 95, 0.07);

  /* Encres */
  --ink: #16150f;
  --body-c: #3e3c35;
  --muted: #6b6960;
  --muted-soft: #9a978d;

  /* Surfaces claires */
  --canvas: #fafaf8;
  --card: #ffffff;
  --stone: #f0efea;

  /* La salle */
  --noir: #0f0e0b;
  --noir-2: #151410;
  --porcelain: #f3f2ed;
  --stone-dark: #a8a599;
  --noir-hairline: rgba(243, 242, 237, 0.15);

  /* Hairlines */
  --hairline: #e6e4dd;
  --hairline-strong: #d5d2c9;

  /* Fonctionnels */
  --on-accent: #ffffff;
  --error: #b3441e;

  /* Rayons — tendus */
  --r-xs: 2px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 9999px;

  /* Élévation — deux ombres, pas une de plus */
  --shadow-media: 0 32px 90px -36px rgba(15, 14, 11, 0.45);
  --shadow-pop: 0 14px 44px -20px rgba(15, 14, 11, 0.25);
  --blur-frosted: saturate(160%) blur(18px);

  /* Typographies */
  --serif: 'Cormorant Garamond', 'Cormorant Fallback', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  /* Rythme */
  --sect: clamp(84px, 9.5vw, 128px);
  --nav-h: 56px;
}

/* ----------------------------------------------------------
   2. Base
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }

/* Tactile — le socle des meilleurs (guidelines Vercel) */
a, button, input, select, textarea, summary { touch-action: manipulation; }

/* Les ancres s'arrêtent sous la nav sticky */
[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

/* Le survol n'existe que là où il existe (anti « sticky hover ») */
@media (hover: none) {
  .card:hover .card__photo img { transform: none; }
  .photo-mosaic a:hover img { filter: none; }
}
/* Presse tactile sur les liens médias (les .card ne sont pas cliquables — pas de presse dessus) */
.photo-mosaic a:active img { transform: scale(0.985); transition-duration: .12s; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection { background: rgba(30, 61, 95, 0.18); }

:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}
.wrap--wide { width: min(1280px, 100% - 48px); }

/* Compression des enfants de grille (Safari iPhone) */
.split > *, .folio > *, .listing-body > *, .cards > *, .refs > *,
.pricing > *, .footer__grid > *, .chips, .slate { min-width: 0; }

h1, h2, h3 { text-wrap: balance; }
.lead, .desc { text-wrap: pretty; }

/* ----------------------------------------------------------
   3. Typographie
   ---------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; color: inherit; }

/* Display — sérif. La voix des maisons de vente. */
h1, .h-hero {
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

h2, .h-tile {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.005em;
}

h3, .h-md {
  font-family: var(--serif);
  font-size: clamp(27px, 2.8vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

/* L'em s'incline — l'inflexion, pas un changement de famille */
h1 em, h2 em, h3 em, .quote-band blockquote em {
  font-style: italic;
  font-weight: 500;
}

/* Titre utilitaire — Inter */
.ui-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--body-c);
}

.desc { font-size: 17px; line-height: 1.5; color: var(--body-c); }
.body-sm { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.caption { font-size: 13px; line-height: 1.4; color: var(--muted); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  text-wrap: balance;
}

/* Lien éditorial */
.link-ed {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(30, 61, 95, 0.35);
}
.link-ed:hover { text-decoration-color: var(--accent); }
.link-ed .arr {
  text-decoration: none;
  display: inline-block;
  transition: transform .2s ease;
}
.link-ed:hover .arr { transform: translateX(2px); }

/* ----------------------------------------------------------
   4. Boutons — pilules
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 27px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.25;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .12s ease;
}
.btn:active { transform: scale(0.97); }

.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--accent:hover { background: var(--accent-hover); }
.btn--accent:active { background: var(--accent-press); }

.btn--porcelain {
  background: var(--card);
  color: var(--ink);
}
.btn--porcelain:hover { background: var(--porcelain); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  padding: 12px 26px;
}
.btn--outline:hover { border-color: var(--ink); }

.btn--outline-dark {
  background: transparent;
  color: var(--porcelain);
  border: 1px solid var(--noir-hairline);
  padding: 12px 26px;
}
.btn--outline-dark:hover { border-color: var(--stone-dark); }

.btn--sm {
  min-height: 40px;
  padding: 9px 20px;
  font-size: 14px;
}

/* ----------------------------------------------------------
   5. Bandeau global (noir) + sélecteur de marché
   ---------------------------------------------------------- */
.topbar {
  background: var(--noir);
  color: var(--stone-dark);
  position: relative;
  z-index: 65;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.topbar__note { font-size: 13px; line-height: 1.4; }
.topbar__note em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15em;
  color: var(--porcelain);
}

.country { position: relative; }
.country__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--stone-dark);
  padding: 6px 2px;
  transition: color .15s ease;
}
.country__btn:hover { color: var(--porcelain); }
.country__btn svg { width: 14px; height: 14px; }
.country__btn .chev { width: 9px; height: 9px; transition: transform .18s ease; }
.country.is-open .country__btn .chev { transform: rotate(180deg); }

.country__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  min-width: 232px;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-pop);
  padding: 6px;
  display: none;
}
.country.is-open .country__menu { display: block; }
.country__menu a {
  display: block;
  padding: 11px 14px;
  font-size: 14.5px;
  border-radius: var(--r-sm);
}
.country__menu a:hover { background: var(--accent-wash); }
.country__menu a[aria-current] { font-weight: 600; color: var(--accent); }

/* ----------------------------------------------------------
   6. Navigation givrée
   ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 250, 248, 0.85);
  -webkit-backdrop-filter: var(--blur-frosted);
  backdrop-filter: var(--blur-frosted);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, transform .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav.is-scrolled { border-bottom-color: var(--hairline); }
.nav.is-hidden { transform: translateY(-100%); }

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--nav-h);
}

.nav__brand { display: inline-flex; align-items: center; flex-shrink: 0; }

/* Mot-symbole texte — sans vague : « airmind » fin, « creation » gras bleu nuit */
.nav__brand-word {
  font-size: 17.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
}
.nav__brand-word strong {
  font-weight: 700;
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav__link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--body-c);
  transition: color .15s ease;
}
.nav__link:hover { color: var(--ink); }

.nav__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;                 /* ← le fix B1 */
  min-height: 40px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong);
}
.nav__toggle-ic { display: flex; flex-direction: column; gap: 4px; }
.nav__toggle-ic span {
  display: block; width: 15px; height: 1.5px;
  border-radius: 2px; background: var(--ink);
}
.nav__toggle-txt {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.nav__toggle:active { transform: scale(0.96); }

/* Le menu — une salle qui s'ouvre (dialog top-layer, couvre tout, safe-areas) */
dialog.menu {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  background: var(--noir);
  color: var(--porcelain);
  padding: calc(10px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity .35s ease, display .35s allow-discrete, overlay .35s allow-discrete;
}
dialog.menu[open] { display: flex; flex-direction: column; opacity: 1; }
@starting-style { dialog.menu[open] { opacity: 0; } }
dialog.menu::backdrop { background: transparent; }

.menu__bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px;
}
.menu__brand { color: var(--porcelain); }
.menu__brand strong { color: var(--accent-on-dark); }
.menu__close {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--noir-hairline);
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--porcelain);
}
.menu__close:active { transform: scale(0.96); }

.menu__links { display: flex; flex-direction: column; margin-top: 18px; }
.menu__links a {
  font-family: var(--serif);
  font-size: 31px; font-weight: 600; line-height: 1.15;
  padding: 17px 2px;
  border-bottom: 1px solid var(--noir-hairline);
}
.menu__market { margin-top: 26px; display: flex; flex-direction: column; gap: 2px; }
.menu__k {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-on-dark);
  margin-bottom: 8px;
}
.menu__market a { padding: 9px 2px; font-size: 15.5px; color: var(--stone-dark); }
.menu__market a[aria-current] { color: var(--porcelain); font-weight: 600; }
.menu__cta { margin-top: 28px; }
.menu__foot {
  margin-top: auto;
  padding-top: 20px;
  font-size: 13px; color: var(--stone-dark);
  text-align: center;
}

/* Entrées en cascade — le geste Aesop/Jacquemus */
.menu__links a, .menu__market, .menu__cta {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s cubic-bezier(0.16, 1, 0.3, 1) calc(60ms + var(--i, 0) * 50ms),
              transform .5s cubic-bezier(0.16, 1, 0.3, 1) calc(60ms + var(--i, 0) * 50ms);
}
dialog.menu[open] .menu__links a,
dialog.menu[open] .menu__market,
dialog.menu[open] .menu__cta { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  dialog.menu, .menu__links a, .menu__market, .menu__cta { transition: none; transform: none; }
}

/* ----------------------------------------------------------
   7. Tuiles — l'alternance de surface est le séparateur
   ---------------------------------------------------------- */
.tile { padding: var(--sect) 0; }

.tile--stone { background: var(--stone); }

.tile--noir {
  background: var(--noir);
  color: var(--porcelain);
}
.tile--noir-2 {
  background: var(--noir-2);
  color: var(--porcelain);
}

.tile--noir .lead, .tile--noir-2 .lead,
.tile--noir .desc, .tile--noir-2 .desc,
.tile--noir .body-sm, .tile--noir-2 .body-sm,
.tile--noir .caption, .tile--noir-2 .caption { color: var(--stone-dark); }
.tile--noir .kicker, .tile--noir-2 .kicker { color: var(--accent-on-dark); }
.tile--noir .link-ed, .tile--noir-2 .link-ed {
  color: var(--accent-on-dark);
  text-decoration-color: rgba(169, 197, 229, 0.35);
}
.tile--noir .link-ed:hover, .tile--noir-2 .link-ed:hover {
  text-decoration-color: var(--accent-on-dark);
}

.tile-head { max-width: 64ch; margin-bottom: clamp(36px, 5vw, 64px); }
.tile-head--center { margin-inline: auto; text-align: center; }
.tile-head .lead { margin-top: 18px; }

/* ----------------------------------------------------------
   8. Hero — l'avant-première (tuile noire d'ouverture)
   ---------------------------------------------------------- */
.hero {
  background: var(--noir);
  color: var(--porcelain);
  padding: clamp(56px, 7vw, 92px) 0 var(--sect);
  text-align: center;
  display: flex;
  flex-direction: column;
}
/* Ordre DOM mobile (head → cinema → actions) ; le desktop garde l'ordre visuel
   texte → pilule → écran par flex order */
.hero__head { order: 1; }
.hero__actions { order: 2; }
.hero__cinema { order: 3; }
.hero .kicker { color: var(--accent-on-dark); justify-content: center; }
.hero h1 {
  max-width: 18ch;
  margin-inline: auto;
}
.hero .lead {
  max-width: 58ch;
  margin: 22px auto 0;
  color: var(--stone-dark);
}
.hero__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.hero .link-ed {
  color: var(--accent-on-dark);
  text-decoration-color: rgba(169, 197, 229, 0.35);
}
.hero .link-ed:hover { text-decoration-color: var(--accent-on-dark); }

/* Pilule d'offre — l'objet le plus clair de l'écran d'ouverture */
.offer-pill {
  display: flex;
  align-items: stretch;
  width: min(720px, 100%);
  margin: 40px auto 0;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-pop);
  min-height: 66px;
  padding: 8px;
  text-align: left;
}
.offer-seg {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 6px 26px;
}
.offer-seg + .offer-seg::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 1px;
  background: var(--hairline);
}
.offer-seg .k {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.offer-seg .v {
  font-size: 14.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-orb {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  transition: background-color .18s ease, transform .12s ease;
}
.offer-orb:hover { background: var(--accent-hover); }
.offer-orb:active { background: var(--accent-press); transform: scale(0.94); }
.offer-orb svg { width: 18px; height: 18px; }

/* ----------------------------------------------------------
   9. La salle de projection — l'écran
   ---------------------------------------------------------- */
.cinema {
  max-width: 1080px;
  margin-inline: auto;
}
.hero .cinema { margin-top: clamp(48px, 6vw, 72px); text-align: left; }

.screen {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.screen video { width: 100%; height: 100%; object-fit: cover; }

/* Carton de planche — angles 2px, capitales espacées */
.plate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(250, 250, 248, 0.94);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  border-radius: var(--r-xs);
  padding: 6px 11px;
}
.plate .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.screen__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(250, 250, 248, 0.94);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  border-radius: var(--r-xs);
  padding: 6px 11px;
}
.screen__badge .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* Bouton lecture injecté par JS */
.screen__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(15, 14, 11, 0.35);
}
.screen__play .disc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--card);
}
.screen__play .tri {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--accent);
  margin-left: 4px;
}
.screen__play .cap {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(250, 250, 248, 0.94);
  color: var(--ink);
  border-radius: var(--r-xs);
  padding: 7px 12px;
}

/* Réglette sous l'écran */
.slate {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px 0;
}
.slate__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: var(--r-pill);
  padding: 3px 13px;
  flex-shrink: 0;
}
.slate__txt {
  font-size: 14.5px;
  color: var(--stone-dark);
  flex: 1;
  min-width: 0;
}
.slate__ctl { display: flex; gap: 8px; flex-shrink: 0; }
.slate__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--noir-hairline);
  font-size: 13px;
  font-weight: 500;
  color: var(--porcelain);
  transition: border-color .15s ease, transform .12s ease;
}
.slate__btn:hover { border-color: var(--stone-dark); }
.slate__btn:active { transform: scale(0.96); }
.slate__btn svg { width: 14px; height: 14px; }

/* Puces d'info */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--stone-dark);
  background: rgba(243, 242, 237, 0.07);
  border-radius: var(--r-pill);
  padding: 8px 15px;
}
.chip strong { color: var(--porcelain); font-weight: 600; }
.chip .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-on-dark);
}

/* Variante claire */
.chip--light {
  background: var(--stone);
  color: var(--body-c);
}
.chip--light strong { color: var(--ink); }
.chip--light .dot { background: var(--accent); }

.method-note {
  font-size: 13px;
  color: var(--stone-dark);
  margin-top: 18px;
}
.method-note--light { color: var(--muted); }

/* ----------------------------------------------------------
   10. Bande de preuves — chiffres sérif
   ---------------------------------------------------------- */
.stat-strip {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(36px, 4.5vw, 56px) 0;
}
.stats {
  display: flex;
  justify-content: center;
}
.stat {
  flex: 0 1 250px;
  text-align: center;
  padding: 4px 28px;
}
.stat + .stat { border-left: 1px solid var(--hairline); }
.tile--noir .stat + .stat,
.tile--noir-2 .stat + .stat,
.hero .stat + .stat { border-left-color: var(--noir-hairline); }

.stat__num {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stat__num sup {
  font-size: 21px;
  font-weight: 500;
  font-style: italic;
}
.stat__num .u {
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
}
.hero .stat__num,
.tile--noir .stat__num, .tile--noir-2 .stat__num { color: var(--porcelain); }

.stat__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.hero .stat__label,
.tile--noir .stat__label, .tile--noir-2 .stat__label { color: var(--stone-dark); }

/* ----------------------------------------------------------
   11. Citation manifeste — le moment fort
   ---------------------------------------------------------- */
.quote-band { text-align: center; }
.quote-band blockquote {
  margin: 0 auto;
  max-width: 22ch;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.14;
  color: var(--ink);
}
.tile--noir.quote-band blockquote,
.tile--noir-2.quote-band blockquote { color: var(--porcelain); }

.quote-band__rule {
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin: 30px auto 0;
  border: 0;
}
.tile--noir .quote-band__rule { background: var(--accent-on-dark); }

.quote-band__sub {
  max-width: 60ch;
  margin: 26px auto 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--body-c);
}
.tile--noir .quote-band__sub { color: var(--stone-dark); }

/* Colonnes de principes */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 36px;
  margin-top: clamp(44px, 5.5vw, 72px);
  text-align: left;
}
.principle .ui-title { margin-bottom: 8px; display: block; }
.principle p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ----------------------------------------------------------
   12. Volets (folio) + rangées d'inclus
   ---------------------------------------------------------- */
.folio {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
  padding: clamp(36px, 5vw, 60px) 0;
}
.folio--flip > .folio__media { order: -1; }
.folio h3 { margin-bottom: 14px; }
.folio .desc { max-width: 50ch; }
.folio__cta { margin-top: 24px; }
.folio__num {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.amenities {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.amenities li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 0;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--ink);
}
.amenities li + li { border-top: 1px solid var(--hairline); }
.amenities li::before {
  content: "-";
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 500;
  line-height: 1.45;
}

/* ----------------------------------------------------------
   13. Médias
   ---------------------------------------------------------- */
.media-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--stone);
  box-shadow: var(--shadow-media);
  margin: 0;
}
.media-frame img, .media-frame video { width: 100%; height: auto; }

.media-frame__cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.media-frame__cap .pl,
.media-frame__cap .tag {
  background: rgba(250, 250, 248, 0.94);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  border-radius: var(--r-xs);
  padding: 6px 11px;
}
.media-frame__cap .tag { color: var(--accent); }

/* Téléphone 9:16 */
.phone-scene { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(290px, 74vw);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--noir);
  box-shadow: var(--shadow-media);
  aspect-ratio: 9 / 16;
}
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone__chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(250, 250, 248, 0.94);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
  padding: 6px 11px;
}
.phone__chip--tr { left: auto; bottom: auto; top: 12px; right: 12px; }
.phone__chip .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* ----------------------------------------------------------
   14. Avant / Après
   ---------------------------------------------------------- */
.ba {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--stone);
  box-shadow: var(--shadow-media);
  touch-action: pan-y;
  cursor: ew-resize;
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--porcelain);
  transform: translateX(-1px);
  cursor: ew-resize;
}
.ba__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}
.ba__knob svg { width: 16px; height: 16px; }
.ba__handle:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; }

.ba__label {
  position: absolute;
  bottom: 14px;
  background: rgba(250, 250, 248, 0.94);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
  padding: 6px 11px;
  pointer-events: none;
}
.ba__label--before { left: 14px; }
.ba__label--after { right: 14px; }

.ba-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 4px 0;
}
.ba-caption .t {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 68ch;
}

/* ----------------------------------------------------------
   15. Cartes références — photo-first
   ---------------------------------------------------------- */
.refs, .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 20px;
}

.card { position: relative; display: block; margin: 0; }

.card__photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--stone);
  box-shadow: var(--shadow-media);
}
.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.card:hover .card__photo img { transform: scale(1.025); }

.card__plate {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(250, 250, 248, 0.94);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
  padding: 6px 11px;
}

.card__meta { padding: 18px 4px 0; }
.card__title {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
.card__loc {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
}

.rail-progress { display: none; }

/* ----------------------------------------------------------
   16. Fiche spec + split
   ---------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.spec {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 12px 28px;
}
.spec__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 15px 0;
}
.spec__row + .spec__row { border-top: 1px solid var(--hairline); }
.spec__k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.spec__v {
  font-size: 15px;
  color: var(--ink);
  text-align: right;
}
.spec__v em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12em;
}

.tile--noir .spec, .tile--noir-2 .spec {
  background: transparent;
  border-color: var(--noir-hairline);
}
.tile--noir .spec__row + .spec__row,
.tile--noir-2 .spec__row + .spec__row { border-top-color: var(--noir-hairline); }
.tile--noir .spec__k, .tile--noir-2 .spec__k { color: var(--stone-dark); }
.tile--noir .spec__v, .tile--noir-2 .spec__v { color: var(--porcelain); }

/* ----------------------------------------------------------
   17. Tarifs (US)
   ---------------------------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
}
.price-card--feature { border-color: var(--accent); }

.price-card__kind {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
  padding: 5px 10px;
  background: var(--stone);
  color: var(--muted);
  margin-bottom: 18px;
}
.price-card--feature .price-card__kind {
  background: var(--accent);
  color: var(--on-accent);
}

.price-card h3 { font-size: 26px; }
.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 14px;
}
.price-card__amount .cur {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}
.price-card__amount .num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.price-card__amount .per { font-size: 13px; color: var(--muted); }
.price-card__note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.price-card ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.price-card ul li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--body-c);
}
.price-card ul li + li { border-top: 1px solid var(--hairline); }
.price-card ul li::before {
  content: "-";
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 500;
}
.price-card__spacer { flex: 1; min-height: 22px; }
.price-card .btn { width: 100%; }

.volume-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px 28px;
}
.volume-strip .t { font-size: 17px; font-weight: 600; }
.volume-strip .s { font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.tax-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}

/* ----------------------------------------------------------
   18. Réservation + formulaire
   ---------------------------------------------------------- */
.reservation {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  padding: 28px;
  color: var(--ink);
}
.reservation__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.reservation__price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 600;
}
.reservation__price .per {
  font-family: var(--sans);
  font-style: normal;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
}
.reservation__mark {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.reservation .spec {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 18px;
}
.reservation .btn { width: 100%; }
.reservation__foot {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
}

.form { display: flex; flex-direction: column; gap: 12px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field input {
  width: 100%;
  height: 54px;
  padding: 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: var(--muted-soft); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.form .btn { width: 100%; }
.form__status {
  min-height: 20px;
  font-size: 14px;
  color: var(--accent);
}
.form__status.is-error { color: var(--error); }
.form__note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Succès — la coche se dessine, la phrase en sérif (pattern GOV.UK) */
.form.is-done .form__row,
.form.is-done .field,
.form.is-done .btn { display: none; }
/* la région aria-live reste dans le rendu (sinon rien n'est annoncé) — masquée façon sr-only */
.form.is-done .form__status {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.form__done { text-align: center; padding: 26px 0 10px; }
.form__done svg { width: 44px; height: 44px; color: var(--accent); }
.form__done .tick {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: tick-draw .5s cubic-bezier(0.16, 1, 0.3, 1) .1s forwards;
}
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
.form__done .t {
  font-family: var(--serif); font-style: italic;
  font-size: 21px; font-weight: 500;
  margin-top: 12px;
}
@media (prefers-reduced-motion: reduce) { .form__done .tick { animation: none; stroke-dashoffset: 0; } }

/* ----------------------------------------------------------
   19. Page du bien
   ---------------------------------------------------------- */
.demo-ribbon {
  background: var(--noir);
  color: var(--porcelain);
}
.demo-ribbon .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
}
.demo-ribbon__txt { font-size: 13px; }
.demo-ribbon__txt em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15em;
  color: var(--stone-dark);
}
.demo-ribbon .rb {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(169, 197, 229, 0.35);
  flex-shrink: 0;
}
.demo-ribbon .rb:hover { text-decoration-color: var(--accent-on-dark); }

.estate-brand { display: inline-flex; flex-direction: column; line-height: 1.2; }
.estate-brand .m {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  color: var(--ink);
}
.estate-brand .s {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Entête d'annonce */
.listing-head { padding: clamp(36px, 5vw, 56px) 0 26px; }
.listing-head .kicker { margin-bottom: 14px; }
.listing-head h1 {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.06;
  max-width: 22ch;
}
.listing-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}
.listing-head__facts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--body-c);
}
.listing-head__facts .sep { color: var(--muted-soft); }
.listing-head__facts .fav {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.listing-head__actions { display: flex; gap: 8px; }

/* Mosaïque photos */
.photo-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 2 / 0.9;
  box-shadow: var(--shadow-media);
}
.photo-mosaic a, .photo-mosaic__track > div { position: relative; overflow: hidden; }
/* Le wrapper de balayage n'existe qu'en mobile ; en desktop il s'efface de la grille */
.photo-mosaic__track { display: contents; }
.photo-mosaic .main { grid-row: 1 / 3; }
.photo-mosaic a.photo-mosaic__all { position: absolute; overflow: visible; }
.photo-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .2s ease;
}
.photo-mosaic a:hover img { filter: brightness(0.94); }
.photo-mosaic__all {
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(250, 250, 248, 0.96);
  color: var(--ink);
  border-radius: var(--r-xs);
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.photo-mosaic__all:hover { background: var(--canvas); }
.photo-mosaic__all svg { width: 13px; height: 13px; }
.photo-mosaic__count { display: none; }

/* Corps deux colonnes */
.listing-body {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(310px, 1fr);
  gap: clamp(40px, 5.5vw, 76px);
  align-items: start;
  padding: clamp(36px, 5vw, 60px) 0 var(--sect);
}
.listing-col > .block { padding: 32px 0; }
.listing-col > .block + .block { border-top: 1px solid var(--hairline); }
.listing-col > .block:first-child { padding-top: 0; }
.block h2 { margin-bottom: 14px; }
.block .kicker { margin-bottom: 10px; }

.listing-rail {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

/* Hôte / cabinet */
.host {
  display: flex;
  align-items: center;
  gap: 15px;
}
.host__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--noir);
  color: var(--porcelain);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  font-weight: 600;
  flex-shrink: 0;
}
.host__name { font-size: 16.5px; font-weight: 600; }
.host__sub { font-size: 14px; color: var(--muted); margin-top: 1px; }

/* Citation du bien */
.listing-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.25;
  color: var(--ink);
  max-width: 28ch;
}

/* Galerie clavier */
.kb-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.kb-hint .key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-xs);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
}
.kb-hint--touch { display: none; }

.kb-gallery { margin-top: 20px; }
.kb-gallery__stage {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--stone);
  box-shadow: var(--shadow-media);
  aspect-ratio: 16 / 10;
}
.kb-gallery__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .16s ease;
}
.kb-gallery__stage.is-fading img { opacity: 0; }

.kb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(250, 250, 248, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background-color .15s ease;
}
.kb-arrow:hover { background: var(--canvas); }
.kb-arrow:active { transform: translateY(-50%) scale(0.92); }
.kb-arrow--prev { left: 16px; }
.kb-arrow--next { right: 16px; }
.kb-arrow svg { width: 16px; height: 16px; }

.kb-gallery__bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 4px 10px;
}
.kb-gallery__room {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  font-weight: 500;
}
.kb-gallery__count { font-size: 14px; color: var(--muted); }
.kb-gallery__count strong { color: var(--ink); font-weight: 600; }

.kb-progress {
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--hairline);
  overflow: hidden;
}
.kb-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-pill);
  transition: width .25s ease;
}

/* Lecteurs de visite */
.tour-player { aspect-ratio: 16 / 9; }
.tour-player video { width: 100%; height: 100%; object-fit: cover; }
.tour-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.tour-grid .cap {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}
.tour-grid .cap em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15em;
  color: var(--ink);
}

/* ----------------------------------------------------------
   19 bis. Visionneuse plein écran
   ---------------------------------------------------------- */
dialog.viewer {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; border: 0; padding: 0;
  background: var(--noir);
  color: var(--porcelain);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease,
              display .3s allow-discrete, overlay .3s allow-discrete;
}
dialog.viewer[open] { display: flex; flex-direction: column; opacity: 1; }
@starting-style { dialog.viewer[open] { opacity: 0; } }
dialog.viewer::backdrop { background: #000; }

.viewer__track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;              /* l'horizontal au scroll natif, le vertical au glisser-fermer */
}
.viewer__track::-webkit-scrollbar { display: none; }
.viewer__track figure {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;         /* une photo par geste — le feel iOS Photos */
  margin: 0;
  display: flex; align-items: center; justify-content: center;
  padding-top: env(safe-area-inset-top);
  min-width: 0;
}
.viewer__track img { width: 100%; height: 100%; object-fit: contain; }

.viewer__close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 16px;
  z-index: 2;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--noir-hairline);
  border-radius: var(--r-pill);
  background: rgba(15, 14, 11, 0.55);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--porcelain);
}
.viewer__bar {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
}
.viewer__room { font-family: var(--serif); font-style: italic; font-size: 19px; font-weight: 500; }
.viewer__count { font-size: 13px; color: var(--stone-dark); font-variant-numeric: tabular-nums; }
.viewer__count strong { color: var(--porcelain); font-weight: 600; }

/* ----------------------------------------------------------
   20. Footer — pierre
   ---------------------------------------------------------- */
.footer {
  background: var(--stone);
  padding: clamp(56px, 7vw, 88px) 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px 28px;
  padding-bottom: 56px;
}
.footer__brand img { height: 34px; width: auto; }
.footer__motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: var(--body-c);
  margin-top: 14px;
  max-width: 24ch;
}
.footer h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer ul a, .footer ul button, .footer ul span {
  font-size: 14.5px;
  color: var(--body-c);
  text-align: left;
}
.footer ul a:hover, .footer ul button:hover { color: var(--ink); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid var(--hairline-strong);
  padding: 22px 0 26px;
  font-size: 13px;
  color: var(--muted);
}
.footer__bottom a { color: var(--accent); font-weight: 500; }

/* ----------------------------------------------------------
   21. Dialog mentions légales
   ---------------------------------------------------------- */
dialog.legal {
  width: min(680px, calc(100% - 32px));
  max-height: 82vh;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--canvas);
  padding: 36px;
  color: var(--body-c);
  font-size: 14.5px;
  line-height: 1.6;
}
dialog.legal::backdrop { background: rgba(15, 14, 11, 0.55); }
dialog.legal h3 {
  font-size: 30px;
  margin-bottom: 16px;
  color: var(--ink);
}
dialog.legal p { margin-bottom: 12px; }
dialog.legal strong { color: var(--ink); }
dialog.legal a { color: var(--accent); text-decoration: underline; }
dialog.legal .close {
  position: sticky;
  top: 0;
  float: right;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--stone);
  border-radius: var(--r-pill);
  padding: 8px 15px;
}

/* Bottom sheet mobile — la feuille glisse depuis le bas (courbe iOS) */
.legal__grab { display: none; }

@media (max-width: 743px) {
  dialog.legal {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    max-height: 88dvh;
    margin: 0;
    border-radius: 20px 20px 0 0;
    padding: 10px 22px calc(24px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    transition: translate .45s cubic-bezier(0.32, 0.72, 0, 1),
                transform .3s ease,
                display .45s allow-discrete, overlay .45s allow-discrete;
    translate: 0 100%;
  }
  dialog.legal[open] { translate: 0 0; }
  @starting-style { dialog.legal[open] { translate: 0 100%; } }
  .legal__grab {
    display: block;
    width: 36px; height: 4px;
    border-radius: 2px;
    margin: 0 auto 12px;
    background: var(--hairline-strong);
    touch-action: none;
  }
  dialog.legal::backdrop { background: rgba(15, 14, 11, 0.55); }
  @media (prefers-reduced-motion: reduce) { dialog.legal { transition: none; } }
}

/* ----------------------------------------------------------
   22. Barre mobile givrée
   ---------------------------------------------------------- */
.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(250, 250, 248, 0.9);
  -webkit-backdrop-filter: var(--blur-frosted);
  backdrop-filter: var(--blur-frosted);
  border-top: 1px solid var(--hairline);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .25s ease;
}
.cta-bar.is-on { transform: translateY(0); }
.cta-bar__txt {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cta-bar__txt .s { color: var(--muted); font-weight: 400; }
.cta-bar .btn { flex-shrink: 0; min-height: 48px; padding: 10px 20px; font-size: 14px; }

/* ----------------------------------------------------------
   23. Révélations
   ---------------------------------------------------------- */

/* Les pages se fondent au lieu de flasher (Chrome 126+, Safari 18.2+ ; sinon navigation normale) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0s),
              transform .6s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (hover: none) {
  .btn:active { transform: scale(0.97); }
}

/* ----------------------------------------------------------
   24. Responsive
   ---------------------------------------------------------- */

/* Tablette */
@media (max-width: 1128px) {
  .refs, .cards, .pricing, .principles { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .folio { gap: 32px; }
  .listing-body { grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr); }
}

/* Mobile */
@media (max-width: 743px) {
  :root { --nav-h: 52px; --sect: clamp(56px, 10vw, 76px); }
  .wrap, .wrap--wide { width: calc(100% - 32px); }

  .topbar .wrap { min-height: 36px; }
  .topbar__note { font-size: 12px; }
  .country__btn span { display: none; }

  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__brand-word { font-size: 16px; }

  h1, .h-hero { font-size: clamp(38px, 11vw, 46px); }
  h2, .h-tile { font-size: clamp(30px, 8.5vw, 36px); }

  .hero { padding: 44px 0 56px; }

  /* Le film au fold : head → cinema → actions (ordre DOM) */
  .hero__head { order: 1; }
  .hero__cinema { order: 2; }
  .hero__actions { order: 3; }
  .hero .cinema { margin-top: 30px; }
  .hero__actions { margin-top: 32px; }
  .hero__actions .hero__links { margin-top: 22px; }

  .hero .kicker { font-size: 10.5px; letter-spacing: 0.14em; }
  .hero .lead { font-size: 17px; line-height: 1.5; }

  /* La pilule devient une carte d'offre empilée — 3 segments, rien de tronqué */
  .offer-pill {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0 10px;
    border-radius: var(--r-lg);       /* carte, pas stade : 14 px */
    min-height: 0;
    padding: 7px 14px 7px 8px;
    margin-top: 0;                    /* l'espacement vient du wrap .hero__actions */
  }
  .offer-seg { grid-column: 1; padding: 11px 12px; }
  .offer-seg:nth-child(3) { display: flex; }          /* ré-affiché */
  .offer-seg + .offer-seg::before {                    /* hairline horizontale */
    left: 12px; right: 12px; top: 0; bottom: auto;
    width: auto; height: 1px;
  }
  .offer-seg .v {
    white-space: normal; overflow: visible; text-overflow: clip;
    font-size: 15px; line-height: 1.35;
  }
  .offer-orb { grid-column: 2; grid-row: 1 / span 3; width: 48px; height: 48px; }

  /* Bande de preuves : 3 chiffres, une ligne */
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .stat { flex: none; padding: 0 10px; }
  .stat + .stat { border-left: 1px solid var(--hairline) !important; }
  .stat__num { font-size: 28px; }
  .stat__num .u { font-size: 21px; }
  .stat__num sup { font-size: 14px; }
  .stat__label { font-size: 10px; letter-spacing: 0.1em; margin-top: 6px; }

  /* L'écran passe bord à bord, au format réel des films */
  .hero .screen {
    aspect-ratio: 4 / 3;          /* plus grand, rien d'amputé */
    border-radius: 0;
    margin-inline: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
  }
  /* Tous les cadres de films 4:3 cessent d'amputer l'image (B3) */
  .tour-player, .tile--noir .screen { aspect-ratio: 4 / 3; }

  /* Le bas de page ne coûte rien au premier rendu */
  .cv-auto { content-visibility: auto; contain-intrinsic-size: auto 720px; }

  /* Chips : une ligne balayable, pas d'empilement */
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -16px;
    padding-inline: 16px;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .slate { flex-wrap: wrap; gap: 10px; }
  .slate__txt { display: none; }

  /* Cibles tactiles (corrige B9) */
  .slate__btn { min-height: 44px; padding: 9px 16px; }
  .country__btn { min-height: 44px; padding: 6px 8px; }

  .principles { grid-template-columns: 1fr; gap: 28px; }
  .cards, .pricing, .tour-grid { grid-template-columns: 1fr; }

  .folio {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }
  .folio--flip > .folio__media { order: -1; }

  /* Références : rail balayable */
  .refs {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 16px 20px;
    margin-inline: -16px;
    scrollbar-width: none;
  }
  .refs::-webkit-scrollbar { display: none; }
  .refs .card {
    flex: 0 0 76%;
    scroll-snap-align: start;
  }
  .rail-progress {
    display: block;
    height: 2px;
    border-radius: var(--r-pill);
    background: var(--hairline);
    overflow: hidden;
  }
  .rail-progress span {
    display: block;
    height: 100%;
    width: 12%;
    background: var(--accent);
    border-radius: var(--r-pill);
    transition: width .2s ease;
  }

  .quote-band blockquote { font-size: clamp(28px, 9vw, 36px); }

  .volume-strip { flex-direction: column; align-items: flex-start; }
  .volume-strip .btn { width: 100%; }

  /* Avant/après en 4:3 — plus grand, poignée 44 px loin des bords */
  .ba { aspect-ratio: 4 / 3; }
  .ba__knob { width: 44px; height: 44px; }

  /* Carte vedette en premier (78 % des SaaS mobiles — CXL) */
  .price-card--feature { order: -1; }

  .form__row { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; padding-bottom: 96px; }

  .cta-bar { display: flex; }

  /* Page bien */
  .listing-head h1 { font-size: clamp(32px, 9vw, 38px); }
  .listing-head__actions { display: none; }
  /* La mosaïque devient un carrousel — une photo par geste, compteur de bobine */
  .photo-mosaic {
    display: block;
    aspect-ratio: auto;
    border-radius: var(--r-md);
  }
  .photo-mosaic__track {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 4px;
  }
  .photo-mosaic__track::-webkit-scrollbar { display: none; }
  .photo-mosaic__track a,
  .photo-mosaic__track > div { display: block; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
  .photo-mosaic img { aspect-ratio: 4 / 3; }
  .photo-mosaic__count {
    display: inline-flex;
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(15, 14, 11, 0.55);
    color: var(--porcelain);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    border-radius: var(--r-xs);
    padding: 6px 10px;
    pointer-events: none;
  }
  .photo-mosaic__all { position: absolute; right: 12px; bottom: 12px; }
  .listing-body { grid-template-columns: 1fr; gap: 0; }
  .listing-rail { position: static; margin-top: 32px; }
  .kb-hint { display: none; }
  .kb-hint--touch { display: inline-flex; }
  .kb-arrow { display: none; }
  .demo-ribbon .wrap { flex-direction: row; gap: 12px; text-align: left; padding: 9px 0; }
  .demo-ribbon__ext { display: none; }
  .demo-ribbon__txt { font-size: 12px; }
}
