/* ==========================================================================
   MissLath — feuille de styles unique du site
   Architecture fluide, mobile-first, sans JavaScript.
   Sommaire
     01. Jetons de design (custom properties)
     02. Réinitialisation & base
     03. Utilitaires d'accessibilité
     04. Primitives de mise en page
     05. Typographie
     06. En-tête & navigation
     07. Boutons & liens d'action
     08. Médias (cadres photo)
     09. Composants de contenu
     10. Formulaires
     11. Pied de page
     12. Thèmes de page
     13. Préférences utilisateur & impression
     14. Utilitaires
     15. Raffinements
     16. Site personnel
     17. Animations
   ========================================================================== */

/* ---------- 01. Jetons de design ---------- */

:root {
  /* Couleurs — encre */
  --ink: #201f1d;
  --ink-90: rgba(32, 31, 29, .90);
  --ink-72: rgba(32, 31, 29, .72);
  --ink-55: rgba(32, 31, 29, .55);
  --ink-40: rgba(32, 31, 29, .40);
  --ink-24: rgba(32, 31, 29, .24);
  --ink-16: rgba(32, 31, 29, .16);
  --ink-08: rgba(32, 31, 29, .08);

  /* Couleurs — or */
  --gold: #b68235;
  --gold-deep: #7d5411;
  --gold-light: #e1ad66;
  --gold-wash: rgba(182, 130, 53, .07);
  --gold-line: rgba(182, 130, 53, .50);

  /* Couleurs — surfaces */
  --cream: #f3f2f2;
  --night: #1b1a18;
  --night-ink: #e9e5de;
  --night-70: rgba(233, 229, 222, .70);
  --night-45: rgba(233, 229, 222, .45);
  --night-28: rgba(233, 229, 222, .28);

  /* Rôles — redéfinis par les thèmes en §12 */
  --surface: var(--cream);
  --surface-page: var(--cream);
  --surface-raised: #fff;
  --plate-frame: #eae9e9;

  /* Typographie */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Échelle fluide — de 360px à 1240px de viewport */
  --step--1: clamp(.78rem, .74rem + .18vw, .875rem);
  --step-0:  clamp(.9rem, .85rem + .22vw, 1rem);
  --step-1:  clamp(1rem, .93rem + .32vw, 1.18rem);
  --step-2:  clamp(1.3rem, 1.12rem + .8vw, 1.75rem);
  --step-3:  clamp(1.6rem, 1.28rem + 1.4vw, 2.4rem);
  --step-4:  clamp(2rem, 1.45rem + 2.4vw, 3.5rem);
  --step-5:  clamp(2.4rem, 1.3rem + 4.9vw, 5.6rem);

  /* Rythme fluide */
  --space-2xs: clamp(.25rem, .23rem + .1vw, .35rem);
  --space-xs:  clamp(.5rem, .45rem + .22vw, .7rem);
  --space-s:   clamp(.85rem, .75rem + .45vw, 1.2rem);
  --space-m:   clamp(1.3rem, 1.1rem + .9vw, 2rem);
  --space-l:   clamp(2rem, 1.6rem + 1.8vw, 3.2rem);
  --space-xl:  clamp(3rem, 2.3rem + 3vw, 5rem);
  --space-2xl: clamp(4rem, 3rem + 4.4vw, 7rem);

  /* Structure */
  --shell-max: 77.5rem;   /* 1240px — plafond, jamais une largeur imposée */
  --gutter: clamp(1.15rem, .6rem + 2.6vw, 3.5rem);
  --measure: 62ch;

  /* Ombres — trois plans plutôt qu'un seul : la lumière réelle ne fait pas
     qu'une tache floue sous l'objet. */
  --shadow-s: 0 1px 2px rgba(45, 35, 25, .06),
              0 4px 10px rgba(45, 35, 25, .07);
  --shadow-m: 0 1px 2px rgba(45, 35, 25, .07),
              0 6px 14px rgba(45, 35, 25, .09),
              0 18px 36px rgba(45, 35, 25, .12);
  --shadow-l: 0 2px 4px rgba(45, 35, 25, .08),
              0 12px 26px rgba(45, 35, 25, .12),
              0 34px 64px rgba(45, 35, 25, .20);

  /* Mouvement */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: .25s;
  --dur: .45s;
  --dur-slow: .55s;
}

/* ---------- 02. Réinitialisation & base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { margin: 0; }
/* Le rythme de prose n'a de sens qu'en flux. Appliqué à tout `p + p`, il
   atteignait aussi les paragraphes qui sont des éléments de grille ou de
   flexbox — la barre de chiffres, le colophon, les cartes du journal — et
   décalait le deuxième et les suivants de --space-s vers le bas : les colonnes
   n'étaient plus alignées entre elles. Dans une grille ou une flexbox,
   l'espacement appartient à `gap`, jamais à une marge de suite.
   Ailleurs la règle était redondante : `.article-body > * + *` porte déjà le
   rythme des articles, et les paragraphes en flux portent une utilitaire
   `mt-*` explicite. Seule la prose des pages légales s'appuyait dessus. */
.legal p + p { margin-block-start: var(--space-s); }

ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
a:hover { color: var(--gold); }

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Le focus clavier doit rester visible partout, y compris sur fond sombre. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

hr {
  border: 0;
  block-size: 1px;
  background: var(--ink-24);
  margin-block: var(--space-m);
}

/* ---------- 03. Utilitaires d'accessibilité ---------- */

.visually-hidden:not(:focus):not(:active) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-block-start: var(--space-xs);
  inset-inline-start: var(--space-xs);
  z-index: 100;
  padding: .7em 1.1em;
  background: var(--ink);
  color: var(--cream);
  font: 600 var(--step--1) / 1 var(--font-body);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--cream); }

