/* ══════════════════════════════════════════════════════════════════════════
   Prépa Excelys — brand layer, layout, components, motion.
   Built on top of classical.css. Every value comes from a token.
   ══════════════════════════════════════════════════════════════════════════ */

/* ─── 1. Brand tokens ─────────────────────────────────────────────────── */

:root {
  /* Maison colours */
  --ink:       #04231b;
  --ink-deep:  #021610;
  --emerald:   #0a5a44;
  --emerald-l: #16785c;
  --gold:      #b68235;
  --gold-l:    #dcb06a;
  --gold-pale: #ecd6ab;
  --cream:     #f4f1e9;

  /* Spacing rhythm — 8pt scale, tuned airy (density 1.15×) */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 96px;  --sp-10: 128px;

  /* Fluid section rhythm */
  --section-y:   clamp(56px, 8vw, 116px);
  --section-y-s: clamp(40px, 6vw, 80px);
  --gutter:      clamp(20px, 5vw, 56px);
  --container:   1240px;
  --measure:     68ch;

  /* Fluid type scale */
  --fs-display: clamp(40px, 6.6vw, 86px);
  --fs-h1:      clamp(34px, 5.2vw, 66px);
  --fs-h2:      clamp(28px, 4vw, 50px);
  --fs-h3:      clamp(22px, 2.6vw, 32px);
  --fs-h4:      clamp(19px, 2vw, 24px);
  --fs-lead:    clamp(16px, 1.35vw, 18px);
  --fs-body:    16px;
  --fs-sm:      14px;
  --fs-xs:      12.5px;
  --fs-kicker:  11.5px;

  /* Motion tokens — one rhythm for the whole site */
  --dur-fast:  160ms;
  --dur-base:  240ms;
  --dur-slow:  420ms;
  --dur-reveal: 720ms;
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:   cubic-bezier(0.55, 0, 1, 0.45);
  --ease-spring: cubic-bezier(0.34, 1.36, 0.44, 1);

  /* Layering */
  --z-base: 1;  --z-sticky: 30;  --z-header: 40;  --z-drawer: 60;  --z-top: 100;

  --header-h: 76px;
}

/* ─── 2. Base ─────────────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1 em, h2 em, h3 em, blockquote em { font-style: italic; }
a:hover { color: var(--color-accent-600); }

/* The UA rule for [hidden] is only `display: none` at the lowest specificity,
   so any author `display` (flex, grid…) silently defeats it and the element
   stays on screen. Anything toggled with the hidden attribute must obey it. */
[hidden] { display: none !important; }

/* Figures set tabular wherever they stand as data */
.tnum, .price, .table, .stat-value { font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; }

/* ─── 3. Utilities ────────────────────────────────────────────────────── */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 940px; }
.section { padding-block: var(--section-y); }
.section-s { padding-block: var(--section-y-s); }
.section-t0 { padding-top: 0; }
.section-b0 { padding-bottom: 0; }
.rule-top { border-top: 1px solid var(--color-divider); }
.rule-bottom { border-bottom: 1px solid var(--color-divider); }
.measure { max-width: var(--measure); }
.justify { text-align: justify; hyphens: auto; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 8px; translate: -50% -200%;
  z-index: var(--z-top); padding: 12px 20px;
  background: var(--ink); color: var(--cream); border: 1px solid var(--gold-l);
  border-radius: var(--radius-md); font-family: var(--font-heading);
  font-size: var(--fs-sm); letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; transition: translate var(--dur-base) var(--ease-out);
}
.skip-link:focus-visible { translate: -50% 0; }

/* Ink surfaces — remap the palette so DS components keep working on dark */
.on-ink {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--cream);
  --color-text: #f4f1e9;
  --color-bg: var(--ink);
  --color-accent: var(--gold-l);
  --color-accent-600: var(--gold-pale);
  --color-accent-700: var(--gold-l);
  --color-accent-400: var(--gold-l);
  --color-divider: color-mix(in srgb, #f4f1e9 22%, transparent);
}
/* The emerald wash + paper grain that give the ink its depth */
.on-ink::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(115% 85% at 8% 0%, color-mix(in srgb, var(--emerald) 72%, transparent) 0%, transparent 62%),
    radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--emerald-l) 30%, transparent) 0%, transparent 60%);
}
.on-ink::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.on-ink > * { position: relative; z-index: 1; }

/* The gold hairline frame that marks the maison's key surfaces */
.gold-frame::before {
  content: ''; position: absolute; inset: clamp(9px, 1.4vw, 20px);
  border: 1px solid color-mix(in srgb, var(--gold-l) 32%, transparent);
  pointer-events: none; z-index: 2;
}

/* The ghost monogram: the real mark, watermarked into the ink surfaces */
.ghost-mark {
  position: absolute; pointer-events: none; user-select: none; z-index: 0;
  right: -4%; bottom: -22%;
  width: clamp(230px, 32vw, 500px); aspect-ratio: 240 / 198;
  background: url('../img/logo-monogram.png') center / contain no-repeat;
  opacity: 0.075;
  overflow: hidden; text-indent: 120%; white-space: nowrap;
}
.ghost-mark--center { left: 50%; right: auto; top: 2%; bottom: auto; translate: -50% 0; }

/* ─── 4. Editorial marks ──────────────────────────────────────────────── */

/* Section eyebrow: "I · Le Socle ————————— Inclus dans chaque formule" */
.eyebrow {
  display: flex; align-items: baseline; gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  font-family: var(--font-heading); font-size: var(--fs-kicker);
  letter-spacing: 0.24em; text-transform: uppercase;
}
.eyebrow__lead { color: var(--emerald); white-space: nowrap; font-feature-settings: 'tnum'; }
.on-ink .eyebrow__lead { color: var(--gold-l); }
.eyebrow__rule { flex: 1; height: 1px; background: var(--color-divider); }
.eyebrow__tail {
  color: color-mix(in srgb, var(--color-text) 45%, transparent);
  letter-spacing: 0.2em; white-space: nowrap;
}
@media (max-width: 640px) { .eyebrow__tail { display: none; } }

.kicker {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-heading); font-size: var(--fs-kicker);
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--emerald);
}
.on-ink .kicker { color: var(--gold-l); }

.rule-mark { display: flex; align-items: center; gap: 14px; margin-bottom: var(--sp-6); }
.rule-mark__line { width: 40px; height: 1px; background: var(--gold-l); flex: none; }
.rule-mark__text {
  font-family: var(--font-heading); font-size: 11px;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-l);
}

.display { font-family: var(--font-heading); font-weight: 400; letter-spacing: -0.028em; line-height: 1.0; margin: 0; }
.h1 { font-family: var(--font-heading); font-weight: 400; font-size: var(--fs-h1); line-height: 1.03; letter-spacing: -0.025em; margin: 0; }
.h2 { font-family: var(--font-heading); font-weight: 400; font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.022em; margin: 0; }
.h3 { font-family: var(--font-heading); font-weight: 400; font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
.h4 { font-family: var(--font-heading); font-weight: 400; font-size: var(--fs-h4); line-height: 1.18; margin: 0; }

.lead {
  font-size: var(--fs-lead); line-height: 1.8;
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
}
.body-text { font-size: var(--fs-body); line-height: 1.8; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.small-text { font-size: var(--fs-sm); line-height: 1.7; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.fine-print { font-size: var(--fs-xs); line-height: 1.72; color: color-mix(in srgb, var(--color-text) 62%, transparent); }

.diamond { color: var(--gold); }
.diamond--off { color: color-mix(in srgb, var(--color-text) 28%, transparent); }

/* ─── 5. Header ───────────────────────────────────────────────────────── */

.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid color-mix(in srgb, var(--emerald) 24%, transparent);
  transition: box-shadow var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out);
}
.header[data-scrolled='true'] {
  box-shadow: 0 1px 24px color-mix(in srgb, var(--ink) 10%, transparent);
  background: color-mix(in srgb, var(--color-bg) 96%, transparent);
}
/* Reading progress — a gold hairline along the header's foot */
.header__progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  transform: scaleX(var(--progress, 0)); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--emerald), var(--gold), var(--gold-l));
  will-change: transform;
}

