/* ==========================================================================
   Composants — partagés par toutes les landings
   Convention : une classe racine par composant, variantes en `--`,
   éléments en `__`. Aucune couleur en dur : uniquement les rôles de tokens.
   ========================================================================== */

/* --- En-tête ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 3px solid var(--rule-strong);
  box-shadow: 0 1px 0 var(--rule-strong);   /* le double filet de manchette */
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: 4.5rem;
}
.site-header__nav { display: none; margin-left: auto; }
.site-header__nav ul {
  list-style: none; display: flex; gap: var(--sp-5); padding: 0; margin: 0;
  font-family: var(--font-label);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-header__cta { margin-left: auto; }
@media (min-width: 62rem) {
  .site-header__nav { display: block; }
  .site-header__cta { margin-left: 0; }
}

/* --- Manchette -----------------------------------------------------------
   SIGNATURE TYPOGRAPHIQUE : le titre est tiré en deux encres, et la seconde
   est légèrement hors registre — le défaut d'un tirage bon marché, assumé.
   Le fantôme rouge se cale au chargement (animation press-register).
   Le doublon de texte est masqué aux lecteurs d'écran.
   ------------------------------------------------------------------------- */
.wordmark {
  position: relative; display: inline-block;
  font-family: var(--font-display);
  font-weight: var(--wt-display);
  font-optical-sizing: none;
  font-size: var(--step-1);
  letter-spacing: var(--ls-display);
  white-space: nowrap;
  color: var(--fg);
}
.wordmark__ghost {
  position: absolute; inset: 0;
  color: var(--accent);
  transform: translate(0.055em, 0.05em);
  animation: press-register 700ms var(--ease) both;
}
.wordmark__ink { position: relative; }
.wordmark--lg { font-size: var(--step-3); }

/* --- Boutons ------------------------------------------------------------- */
/* Les formes viennent de l'app : pastilles pleines, cible tactile généreuse. */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6ch;
  min-height: 3.25rem;
  padding: var(--sp-3) var(--sp-6);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-text);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease),
              color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { --btn-bg: var(--accent-hover); color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--accent-text);
  border-color: color-mix(in srgb, var(--accent-text) 45%, transparent);
}
.btn--ghost:hover { --btn-bg: var(--accent-wash); border-color: var(--accent-text); }

.btn--ink { --btn-bg: var(--fg); --btn-fg: var(--bg); }
.btn--ink:hover { --btn-bg: color-mix(in srgb, var(--fg) 85%, var(--accent)); }

.btn--lg { min-height: 3.75rem; padding-inline: var(--sp-6); }
/* Sur mobile, deux CTA empilés à mi-largeur font désordre : pleine largeur. */
@media (max-width: 32rem) { .cluster--cta > .btn { flex: 1 1 100%; } }
.btn--block { width: 100%; }
.btn--sm { min-height: 2.5rem; padding: var(--sp-2) var(--sp-4); font-size: var(--step--1); }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section-y); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
.hero__title { font-size: var(--step-5); }
/* L'emphase de la manchette est en italique rouge. L'italique de Fraunces est
   assumé maniéré — son « e » est une boucle presque fermée, son « d » part en
   swash : c'est ce qui donne son grain à l'incise, à condition de rester en
   graisse 700 (voir --wt-display). Au-delà, les contreformes se bouchent. */
.hero__title em { font-style: italic; color: var(--accent-text); }
.hero__proof { list-style: none; padding: 0; margin: 0; font-size: var(--step--1); color: var(--fg-soft); }
.hero__proof li { position: relative; padding-left: 1.6ch; }
.hero__proof li + li { margin-top: var(--sp-2); }
.hero__proof li::before {
  content: "■"; position: absolute; left: 0; top: 0;
  color: var(--accent-text); font-size: 0.62em; line-height: 2.6;
}