/* ---------- 04. Primitives de mise en page ---------- */

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

.section { padding-block: var(--space-xl); }
.section--tight { padding-block: var(--space-l); }
.section--flush-top { padding-block-start: 0; }

/* Grille fluide : les colonnes se replient d'elles-mêmes, sans point de rupture. */
.grid {
  display: grid;
  gap: var(--space-m);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }

/* Deux colonnes asymétriques qui se replient sous 60rem. */
.split {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: var(--split, 1fr 1fr); }
  .split--text-first { --split: minmax(0, 1.05fr) minmax(0, .95fr); }
  .split--media-first { --split: minmax(0, .85fr) minmax(0, 1.15fr); }
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: center;
}
.cluster--between { justify-content: space-between; }

.rule { border-block-start: 1px solid var(--ink-24); }
.rule-b { border-block-end: 1px solid var(--ink-24); }

/* ---------- 05. Typographie ---------- */

.kicker--gold { color: var(--gold-deep); }
.kicker {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin: 0;
}

.title     { font-size: var(--step-4); }
.subtitle  { font-size: var(--step-3); }
.italic-gold { font-style: italic; color: var(--gold-deep); }

.lede {
  font-size: var(--step-1);
  line-height: 1.85;
  max-inline-size: var(--measure);
}

/* Justification uniquement là où la colonne est assez large pour l'absorber. */
.prose { max-inline-size: var(--measure); }
@media (min-width: 48rem) {
  .prose--justify { text-align: justify; hyphens: auto; }
}

.numeral {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 300;
}

.note {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* Soulignement animé au survol. */
.underline-grow {
  position: relative;
  display: inline-block;
}
.underline-grow::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -.45em;
  block-size: 1px;
  inline-size: 0;
  background: var(--gold);
  transition: inline-size var(--dur) var(--ease);
}
.underline-grow:hover::after,
.underline-grow:focus-visible::after { inline-size: 100%; }

/* ---------- 06. En-tête & navigation ---------- */

.site-header {
  border-block-end: 1px solid var(--ink-24);
  background: var(--surface);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding-block: var(--space-s);
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem);
  letter-spacing: .3em;
  font-weight: 400;
  color: inherit;
  text-decoration: none;
}
.wordmark__suffix {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .18em;
  color: var(--gold-deep);
  margin-inline-start: .6em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(.9rem, .3rem + 1.6vw, 1.6rem);
}
.site-nav a {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-55);
  text-decoration: none;
  padding-block-end: .25em;
  transition: color var(--dur-fast) var(--ease);
}
.site-nav a:hover { color: var(--gold-deep); }
.site-nav a[aria-current="page"] {
  color: var(--gold-deep);
  border-block-end: 1px solid var(--gold);
}

.lang {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .16em;
  color: var(--ink-40);
}
.lang [aria-current] { color: var(--gold-deep); }

/* Bandeau promotionnel (page Beauté). */
.ribbon {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding-block: var(--space-xs);
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- 07. Boutons & liens d'action ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  padding: .85em 1.5em;
  border: 1px solid currentColor;
  color: var(--gold-deep);
  background: none;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cream);
  box-shadow: var(--shadow-s);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--quiet { color: var(--ink); border-color: var(--ink-24); }
.btn--quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--on-night { color: var(--gold-light); }
.btn--on-night:hover { background: var(--gold-light); color: var(--night); }
.btn--ghost-night { color: var(--night-ink); border-color: var(--night-28); }
.btn--ghost-night:hover { background: var(--night-ink); color: var(--night); }

.action {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
}

/* ---------- 08. Médias ---------- */

/* Cadre photo « plate » : double filet du design d'origine. */
.plate {
  position: relative;
  overflow: hidden;
  border: 6px solid var(--plate-frame);
  outline: 1px solid var(--ink-16);
  background: #e9e6e2;
  margin: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.plate img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
.plate--thin { border-width: 5px; }

/* Ratios fluides : la hauteur suit la largeur, jamais l'inverse. */
.ratio-3-2   { aspect-ratio: 3 / 2; }
.ratio-4-3   { aspect-ratio: 4 / 3; }
.ratio-1-1   { aspect-ratio: 1 / 1; }
.ratio-3-4   { aspect-ratio: 3 / 4; }
.ratio-16-10 { aspect-ratio: 16 / 10; }

/* ---------- 09. Composants de contenu ---------- */

/* --- Éventail de cartes (accueil) ---
   Les trois cartes sont strictement identiques : même colonne de grille,
   étirées sur les deux axes, même ratio d'image.

   Le décalage de l'éventail se fait en `transform`, jamais en `margin`
   négatif : une marge modifie la boîte et élargirait les cartes latérales,
   ce qui est exactement le défaut que l'on corrige ici. Un `transform`
   déplace le rendu sans toucher à la taille calculée.                      */

.fan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  align-items: stretch;
  justify-items: stretch;
  gap: var(--space-m);
  padding-block: var(--space-m);
}

.fan__card {
  position: relative;
  display: flex;
  flex-direction: column;
  block-size: 100%;
  background: var(--surface-raised);
  border: 1px solid var(--ink-24);
  padding: var(--space-m);
  box-shadow: var(--shadow-m);
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur-slow) var(--ease),
              box-shadow var(--dur-slow) var(--ease);
}

/* Filet doré intérieur, tracé en pseudo-élément : contrairement à `outline`,
   il suit les coins et ne déborde jamais du cadre. */