.header__inner {
  display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px);
  max-width: var(--container); margin-inline: auto;
  padding: 14px var(--gutter);
  min-height: var(--header-h);
}

/* Brand marks. Both are gold artwork on transparency, so one set of files
   serves the cream header and the ink footer/drawer without a second
   colourway. The two marks are never shown together: each placement uses
   whichever one suits its shape and the room available.
     · wordmark  — wide surfaces that should state the name (header, drawer, footer)
     · monogram  — tight or square surfaces (mobile header, hero seal, favicon) */
.brand {
  display: flex; align-items: center; margin-right: auto;
  flex-shrink: 0;
  text-decoration: none; color: inherit;
  transition: opacity var(--dur-base) var(--ease-out);
}
.brand:hover { opacity: 0.78; }
.brand__mark, .brand__logo { display: block; flex: none; width: auto; }

/* Default: the wordmark speaks, the monogram stands down. */
.brand__mark { display: none; height: 34px; }
.brand__logo { height: 46px; }

/* Header below the desktop breakpoint: the burger takes the width, so the
   compact monogram replaces the wordmark. */
@media (max-width: 1280px) {
  .header .brand__mark { display: block; }
  .header .brand__logo { display: none; }
}
@media (max-width: 420px) {
  .header .brand__mark { height: 30px; }
}

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav-link {
  position: relative; color: inherit; text-decoration: none;
  font-family: var(--font-heading); font-size: var(--fs-xs);
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 2px; white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current='page'] { color: var(--color-accent-700); }
.nav-link:hover::after, .nav-link[aria-current='page']::after { transform: scaleX(1); transform-origin: 0 50%; }

.nav-cta {
  flex: none;
  font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 11px 18px; white-space: nowrap; min-height: 44px;
  color: var(--emerald); border-color: var(--emerald);
}
.nav-cta:hover { background: color-mix(in srgb, var(--emerald) 10%, transparent); color: var(--emerald); }

/* Burger */
.burger {
  display: none; width: 44px; height: 44px; flex: none;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--color-divider);
  border-radius: var(--radius-md); cursor: pointer; color: inherit;
}
.burger:hover { background: color-mix(in srgb, var(--color-text) 6%, transparent); }
.burger__box { position: relative; width: 20px; height: 12px; }
.burger__bar {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) linear;
}
.burger__bar:nth-child(1) { top: 0; }
.burger__bar:nth-child(2) { top: 50%; translate: 0 -50%; }
.burger__bar:nth-child(3) { bottom: 0; }
.burger[aria-expanded='true'] .burger__bar:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] .burger__bar:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

/* Drawer */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  display: grid; grid-template-rows: auto 1fr;
  background: var(--ink); color: var(--cream);
  --color-text: #f4f1e9; --color-accent: var(--gold-l);
  --color-divider: color-mix(in srgb, #f4f1e9 20%, transparent);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.drawer[data-open='true'] { opacity: 1; visibility: visible; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter); min-height: var(--header-h);
  border-bottom: 1px solid var(--color-divider);
}
.drawer__close {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--color-divider);
  border-radius: var(--radius-md); color: inherit; cursor: pointer; font-size: 20px;
  font-family: var(--font-heading); line-height: 1;
}
.drawer__close:hover { background: color-mix(in srgb, var(--cream) 10%, transparent); }
.drawer__body {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--sp-6) var(--gutter) var(--sp-8);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer__link {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0; min-height: 56px;
  border-bottom: 1px solid var(--color-divider);
  color: var(--cream); text-decoration: none;
  font-family: var(--font-heading); font-size: clamp(24px, 6vw, 32px);
  font-weight: 400; letter-spacing: -0.015em;
  opacity: 0; translate: 0 14px;
}
.drawer[data-open='true'] .drawer__link {
  animation: drawerIn var(--dur-slow) var(--ease-out) forwards;
  animation-delay: calc(60ms + var(--i, 0) * 45ms);
}
.drawer__link[aria-current='page'] { color: var(--gold-l); }
.drawer__num {
  font-size: 12px; letter-spacing: 0.2em; color: var(--gold-l);
  font-feature-settings: 'tnum'; flex: none;
}
.drawer__cta {
  margin-top: var(--sp-6); align-self: flex-start;
  color: var(--gold-l); border-color: var(--gold-l);
  font-size: var(--fs-sm); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 26px; min-height: 48px;
  opacity: 0; translate: 0 14px;
}
.drawer[data-open='true'] .drawer__cta {
  animation: drawerIn var(--dur-slow) var(--ease-out) forwards; animation-delay: 420ms;
}
.drawer__foot {
  margin-top: auto; padding-top: var(--sp-6);
  font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 50%, transparent);
}
@keyframes drawerIn { to { opacity: 1; translate: 0 0; } }

body[data-drawer-open='true'] { overflow: hidden; }

@media (max-width: 1280px) {
  .nav-links, .header .nav-cta { display: none; }
  .burger { display: inline-flex; }
}
@media (min-width: 1281px) { .drawer { display: none; } }

/* ─── 6. Hero ─────────────────────────────────────────────────────────── */

.hero { position: relative; }
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--container); margin-inline: auto;
  padding: clamp(30px, 3.6vw, 48px) clamp(30px, 6vw, 74px);
}
.hero__grid {
  display: grid; gap: clamp(34px, 5vw, 76px); align-items: center;
  grid-template-columns: 1.05fr 0.95fr;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__title {
  font-family: var(--font-heading); font-weight: 400;
  font-size: var(--fs-display); line-height: 1.0; letter-spacing: -0.028em;
  margin: 0 0 var(--sp-5); color: var(--cream); text-wrap: balance;
}
.hero__title em { color: var(--gold-l); }
.hero__lead {
  font-size: clamp(16px, 1.4vw, 17.5px); line-height: 1.8; max-width: 50ch;
  margin: 0; text-wrap: pretty;
  color: color-mix(in srgb, var(--cream) 82%, transparent);
}
.hero__divider {
  display: flex; align-items: center; gap: 14px; margin: var(--sp-6) 0;
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 62%, transparent);
}
.hero__divider span:first-child, .hero__divider span:last-child {
  flex: 1; height: 1px; background: color-mix(in srgb, var(--cream) 22%, transparent);
}
.hero__divider em { font-style: normal; color: var(--gold-l); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note {
  margin: var(--sp-5) 0 0; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 52%, transparent); font-feature-settings: 'tnum';
}
.hero__media { position: relative; }
.hero__seal {
  position: absolute; left: -10px; bottom: -16px; z-index: 2;
  display: grid; place-items: center; width: 74px; height: 74px;
  border: 1px solid var(--gold-l); background: var(--ink);
}
.hero__seal img { width: 58%; height: auto; }
@media (max-width: 560px) { .hero__seal { width: 58px; height: 58px; left: -6px; bottom: -12px; } }