/* --- Itinéraire ---------------------------------------------------------
   Les étapes d'un numéro ne sont pas « 01 / 02 / 03 » : elles ont des DATES,
   parce que la promesse du produit est justement la parution à date fixe.
   Le repère rouge sur le filet est une marque de repérage d'imprimeur.
   ------------------------------------------------------------------------- */
.itineraire { list-style: none; padding: 0; margin: 0; }
.etape { position: relative; padding-top: var(--sp-5); border-top: 3px solid var(--rule-strong); }
.etape::before {
  content: ""; position: absolute; top: -3px; left: 0;
  width: 2rem; height: 3px; background: var(--accent);
}
.etape__phase {
  font-family: var(--font-label); font-weight: 700;
  font-size: var(--step--2); letter-spacing: var(--ls-caps);
  text-transform: uppercase; color: var(--accent-text);
}
.etape__title {
  margin-top: var(--sp-2);
  font-family: var(--font-text); font-size: var(--step-1);
  font-weight: 700; letter-spacing: 0; line-height: var(--lh-title);
}
.etape__body { color: var(--fg-soft); margin-top: var(--sp-2); }

/* --- Cartes -------------------------------------------------------------- */
.card {
  background: var(--bg);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.card--wash { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent-text) 28%, transparent); }
.card--flat { border: 0; background: var(--bg-alt); }
.card--raised { box-shadow: var(--shadow); border-color: transparent; }
.card__title { font-size: var(--step-2); }

/* RÈGLE : tout composant qui pose son propre fond teinté fonce son rouge de
   TEXTE. Sur un aplat, le rouge plein tombe sous 4,5:1 (3,8 à 4,3 selon la
   trame) ; l'encre appuyée remonte à 5,7–6,3:1. C'est le même phénomène que le
   dot gain : plus le papier boit, plus l'encre fonce. */
.card--flat, .card--wash, .pot, .badge { --accent-text: var(--rouge-deep); }
/* Réciproque : sur l'encre pleine ces mêmes fonds sont SOMBRES, l'encre
   appuyée y disparaît. Le rouge de texte remonte à sa trame 70 %. */
.is-ink :is(.card--flat, .card--wash, .pot, .badge) { --accent-text: var(--rouge-tint); }
.card__body { color: var(--fg-soft); margin-top: var(--sp-3); }

/* Liste de ce qui est compris */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.7em; }
.ticks li + li { margin-top: var(--sp-3); }
.ticks li::before {
  content: "■"; position: absolute; left: 0; top: 0;
  color: var(--accent-text); font-size: 0.62em; line-height: 2.7;
}

/* --- Rubriques (sommaire du journal) ------------------------------------- */
.rubrique { display: flex; gap: var(--sp-4); align-items: baseline; }
.rubrique__num {
  font-family: var(--font-label); font-weight: 700; font-size: var(--step--1);
  color: var(--accent-text); flex: none; min-width: 2.5ch;
  padding-top: 0.35em;
}
.rubrique__title { font-size: var(--step-1); }
.rubrique__body { color: var(--fg-soft); font-size: var(--step--1); margin-top: var(--sp-1); }

/* --- Prix ---------------------------------------------------------------- */
.price {
  /* Grille : ne PAS y ajouter `.stack`, les marges s'additionneraient au gap. */
  display: grid; gap: var(--gap, var(--sp-5));
  border: 2px solid var(--rule-strong); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--bg);
}
.price--featured { border-color: var(--accent); }
/* Flex + wrap : l'unité descend d'un bloc plutôt que de se couper en deux
   (« 29 € / » puis « mois »). Les chiffres d'affichage sont larges : --step-4
   tient dans une colonne de grille à trois, --step-5 non. */
.price__amount {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35ch;
  font-family: var(--font-display); font-weight: var(--wt-display);
  font-optical-sizing: none;
  font-size: var(--step-4); line-height: 1;
  letter-spacing: var(--ls-display);
}
.price__unit {
  font-family: var(--font-label); font-size: 0.26em; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-soft);
}
.price__alt { font-size: var(--step--1); color: var(--fg-soft); }
.price__tag {
  display: inline-block; justify-self: start;
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--accent-text);
  color: var(--accent-text);
  font-family: var(--font-label); font-size: var(--step--2); font-weight: 700;
  letter-spacing: var(--ls-caps); text-transform: uppercase;
}