.fan__card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--gold-line);
  pointer-events: none;
}

.fan__card:hover,
.fan__card:focus-visible {
  color: inherit;
  box-shadow: var(--shadow-l);
}

.fan__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-xs);
}
.fan__media { margin-block-start: var(--space-s); }
.fan__title {
  font-size: var(--step-2);
  font-weight: 400;
  margin-block: var(--space-s) var(--space-2xs);
}
/* `auto` colle les descriptions au bas de la carte : les trois lignes de
   base s'alignent même si un titre passe sur deux lignes. */
.fan__text {
  font-size: var(--step--1);
  line-height: 1.7;
  color: var(--ink-72);
  margin-block-start: auto;
  padding-block-start: var(--space-xs);
}

/* L'éventail ne se déploie qu'à partir de 64rem : en dessous, trois cartes
   côte à côte puis une pile, toujours de taille identique. */
@media (min-width: 64rem) {
  .fan {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, -2rem + 5vw, 2.5rem);
    padding-block: var(--space-l);
  }
  .fan__card:nth-child(1) { transform: rotate(-7deg) translate(1.6rem, .5rem); }
  .fan__card:nth-child(2) { transform: translateY(-1.1rem); z-index: 3; box-shadow: var(--shadow-l); }
  .fan__card:nth-child(3) { transform: rotate(7deg) translate(-1.6rem, .5rem); }
  .fan__card:hover,
  .fan__card:focus-visible {
    transform: translateY(-1.6rem) scale(1.025);
    z-index: 9;
  }
}

/* --- Lignes d'index cliquables --- */
.index-row {
  display: grid;
  gap: var(--space-xs) var(--space-m);
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: var(--space-m) var(--space-xs);
  border-block-end: 1px solid var(--ink-16);
  color: inherit;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease);
}
.index-row:hover,
.index-row:focus-visible { background: var(--gold-wash); color: inherit; }
.index-row__num { font-size: var(--step-2); color: var(--gold-deep); }
.index-row__title { font-size: var(--step-3); grid-column: 2; }
.index-row__text { font-size: var(--step-0); color: var(--ink-72); grid-column: 2; }
.index-row__meta {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.index-row__arrow {
  color: var(--gold);
  font-size: 1.1rem;
  transition: transform var(--dur-fast) var(--ease);
}
.index-row:hover .index-row__arrow { transform: translateX(9px); }
.index-row__price { font-family: var(--font-display); font-size: var(--step-2); grid-column: 2; }

.index-row__body { grid-column: 2; }
.index-row--featured { background: rgba(182, 130, 53, .05); }
.index-row__price { font-family: var(--font-display); font-size: var(--step-2); font-variant-numeric: tabular-nums; grid-column: 2; }

@media (min-width: 56rem) {
  .index-row__body { grid-column: auto; }
}

@media (min-width: 56rem) {
  .index-row { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr) auto; }
  .index-row__title,
  .index-row__text,
  .index-row__meta { grid-column: auto; }
}

/* --- Étapes numérotées --- */
.steps { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.step { padding: var(--space-m); border-block-start: 1px solid var(--ink-16); }
.step__num { font-size: var(--step-3); color: var(--gold-light); }
.step__title { font-size: var(--step-1); font-weight: 600; font-family: var(--font-body); margin-block: var(--space-xs) var(--space-2xs); }
.step__text { font-size: var(--step--1); line-height: 1.7; color: var(--ink-72); }
@media (min-width: 52rem) {
  .steps { border-block: 1px solid var(--ink-24); }
  .step { border-block-start: 0; border-inline-start: 1px solid var(--ink-16); }
  .step:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .step:last-child { padding-inline-end: 0; }
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  font-weight: 300;
  line-height: 1.42;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-block-start: var(--space-s);
}
.quote__role {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-55);
}

/* --- Cartes d'article & de produit --- */
.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.card:hover { color: inherit; }
.card:hover .card__title { color: var(--gold-deep); }
.card__date {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-block-start: var(--space-s);
}
.card__title {
  font-size: var(--step-2);
  font-weight: 400;
  margin-block: var(--space-2xs);
  transition: color var(--dur-fast) var(--ease);
}
.card__text { font-size: var(--step--1); line-height: 1.7; color: var(--ink-72); }
.card__price {
  font-variant-numeric: tabular-nums;
  font-size: var(--step-0);
  color: var(--ink-72);
  margin-block-start: var(--space-2xs);
}
.card__name {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.35;
  margin-block-start: var(--space-xs);
}

/* --- Blocs sombres --- */
.night {
  background: var(--night);
  color: var(--night-ink);
}
.night h1, .night h2, .night h3 { color: var(--night-ink); }
.night .kicker { color: var(--gold-light); }
.night p { color: var(--night-70); }
.night a { color: var(--gold-light); }

/* Chiffre géant en filigrane. */
.watermark { position: relative; overflow: hidden; }
.watermark__num {
  position: absolute;
  inset-block-start: -.12em;
  inset-inline-end: .1em;
  font-family: var(--font-display);
  font-size: clamp(9rem, 4rem + 22vw, 14.4rem);
  font-weight: 300;
  line-height: 1;
  color: rgba(225, 173, 102, .13);
  pointer-events: none;
  user-select: none;
}
.watermark > :not(.watermark__num):not(.watermark__letter) { position: relative; }