.btn-gold { color: var(--gold-l); border-color: var(--gold-l); }
.btn-gold:hover { background: color-mix(in srgb, var(--gold-l) 14%, transparent); color: var(--gold-pale); }
.btn-cream { color: var(--cream); border-color: color-mix(in srgb, var(--cream) 34%, transparent); }
.btn-cream:hover { background: color-mix(in srgb, var(--cream) 10%, transparent); color: var(--cream); }
.btn-emerald { color: var(--emerald); border-color: var(--emerald); }
.btn-emerald:hover { background: color-mix(in srgb, var(--emerald) 10%, transparent); color: var(--emerald); }
.btn-lg {
  font-size: var(--fs-sm); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 26px; min-height: 48px;
}
.btn-sm {
  font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 11px 20px; min-height: 44px; white-space: nowrap;
}
/* On a narrow screen a nowrap label overruns the gutter and gets clipped by
   body{overflow-x:hidden}. Let long labels wrap rather than lose their tail. */
@media (max-width: 640px) {
  .btn-sm, .btn-lg { white-space: normal; text-align: center; }
  .btn { max-width: 100%; }
}

/* ─── 7. Plates (photographs) ─────────────────────────────────────────── */

.plate {
  position: relative; overflow: hidden; background: var(--color-surface);
  transition: filter var(--dur-slow) var(--ease-out);
}
.plate img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.1s var(--ease-out), opacity var(--dur-slow) linear;
}
.plate:hover img { transform: scale(1.035); }
.plate--parallax img { will-change: transform; }
.plate figcaption {
  position: absolute; inset: auto 0 0 0; padding: 10px 12px;
  background: linear-gradient(transparent, color-mix(in srgb, var(--ink) 78%, transparent));
  color: var(--cream); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  margin: 0;
}
.plate--ink { border-color: color-mix(in srgb, var(--cream) 90%, transparent); outline-color: color-mix(in srgb, var(--gold-l) 45%, transparent); }
.plate--hero { aspect-ratio: 4/5; max-height: 560px; width: 100%; }
.plate--4x3 { aspect-ratio: 4/3; width: 100%; }
.plate--3x2 { aspect-ratio: 3/2; width: 100%; }
.plate--wide { aspect-ratio: 21/8; max-height: 420px; width: 100%; }
@media (max-width: 700px) { .plate--wide { aspect-ratio: 16/10; } }

/* image fades in once decoded — avoids a hard pop */
.plate img[data-loaded='false'] { opacity: 0; }

/* ─── 8. Feature bar ──────────────────────────────────────────────────── */

.feature-bar {
  background: color-mix(in srgb, var(--emerald) 6%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--emerald) 22%, transparent);
}
.feature-bar__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.feature-bar__item { padding: clamp(30px, 4vw, 52px) clamp(8px, 2vw, 28px); }
.feature-bar__item + .feature-bar__item { border-left: 1px solid var(--color-divider); }
@media (max-width: 760px) {
  .feature-bar__item + .feature-bar__item { border-left: 0; border-top: 1px solid var(--color-divider); }
  .feature-bar__item { padding-inline: 0; }
}
.feature-bar__title {
  margin: 0 0 6px; font-family: var(--font-heading); font-size: var(--fs-xs);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--emerald);
  font-feature-settings: 'tnum';
}

/* ─── 9. Numbered list (the socle) ────────────────────────────────────── */

.numbered { display: grid; }
.numbered__row {
  display: grid; grid-template-columns: 44px 1fr; gap: clamp(14px, 2vw, 26px);
  align-items: baseline; padding: clamp(16px, 2vw, 22px) 0;
  border-top: 1px solid var(--color-divider);
  transition: background-color var(--dur-base) var(--ease-out), padding-left var(--dur-base) var(--ease-out);
}
.numbered__row:last-child { border-bottom: 1px solid var(--color-divider); }
.numbered__row:hover { background: color-mix(in srgb, var(--emerald) 4%, transparent); padding-left: 8px; }
.numbered__num {
  font-family: var(--font-heading); font-size: var(--fs-sm); letter-spacing: 0.1em;
  color: var(--gold); font-feature-settings: 'tnum';
}
.numbered__title { margin: 0 0 4px; font-size: var(--fs-h4); font-weight: 400; line-height: 1.15; font-family: var(--font-heading); }
.numbered__body { margin: 0; font-size: var(--fs-sm); line-height: 1.68; color: color-mix(in srgb, var(--color-text) 68%, transparent); }
.numbered--lg .numbered__row { grid-template-columns: 76px 1fr; }
.numbered--lg .numbered__num { font-size: clamp(26px, 3vw, 36px); line-height: 1; }
@media (max-width: 480px) {
  .numbered__row, .numbered--lg .numbered__row { grid-template-columns: 34px 1fr; gap: 12px; }
  .numbered--lg .numbered__num { font-size: 22px; }
}

/* The method's wide two-column definition rows */
.def-row {
  display: grid; grid-template-columns: minmax(240px, 0.85fr) 1.15fr;
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(26px, 4vw, 44px) 0; border-bottom: 1px solid var(--color-divider);
}
.def-row:first-child { border-top: 1px solid var(--color-divider); }
@media (max-width: 820px) { .def-row { grid-template-columns: 1fr; gap: var(--sp-4); } }
.def-row__head { display: flex; align-items: baseline; gap: 18px; }
.def-row__num { font-family: var(--font-heading); font-size: 15px; letter-spacing: 0.12em; color: var(--gold); font-feature-settings: 'tnum'; }

/* ─── 10. Pricing (formules) ──────────────────────────────────────────── */

.formules {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 26px); align-items: stretch;
}
@media (max-width: 980px) { .formules { grid-template-columns: 1fr; } }

.formule {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  padding: clamp(30px, 3.2vw, 44px) clamp(24px, 2.4vw, 34px) clamp(28px, 3vw, 38px);
  background: #fbfaf7;
  border: 1px solid color-mix(in srgb, var(--emerald) 20%, transparent);
  border-radius: 8px;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent);
  transition: transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out),
              border-color var(--dur-slow) var(--ease-out);
}
/* Emerald hairline crown */
.formule::after {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--emerald-l));
  opacity: 0.85;
}
.formule:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--emerald) 46%, transparent);
  box-shadow: 0 22px 48px -20px color-mix(in srgb, var(--emerald) 42%, transparent);
}
@media (prefers-reduced-motion: reduce) { .formule:hover { transform: none; } }
/* Spotlight — an emerald halo tracking the pointer */
.formule::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
              color-mix(in srgb, var(--emerald) 12%, transparent), transparent 68%);
  transition: opacity var(--dur-slow) var(--ease-out);
}
.formule:hover::before { opacity: 1; }
.formule__ord {
  position: absolute; top: clamp(14px, 1.6vw, 22px); right: clamp(16px, 1.8vw, 26px);
  font-family: var(--font-heading); font-size: clamp(58px, 6vw, 92px); line-height: 0.8;
  color: color-mix(in srgb, var(--emerald) 11%, transparent);
  pointer-events: none; font-feature-settings: 'tnum'; z-index: -1;
}
.formule__label {
  margin: 0 0 var(--sp-3); font-family: var(--font-heading); font-size: 11px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: color-mix(in srgb, var(--emerald) 70%, transparent); font-feature-settings: 'tnum';
}
.formule__name { margin: 0 0 var(--sp-3); font-size: clamp(30px, 3.4vw, 40px); font-weight: 400; line-height: 1; font-family: var(--font-heading); color: var(--ink); }
.formule__pitch { margin: 0 0 var(--sp-5); font-size: 14.5px; line-height: 1.6; max-width: 32ch; color: color-mix(in srgb, var(--color-text) 74%, transparent); }
.formule__pricing {
  margin: 0 0 var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid color-mix(in srgb, var(--emerald) 22%, transparent);
}
.formule__price {
  margin: 0; font-family: var(--font-heading); font-size: clamp(38px, 4.2vw, 50px); line-height: 1;
  color: var(--emerald); font-feature-settings: 'tnum';
}
.formule__price small {
  font-size: var(--fs-xs); font-family: var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 52%, transparent);
}
.formule__alt { margin: 8px 0 0; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 60%, transparent); font-feature-settings: 'tnum'; }
.formule__base {
  margin: 0 0 var(--sp-3); font-size: 13px; letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--color-text) 58%, transparent); font-style: italic;
}
.formule__feats {
  list-style: none; margin: 0 0 var(--sp-5); padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.formule__feats li {
  position: relative; padding-left: 26px;
  font-size: 14px; line-height: 1.5; color: color-mix(in srgb, var(--color-text) 82%, transparent);
}
.formule__feats li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  background: color-mix(in srgb, var(--emerald) 14%, transparent);
  color: var(--emerald); font-size: 10px; font-weight: 700;
}
.formule__scope {
  margin: auto 0 0; padding-top: var(--sp-4);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--emerald);
}
.formule__cta { margin-top: var(--sp-5); }