/* --- Cagnotte (reprise de l'écran de l'app) ------------------------------ */
.pot {
  border: 2px dashed color-mix(in srgb, var(--accent-text) 55%, transparent);
  border-radius: var(--radius-lg);
  background: var(--accent-wash);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
}
.pot__amount {
  font-family: var(--font-display); font-weight: var(--wt-display); font-size: var(--step-4);
  font-optical-sizing: none;
  line-height: 1.02; letter-spacing: var(--ls-display);
}
.pot__goal { font-size: 0.5em; font-weight: 400; color: var(--fg-soft); }
.progress {
  height: 0.7rem; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--fg) 14%, transparent);
  overflow: hidden; margin-block: var(--sp-4);
}
.progress__bar { height: 100%; background: var(--accent); border-radius: inherit; }
.participants { list-style: none; padding: 0; }
.participants li {
  display: flex; align-items: center; gap: var(--sp-4);
  padding-block: var(--sp-3);
  border-bottom: var(--border);
}
.participants__avatar {
  display: grid; place-items: center; flex: none;
  width: 2.75rem; aspect-ratio: 1; border-radius: 50%;
  background: var(--fg); color: var(--bg);
  font-family: var(--font-label); font-size: var(--step--2); font-weight: 700;
}
.participants__avatar--lead { background: var(--accent); color: var(--on-accent); }
.participants__name { font-weight: 700; }
.participants__amount { margin-left: auto; color: var(--accent-text); font-weight: 700; }

/* --- La carte-réponse ---------------------------------------------------
   SIGNATURE DE LA PAGE. C'est le seul argument que la concurrence n'a pas :
   le destinataire répond, et sa réponse est publiée. On le montre comme un
   objet — carton, timbre pré-payé, perforation, écriture — puis on montre la
   retranscription typographiée juste en dessous : la boucle en une image.
   L'écriture s'encre à l'apparition (voir landing.js).
   ------------------------------------------------------------------------- */
.carte {
  margin: 0;
  /* Objet fixe : la carte garde son carton et ses encres quel que soit le
     fond de la section qui l'accueille. */
  --accent-text: var(--rouge-deep);
  --fg-soft: var(--ink-70);
  background: var(--newsprint);
  color: var(--ink);
  border: 1px solid var(--newsprint-deep);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  rotate: -1.4deg;
}
.carte__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-5);
}
/* Le carton est un papier non couché : l'encre y fonce (voir tokens.css). */
.carte__port {
  flex: none; text-align: center;
  border: 1px dashed var(--rouge-deep);
  padding: var(--sp-2) var(--sp-3);
  color: var(--rouge-deep);
  font-family: var(--font-label); font-size: var(--step--2);
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3;
}
.carte__question {
  font-family: var(--font-text); font-size: var(--step-1);
  font-style: italic; margin-top: var(--sp-2);
}
.carte__hand {
  font-family: var(--font-script);
  font-size: clamp(1.65rem, 4.6vw, 2.4rem);
  line-height: 1.25;
  color: var(--rouge);
  margin-block: var(--sp-5) var(--sp-4);
}
/* État de départ posé par JS seulement : sans JS, l'écriture est visible. */
.carte.is-armed .carte__hand { clip-path: inset(0 100% 0 0); }
.carte.is-armed.is-inked .carte__hand {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.5s var(--ease);
}
.carte__transcript {
  font-family: var(--font-label); font-size: var(--step--2);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-70); margin-top: var(--sp-4);
}