/* --- Calendrier de réservation (affichage statique) --- */
.calendar {
  border: 1px solid var(--ink-24);
  padding: var(--space-s);
  background: var(--surface-raised);
}
.calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: var(--space-s);
}
.calendar__month { font-family: var(--font-display); font-size: var(--step-1); }
.calendar table { inline-size: 100%; border-collapse: collapse; }
.calendar th {
  font: 400 .6875rem/1 var(--font-mono);
  color: var(--ink-55);
  padding-block-end: var(--space-xs);
  font-weight: 400;
}
.calendar td {
  font: .75rem/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: .55em .2em;
  border: 1px solid transparent;
}
.calendar td.is-muted { color: var(--ink-40); }
.calendar td.is-free { border-color: var(--gold-line); }
.calendar td.is-selected { background: var(--gold); color: var(--cream); }
.calendar__slots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-block-start: var(--space-s);
  padding-block-start: var(--space-s);
  border-block-start: 1px solid var(--ink-16);
}
.slot {
  font: .6875rem/1 var(--font-mono);
  padding: .7em 1em;
  border: 1px solid var(--ink-24);
}
.slot.is-active { border-color: var(--gold); color: var(--gold-deep); }
.slot.is-taken { color: var(--ink-40); border-color: var(--ink-08); text-decoration: line-through; }

/* --- Questions fréquentes --- */
.faq__item { border-block-end: 1px solid var(--ink-16); }
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-s);
  padding-block: var(--space-s);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.1rem;
  flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq__answer {
  padding-block-end: var(--space-s);
  font-size: var(--step-0);
  color: var(--ink-72);
  max-inline-size: var(--measure);
}

/* --- Article long --- */
.article-body { max-inline-size: 40rem; margin-inline: auto; }
.article-body > * + * { margin-block-start: var(--space-s); }
.article-body h2 { font-size: var(--step-3); margin-block-start: var(--space-l); }
.article-body h3 { font-size: var(--step-2); margin-block-start: var(--space-m); }
.article-body ul { list-style: disc; padding-inline-start: 1.3em; }
.article-body li + li { margin-block-start: var(--space-xs); }
.article-body blockquote {
  margin: var(--space-m) 0;
  padding-inline-start: var(--space-s);
  border-inline-start: 2px solid var(--gold);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  line-height: 1.42;
}

.legal { max-inline-size: 45rem; }
.legal h2 { font-size: var(--step-2); margin-block-start: var(--space-l); }
.legal h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; margin-block-start: var(--space-m); }
.legal dl { margin: 0; }
.legal dt { font-weight: 600; margin-block-start: var(--space-s); }
.legal dd { margin: 0; color: var(--ink-72); }

/* Zone à compléter par le client — visible, jamais silencieuse. */
.todo {
  border-inline-start: 2px solid var(--gold);
  background: var(--gold-wash);
  padding: var(--space-s);
  font-size: var(--step--1);
  color: var(--ink-72);
}
.todo strong { color: var(--gold-deep); }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .6em; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: .6em; color: var(--ink-40); }

/* ---------- 10. Formulaires ---------- */

.form { display: grid; gap: var(--space-s); }
.field { display: flex; flex-direction: column; gap: var(--space-2xs); }
.field label,
.fieldset__legend {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.field input,
.field textarea,
.field select {
  font-family: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--ink-24);
  border-radius: 0;
  padding: .75em .8em;
  inline-size: 100%;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-40); }
.field input:focus-visible,
.field textarea:focus-visible { border-color: var(--gold); }
.field textarea { min-block-size: 6rem; resize: vertical; }

/* Groupe de boutons radio dessiné en segments, sans JavaScript. */
.segmented { border: 0; margin: 0; padding: 0; }
.segmented__options {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--ink-24);
  background: var(--surface-raised);
  margin-block-start: var(--space-2xs);
}
.segmented__options label {
  flex: 1 1 8rem;
  text-align: center;
  padding: .75em .5em;
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  cursor: pointer;
  border-inline-start: 1px solid var(--ink-24);
  transition: background var(--dur-fast) var(--ease);
}
.segmented__options label:first-of-type { border-inline-start: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented input:checked + label { background: rgba(182, 130, 53, .16); color: var(--gold-deep); }
.segmented input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: -2px; }

.newsletter { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.newsletter input {
  flex: 1 1 10rem;
  font-family: inherit;
  font-size: var(--step--1);
  color: var(--night-ink);
  background: transparent;
  border: 1px solid var(--night-28);
  padding: .75em .8em;
}
.newsletter input::placeholder { color: var(--night-45); }

/* ---------- 11. Pied de page ---------- */

.site-footer {
  background: var(--night);
  color: var(--night-ink);
  padding-block: var(--space-xl);
}
.site-footer__grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
@media (min-width: 64rem) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; }
}
.site-footer h2 {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 400;
}
.site-footer ul { display: flex; flex-direction: column; gap: var(--space-xs); margin-block-start: var(--space-s); }
.site-footer a { color: var(--night-70); text-decoration: none; font-size: var(--step--1); }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.site-footer p { font-size: var(--step--1); line-height: 1.75; }
.colophon {
  margin-block-start: var(--space-l);
  padding-block-start: var(--space-s);
  border-block-start: 1px solid var(--night-28);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--night-45);
}

/* ---------- 12. Thèmes de page ---------- */

/* Pages intérieures — crème. */
.t-cream {
  --surface: var(--cream);
  --surface-page: var(--cream);
  --surface-raised: #fff;
  --plate-frame: #eae9e9;
}

/* Le contenu est cadré par une largeur maximale, jamais par une largeur fixe. */
.page-body {
  max-inline-size: var(--shell-max);
  margin-inline: auto;
  background: var(--surface);
}

/* ---------- 14. Utilitaires ----------
   Jeu court et fermé : uniquement le rythme vertical et deux ou trois
   ajustements récurrents. Tout le reste appartient à un composant nommé.   */