/* Featured — the deep-emerald flagship */
.formule--featured {
  background: linear-gradient(165deg, var(--ink) 0%, var(--ink-deep) 100%);
  border-color: color-mix(in srgb, var(--gold-l) 40%, transparent);
  box-shadow: 0 26px 60px -26px color-mix(in srgb, var(--ink) 70%, transparent);
  padding-top: clamp(44px, 4.4vw, 58px);
  color: var(--cream);
}
.formule--featured::after {
  background: linear-gradient(90deg, var(--gold), var(--gold-l)); opacity: 1;
}
.formule--featured:hover {
  border-color: color-mix(in srgb, var(--gold-l) 66%, transparent);
  box-shadow: 0 30px 66px -24px color-mix(in srgb, var(--ink) 78%, transparent);
}
.formule--featured::before {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
              color-mix(in srgb, var(--gold-l) 14%, transparent), transparent 68%);
}
.formule--featured .formule__ord { color: color-mix(in srgb, var(--gold-l) 16%, transparent); }
.formule--featured .formule__label { color: var(--gold-l); }
.formule--featured .formule__name { color: var(--cream); }
.formule--featured .formule__pitch { color: color-mix(in srgb, var(--cream) 78%, transparent); }
.formule--featured .formule__pricing { border-top-color: color-mix(in srgb, var(--gold-l) 34%, transparent); }
.formule--featured .formule__price { color: var(--gold-l); }
.formule--featured .formule__price small,
.formule--featured .formule__alt { color: color-mix(in srgb, var(--cream) 62%, transparent); }
.formule--featured .formule__base { color: color-mix(in srgb, var(--cream) 66%, transparent); }
.formule--featured .formule__feats li { color: color-mix(in srgb, var(--cream) 86%, transparent); }
.formule--featured .formule__feats li::before {
  background: color-mix(in srgb, var(--gold-l) 20%, transparent); color: var(--gold-l);
}
.formule--featured .formule__scope { color: var(--gold-l); }
.formule--featured .formule__cta .btn {
  background: var(--gold-l); border-color: var(--gold-l); color: var(--ink);
}
.formule--featured .formule__cta .btn:hover {
  background: var(--gold-pale); border-color: var(--gold-pale); color: var(--ink-deep);
}

.formule__flag {
  position: absolute; top: 0; left: 0; z-index: 1;
  padding: 6px 14px 7px; background: var(--gold); color: var(--ink);
  border-bottom-right-radius: 8px;
  font-family: var(--font-heading); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
}

/* ─── 11. Comparison table ────────────────────────────────────────────── */

.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--emerald) 40%, transparent) transparent;
}
.table-scroll:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
/* No drag hint: the table never scrolls sideways at any width. Below 900px
   it becomes stacked cards, above it always fits its container. */
.table-hint { display: none; }

/* The section this table sits in is tinted, so the sticky head needs an
   opaque colour that matches it exactly — not a transparent mix. */
.compare-section { background: color-mix(in srgb, var(--emerald) 4%, var(--color-bg)); }

.compare {
  min-width: 720px; font-feature-settings: 'tnum';
  border-collapse: separate; border-spacing: 0;
}
.compare th, .compare td { padding: 15px var(--sp-4); border-bottom: 1px solid var(--color-divider); }

/* Head — the only place the gold rule and the column tints are drawn.
   NOT vertically sticky: .table-scroll is a scroll container, so a sticky
   thead would resolve its `top` against that box and slide down over row 1. */
.compare thead th {
  background: color-mix(in srgb, var(--emerald) 4%, var(--color-bg));
  vertical-align: bottom; padding-top: var(--sp-5); padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--color-divider);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  font-weight: 400;
}
/* The feature column stays put while the formule columns scroll sideways */
.compare th.compare__feature {
  position: sticky; left: 0; z-index: 3;
  background: color-mix(in srgb, var(--emerald) 4%, var(--color-bg));
}
.compare tbody tr:hover th.compare__feature { background: color-mix(in srgb, var(--emerald) 9%, var(--color-bg)); }
.compare thead .compare__col--mid { background: color-mix(in srgb, var(--emerald) 8%, var(--color-bg)); }
.compare thead .compare__col--top {
  background: color-mix(in srgb, var(--emerald) 12%, var(--color-bg));
  box-shadow: inset 0 2px 0 var(--gold);
}
.compare__name {
  display: block; margin-bottom: 5px;
  font-family: var(--font-heading); font-size: 21px; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--color-text);
}

/* Row labels are headers semantically, but they must read as body copy */
.compare tbody th {
  text-align: left; font-family: var(--font-body); font-weight: 400;
  font-size: var(--fs-sm); line-height: 1.5; letter-spacing: 0;
  text-transform: none; color: var(--color-text);
  padding-right: var(--sp-5);
}
.compare__feature { width: 46%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover th, .compare tbody tr:hover td { background-color: color-mix(in srgb, var(--emerald) 5%, transparent); }

/* Body cells — the tint is the only thing marking a column, no repeated rules */
.compare td { text-align: center; vertical-align: middle; }
.compare tbody .compare__col--mid { background: color-mix(in srgb, var(--emerald) 4%, transparent); }
.compare tbody .compare__col--top { background: color-mix(in srgb, var(--emerald) 8%, transparent); }

.compare .diamond { font-size: 12px; }
.compare .diamond--off { font-size: 11px; }
/* Cormorant sets old-style figures by default: 3, 4, 5, 7 and 9 descend below
   the baseline, so inside a fixed circle they read as sitting too low. Lining
   figures put every digit on the baseline with a common height, which is what
   a centred badge needs. */
.compare .count {
  display: inline-grid; place-items: center; width: 27px; height: 27px;
  border: 1px solid color-mix(in srgb, var(--emerald) 40%, transparent); border-radius: 50%;
  font-family: var(--font-heading); font-size: 14px; line-height: 1; color: var(--emerald);
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  font-variant-numeric: lining-nums tabular-nums;
  padding-top: 1px; /* optical: Cormorant's cap height sits slightly high in the box */
}
.compare .plus { font-family: var(--font-heading); font-size: 16px; color: var(--emerald); white-space: nowrap; }
.compare .opt-tag {
  display: inline-block; margin-left: 6px;
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 48%, transparent);
  border: 1px solid var(--color-divider); border-radius: 2px; padding: 1px 6px;
}

/* ── Comparatif en fiches sous 900px ──────────────────────────────────────
   A 4-column matrix cannot be read on a phone, and sideways scrolling hides
   two thirds of it. Each row becomes its own card: the prestation as a
   heading, the three formules side by side underneath, each naming itself
   through data-f. Pure CSS — the markup stays a single accessible table.
   The cut-off is 900px, not 860: between ~745 and 860 the container is
   narrower than the table's 720px minimum and it still scrolled sideways. */