/* --- Maquette de la Une (visuel produit, 100 % CSS) --------------------- */
.une {
  --accent-text: var(--rouge);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--newsprint-deep);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.2vw, 1.75rem);
  font-family: var(--font-text);
  font-size: clamp(0.6rem, 1.1vw, 0.78rem);
  line-height: 1.45;
}
.une__masthead {
  text-align: center;
  border-top: 1px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding-block: 0.4em 0.5em;
}
.une__title {
  font-family: var(--font-display); font-weight: var(--wt-display);
  font-optical-sizing: none;
  font-size: 2.5em; line-height: 1.02; letter-spacing: var(--ls-display); margin: 0;
}
.une__meta {
  display: flex; justify-content: space-between; gap: 1em;
  font-family: var(--font-label); font-size: 0.82em;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-70); margin-top: 0.5em;
}
.une__lead { display: grid; gap: 0.9em; margin-top: 0.9em; }
@media (min-width: 34rem) { .une__lead { grid-template-columns: 1.35fr 1fr; } }
@media (max-width: 34rem) { .une__photo { aspect-ratio: 16 / 10; } }
.une__photo {
  aspect-ratio: 4 / 3;
  background: var(--newsprint);
  border: 1px solid var(--newsprint-deep);
  display: grid; place-items: center;
  color: var(--ink-45);
  font-family: var(--font-label); font-size: 0.82em;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.une__headline {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5em; line-height: 1.12; letter-spacing: var(--ls-display);
}
.une__kicker {
  font-family: var(--font-label); font-size: 0.78em; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text);
}
.une__cols { columns: 2; column-gap: 1.2em; column-rule: 1px solid var(--newsprint-deep); margin-top: 0.9em; }
.une__box {
  --accent-text: var(--rouge-deep);   /* encadré sur trame : voir la RÈGLE */
  margin-top: 0.9em; border: 1px solid var(--rouge-deep);
  background: var(--rouge-wash); padding: 0.7em 0.9em;
}
/* Faux-texte : des trames, jamais une phrase inventée. */
.lines { display: grid; gap: 0.42em; }
.lines > i { display: block; height: 0.42em; background: var(--ink-20); }
.lines > i:last-child { width: 62%; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { border-top: var(--border); }
.faq__item { border-bottom: var(--border); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding-block: var(--sp-5);
  font-family: var(--font-text); font-size: var(--step-1); font-weight: 700;
  cursor: pointer; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; flex: none;
  font-family: var(--font-label); font-size: 1.3em; line-height: 1;
  color: var(--accent-text);
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding-bottom: var(--sp-5); color: var(--fg-soft); max-width: var(--w-text); }

/* --- Formulaire --------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: var(--sp-2); }
.field__label {
  font-family: var(--font-label); font-size: var(--step--2); font-weight: 700;
  letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--fg-soft);
}
.field__input {
  width: 100%; min-height: 3.25rem;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--field);
  color: var(--fg);
  font-family: var(--font-text); font-size: var(--step-0);
}
/* Dérivé du texte courant : tient l'AA sur les trois fonds. */
.field__input::placeholder { color: color-mix(in srgb, var(--fg) 66%, transparent); }
.field__input:focus-visible { border-color: var(--accent); }
.field__hint { font-size: var(--step--1); color: var(--fg-soft); font-style: italic; }
.form__status { font-size: var(--step--1); min-height: 1.5em; }
.form__status[data-state="error"] { color: var(--accent-text); }

/* --- Divers ------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.6ch;
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid color-mix(in srgb, var(--accent-text) 45%, transparent);
  background: var(--accent-wash); color: var(--accent-text);
  font-family: var(--font-label); font-size: var(--step--2); font-weight: 700;
  letter-spacing: var(--ls-caps); text-transform: uppercase;
}
.note { border-left: 3px solid var(--accent); padding-left: var(--sp-4); color: var(--fg-soft); }
.stat__value {
  font-family: var(--font-display); font-size: var(--step-3);
  font-weight: var(--wt-display); font-optical-sizing: none;
  line-height: 1; letter-spacing: var(--ls-display);
}
.stat__label {
  font-family: var(--font-label); font-size: var(--step--2);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-soft); margin-top: var(--sp-2);
}

.site-footer { border-top: 3px solid var(--rule-strong); padding-block: var(--sp-7); font-size: var(--step--1); }
.site-footer__grid { display: grid; gap: var(--sp-5); }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: var(--sp-2); }
.site-footer a { color: var(--fg-soft); }

/* Barre CTA collante mobile — la conversion est le seul KPI de la Phase 0 */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: flex; gap: var(--sp-3); align-items: center;
  padding: var(--sp-3) var(--sp-4);
  padding-bottom: max(var(--sp-3), env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(10px);
  border-top: 3px solid var(--rule-strong);
  transform: translateY(110%);
  transition: transform var(--dur) var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__price { font-family: var(--font-label); font-size: var(--step--1); font-weight: 700; white-space: nowrap; }
.sticky-cta .btn { flex: 1; }
@media (min-width: 48rem) { .sticky-cta { display: none; } }

/* --- Bandeau de une ------------------------------------------------------
   Le haut de page EST une première page : entre deux filets, la ligne
   d'identification d'un journal (numéro, édition, périodicité, pagination).
   ------------------------------------------------------------------------- */
.dateline {
  display: flex; flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  padding-block: var(--sp-2);
  font-family: var(--font-label); font-size: var(--step--2);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-soft);
}
.dateline b { color: var(--fg); font-weight: 700; }
/* Réparti sur toute la largeur seulement quand il tient sur une ligne ;
   en dessous il s'aligne à gauche et s'enroule proprement. */
@media (min-width: 62rem) { .dateline { justify-content: space-between; } }

/* --- Déclaration --------------------------------------------------------
   Une phrase, en grand, sans carte autour. Sert à casser le rythme des
   sections : partout ailleurs on explique, ici on affirme.
   ------------------------------------------------------------------------- */
.statement {
  font-family: var(--font-display); font-weight: var(--wt-display);
  font-optical-sizing: none;
  font-size: var(--step-4); line-height: 1.06;
  letter-spacing: var(--ls-display); text-wrap: balance;
  margin: 0;
}
.statement em { font-style: italic; color: var(--accent-text); }

/* --- Sommaire ------------------------------------------------------------
   Le chemin de fer du numéro, avec points de conduite et pagination : la
   forme d'un vrai sommaire, pas une grille de cartes.
   ------------------------------------------------------------------------- */
.sommaire { list-style: none; padding: 0; margin: 0; }
.sommaire li {
  display: flex; align-items: baseline; gap: var(--sp-3);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--rule);
}
.sommaire li:first-child { border-top: 1px solid var(--rule); }
.sommaire__num {
  flex: none; min-width: 2.5ch;
  font-family: var(--font-label); font-size: var(--step--2); font-weight: 700;
  color: var(--accent-text);
}
.sommaire__body { flex: 0 1 auto; }
.sommaire__title { font-weight: 700; }
.sommaire__desc { color: var(--fg-soft); font-size: var(--step--1); }
/* Points de conduite : un élément élastique à bordure pointillée. */
.sommaire__dots {
  flex: 1 1 1.5rem; min-width: 1rem;
  border-bottom: 1px dotted var(--fg-soft);
  translate: 0 -0.3em;
  opacity: 0.55;
}
.sommaire__page {
  flex: none;
  font-family: var(--font-label); font-size: var(--step--2);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-soft);
}