.mt-xs { margin-block-start: var(--space-xs); }
.center { text-align: center; }
.mt-s  { margin-block-start: var(--space-s); }
.mt-m  { margin-block-start: var(--space-m); }
.mt-l  { margin-block-start: var(--space-l); }
.mb-s  { margin-block-end: var(--space-s); }
.mb-m  { margin-block-end: var(--space-m); }
.my-s  { margin-block: var(--space-s); }

.pt-s  { padding-block-start: var(--space-s); }
.pb-s  { padding-block-end: var(--space-s); }

.section-title { margin-block: var(--space-s) var(--space-m); }
.measure-short { max-inline-size: 30ch; }
.on-night      { color: var(--night-ink); }

/* ---------- 15. Raffinements ----------
   Le « premium » tient au détail, pas à l'effet : des filets plus fins, une
   hiérarchie plus tranchée, des transitions plus courtes. Rien ici n'ajoute
   de requête ni de script.                                               */

/* --- Ligne d'index : accent doré au survol ------------------------------ */
.index-row {
  position: relative;
  border-inline-start: 2px solid transparent;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              padding-inline-start var(--dur-fast) var(--ease);
}
.index-row:hover,
.index-row:focus-visible {
  border-inline-start-color: var(--gold);
  padding-inline-start: var(--space-s);
}

/* --- Carte de journal ---------------------------------------------------- */
.card .plate { transition: box-shadow var(--dur) var(--ease); }
.card:hover .plate { box-shadow: var(--shadow-m); }
.card__title { text-wrap: pretty; }

/* ---------- 16. Site personnel (accueil « 5a ») ----------
   Palette papier, plus chaude que le reste du site, et trois composants
   interactifs construits sur des contrôles de formulaire natifs plutôt que
   sur du script : onglets en boutons radio, grille en cases à cocher,
   compteur en compteur CSS. Tout fonctionne sans JavaScript.            */

.t-paper {
  --paper: #e7e3da;
  --paper-raised: #f4f1ea;
  --night-deep: #171512;
  --night-warm: #efe9df;

  --surface: var(--paper);
  --surface-page: var(--paper);
  --surface-raised: var(--paper-raised);
  --plate-frame: var(--paper-raised);
  --shell-max: 82.5rem;
}

/* Trame diagonale qui dérive très lentement. `scroll` plutôt que `fixed` :
   l'attachement fixe provoque des à-coups sur iOS et coûte un repaint
   plein écran à chaque frame. */
.t-paper body {
  background-image:
    repeating-linear-gradient(45deg, rgba(182, 130, 53, .06) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(-45deg, rgba(182, 130, 53, .06) 0 1px, transparent 1px 30px),
    radial-gradient(circle at 50% 0, rgba(182, 130, 53, .05), transparent 60%);
  background-size: auto, auto, 100% 900px;
  background-attachment: scroll;
  background-repeat: repeat, repeat, no-repeat;
  animation: drift 90s linear infinite;
}
@keyframes drift {
  from { background-position: 0 0, 0 0, 50% 0; }
  to   { background-position: 424px 424px, -424px 424px, 50% 0; }
}

.t-paper .page-body { background: transparent; }
.t-paper .site-header,
.t-paper .rule,
.t-paper .rule-b { border-color: var(--ink-24); }

/* --- Monogramme ---------------------------------------------------------- */
.brandmark {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.brandmark__seal {
  inline-size: 2.125rem;
  block-size: 2.125rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--gold-deep);
  flex: none;
}

/* --- Une personnelle ----------------------------------------------------- */
.masthead { display: grid; border-block-end: 1px solid var(--ink-24); }
@media (min-width: 62rem) {
  .masthead {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: stretch;
  }
  .masthead__figure { border-inline-start: 1px solid var(--ink-24); }
}
.masthead__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(2.5rem, 1rem + 6vw, 4.5rem);
  padding-inline: var(--gutter);
}
@media (min-width: 62rem) {
  .masthead__text { padding-inline-end: var(--space-l); }
}
/* Le nom occupe toute la largeur disponible sans jamais déborder :
   la taille se cale sur le conteneur, pas sur une valeur en pixels. */
.masthead__name {
  font-size: clamp(3.5rem, 1rem + 12vw, 9.375rem);
  line-height: .9;
  letter-spacing: -.03em;
}
.masthead__figure { position: relative; min-block-size: 20rem; }
.masthead__figure img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.signature {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-3);
  color: var(--gold-deep);
  line-height: 1.15;
}

/* --- Bandeau de chiffres ------------------------------------------------- */
/* Nombre de colonnes explicite plutôt qu'`auto-fit` : les filets de
   séparation dépendent de la position dans la grille, et il faut donc
   savoir où sont les débuts de ligne. */