@media (max-width: 900px) {
  .table-scroll { overflow-x: visible; }
  .compare { min-width: 0; width: 100%; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare, .compare tbody { display: block; }

  .compare tbody tr {
    display: grid; grid-template-columns: repeat(3, 1fr);
    align-items: center; gap: 0;
    padding: 12px 14px; margin-bottom: 8px;
    border: 1px solid var(--color-divider); border-radius: var(--radius-md);
    background: var(--color-bg);
  }
  .compare tbody tr:hover th, .compare tbody tr:hover td { background: transparent; }

  .compare tbody th,
  .compare tbody th.compare__feature {
    position: static; grid-column: 1 / -1;
    padding: 0 0 9px; margin-bottom: 9px;
    border-bottom: 1px solid var(--color-divider);
    background: transparent; font-size: 14.5px; line-height: 1.35; width: auto;
  }

  /* Label and mark sit on one line, so a card stays about two lines tall */
  .compare tbody td,
  .compare tbody .compare__col--mid,
  .compare tbody .compare__col--top {
    display: flex; flex-direction: row; align-items: baseline;
    justify-content: center; gap: 6px; flex-wrap: wrap;
    padding: 0; border: 0; background: transparent; text-align: center;
  }
  /* Each cell names its own formule, so no column header is needed */
  .compare tbody td::before {
    content: attr(data-f);
    font-family: var(--font-heading); font-size: 10px;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: color-mix(in srgb, var(--color-text) 50%, transparent);
  }
  /* Keep the Excellence column marked, as it is on desktop */
  .compare tbody td.compare__col--top::before { color: var(--color-accent-700); }

  .compare .count { width: 21px; height: 21px; font-size: 12px; }
  .compare .plus { font-size: 14px; }
  .compare .opt-tag { display: inline-block; margin: 3px 0 0 6px; }

  @media (max-width: 400px) {
    .compare tbody tr { grid-template-columns: 1fr; gap: 5px; text-align: left; }
    .compare tbody td,
    .compare tbody .compare__col--mid,
    .compare tbody .compare__col--top { justify-content: space-between; }
  }
}

/* ─── 12. Quote bands & testimonials ──────────────────────────────────── */

.quote-band { text-align: center; }
.quote-band__inner { position: relative; max-width: 1000px; margin-inline: auto; padding: clamp(64px, 9vw, 132px) var(--gutter); }
.quote-band blockquote {
  position: relative; margin: 0;
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(24px, 3.6vw, 46px); line-height: 1.24; letter-spacing: -0.015em;
  text-wrap: balance;
}
.quote-band__sign { margin: var(--sp-5) 0 0; font-family: var(--font-heading); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-l); }

.testimonial { margin: 0; display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.testimonial__quote-mark { font-family: var(--font-heading); font-size: 22px; line-height: 0.9; color: var(--gold); }
.testimonial blockquote { margin: 0 0 12px; font-family: var(--font-heading); font-size: clamp(19px, 2.1vw, 25px); font-weight: 400; line-height: 1.33; }
.testimonial figcaption { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 52%, transparent); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 clamp(32px, 5vw, 80px); }
.testimonial-grid .testimonial { padding: clamp(22px, 2.6vw, 30px) 0; border-top: 1px solid var(--color-divider); }

/* Marquee — the infinite specialty ribbon (21st.dev marquee pattern) */
.marquee {
  position: relative; overflow: hidden; display: flex;
  padding-block: var(--sp-5);
  border-block: 1px solid var(--color-divider);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; flex: none; align-items: center; gap: clamp(28px, 4vw, 56px);
  padding-right: clamp(28px, 4vw, 56px);
  animation: marquee 42s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 56px);
  white-space: nowrap; font-family: var(--font-heading);
  font-size: clamp(15px, 1.6vw, 19px); letter-spacing: 0.18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}
.marquee__item::after { content: '◆'; color: var(--gold); font-size: 0.7em; letter-spacing: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── 13. Stat blocks & counters ──────────────────────────────────────── */

.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px; background: color-mix(in srgb, var(--emerald) 22%, transparent);
}
.stat { background: var(--color-bg); padding: 18px 16px; }
.stat-value { margin: 0; font-family: var(--font-heading); font-size: 30px; line-height: 1; color: var(--emerald); }
.stat-label { margin: 6px 0 0; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 62%, transparent); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(24px, 4vw, 56px); }
.step { border-top: 1px solid var(--gold); padding-top: 20px; }
.on-ink .step { border-top-color: var(--gold-l); }
.step__num { margin: 0 0 var(--sp-3); font-family: var(--font-heading); font-size: clamp(30px, 3.4vw, 40px); line-height: 1; color: var(--emerald); font-feature-settings: 'tnum'; }
.on-ink .step__num { color: var(--gold-l); }
.step__title { margin: 0 0 8px; font-size: 23px; font-weight: 400; font-family: var(--font-heading); }
.step__body { margin: 0; font-size: var(--fs-sm); line-height: 1.7; color: color-mix(in srgb, var(--color-text) 72%, transparent); }