/* Colonne large dans une grille à trois — seulement quand la grille a
   vraiment trois colonnes. Posé en inline, `grid-column: span 2` s'applique
   aussi en mono-colonne et y crée une colonne implicite. */
.is-wide { grid-column: auto; }
@media (min-width: 68rem) { .is-wide { grid-column: span 2; } }

/* --- Colophon -----------------------------------------------------------
   L'ours de l'imprimeur : les caractéristiques matérielles de l'objet.
   C'est ce qui rassure sur un achat de 29 € qu'on ne peut pas toucher.
   ------------------------------------------------------------------------- */
.colophon {
  margin: 0;
  font-family: var(--font-label); font-size: var(--step--2);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.colophon > div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--sp-4); padding-block: var(--sp-3);
  border-bottom: 1px solid var(--rule);
}
.colophon dt { color: var(--fg-soft); }
.colophon dd { margin: 0; text-align: right; }

/* --- Grain du papier ----------------------------------------------------
   Un bruit très léger sur les fonds imprimés. Rien de plus : au-delà de
   6 % ça devient un effet, et un effet se remarque.
   ------------------------------------------------------------------------- */
.has-grain { position: relative; isolation: isolate; }
.has-grain::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Mot de la rédaction ------------------------------------------------ */
.redaction { max-width: 44rem; }
.redaction p + p { margin-top: var(--sp-4); }
.redaction__sign {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: var(--step-1);
  margin-top: var(--sp-5);
}