.statbar {
  display: grid;
  grid-template-columns: 1fr;
  border-block-end: 1px solid var(--ink-24);
}
@media (min-width: 34rem) { .statbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 52rem) { .statbar { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Colonne centrée : le chiffre au-dessus, le libellé dessous, l'ensemble
   aligné sur l'axe de la colonne. `gap` remplace la marge — les enfants
   sont des <span>, et une marge de bloc n'a aucun effet sur de l'inline. */
.statbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: var(--space-xs);
  padding: var(--space-m) var(--space-s);
  border-block-start: 1px solid var(--ink-16);
}
/* Les filets sautent en début de ligne et sur la première rangée — mais
   jamais le rembourrage : un rembourrage inégal décalerait le centre d'une
   colonne par rapport aux autres, et les chiffres cesseraient d'être
   alignés entre eux. C'est précisément ce qu'on veut éviter. */
.statbar__item:first-child { border-block-start: 0; }

@media (min-width: 34rem) {
  .statbar__item:nth-child(-n + 2) { border-block-start: 0; }
  .statbar__item:not(:nth-child(2n + 1)) { border-inline-start: 1px solid var(--ink-16); }
}
@media (min-width: 52rem) {
  .statbar__item { border-block-start: 0; }
  .statbar__item:not(:first-child) { border-inline-start: 1px solid var(--ink-16); }
}

.statbar__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  font-weight: 300;
}
.statbar__label {
  display: block;
  max-inline-size: 16ch;
  font-family: var(--font-mono);
  font-size: .625rem;
  line-height: 1.5;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* --- Lettrine ------------------------------------------------------------ */
.dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 4.2em;
  line-height: .72;
  float: inline-start;
  margin: .1em .22em 0 0;
  color: var(--gold-deep);
}

/* --- Rangées de liste ---------------------------------------------------- */
.rows { border-block-start: 1px solid var(--ink-24); }
.row-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-s);
  align-items: baseline;
  padding: var(--space-s) var(--space-2xs);
  border-block-end: 1px solid var(--ink-16);
  color: inherit;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease),
              padding-inline-start var(--dur-fast) var(--ease);
}
.row-item:hover,
.row-item:focus-visible { background: var(--gold-wash); padding-inline-start: var(--space-s); color: inherit; }
.row-item__name { font-family: var(--font-display); font-size: var(--step-2); font-weight: 300; }
.row-item__meta {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--ink-40);
}
.row-item--numbered { grid-template-columns: 2.75rem minmax(0, 1fr) auto; }
.row-item__num { font-family: var(--font-display); font-size: var(--step-2); color: var(--gold); font-variant-numeric: tabular-nums; }
.row-item__name { display: block; }
.row-item__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-block-start: var(--space-2xs);
}
.row-item__arrow { color: var(--gold); font-size: 1.1rem; transition: transform var(--dur-fast) var(--ease); }
.row-item:hover .row-item__arrow { transform: translateX(10px); }

/* --- Le cachet du mois ---------------------------------------------------
   La maquette tirait un lot au hasard, ce que le CSS ne sait pas faire.
   Ici le sceau révèle l'offre du mois — un sceau, un mois, une offre. */
.seal { display: grid; gap: var(--space-s); }
@media (min-width: 34rem) {
  .seal { grid-template-columns: minmax(0, 1fr) 8.25rem; align-items: center; gap: var(--space-m); }
}
.seal__input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.seal__face,
.seal__prize {
  inline-size: 8.25rem;
  block-size: 8.25rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  text-align: center;
  padding: var(--space-s);
}
.seal__face {
  background: var(--surface-raised);
  outline: 1px solid rgba(182, 130, 53, .4);
  outline-offset: -8px;
  cursor: pointer;
  transform: rotate(-6deg);
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease);
}
.seal__face:hover { transform: rotate(-3deg) scale(1.04); box-shadow: var(--shadow-m); }
.seal__input:focus-visible + .seal__face { outline: 2px solid var(--gold); outline-offset: 3px; }
.seal__star { font-family: var(--font-display); font-size: 2rem; color: rgba(182, 130, 53, .55); line-height: 1; }
.seal__prize { background: rgba(182, 130, 53, .12); transform: rotate(-2deg); }
.seal__prize span { font-family: var(--font-display); font-size: .9375rem; line-height: 1.22; }
.seal__input:not(:checked) ~ .seal__prize { display: none; }
.seal__input:checked ~ .seal__face { display: none; }

/* --- La grille des douze semaines ---------------------------------------
   Le compteur « n / 12 » est un compteur CSS : il s'incrémente sur chaque
   case cochée. Il doit donc suivre les cases dans le DOM — `order` le
   remonte visuellement au-dessus de la grille.                          */
.weeks { counter-reset: semaines; border: 0; margin: 0; padding: 0; }
.weeks > legend {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding: 0;
}
/* Le compteur suit la grille dans le DOM — il le doit, un compteur CSS se lit
   dans l'ordre du document. `order` le remonte au-dessus à l'affichage. */
.weeks__body { display: flex; flex-direction: column; margin-block-start: var(--space-s); }
.weeks__count {
  order: -1;
  align-self: flex-end;
  margin-block-end: var(--space-xs);
}
.weeks__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.weeks__cell { position: relative; }
.weeks__cell input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.weeks__cell label {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  font: .75rem var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink-55);
  border: 1px solid var(--ink-24);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.weeks__cell label:hover { border-color: var(--gold); color: var(--gold-deep); }
.weeks__cell input:checked + label { background: var(--gold); border-color: var(--gold); color: var(--paper-raised); }
.weeks__cell input:checked { counter-increment: semaines; }
.weeks__cell input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.weeks__count {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .18em;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}
.weeks__count::after { content: counter(semaines) " / 12"; }

/* --- Le carnet : onglets en boutons radio --------------------------------
   Les boutons radio précèdent la mise en page : le combinateur `~` permet
   à l'onglet coché de révéler son panneau, sans script et sans `:has()`. */