/* ─── 14. Layout primitives ───────────────────────────────────────────── */

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(32px, 5vw, 80px); }
.split--start { align-items: start; }
.split--center { align-items: center; }
.split--end { align-items: end; }
.split--wide-gap { gap: clamp(32px, 5vw, 84px); }
/* Form + sticky summary. Collapses to one column below the tablet breakpoint. */
.split--sidebar { grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 64px); }
@media (max-width: 1000px) { .split--sidebar { grid-template-columns: 1fr; } }
.split-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(20px, 3vw, 28px); }
.stack { display: grid; gap: clamp(20px, 3vw, 28px); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

.callout {
  margin: 0; padding: 16px 20px; border-left: 2px solid var(--color-accent);
  font-size: 13.5px; line-height: 1.72; max-width: 76ch;
  color: color-mix(in srgb, var(--color-text) 76%, transparent);
  background: color-mix(in srgb, var(--color-accent) 4%, transparent);
}
.callout strong, .callout em {
  font-style: normal; letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 11px; color: var(--color-accent-700); font-weight: 400;
}
.on-ink .callout strong, .on-ink .callout em { color: var(--gold-l); }

.option-card {
  padding: clamp(24px, 3vw, 36px); gap: 0;
  border-left: 2px solid var(--emerald);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.option-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.option-card__price { margin: 0 0 var(--sp-5); font-family: var(--font-heading); font-size: 30px; font-feature-settings: 'tnum'; }
.spec-list {
  display: grid; grid-template-columns: 1fr auto; gap: 10px 14px;
  font-size: 13.5px; line-height: 1.5; align-items: baseline;
  border-top: 1px solid var(--color-divider); padding-top: 18px;
}
.spec-list b { font-weight: 400; }

.checklist { display: grid; gap: 0; font-size: 14.5px; }
.checklist__row {
  display: flex; justify-content: space-between; gap: 14px; padding: 11px 0;
  border-top: 1px solid color-mix(in srgb, var(--cream) 18%, transparent);
  font-feature-settings: 'tnum';
}
.checklist__row:last-child { border-bottom: 1px solid color-mix(in srgb, var(--cream) 18%, transparent); }
.checklist__row b { color: var(--gold-l); font-weight: 400; }

/* ─── 15. Forms ───────────────────────────────────────────────────────── */

.form {
  display: grid; gap: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--color-divider); border-top: 2px solid var(--gold);
  background: var(--color-bg); padding: clamp(24px, 3.4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.form--emerald { border-top-color: var(--emerald); }
/* Grid items default to min-width:auto, so any wide child (the slot-day rail,
   a long contract line) would inflate the whole form instead of scrolling. */
.form .field, .form fieldset, .wizard__panel { min-width: 0; }
.form__head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-bottom: 6px; border-bottom: 1px solid var(--color-divider);
}
.form__head h2, .form__head h3 { font-family: var(--font-heading); font-size: 21px; font-weight: 400; margin: 0; }
.form__head-rule { flex: 1; height: 1px; background: var(--color-divider); min-width: 20px; }
.form__head-tail {
  font-family: var(--font-heading); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 45%, transparent); white-space: nowrap; font-feature-settings: 'tnum';
}
/* Sub-headings inside a long form. Set in the serif at heading size, with
   clear air above, so they never read as one more field label. */
.form__section {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-top: clamp(18px, 2.6vw, 34px);
  padding-bottom: 9px;
  border-bottom: 1px solid color-mix(in srgb, var(--emerald) 30%, transparent);
  font-family: var(--font-heading); font-weight: 600; font-size: 20px;
  letter-spacing: 0; text-transform: none;
  color: var(--ink);
}
.form__section::before { content: '◆'; color: var(--gold); font-size: 10px; align-self: center; }
.form__section:first-of-type { margin-top: 0; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(20px, 2.4vw, 28px); }
.form__foot {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  padding-top: clamp(6px, 1vw, 10px); border-top: 1px solid var(--color-divider);
}

.field-label {
  display: block; font-family: var(--font-heading); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--emerald); margin-bottom: 9px;
}
.field-label .opt { letter-spacing: 0.14em; color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.req { color: var(--color-accent-700); }
.input--line {
  background: transparent; border: 0; border-bottom: 1px solid var(--color-divider);
  border-radius: 0; padding: 10px 2px; font-family: var(--font-body);
  font-size: 16px; color: var(--color-text); caret-color: var(--emerald);
  transition: border-color var(--dur-base) var(--ease-out);
}
.input--line:hover { border-bottom-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input--line:focus-visible { border-bottom-color: var(--emerald); border-bottom-width: 2px; padding-bottom: 9px; outline: 0; box-shadow: none; }
.input--line[aria-invalid='true'] { border-bottom-color: #a32b1e; }
textarea.input--line { min-height: 104px; line-height: 1.7; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; padding-top: 2px; }
.choice {
  padding: 12px 14px; border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  font-size: 13.5px; min-height: 46px; align-items: center;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.choice:hover { border-color: var(--emerald); background: color-mix(in srgb, var(--emerald) 4%, transparent); }
.choice:has(input:checked) { border-color: var(--emerald); background: color-mix(in srgb, var(--emerald) 7%, transparent); }
.choice--row { display: grid; grid-template-columns: 1fr auto; gap: 14px; }
.choice--row > span:first-child { display: flex; align-items: center; gap: 8px; }
.choice__price { font-family: var(--font-heading); font-size: 15px; white-space: nowrap; font-feature-settings: 'tnum'; }
.choice:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }

.field-error {
  display: none; margin: 7px 0 0; font-size: 12.5px; color: #8f2114;
}
.field-error::before { content: '▲ '; font-size: 0.8em; }
.field[data-invalid='true'] .field-error { display: block; }

.form-status {
  border: 1px solid var(--emerald); border-top: 2px solid var(--gold);
  background: var(--color-bg); padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow-sm);
  display: grid; gap: var(--sp-3);
}
.form-status[hidden] { display: none; }

/* ─── 16. Récapitulatif (inscription) ─────────────────────────────────── */

/* The summary is the ONLY thing in its column. A sticky element slides over
   whatever follows it in the same containing block, so anything else here
   (the trust notes, a quote) would be overlapped on scroll — they live in a
   full-width band below the form instead. The column must stretch to the
   row height, otherwise the sticky box has no room to travel. */
.recap-col { align-self: stretch; }
.recap {
  border: 1px solid var(--emerald);
  background: color-mix(in srgb, var(--emerald) 5%, var(--color-bg));
  padding: clamp(24px, 3vw, 36px);
  position: sticky; top: calc(var(--header-h) + 16px);
}
@media (max-width: 1000px) { .recap { position: static; } }
.recap__line {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--emerald) 26%, transparent);
  font-size: var(--fs-sm);
}
.recap__line b { font-family: var(--font-heading); font-size: 17px; font-weight: 400; white-space: nowrap; font-feature-settings: 'tnum'; }
.recap__total {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  padding: 20px 0 0; margin-top: 12px; border-top: 1px solid var(--emerald);
}
.recap__total dt { font-family: var(--font-heading); font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; }
.recap__total dd {
  margin: 0; font-family: var(--font-heading); font-size: clamp(34px, 4vw, 46px);
  line-height: 1; white-space: nowrap; font-feature-settings: 'tnum';
}
.trust { border-top: 1px solid var(--color-divider); padding-top: 16px; }
.trust__title { margin: 0 0 6px; font-family: var(--font-heading); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--emerald); }
.trust__body { margin: 0; font-size: 13px; line-height: 1.62; color: color-mix(in srgb, var(--color-text) 68%, transparent); }

.pull-quote {
  position: relative; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold-l) 34%, transparent);
  padding: clamp(24px, 3vw, 38px); border-radius: var(--radius-md);
}
.pull-quote blockquote { margin: 0; font-family: var(--font-heading); font-weight: 400; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.28; }
.pull-quote__sign { margin: 20px 0 0; font-family: var(--font-heading); font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-l); }

/* ─── 17. Footer ──────────────────────────────────────────────────────── */

.footer { position: relative; }
.footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  max-width: var(--container); margin-inline: auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(40px, 6vw, 72px);
}
.footer .brand { margin-right: 0; margin-bottom: 20px; }
.footer .brand__logo { height: 64px; }
.footer__title {
  margin: 0 0 16px; font-family: var(--font-heading); font-size: 10.5px;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-l);
}
.footer__list { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); list-style: none; margin: 0; padding: 0; }
.footer__list a, .footer__list span {
  display: inline-block; padding: 6px 0; min-height: 32px;
  color: color-mix(in srgb, var(--cream) 82%, transparent); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__list a:hover { color: var(--gold-l); }
.footer__bar {
  max-width: var(--container); margin-inline: auto;
  padding: 22px var(--gutter) 40px;
  border-top: 1px solid color-mix(in srgb, var(--cream) 16%, transparent);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
}
.footer__bar p { margin: 0; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: color-mix(in srgb, var(--cream) 52%, transparent); font-feature-settings: 'tnum'; }
.footer__bar a { color: color-mix(in srgb, var(--cream) 52%, transparent); text-decoration: none; }
.footer__bar a:hover { color: var(--gold-l); }

/* Back to top */
.to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px);
  z-index: var(--z-sticky);
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(8px); color: var(--color-accent-700);
  cursor: pointer; font-size: 15px; line-height: 1;
  opacity: 0; visibility: hidden; translate: 0 12px;
  transition: opacity var(--dur-base) var(--ease-out), translate var(--dur-base) var(--ease-out), visibility var(--dur-base), background-color var(--dur-fast);
}
.to-top[data-show='true'] { opacity: 1; visibility: visible; translate: 0 0; }
.to-top:hover { background: var(--color-accent-100); }

/* ─── 17a. Conversion CTA — the solid gold button ─────────────────────── */

/* The one filled button of the site: reserved for « S'inscrire dès
   maintenant ». Everything else stays outlined, so this one reads as
   the destination. */
.btn-gold-solid {
  position: relative; overflow: hidden;
  color: var(--ink); font-weight: 600;
  background: linear-gradient(115deg, var(--gold) 0%, var(--gold-l) 55%, var(--gold) 100%);
  border-color: var(--gold);
  box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--gold) 70%, transparent);
}
.btn-gold-solid::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%;
  left: -60%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, #fff 55%, transparent), transparent);
  transition: left 640ms var(--ease-out);
}
.btn-gold-solid:hover { color: var(--ink-deep); background: linear-gradient(115deg, var(--gold-l), var(--gold-pale)); border-color: var(--gold-l); }
.btn-gold-solid:hover::after { left: 120%; }
@media (prefers-reduced-motion: reduce) { .btn-gold-solid::after { display: none; } }