/* --- Le tambour ---------------------------------------------------------
   Le destinataire n'est pas toujours une grand-mère : le mot tourne, et le
   suivant DESCEND par le haut — le sens d'un dropdown.

   Le ruban est parcouru à l'envers (du dernier vers le premier) : c'est ce qui
   fait venir le mot d'au-dessus. Le premier mot est donc doublé en tête du
   ruban, pour que le retour au départ se fasse sur un mot identique, transition
   coupée — aucun rembobinage visible.

   Trois autres pièges évités :
   · Le point final est DANS chaque mot (en encre noire, redressé). Sans ça il
     resterait à la largeur du mot le plus long, à distance du mot court.
   · La boîte fait donc la largeur du mot le plus long et ne bouge jamais :
     aucun report de ligne pendant l'animation, aucune mesure en JS.
   · `overflow: hidden` sur une boîte en ligne place sa base sur le bord bas de
     sa marge, ce qui décale le mot vers le bas — d'où le `vertical-align`
     négatif, réglé à l'œil sur un rendu réel.
   ------------------------------------------------------------------------- */
/* État de base — c'est aussi le rendu sans JS : une simple incise en italique
   rouge, phrase entière, rien de cassé. */
.rotor {
  font-style: italic;
  color: var(--accent-text);
}
/* Le point reste droit et en encre noire, même dans une incise italique. */
.rotor__dot { font-style: normal; color: var(--fg); }

/* À partir d'ici, le JS a monté le ruban.
   Le pas doit être plus grand que l'encre réelle de la police, sinon le jambage
   du mot voisin dépasse de son bloc et fuit dans le masque : c'est ce qui
   laissait une marque rouge au-dessus de la ligne. Fraunces monte à ~0,98em
   au-dessus de la ligne de pied et descend à ~0,28em en dessous, soit 1,26em
   d'encre — 1,4em de pas met chaque mot au large dans son bloc.
   La marge négative ramène la boîte à la hauteur de ligne du titre pour que
   l'interlignage de la manchette ne bouge pas ; le `vertical-align` compense la
   base d'une boîte en `overflow: hidden`, qui se place sur son bord bas. Les
   trois valeurs vont ensemble : en changer une sans les autres décale le mot. */
.rotor--ready {
  --rotor-step: 1.4em;
  display: inline-block;
  overflow: hidden;
  height: var(--rotor-step);
  margin-block: calc((var(--rotor-step) - var(--lh-tight) * 1em) / -2);
  vertical-align: -0.18em;
}
.rotor__list {
  display: block;
  transform: translateY(calc(var(--i, 0) * -1 * var(--rotor-step)));
}
/* La transition n'est armée qu'une fois la position de départ posée, et elle
   est désarmée le temps du retour au début. */
/* easeOutQuint : le mot part vite et se pose net, sans flottement. Pas de
   dépassement : le mot voisin n'a que ~0,07em de dégagement dans le masque,
   un rebond le ferait apparaître. */
.rotor--ready.is-armed .rotor__list {
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}
.rotor__w {
  display: block;
  height: var(--rotor-step);
  line-height: var(--rotor-step);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .rotor--ready.is-armed .rotor__list { transition: none; }
}

}