.needs { border: 0; margin: 0; padding: 0; }
.needs > legend {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding: 0;
  margin-block-end: var(--space-s);
}
.needs > input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.needs__layout { display: grid; gap: var(--space-m); }
@media (min-width: 64rem) {
  .needs__layout {
    grid-template-columns: 14.375rem minmax(0, 1fr) minmax(0, .75fr);
    gap: 0;
    align-items: stretch;
  }
  .needs__list { padding-inline-end: var(--space-m); }
  .needs__panels {
    border-inline: 1px solid var(--ink-24);
    padding-inline: var(--space-m);
  }
  .needs__figure { padding-inline-start: var(--space-m); }
}
.needs__list { display: flex; flex-direction: column; gap: .625rem; }
.needs__list label {
  display: block;
  padding: var(--space-s);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 300;
  color: var(--ink-72);
  border: 1px solid var(--ink-24);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.needs__list label:hover { border-color: var(--gold); color: var(--gold-deep); }
.needs__panel { display: none; }
.needs__panel h3 { font-size: var(--step-4); }
.needs__steps { border-block-start: 1px solid var(--ink-16); margin-block-start: var(--space-m); }
.needs__step {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: var(--space-s);
  align-items: baseline;
  padding-block: var(--space-s);
  border-block-end: 1px solid var(--ink-16);
}
.needs__step-num { font-family: var(--font-display); font-size: var(--step-1); color: var(--gold); font-variant-numeric: tabular-nums; }

/* Un onglet actif par bouton radio coché. */
#need-a:checked ~ .needs__layout .needs__list label[for="need-a"],
#need-b:checked ~ .needs__layout .needs__list label[for="need-b"],
#need-c:checked ~ .needs__layout .needs__list label[for="need-c"] {
  border-color: var(--gold);
  background: rgba(182, 130, 53, .12);
  color: var(--gold-deep);
}
#need-a:focus-visible ~ .needs__layout .needs__list label[for="need-a"],
#need-b:focus-visible ~ .needs__layout .needs__list label[for="need-b"],
#need-c:focus-visible ~ .needs__layout .needs__list label[for="need-c"] {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
#need-a:checked ~ .needs__layout .needs__panel--a,
#need-b:checked ~ .needs__layout .needs__panel--b,
#need-c:checked ~ .needs__layout .needs__panel--c { display: block; }

/* --- Parcours : bloc sombre chaud ---------------------------------------- */
.deep { background: var(--night-deep); color: var(--night-warm); }
.deep h2, .deep h3 { color: var(--night-warm); }
.deep p { color: rgba(239, 233, 223, .78); }
.deep .kicker { color: rgba(239, 233, 223, .4); }
.deep .dropcap::first-letter { color: var(--gold-light); }

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  border-block-start: 1px solid rgba(239, 233, 223, .22);
  margin-block-start: var(--space-l);
}
.timeline__item { padding: var(--space-m) var(--space-s) 0; border-inline-start: 1px solid rgba(239, 233, 223, .14); }
.timeline__item:first-child { border-inline-start: 0; padding-inline-start: 0; }
.timeline__year { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.timeline__event { font-family: var(--font-display); font-size: var(--step-2); font-weight: 300; margin-block-start: var(--space-xs); }

.watermark__letter {
  position: absolute;
  inset-inline-end: var(--space-m);
  inset-block-end: -.32em;
  font-family: var(--font-display);
  font-size: clamp(9rem, 4rem + 20vw, 17.5rem);
  line-height: .7;
  color: rgba(182, 130, 53, .14);
  pointer-events: none;
  user-select: none;
}

/* --- Témoignages en trois colonnes --------------------------------------- */
.voices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  border-block-end: 1px solid var(--ink-24);
}
.voices__item { padding: var(--space-l) var(--space-m); border-inline-start: 1px solid var(--ink-16); }
.voices__item:first-child { border-inline-start: 0; padding-inline-start: 0; }
.voices blockquote {
  margin: var(--space-s) 0 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
}
.voices figcaption {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-block-start: var(--space-s);
}

/* ---------- 17. Animations ----------
   Trois garde-fous, dans cet ordre :

   1. `@media (prefers-reduced-motion: no-preference)` — rien ne bouge pour
      qui a demandé que rien ne bouge.
   2. `@supports (animation-timeline: view())` — l'état initial `opacity:0`
      n'est posé QUE si le navigateur sait déclencher l'animation au défilement.
      Sans ce garde-fou, un navigateur sans support laisserait le contenu
      invisible pour toujours. C'est le seul vrai danger de ce fichier.
   3. `animation-fill-mode: both` + une plage `entry` — un élément déjà visible
      au chargement est au-delà de la plage, donc affiché.

   Tout n'anime que `opacity` et `transform` : les deux seules propriétés que
   le compositeur traite sans recalculer la mise en page.                  */

@keyframes rise      { from { opacity: 0; transform: translateY(1.25rem); } }
@keyframes rise-far  { from { opacity: 0; transform: translateY(2.5rem); } }
@keyframes fade      { from { opacity: 0; } }
@keyframes slide-in  { from { opacity: 0; transform: translateX(-1.5rem); } }
@keyframes zoom-out  { from { transform: scale(1.08); } }
@keyframes draw      { from { transform: scaleX(0); } }
@keyframes drift-up  { to   { transform: translateY(-3rem); } }