.nav-cta.btn-gold-solid {
  font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 20px; white-space: nowrap; min-height: 44px;
}

/* Sticky conversion bar — mobile only: on desktop the header CTA is always
   in view, a second fixed button would just shout. */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: none; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid color-mix(in srgb, var(--gold-l) 34%, transparent);
  translate: 0 105%;
  transition: translate var(--dur-slow) var(--ease-out);
}
.cta-bar[data-show='true'] { translate: 0 0; }
.cta-bar__btn {
  width: 100%; min-height: 50px;
  font-size: var(--fs-sm); letter-spacing: 0.08em; text-transform: uppercase;
}
@media (max-width: 1280px) {
  .cta-bar { display: block; }
  body:has(.cta-bar) .to-top { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  body[data-drawer-open='true'] .cta-bar { display: none; }
}

/* ─── 17b. Product shots — real screenshots of the platform ───────────── */

/* A UI screenshot is not a photograph: no sepia grade, no book-plate mat.
   It sits in a browser-style chrome so it reads as the living product. */
.shot {
  position: relative; overflow: hidden; border-radius: 10px;
  background: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--ink) 45%, transparent);
}
.shot__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, var(--ink), var(--ink-deep));
  border-bottom: 1px solid color-mix(in srgb, var(--gold-l) 26%, transparent);
}
.shot__dots { display: flex; gap: 5px; flex: none; }
.shot__dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: color-mix(in srgb, var(--cream) 26%, transparent);
}
.shot__dots i:first-child { background: color-mix(in srgb, var(--gold-l) 55%, transparent); }
.shot__bar { min-height: 30px; }
.shot img { width: 100%; height: auto; display: block; }
.shot--gold { border-color: color-mix(in srgb, var(--gold-l) 45%, transparent); }

/* Screenshot fade-in on decode, same as plates */
.shot img[data-loaded='false'] { opacity: 0; }
.shot img { transition: opacity var(--dur-slow) linear; }

/* Hero variant that gives the product image the wider column */
.hero__grid--product { grid-template-columns: 0.82fr 1.18fr; }
@media (max-width: 900px) { .hero__grid--product { grid-template-columns: 1fr; } }
@media (min-width: 901px) {
  .hero__media--wide { margin-right: clamp(-40px, -2.6vw, 0px); }
}

/* Phone frame for the mobile captures */
.phone {
  border-radius: clamp(22px, 3vw, 34px); overflow: hidden;
  padding: clamp(6px, 0.8vw, 10px);
  background: linear-gradient(165deg, var(--ink), var(--ink-deep));
  border: 1px solid color-mix(in srgb, var(--gold-l) 34%, transparent);
  box-shadow: 0 24px 56px -22px color-mix(in srgb, var(--ink) 55%, transparent);
}
.phone img { width: 100%; height: auto; display: block; border-radius: clamp(16px, 2.2vw, 26px); }
.phone-duo {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.6vw, 36px); align-items: start;
  max-width: 560px; margin-inline: auto;
}
.phone-duo .phone:last-child { translate: 0 clamp(22px, 4vw, 48px); }

/* Rows of the guided tour alternate their media side on desktop */
.tour-row { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tour-row + .tour-row { margin-top: clamp(56px, 8vw, 108px); }
@media (min-width: 901px) {
  .tour-row--flip > :first-child { order: 2; }
}
.tour-row__points { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; gap: 12px; }
.tour-row__points li {
  position: relative; padding-left: 24px;
  font-size: var(--fs-sm); line-height: 1.65;
  color: color-mix(in srgb, var(--color-text) 76%, transparent);
}
.tour-row__points li::before {
  content: '◆'; position: absolute; left: 0; top: 1px;
  color: var(--gold); font-size: 9px;
}

/* ─── 17c. Video — the presentation, face to camera ───────────────────── */

.video-shell {
  position: relative; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold-l) 38%, transparent);
  background: #000; border-radius: 4px;
}
.video-shell video { display: block; width: 100%; height: auto; background: #000; }
.video-play {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  width: 100%; padding: 0; margin: 0; border: 0; cursor: pointer;
  background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--ink-deep) 62%, transparent));
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.video-play__btn {
  display: grid; place-items: center;
  width: clamp(66px, 8vw, 88px); height: clamp(66px, 8vw, 88px);
  border-radius: 50%;
  border: 1px solid var(--gold-l);
  background: color-mix(in srgb, var(--ink) 66%, transparent);
  backdrop-filter: blur(6px);
  color: var(--gold-l);
  transition: transform var(--dur-base) var(--ease-spring),
              background-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.video-play__btn svg { display: block; margin-left: 4px; }
.video-play:hover .video-play__btn { transform: scale(1.07); background: var(--gold-l); color: var(--ink); }
.video-play__label {
  position: absolute; left: 50%; bottom: clamp(16px, 2.4vw, 26px); translate: -50% 0;
  font-family: var(--font-heading); font-size: 10.5px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--cream); white-space: nowrap;
}
.video-shell[data-playing='true'] .video-play { opacity: 0; visibility: hidden; pointer-events: none; }
/* Without JavaScript the native controls take over; the overlay stands down */
html:not([data-js='on']) .video-play { display: none; }

/* ─── 17d. Inscription — the multi-step admission ─────────────────────── */

/* Intro stepper chips (the admission overview) */
.admission-steps {
  display: flex; flex-wrap: wrap; gap: 12px clamp(16px, 2.4vw, 28px);
  justify-content: center; margin: var(--sp-6) 0 0; padding: 0; list-style: none;
}
.admission-steps li {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-heading); font-size: 11.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 72%, transparent);
}
.admission-steps i {
  display: grid; place-items: center; width: 24px; height: 24px;
  border: 1px solid color-mix(in srgb, var(--gold-l) 55%, transparent);
  border-radius: 50%; font-style: normal; font-size: 11.5px; color: var(--gold-l);
  font-feature-settings: 'lnum' 1, 'tnum' 1; font-variant-numeric: lining-nums;
}

/* Wizard shell: steps rail + panel */
.wizard {
  display: grid; grid-template-columns: 264px 1fr;
  gap: clamp(24px, 3.5vw, 56px); align-items: start;
}
.wizard__aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: var(--sp-5); }
@media (max-width: 980px) {
  .wizard { grid-template-columns: 1fr; }
  .wizard__aside { position: static; }
}