@media (prefers-reduced-motion: no-preference) {

  /* --- Au chargement : ce qui est déjà à l'écran ------------------------
     Animations temporelles, donc sans dépendance au support du défilement :
     elles se jouent toujours, et ne peuvent pas laisser le contenu caché. */

  .site-header { animation: fade .8s var(--ease) both; }

  .masthead__name    { animation: rise .9s var(--ease) both; }
  .masthead .signature { animation: rise .9s .1s var(--ease) both; }
  .masthead__text hr { animation: draw .8s .2s var(--ease) both; transform-origin: left center; }
  .masthead__text .lede { animation: rise .9s .28s var(--ease) both; }
  .masthead__text .cluster { animation: rise .9s .38s var(--ease) both; }
  .masthead__figure img { animation: zoom-out 1.6s var(--ease) both; }

  /* --- Au défilement ---------------------------------------------------- */

  @supports (animation-timeline: view()) {

    /* Blocs de section : titre, chapô, média. */
    .section > .kicker,
    .section > .title,
    .section > .subtitle,
    .section > .lede,
    .section > .prose,
    .section > .todo,
    .section > .note,
    .split > *,
    .statbar,
    .voices,
    .timeline,
    .rows,
    .needs,
    .weeks {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 22%;
    }

    /* Deux familles, et la distinction n'est pas cosmétique.

       (a) Blocs autonomes — cartes de grille, cartes de l'éventail. Ils
           peuvent monter en décalé : rien ne les relie visuellement.

       (b) Groupes tenus par un filet continu — bandeau de chiffres, frise,
           témoignages, étapes, rangées de liste. Ceux-là ne doivent JAMAIS
           se déplacer en décalé : un `translateY` différent d'un élément à
           l'autre casse l'alignement et brise le filet qui les relie. Le
           bandeau de chiffres en est l'exemple exact — quatre nombres à
           quatre hauteurs pendant toute la durée de l'entrée.
           Ils ne varient donc qu'en opacité. */

    .grid > *,
    .fan__card {
      animation: rise-far linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }
    .grid > :nth-child(2), .fan__card:nth-child(2) { animation-range: entry 0% cover 27%; }
    .grid > :nth-child(3), .fan__card:nth-child(3) { animation-range: entry 0% cover 34%; }
    .grid > :nth-child(4) { animation-range: entry 0% cover 41%; }

    .statbar__item,
    .voices__item,
    .timeline__item,
    .steps > *,
    .needs__step,
    .index-row,
    .row-item {
      animation: fade linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 18%;
    }
    .statbar__item:nth-child(2),
    .voices__item:nth-child(2),
    .timeline__item:nth-child(2),
    .steps > :nth-child(2),
    .needs__step:nth-child(2),
    .index-row:nth-child(2),
    .row-item:nth-child(2) { animation-range: entry 0% cover 24%; }

    .statbar__item:nth-child(3),
    .voices__item:nth-child(3),
    .timeline__item:nth-child(3),
    .steps > :nth-child(3),
    .needs__step:nth-child(3),
    .index-row:nth-child(3),
    .row-item:nth-child(3) { animation-range: entry 0% cover 30%; }

    .statbar__item:nth-child(4),
    .steps > :nth-child(4),
    .row-item:nth-child(4) { animation-range: entry 0% cover 36%; }

    /* Images : très léger dézoom pendant l'entrée. */
    .plate img {
      animation: zoom-out linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }

    /* Filets qui se tracent. */
    .section > hr {
      animation: draw .6s linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 25%;
      transform-origin: left center;
    }

    /* Le M du parcours dérive doucement sur toute la traversée du bloc. */
    .watermark__letter {
      animation: drift-up linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

/* --- Micro-interactions (sans dépendance au défilement) ------------------ */

.site-nav a { position: relative; }
.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  block-size: 1px;
  inline-size: 0;
  background: var(--gold);
  transition: inline-size var(--dur-fast) var(--ease);
}
.site-nav a:hover::after { inline-size: 100%; }
.site-nav a[aria-current="page"]::after { inline-size: 0; }

.site-footer a { transition: color var(--dur-fast) var(--ease), padding-inline-start var(--dur-fast) var(--ease); }
.site-footer a:hover { padding-inline-start: .3rem; }

.brandmark__seal { transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); }
.brandmark:hover .brandmark__seal { transform: rotate(-12deg); background: var(--gold-wash); }

.statbar__item { transition: background var(--dur-fast) var(--ease); }
.statbar__item:hover { background: var(--gold-wash); }

.voices__item { transition: background var(--dur-fast) var(--ease); }
.voices__item:hover { background: var(--gold-wash); }

.timeline__item { transition: transform var(--dur) var(--ease); }
.timeline__item:hover { transform: translateY(-.25rem); }

.slot { transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.slot:hover { border-color: var(--gold); color: var(--gold-deep); }

.calendar td { transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.calendar td.is-free:hover { border-color: var(--gold); background: var(--gold-wash); }

.faq summary { transition: color var(--dur-fast) var(--ease); }
.faq summary:hover { color: var(--gold-deep); }
.faq summary::after { transition: transform var(--dur-fast) var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg); }

.card__title,
.fan__title { transition: color var(--dur-fast) var(--ease); }
.fan__card:hover .fan__title { color: var(--gold-deep); }

/* ---------- 13. Préférences utilisateur & impression ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .t-paper body { animation: none; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms;
    animation-iteration-count: 1;
    transition-duration: .01ms;
    scroll-behavior: auto;
  }
  .fan__card:nth-child(1),
  .fan__card:nth-child(2),
  .fan__card:nth-child(3) { transform: none; }
  .fan__card:hover,
  .fan__card:focus-visible { transform: none; }
}

@media (prefers-contrast: more) {
  :root {
    --ink-72: rgba(32, 31, 29, .88);
    --ink-55: rgba(32, 31, 29, .75);
    --ink-24: rgba(32, 31, 29, .45);
    --ink-16: rgba(32, 31, 29, .35);
  }
}

@media print {
  .site-header, .site-footer, .skip-link, .ribbon, .calendar__slots { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-body { max-inline-size: none; }
  .fan__card { transform: none; box-shadow: none; break-inside: avoid; }
  a::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
  a[href^="#"]::after { content: ""; }
}