.wizard-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wizard-step {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading); font-size: 15px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.wizard-step__num {
  display: grid; place-items: center; width: 27px; height: 27px; flex: none;
  border: 1px solid var(--color-divider); border-radius: 50%;
  font-size: 12.5px; line-height: 1; padding-top: 1px;
  font-feature-settings: 'lnum' 1, 'tnum' 1; font-variant-numeric: lining-nums;
  transition: background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.wizard-step[data-state='current'] {
  color: var(--color-text);
  background: color-mix(in srgb, var(--emerald) 7%, transparent);
}
.wizard-step[data-state='current'] .wizard-step__num {
  background: var(--emerald); border-color: var(--emerald); color: var(--cream);
}
.wizard-step[data-state='done'] { color: var(--emerald); }
.wizard-step[data-state='done'] .wizard-step__num { border-color: var(--emerald); color: var(--emerald); }

/* On a phone the rail becomes a compact dot row + a live progress line */
.wizard__progress { margin: 0; font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 58%, transparent); font-feature-settings: 'tnum'; }
@media (max-width: 980px) {
  .wizard-steps { display: flex; flex-wrap: wrap; gap: 8px; }
  .wizard-step { padding: 0; gap: 0; }
  .wizard-step__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

.wizard__panel[hidden] { display: none; }
.wizard__nav {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  border-top: 1px solid var(--color-divider); padding-top: clamp(16px, 2vw, 22px);
}
.wizard__nav .btn { min-height: 48px; }
.wizard__nav-spacer { flex: 1; }

/* The recap card in the rail */
.wizard__recap {
  border: 1px solid color-mix(in srgb, var(--emerald) 30%, transparent);
  background: color-mix(in srgb, var(--emerald) 5%, var(--color-bg));
  padding: clamp(18px, 2vw, 24px); font-size: var(--fs-sm);
}
.wizard__recap dl { margin: 0; }
.wizard__recap .recap__line { padding: 9px 0; }
@media (max-width: 980px) { .wizard__recap { display: none; } }

/* Contract — a readable, scrollable legal document */
.contract {
  max-height: min(430px, 55vh); overflow-y: auto;
  border: 1px solid var(--color-divider); border-top: 2px solid var(--gold);
  background: #fbfaf7; padding: clamp(18px, 2.6vw, 30px);
  font-size: 13.5px; line-height: 1.72;
  color: color-mix(in srgb, var(--color-text) 86%, transparent);
  scrollbar-width: thin;
}
.contract h3 {
  font-family: var(--font-heading); font-weight: 600; font-size: 15.5px;
  margin: 22px 0 8px; color: var(--ink);
}
.contract h3:first-child { margin-top: 0; }
.contract p { margin: 0 0 10px; }
.contract ul { margin: 0 0 10px; padding-left: 20px; }
.contract li { margin-bottom: 4px; }
.contract-head {
  text-align: center; margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--color-divider);
}
.contract-head p { margin: 0; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--emerald); }
.contract-head strong { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 19px; letter-spacing: 0; text-transform: none; color: var(--ink); margin-top: 6px; }

/* Signature pad */
.signature-box {
  position: relative;
  border: 1.5px dashed color-mix(in srgb, var(--emerald) 45%, transparent);
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out);
}
.signature-box[data-signed='true'] { border-style: solid; border-color: var(--emerald); }
.signature-box canvas { display: block; width: 100%; height: 190px; touch-action: none; cursor: crosshair; }
.signature-box__hint {
  position: absolute; inset: 0; display: grid; place-items: center; margin: 0;
  font-family: var(--font-heading); font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 34%, transparent);
  pointer-events: none;
}
.signature-box[data-signed='true'] .signature-box__hint { display: none; }
.signature-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }

/* Slot picker — the entretien booking */
.slot-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 10px;
}
.slot-nav .btn-icon { border: 1px solid var(--color-divider); font-size: 20px; font-family: var(--font-heading); }
.slot-nav .btn-icon:hover:not(:disabled) { border-color: var(--emerald); color: var(--emerald); }
.slot-nav .btn-icon:disabled { opacity: 0.3; }
.slot-range {
  margin: 0; font-family: var(--font-heading); font-size: 11.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 58%, transparent);
  text-align: center;
}
.slot-days {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px;
}
@media (max-width: 680px) { .slot-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.slot-day {
  padding: 10px 4px 12px;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  background: transparent; cursor: pointer; text-align: center;
  font-family: var(--font-heading); color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.slot-day small { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 52%, transparent); }
.slot-day b { display: block; font-weight: 600; font-size: 19px; line-height: 1.2; margin-top: 3px; font-feature-settings: 'lnum' 1; }
.slot-day span { display: block; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 52%, transparent); }
.slot-day:hover { border-color: var(--emerald); background: color-mix(in srgb, var(--emerald) 4%, transparent); }
.slot-day[aria-pressed='true'] {
  border-color: var(--emerald); background: color-mix(in srgb, var(--emerald) 9%, transparent);
  box-shadow: inset 0 0 0 1px var(--emerald);
}
.slot-times {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px; margin-top: 14px;
}
.slot-time {
  padding: 11px 4px; border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  background: transparent; cursor: pointer; text-align: center;
  font-family: var(--font-heading); font-size: 14px; color: var(--color-text);
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.slot-time:hover { border-color: var(--emerald); background: color-mix(in srgb, var(--emerald) 5%, transparent); }
.slot-time[aria-pressed='true'] { border-color: var(--emerald); background: var(--emerald); color: var(--cream); }
.slot-picked {
  margin: 14px 0 0; padding: 12px 16px;
  border-left: 2px solid var(--emerald);
  background: color-mix(in srgb, var(--emerald) 6%, transparent);
  font-size: var(--fs-sm);
}

/* Confirmation recap table */
.confirm-list { margin: 0; display: grid; gap: 0; font-size: var(--fs-sm); }
.confirm-list > div {
  display: grid; grid-template-columns: minmax(130px, 0.75fr) 1.25fr; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--color-divider);
}
.confirm-list dt {
  font-family: var(--font-heading); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--emerald); padding-top: 3px;
}
.confirm-list dd { margin: 0; }
.confirm-list img { max-height: 64px; width: auto; background: #fff; border: 1px solid var(--color-divider); padding: 4px 10px; }
@media (max-width: 540px) { .confirm-list > div { grid-template-columns: 1fr; gap: 3px; } }

/* ─── 18. Motion ──────────────────────────────────────────────────────── */

/* Scroll reveal — one rhythm, staggered by index.
   Scoped to [data-js='on'] (set by an inline script in <head>) so that with
   JavaScript off, broken or still loading, every element renders visible. */
[data-js='on'] [data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--reveal-y, 18px), 0);
  transition:
    opacity var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms),
    transform var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms),
    filter var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms);
  filter: blur(4px);
  will-change: opacity, transform;
}
[data-js='on'] [data-reveal='left']  { transform: translate3d(-22px, 0, 0); }
[data-js='on'] [data-reveal='right'] { transform: translate3d(22px, 0, 0); }
[data-js='on'] [data-reveal='scale'] { transform: scale(0.965); }
[data-js='on'] [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* Word-by-word blur-in for display headings (21st.dev "soft blur in" pattern) */
.reveal-words { display: inline; }
[data-js='on'] .reveal-words .word {
  display: inline-block; opacity: 0;
  transform: translate3d(0, 0.5em, 0); filter: blur(7px);
  transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out), filter 640ms var(--ease-out);
  transition-delay: calc(var(--w, 0) * 46ms);
  will-change: opacity, transform;
}
[data-js='on'] .reveal-words.is-in .word { opacity: 1; transform: none; filter: none; }

/* A gold rule that draws itself in */
[data-js='on'] .draw-rule { transform: scaleX(0); transform-origin: 0 50%; transition: transform 900ms var(--ease-out); }
[data-js='on'] .draw-rule.is-in { transform: scaleX(1); }

/* Magnetic CTA — translation driven by JS custom props */
.magnetic { transition: transform var(--dur-base) var(--ease-spring); will-change: transform; }
.magnetic:active { transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.975); }

/* Press feedback for every control */
.btn { transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.btn:active { transform: scale(0.978); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], .reveal-words .word { opacity: 1 !important; transform: none !important; filter: none !important; }
  .draw-rule, [data-js='on'] .draw-rule { transform: scaleX(1) !important; }
  .marquee__track { animation: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .plate:hover img { transform: none; }
}

/* ─── 19. Print ───────────────────────────────────────────────────────── */

@media print {
  .header, .drawer, .to-top, .marquee, .hero__actions, .burger { display: none !important; }
  .on-ink { background: #fff !important; color: #000 !important; }
  .on-ink::before, .on-ink::after, .ghost-mark { display: none !important; }
  body { font-size: 11pt; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; }
}
