/* ==========================================================================
   Ramony Design System — couche 2 : composants
   --------------------------------------------------------------------------
   Aucune couleur, aucune taille de texte, aucun espacement en dur ici : tout
   passe par les tokens de tokens.css, qui doit être chargé AVANT ce fichier.
   Ne subsiste que la géométrie interne d'un composant (rotation du burger,
   chevron du select). Tous les composants sont préfixés `r-`.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset minimal
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--r-nav-h) + var(--r-s6));
}

body {
  margin: 0;
  background: var(--r-surface);
  color: var(--r-ink);
  font-family: var(--r-font);
  font-size: var(--r-fs-body);
  line-height: var(--r-lh-body);
  letter-spacing: var(--r-track-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }

/* Un seul anneau de focus pour tout le système. */
:focus-visible {
  outline: none;
  box-shadow: var(--r-focus-ring);
  border-radius: var(--r-radius-s);
}

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

.r-skip-link {
  position: absolute;
  left: var(--r-s4); top: calc(var(--r-s4) * -6);
  z-index: 100;
  padding: var(--r-s3) var(--r-s5);
  background: var(--r-surface);
  color: var(--r-accent);
  border-radius: var(--r-radius-s);
  box-shadow: var(--r-shadow-raised);
  transition: top var(--r-dur-fast) var(--r-ease);
}
.r-skip-link:focus { top: var(--r-s4); }

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */

.r-display, .r-h1, .r-h2, .r-h3 {
  margin: 0;
  color: var(--r-ink);
  font-weight: var(--r-weight-semi);
  text-wrap: balance;
}

.r-display { font-size: var(--r-fs-display); line-height: var(--r-lh-display); letter-spacing: var(--r-track-display); }
.r-h1      { font-size: var(--r-fs-h1);      line-height: var(--r-lh-heading); letter-spacing: var(--r-track-display); }
.r-h2      { font-size: var(--r-fs-h2);      line-height: var(--r-lh-heading); letter-spacing: var(--r-track-display); }
.r-h3      { font-size: var(--r-fs-h3);      line-height: var(--r-lh-heading); letter-spacing: var(--r-track-heading); }

.r-eyebrow {
  margin: 0 0 var(--r-s3);
  color: var(--r-accent);
  font-size: var(--r-fs-lead);
  font-weight: var(--r-weight-semi);
  line-height: var(--r-lh-heading);
  letter-spacing: var(--r-track-heading);
}

.r-lead {
  margin: 0;
  max-width: 42ch;
  color: var(--r-ink-2);
  font-size: var(--r-fs-lead);
  line-height: 1.38;
  text-wrap: pretty;
}

.r-body     { margin: 0; font-size: var(--r-fs-body); color: var(--r-ink); }
.r-body + .r-body { margin-top: var(--r-s5); }
.r-caption  { margin: 0; font-size: var(--r-fs-caption); color: var(--r-ink-2); }
.r-footnote { margin: 0; font-size: var(--r-fs-footnote); line-height: 1.33; color: var(--r-ink-2); }

.r-center { text-align: center; }
.r-center .r-lead { margin-inline: auto; }

/* Lien texte avec chevron, le « › » d'apple.com. */
.r-link {
  display: inline-flex;
  align-items: baseline;
  gap: var(--r-s1);
  color: var(--r-accent);
  /* Hérite : posé dans une légende ou une mention, le lien doit suivre la
     taille du texte qui l'entoure, pas imposer le corps de lecture. */
  font-size: inherit;
  text-decoration: none;
}
.r-link::after {
  content: "\203A";
  transition: transform var(--r-dur-fast) var(--r-ease);
}
.r-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.r-link:hover::after { transform: translateX(var(--r-s1)); }

/* --------------------------------------------------------------------------
   Gabarit : sections et conteneurs
   -------------------------------------------------------------------------- */

.r-section {
  padding-block: var(--r-s24);
  padding-inline: var(--r-gutter);
  background: var(--r-surface);
  color: var(--r-ink);
}
.r-section--tight { padding-block: var(--r-s16); }
.r-section--wash  { background: var(--r-surface-2); }
.r-section--dark  { background: var(--r-surface-inverse); color: var(--r-on-inverse); }
.r-section--dark .r-display,
.r-section--dark .r-h1,
.r-section--dark .r-h2,
.r-section--dark .r-h3 { color: var(--r-on-inverse); }
/* Tout ce qui est posé sur une surface sombre bascule sur la paire d'encre
   dédiée et sur l'accent éclairci — sinon l'encre secondaire claire et
   l'accent sombre y tombent sous 4,5:1. Une seule règle couvre les deux
   surfaces sombres du système : la section et la tuile. */
.r-section--dark .r-lead,     .r-tile--dark .r-lead,
.r-section--dark .r-caption,  .r-tile--dark .r-caption,
.r-section--dark .r-footnote, .r-tile--dark .r-footnote,
.r-section--dark .r-card__meta,
.r-section--dark .r-table__note,
.r-section--dark .r-field__hint { color: var(--r-on-inverse-2); }

.r-section--dark .r-link,    .r-tile--dark .r-link,
.r-section--dark .r-eyebrow, .r-tile--dark .r-eyebrow { color: var(--r-accent-on-dark); }

.r-container       { width: 100%; max-width: var(--r-container);      margin-inline: auto; }
.r-container--wide { width: 100%; max-width: var(--r-container-wide);  margin-inline: auto; }

.r-section-head { margin-bottom: var(--r-s12); }

.r-stack   { display: flex; flex-direction: column; gap: var(--r-s5); }
.r-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--r-s4); }
.r-cluster--center { justify-content: center; }

@media (max-width: 734px) {
  .r-section { padding-block: var(--r-s16); }
  .r-section-head { margin-bottom: var(--r-s10); }
}

/* --------------------------------------------------------------------------
   Navigation translucide
   -------------------------------------------------------------------------- */

.r-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--r-nav-h);
  background: var(--r-nav-bg);
  border-bottom: var(--r-hairline-w) solid var(--r-nav-hairline);
  -webkit-backdrop-filter: var(--r-backdrop);
  backdrop-filter: var(--r-backdrop);
}

.r-nav__inner {
  display: flex;
  align-items: center;
  gap: var(--r-s6);
  height: 100%;
  max-width: var(--r-container-wide);
  margin-inline: auto;
  padding-inline: var(--r-gutter);
}

.r-nav__logo {
  display: flex;
  align-items: center;
  flex: none;
  color: var(--r-ink);
  font-size: var(--r-fs-lead);
  font-weight: var(--r-weight-semi);
  letter-spacing: var(--r-track-heading);
  text-decoration: none;
}
.r-nav__logo img { height: var(--r-s6); width: auto; }

.r-nav__menu {
  display: flex;
  align-items: center;
  gap: var(--r-s6);
  flex: 1;
  margin: 0; padding: 0;
  list-style: none;
}
.r-nav__menu a {
  color: var(--r-ink);
  font-size: var(--r-fs-footnote);
  letter-spacing: var(--r-track-nav);
  text-decoration: none;
  opacity: .88;
  transition: opacity var(--r-dur-fast) var(--r-ease);
}
.r-nav__menu a:hover { opacity: 1; }
.r-nav__menu a[aria-current="page"] { font-weight: var(--r-weight-semi); opacity: 1; }

.r-nav__actions { display: flex; align-items: center; gap: var(--r-s3); flex: none; }

.r-nav__burger {
  display: none;
  width: var(--r-s8); height: var(--r-s8);
  padding: 0;
  background: none; border: 0; cursor: pointer;
  color: var(--r-ink);
}
.r-nav__burger span {
  display: block;
  width: var(--r-s4); height: 1px;
  margin-inline: auto;
  background: currentColor;
  transition: transform var(--r-dur-fast) var(--r-ease), opacity var(--r-dur-fast) var(--r-ease);
}
.r-nav__burger span + span { margin-top: var(--r-s1); }
.r-nav[data-open="true"] .r-nav__burger span:first-child { transform: translateY(2.5px) rotate(45deg); }
.r-nav[data-open="true"] .r-nav__burger span:last-child  { transform: translateY(-2.5px) rotate(-45deg); }

@media (max-width: 734px) {
  .r-nav__burger { display: block; order: -1; margin-left: calc(var(--r-s2) * -1); }
  .r-nav__inner  { gap: var(--r-s3); }
  .r-nav__logo   { flex: 1; }

  /* Le menu bascule en calque plein écran, comme la nav mobile d'apple.com.
     `top/left/right` + une hauteur explicite plutôt que `inset` : le
     `backdrop-filter` de `.r-nav` fait de sa propre boîte (48px de haut) le
     bloc de confinement de ce descendant fixed, donc `bottom: 0` se
     résoudrait contre `.r-nav` et non contre la fenêtre — le calque
     s'écraserait sur 48px au lieu de couvrir l'écran. `100vh` reste
     relatif à la fenêtre quel que soit le bloc de confinement. */
  .r-nav__menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--r-nav-h));
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--r-s6) var(--r-gutter) var(--r-s12);
    background: var(--r-surface);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(var(--r-s2) * -1));
    transition: opacity var(--r-dur) var(--r-ease),
                transform var(--r-dur) var(--r-ease),
                visibility var(--r-dur) var(--r-ease);
  }
  .r-nav[data-open="true"] .r-nav__menu {
    opacity: 1; visibility: visible; transform: none;
  }
  .r-nav__menu li { border-bottom: var(--r-hairline-w) solid var(--r-hairline); }
  .r-nav__menu a  { display: block; padding-block: var(--r-s5); font-size: var(--r-fs-lead); }
}

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

.r-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--r-s2);
  padding: var(--r-s3) var(--r-s5);
  border: var(--r-hairline-w) solid transparent;
  border-radius: var(--r-radius-pill);
  font-size: var(--r-fs-body);
  font-weight: var(--r-weight-regular);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--r-dur-fast) var(--r-ease),
              border-color var(--r-dur-fast) var(--r-ease),
              color var(--r-dur-fast) var(--r-ease);
}
.r-btn svg { width: 1em; height: 1em; fill: currentColor; }

.r-btn--primary {
  background: var(--r-accent-fill);
  color: var(--r-on-accent);
}
.r-btn--primary:hover { background: var(--r-accent-hover); }

.r-btn--secondary {
  background: transparent;
  border-color: var(--r-accent);
  color: var(--r-accent);
}
.r-btn--secondary:hover { background: var(--r-accent-soft); }

.r-btn--ghost {
  background: var(--r-fill-quiet);
  color: var(--r-ink);
}
.r-btn--ghost:hover { background: var(--r-fill-quiet-hover); }

.r-btn--small { padding: var(--r-s2) var(--r-s4); font-size: var(--r-fs-caption); }
.r-btn--block { display: flex; width: 100%; }

/* Sur fond sombre, le fantôme devient un voile clair — sinon son remplissage
   clair porterait une encre claire. */
.r-section--dark .r-btn--ghost,
.r-tile--dark .r-btn--ghost { background: var(--r-fill-on-dark); color: var(--r-on-inverse); }
.r-section--dark .r-btn--ghost:hover,
.r-tile--dark .r-btn--ghost:hover { background: var(--r-fill-on-dark-hover); }
.r-section--dark .r-btn--secondary { border-color: var(--r-on-inverse); color: var(--r-on-inverse); }
.r-section--dark .r-btn--secondary:hover { background: var(--r-fill-on-dark); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.r-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: var(--r-hero-min);
  padding: var(--r-s20) var(--r-gutter);
  overflow: hidden;
  background: var(--r-surface-2);
  text-align: center;
}

.r-hero__media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.r-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--r-scrim);
}

.r-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--r-s5);
  max-width: var(--r-container);
}

/* Variante sombre : texte clair posé sur le visuel. */
.r-hero--dark .r-hero__content,
.r-hero--dark .r-display,
.r-hero--dark .r-h1 { color: var(--r-on-inverse); }
.r-hero--dark .r-lead { color: var(--r-on-inverse); opacity: .85; }
.r-hero--dark .r-eyebrow { color: var(--r-on-inverse); opacity: .7; }

/* Variante claire : visuel en bas, texte au-dessus sur fond de page. */
.r-hero--light { align-items: start; text-align: center; background: var(--r-surface); }
.r-hero--light::after { display: none; }

/* --------------------------------------------------------------------------
   Tuiles
   -------------------------------------------------------------------------- */

.r-tiles {
  display: grid;
  gap: var(--r-s5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--r-tile-min)), 1fr));
}
.r-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.r-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1068px) { .r-tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 734px)  {
  .r-tiles--2, .r-tiles--3 { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Titres épinglés
   Chaque catégorie a son propre titre, qui reste fixe pendant qu'on descend
   dans ses cartes puis cède la place au titre suivant — façon page produit
   apple.com. Fonctionne en CSS pur : chaque `.r-stack__title` s'épingle au
   même point (`top: var(--r-nav-h)`) dans le flux normal de son propre
   `.r-stack__cat` ; quand ce bloc quitte l'écran, le titre suivant est déjà
   à sa place et prend la relève sans aucun JS.
   -------------------------------------------------------------------------- */

.r-stack__cat {
  padding-block: var(--r-s16);
  scroll-margin-top: var(--r-nav-h);
}
.r-stack__cat + .r-stack__cat { border-top: var(--r-hairline-w) solid var(--r-hairline); }

.r-stack__title {
  position: sticky;
  top: var(--r-nav-h);
  z-index: 5;
  margin: 0 0 var(--r-s6);
  padding-block: var(--r-s3);
  background: var(--r-surface-2);
  font-size: var(--r-fs-lead);
  font-weight: var(--r-weight-semi);
  letter-spacing: var(--r-track-heading);
}
.r-section:not(.r-section--wash) .r-stack__title { background: var(--r-surface); }

@media (max-width: 734px) {
  .r-stack__cat { padding-block: var(--r-s10); }
}

/* La bulle de la catégorie affichée à l'écran, tenue à jour par pin-spy.js. */
.r-tabs .r-tab[aria-current="true"] {
  background: var(--r-accent-fill);
  color: var(--r-on-accent);
}

.r-tile {
  display: flex;
  flex-direction: column;
  gap: var(--r-s3);
  padding: var(--r-s12) var(--r-s10);
  border-radius: var(--r-radius-xl);
  background: var(--r-surface-2);
  color: var(--r-ink);
  text-align: center;
  overflow: hidden;
}
/* Une tuile posée sur une section lavée remonte d'un cran, sinon elle se
   confondrait avec le fond. Le composant s'adapte tout seul : aucune page
   n'a besoin de redéfinir un fond. */
.r-section--wash .r-tile,
.r-section--wash .r-card { background: var(--r-surface); }

/* Alignement à gauche du TEXTE, sans rétrécir les enfants : avec
   `align-items: flex-start`, une liste de prix ne fait plus que la largeur de
   son contenu et les montants cessent d'être alignés au bord droit. */
.r-tile--start { text-align: left; }
.r-tile--dark,
.r-section--wash .r-tile--dark { background: var(--r-surface-inverse); color: var(--r-on-inverse); }
.r-section--wash .r-tile--accent { background: var(--r-accent-soft); }
.r-tile--dark .r-h3 { color: var(--r-on-inverse); }
.r-tile--accent { background: var(--r-accent-soft); }
.r-tile__foot { margin-top: auto; padding-top: var(--r-s5); }

.r-tile__icon {
  width: var(--r-s12); height: var(--r-s12);
  margin-inline: auto;
  color: var(--r-accent);
}
.r-tile--start .r-tile__icon { margin-inline: 0; }

/* Chiffres de réassurance. */
.r-stat { text-align: center; }
.r-stat__value {
  display: block;
  font-size: var(--r-fs-h2);
  font-weight: var(--r-weight-semi);
  line-height: var(--r-lh-heading);
  letter-spacing: var(--r-track-display);
  font-variant-numeric: tabular-nums;
}
.r-stat__label { display: block; margin-top: var(--r-s2); color: var(--r-ink-2); font-size: var(--r-fs-caption); }

/* --------------------------------------------------------------------------
   Rail horizontal — les vignettes produit d'apple.com

   Se place en dehors de `.r-container` : le rail déborde volontairement la
   colonne de lecture et va jusqu'aux bords de l'écran, avec un alignement
   qui retombe sur la grille grâce au `padding-inline` en `max()`.
   -------------------------------------------------------------------------- */

.r-scroller { position: relative; margin-inline: calc(var(--r-gutter) * -1); }

.r-scroller__track {
  display: flex;
  gap: var(--r-s5);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Aligne la première vignette sur la colonne de lecture, tout en laissant
     le rail filer jusqu'au bord sur les écrans étroits. */
  padding-inline: max(var(--r-gutter), calc((100% - var(--r-container)) / 2));
  padding-block: var(--r-s2);   /* laisse respirer l'anneau de focus */
  scroll-padding-inline-start: max(var(--r-gutter), calc((100% - var(--r-container)) / 2));
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.r-scroller__track::-webkit-scrollbar { display: none; }
.r-scroller__track:focus-visible { border-radius: var(--r-radius-xl); }

.r-scroller__item {
  flex: 0 0 clamp(var(--r-rail-item-min), 78vw, var(--r-rail-item));
  scroll-snap-align: start;
}
/* Fantôme de fin : sans lui, la dernière vignette colle au bord. */
.r-scroller__track::after {
  content: "";
  flex: 0 0 var(--r-s2);
}

.r-scroller__nav {
  display: flex;
  gap: var(--r-s2);
  justify-content: flex-end;
  max-width: var(--r-container);
  margin: var(--r-s5) auto 0;
  padding-inline: var(--r-gutter);
}
.r-scroller__btn {
  display: grid;
  place-items: center;
  width: var(--r-s8); height: var(--r-s8);
  padding: 0;
  border: 0;
  border-radius: var(--r-radius-pill);
  background: var(--r-fill-quiet);
  color: var(--r-ink);
  cursor: pointer;
  transition: background-color var(--r-dur-fast) var(--r-ease), opacity var(--r-dur-fast) var(--r-ease);
}
.r-scroller__btn:hover:not(:disabled) { background: var(--r-fill-quiet-hover); }
.r-scroller__btn:disabled { opacity: .35; cursor: default; }
.r-scroller__btn svg { width: var(--r-s4); height: var(--r-s4); }
.r-section--dark .r-scroller__btn { background: var(--r-fill-on-dark); color: var(--r-on-inverse); }

/* Sans JavaScript, les flèches ne serviraient à rien : le script les révèle. */
.r-scroller__nav[hidden] { display: none; }

/* La vignette elle-même : une tuile qui remplit toute la hauteur du rail. */
.r-tile.r-scroller__card { height: 100%; padding: var(--r-s8) var(--r-s6); }

/* --------------------------------------------------------------------------
   Marques partenaires
   Rangée de logos des fabricants pour lesquels l'entretien est agréé.
   -------------------------------------------------------------------------- */

.r-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--r-s12);
}

/* Une hauteur commune déséquilibrerait la rangée : un logotype pur fait
   neuf fois sa hauteur en largeur, un logo avec symbole trois fois. À
   hauteur égale, le premier écraserait le second. On borne donc les deux
   dimensions et on laisse chaque logo buter sur celle qui le concerne —
   les largeurs rendues se rejoignent autour de 180 px. */
.r-partners img {
  display: block;
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 56px;
  object-fit: contain;
}

/* Sur un écran étroit, trois logos à 200 px ne tiennent qu'un par ligne et la
   rangée occupe le tiers de la hauteur. On les resserre pour en remettre deux
   côte à côte. */
@media (max-width: 734px) {
  .r-partners { gap: var(--r-s6) var(--r-s8); }
  .r-partners img { max-width: 148px; max-height: 42px; }
}

/* Un logo monochrome noir se défait sur fond sombre : le noir se fond dans le
   fond et il ne reste que les réserves blanches. L'inversion rend la version
   réservée que les chartes prévoient pour fond foncé.
   Réservé aux logos noirs, d'où la classe : inverser un logo de couleur le
   ferait virer à sa teinte complémentaire — un vert deviendrait magenta. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .r-partners__mono { filter: invert(1); }
}
:root[data-theme="dark"] .r-partners__mono { filter: invert(1); }

/* --------------------------------------------------------------------------
   Cartes article
   -------------------------------------------------------------------------- */

.r-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-radius-l);
  background: var(--r-surface-2);
  overflow: hidden;
  transition: transform var(--r-dur) var(--r-ease), box-shadow var(--r-dur) var(--r-ease);
}
.r-card:hover { transform: translateY(calc(var(--r-s1) * -1)); box-shadow: var(--r-shadow-card); }

.r-card__media { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--r-surface-3); }
.r-card__body  { display: flex; flex-direction: column; gap: var(--r-s2); padding: var(--r-s6); flex: 1; }
.r-card__title { margin: 0; font-size: var(--r-fs-lead); font-weight: var(--r-weight-semi); line-height: var(--r-lh-heading); letter-spacing: var(--r-track-heading); }
.r-card__title a { color: inherit; text-decoration: none; }
.r-card__title a::after { content: ""; position: absolute; inset: 0; } /* zone cliquable pleine carte */
.r-card { position: relative; }
.r-card__excerpt { margin: 0; color: var(--r-ink-2); font-size: var(--r-fs-caption); }
.r-card__meta { margin-top: auto; padding-top: var(--r-s4); color: var(--r-ink-2); font-size: var(--r-fs-footnote); display: flex; gap: var(--r-s3); }

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */

.r-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--r-s1);
  padding: var(--r-s1) var(--r-s3);
  border-radius: var(--r-radius-pill);
  background: var(--r-accent-soft);
  color: var(--r-accent);
  font-size: var(--r-fs-footnote);
  font-weight: var(--r-weight-medium);
  letter-spacing: var(--r-track-nav);
}
.r-badge--neutral { background: var(--r-surface-3); color: var(--r-ink); }
.r-badge--urgence { background: transparent; border: var(--r-hairline-w) solid var(--r-urgence); color: var(--r-urgence); }

/* --------------------------------------------------------------------------
   Onglets (segmented control)
   Bulles de navigation pour filtrer un contenu par catégorie sans recharger
   la page — /tarifs/ notamment. Un seul panneau visible à la fois, le reste
   porte `hidden` (donc retiré de l'arbre d'accessibilité, pas seulement
   masqué visuellement).
   -------------------------------------------------------------------------- */

.r-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--r-s2);
}
.r-tab {
  display: inline-flex;
  align-items: center;
  border: var(--r-hairline-w) solid transparent;
  border-radius: var(--r-radius-pill);
  background: var(--r-fill-quiet);
  color: var(--r-ink);
  padding: var(--r-s2) var(--r-s5);
  font-size: var(--r-fs-caption);
  font-weight: var(--r-weight-medium);
  font-family: inherit;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--r-dur-fast) var(--r-ease),
              color var(--r-dur-fast) var(--r-ease);
}
.r-tab:hover { background: var(--r-fill-quiet-hover); }
.r-tab[aria-selected="true"],
.r-tab[aria-pressed="true"] {
  background: var(--r-accent-fill);
  color: var(--r-on-accent);
}
.r-tabpanel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Tableau de tarifs
   Remplace les <table style="border:1px solid #ccc"> de /tarifs/.
   -------------------------------------------------------------------------- */

.r-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.r-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--r-fs-body);
  text-align: left;
}
.r-table caption {
  margin-bottom: var(--r-s4);
  color: var(--r-ink-2);
  font-size: var(--r-fs-caption);
  text-align: left;
}
.r-table th, .r-table td {
  padding: var(--r-s4) var(--r-s2);
  border-bottom: var(--r-hairline-w) solid var(--r-hairline);
  vertical-align: baseline;
}
.r-table thead th {
  padding-top: 0;
  color: var(--r-ink-2);
  font-size: var(--r-fs-footnote);
  font-weight: var(--r-weight-semi);
  letter-spacing: var(--r-track-nav);
  text-transform: uppercase;
}
.r-table tbody tr:last-child th,
.r-table tbody tr:last-child td { border-bottom: 0; }
.r-table__price {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: var(--r-weight-semi);
}
.r-table__note { display: block; margin-top: var(--r-s1); color: var(--r-ink-2); font-size: var(--r-fs-footnote); font-weight: var(--r-weight-regular); }

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */

.r-form  { display: flex; flex-direction: column; gap: var(--r-s5); }
.r-field { display: flex; flex-direction: column; gap: var(--r-s2); }
.r-field__label { font-size: var(--r-fs-caption); font-weight: var(--r-weight-semi); color: var(--r-ink); }
.r-field__hint  { font-size: var(--r-fs-footnote); color: var(--r-ink-2); }

.r-input, .r-select, .r-textarea {
  width: 100%;
  padding: var(--r-s3) var(--r-s4);
  border: var(--r-hairline-w) solid var(--r-hairline);
  border-radius: var(--r-radius-m);
  background: var(--r-surface);
  color: var(--r-ink);
  font-size: var(--r-fs-body);
  transition: border-color var(--r-dur-fast) var(--r-ease);
}
.r-input::placeholder, .r-textarea::placeholder { color: var(--r-ink-2); }
.r-input:hover, .r-select:hover, .r-textarea:hover { border-color: var(--r-ink-2); }
.r-textarea { min-height: calc(var(--r-s30) - var(--r-s6)); resize: vertical; }
.r-select {
  appearance: none;
  padding-right: var(--r-s10);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right var(--r-s5) center, right var(--r-s4) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.r-form__row {
  display: grid;
  gap: var(--r-s5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.r-field__error {
  color: var(--r-urgence);
  font-size: var(--r-fs-caption);
}
.r-field--invalid .r-input,
.r-field--invalid .r-select { border-color: var(--r-urgence); }

/* Champ fichier : le bouton natif est illisible, on l'habille au token. */
.r-input[type="file"] { padding: var(--r-s2) var(--r-s3); }
.r-input[type="file"]::file-selector-button {
  margin-right: var(--r-s3);
  padding: var(--r-s2) var(--r-s4);
  border: 0;
  border-radius: var(--r-radius-pill);
  background: var(--r-fill-quiet);
  color: var(--r-ink);
  font-size: var(--r-fs-caption);
  cursor: pointer;
}
.r-input[type="file"]::file-selector-button:hover { background: var(--r-fill-quiet-hover); }

/* Message de retour après envoi. Vide, il ne prend aucune place — mais reste
   dans le DOM pour que `aria-live` annonce le changement. */
.r-form__status { font-size: var(--r-fs-body); }
.r-form__status:empty { display: none; }
.r-form__status[data-state="ok"] { color: var(--r-succes); }
.r-form__status[data-state="error"] { color: var(--r-urgence); }

/* Liste de suggestions d'adresse. */
.r-autocomplete { position: relative; }
.r-autocomplete__list {
  position: absolute;
  z-index: 10;
  inset-inline: 0;
  margin: var(--r-s1) 0 0;
  padding: var(--r-s1);
  border: var(--r-hairline-w) solid var(--r-hairline);
  border-radius: var(--r-radius-m);
  background: var(--r-surface);
  box-shadow: var(--r-shadow-raised);
  list-style: none;
  max-height: var(--r-s30);
  overflow-y: auto;
}
.r-autocomplete__list:empty { display: none; }
.r-autocomplete__list li {
  padding: var(--r-s2) var(--r-s3);
  border-radius: var(--r-radius-s);
  font-size: var(--r-fs-caption);
  cursor: pointer;
}
.r-autocomplete__list li:hover,
.r-autocomplete__list li[aria-selected="true"] { background: var(--r-surface-2); }

/* --------------------------------------------------------------------------
   Accordéon (FAQ) — <details>/<summary> natifs
   -------------------------------------------------------------------------- */

.r-accordion { border-top: var(--r-hairline-w) solid var(--r-hairline); }
.r-accordion__item { border-bottom: var(--r-hairline-w) solid var(--r-hairline); }
.r-accordion__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--r-s4);
  padding-block: var(--r-s5);
  font-size: var(--r-fs-lead);
  font-weight: var(--r-weight-medium);
  cursor: pointer;
  list-style: none;
}
.r-accordion__item summary::-webkit-details-marker { display: none; }
/* Un badge dans l'intitulé reste collé au texte ; le « + » garde sa place à droite. */
.r-accordion__item summary .r-badge { margin-inline-end: auto; }
.r-accordion__item summary::after {
  content: "+";
  flex: none;
  color: var(--r-accent);
  font-size: var(--r-fs-h3);
  font-weight: var(--r-weight-regular);
  line-height: 1;
  transition: transform var(--r-dur) var(--r-ease);
}
.r-accordion__item[open] summary::after { transform: rotate(45deg); }
.r-accordion__panel { padding-bottom: var(--r-s5); color: var(--r-ink-2); }

/* --------------------------------------------------------------------------
   Tarification

   Un tableau convient pour comparer une longue liste ; il convient mal pour
   mettre deux forfaits en avant. D'où deux formes : le prix mis en scène
   (`.r-price`) et la liste prestation / montant (`.r-pricelist`), qui se pose
   dans n'importe quelle tuile.
   -------------------------------------------------------------------------- */

.r-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--r-s2);
}
.r-price__amount {
  font-size: var(--r-fs-h2);
  font-weight: var(--r-weight-semi);
  line-height: 1;
  letter-spacing: var(--r-track-display);
  font-variant-numeric: tabular-nums;
}
.r-price__unit { color: var(--r-ink-2); font-size: var(--r-fs-caption); }
.r-price__from { color: var(--r-ink-2); font-size: var(--r-fs-caption); width: 100%; }
.r-tile--dark .r-price__unit,
.r-tile--dark .r-price__from { color: var(--r-on-inverse-2); }

.r-pricelist { margin: 0; padding: 0; list-style: none; }
.r-pricelist li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--r-s5);
  padding-block: var(--r-s4);
  border-bottom: var(--r-hairline-w) solid var(--r-hairline);
}
.r-pricelist li:first-child { padding-top: 0; }
.r-pricelist li:last-child { padding-bottom: 0; border-bottom: 0; }
.r-pricelist__note {
  display: block;
  margin-top: var(--r-s1);
  color: var(--r-ink-2);
  font-size: var(--r-fs-footnote);
  line-height: 1.4;
}
.r-pricelist__value {
  flex: none;
  font-weight: var(--r-weight-semi);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.r-tile--dark .r-pricelist li { border-bottom-color: var(--r-fill-on-dark); }
.r-tile--dark .r-pricelist__note { color: var(--r-on-inverse-2); }

/* --------------------------------------------------------------------------
   Article : en-tête et corps long

   `.r-prose` style du HTML éditorial BRUT — celui que produit Ghost, sans
   classe utilitaire dessus. C'est volontaire : le contenu reste du HTML
   sémantique ordinaire, réécrivable dans n'importe quel éditeur, et la
   présentation reste entièrement du côté du système.
   -------------------------------------------------------------------------- */

.r-article__header { max-width: var(--r-prose); margin-inline: auto; }
.r-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--r-s2) var(--r-s4);
  margin-top: var(--r-s6);
  padding-top: var(--r-s5);
  border-top: var(--r-hairline-w) solid var(--r-hairline);
  color: var(--r-ink-2);
  font-size: var(--r-fs-caption);
}

.r-prose {
  max-width: var(--r-prose);
  margin-inline: auto;
  font-size: var(--r-fs-body);
  line-height: var(--r-lh-prose);
  color: var(--r-ink);
}

.r-prose > * + * { margin-top: var(--r-s5); }
.r-prose p { margin: 0; }

.r-prose h2, .r-prose h3, .r-prose h4 {
  margin: 0;
  color: var(--r-ink);
  font-weight: var(--r-weight-semi);
  line-height: var(--r-lh-heading);
  letter-spacing: var(--r-track-heading);
  text-wrap: balance;
  /* `scroll-margin` : les titres portent des ancres, et la nav est collante. */
  scroll-margin-top: calc(var(--r-nav-h) + var(--r-s6));
}
.r-prose h2 { font-size: var(--r-fs-h3); }
.r-prose h3 { font-size: var(--r-fs-lead); }
.r-prose h4 { font-size: var(--r-fs-body); }
.r-prose > h2 + *, .r-prose > h3 + *, .r-prose > h4 + * { margin-top: var(--r-s4); }
.r-prose > * + h2 { margin-top: var(--r-s12); }
.r-prose > * + h3, .r-prose > * + h4 { margin-top: var(--r-s10); }

.r-prose a { color: var(--r-accent); text-decoration: underline; text-underline-offset: .2em; }
.r-prose a:hover { text-decoration-thickness: 2px; }
.r-prose strong { font-weight: var(--r-weight-semi); }
.r-prose em { font-style: italic; }

.r-prose ul, .r-prose ol { margin: 0; padding-left: var(--r-s6); }
.r-prose li + li { margin-top: var(--r-s3); }
.r-prose li::marker { color: var(--r-accent); }
.r-prose ol li::marker { font-variant-numeric: tabular-nums; }

/* Les <hr> de Ghost servent de séparateurs de chapitre : ils méritent de
   l'air, pas un trait maigre au milieu du texte. */
.r-prose hr {
  height: 0;
  margin-block: var(--r-s12);
  border: 0;
  border-top: var(--r-hairline-w) solid var(--r-hairline);
}
.r-prose > hr + * { margin-top: var(--r-s12); }

.r-prose blockquote {
  margin: 0;
  padding: var(--r-s5) 0 var(--r-s5) var(--r-s6);
  border-left: var(--r-s1) solid var(--r-accent);
  color: var(--r-ink);
  font-size: var(--r-fs-lead);
  line-height: 1.45;
  letter-spacing: var(--r-track-heading);
}
.r-prose blockquote p + p { margin-top: var(--r-s4); }

.r-prose figure { margin: 0; }
.r-prose img { width: 100%; border-radius: var(--r-radius-l); }
.r-prose figcaption { margin-top: var(--r-s3); color: var(--r-ink-2); font-size: var(--r-fs-caption); }

/* Un tableau posé dans du texte éditorial prend l'habillage de `.r-table`,
   sans qu'il faille écrire la classe dans le contenu. */
.r-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--r-fs-body);
  text-align: left;
}
.r-prose th, .r-prose td {
  padding: var(--r-s4) var(--r-s2);
  border-bottom: var(--r-hairline-w) solid var(--r-hairline);
  vertical-align: baseline;
}
.r-prose thead th {
  padding-top: 0;
  color: var(--r-ink-2);
  font-size: var(--r-fs-footnote);
  font-weight: var(--r-weight-semi);
  letter-spacing: var(--r-track-nav);
  text-transform: uppercase;
}
.r-prose tbody tr:last-child th,
.r-prose tbody tr:last-child td { border-bottom: 0; }
/* Colonne de droite = les prix : alignés, en chiffres tabulaires. */
.r-prose td:last-child:not(:first-child),
.r-prose thead th:last-child:not(:first-child) {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.r-prose tbody td:last-child:not(:first-child) { font-weight: var(--r-weight-semi); }

/* Carte de lien (le « bookmark » de Ghost), reprise aux tokens. */
.r-prose .kg-bookmark-card { position: relative; }
.r-prose .kg-bookmark-container {
  display: flex;
  align-items: stretch;
  border: var(--r-hairline-w) solid var(--r-hairline);
  border-radius: var(--r-radius-l);
  background: var(--r-surface);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color var(--r-dur-fast) var(--r-ease), box-shadow var(--r-dur-fast) var(--r-ease);
}
.r-prose .kg-bookmark-container:hover { border-color: var(--r-ink-2); box-shadow: var(--r-shadow-card); }
.r-prose .kg-bookmark-content { flex: 1; padding: var(--r-s5) var(--r-s6); min-width: 0; }
.r-prose .kg-bookmark-title { font-weight: var(--r-weight-semi); }
.r-prose .kg-bookmark-description {
  margin-top: var(--r-s2);
  color: var(--r-ink-2);
  font-size: var(--r-fs-caption);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.r-prose .kg-bookmark-metadata {
  display: flex; align-items: center; gap: var(--r-s2);
  margin-top: var(--r-s4);
  color: var(--r-ink-2);
  font-size: var(--r-fs-footnote);
}
.r-prose .kg-bookmark-icon { width: var(--r-s4); height: var(--r-s4); border-radius: 0; }
.r-prose .kg-bookmark-thumbnail { flex: 0 0 var(--r-s30); }
.r-prose .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
@media (max-width: 734px) {
  .r-prose .kg-bookmark-container { flex-direction: column-reverse; }
  .r-prose .kg-bookmark-thumbnail { flex: 0 0 var(--r-s24); }
}

/* --------------------------------------------------------------------------
   Carte choroplèthe (Leaflet)

   Le fond de tuiles est désaturé par `--r-map-tint` : sans ça, le beige et les
   verts d'OpenStreetMap concurrencent l'encodage des bandes de distance. Les
   couleurs de bandes sont posées par le script depuis les tokens `--r-map-*`.
   Suppose que leaflet.css est chargé AVANT ce fichier.
   -------------------------------------------------------------------------- */

.r-map {
  position: relative;
  border-radius: var(--r-radius-l);
  overflow: hidden;
  background: var(--r-map-surface);
}
.r-map__canvas { height: clamp(360px, 62vh, 620px); width: 100%; }
.r-map:fullscreen { border-radius: 0; }
.r-map:fullscreen .r-map__canvas { height: 100vh; }

/* Le calque de tuiles seul est filtré : les polygones et les contrôles, qui
   vivent dans d'autres panes, gardent leurs couleurs exactes. */
.r-map .leaflet-tile-pane { filter: var(--r-map-tint); }

.r-map .leaflet-container {
  background: var(--r-map-surface);
  font-family: var(--r-font);
  font-size: var(--r-fs-footnote);
}

/* Contrôles Leaflet repris aux tokens : pilules claires, pas de bordure grise. */
.r-map .leaflet-bar,
.r-map .leaflet-control-attribution {
  border: 0;
  border-radius: var(--r-radius-s);
  box-shadow: var(--r-shadow-card);
}
.r-map .leaflet-bar a,
.r-map .leaflet-control-btn {
  display: grid;
  place-items: center;
  width: var(--r-s8); height: var(--r-s8);
  border: 0;
  border-bottom: var(--r-hairline-w) solid var(--r-hairline);
  background: var(--r-surface);
  color: var(--r-ink);
  cursor: pointer;
}
.r-map .leaflet-bar a:last-child,
.r-map .leaflet-control-btn:last-child { border-bottom: 0; }
.r-map .leaflet-bar a:hover,
.r-map .leaflet-control-btn:hover { background: var(--r-surface-2); }
.r-map .leaflet-control-btn svg { width: var(--r-s4); height: var(--r-s4); }

.r-map .leaflet-control-attribution {
  padding: var(--r-s1) var(--r-s2);
  background: var(--r-nav-bg);
  -webkit-backdrop-filter: var(--r-backdrop);
  backdrop-filter: var(--r-backdrop);
  color: var(--r-ink-2);
  border-radius: var(--r-radius-s) 0 0 0;
  box-shadow: none;
}
.r-map .leaflet-control-attribution a { color: var(--r-ink-2); }

/* Étiquettes de villes, reposées au-dessus des polygones (les libellés des
   tuiles passent dessous dès qu'une commune est peinte). Une pastille opaque
   plutôt qu'un halo : le contraste devient la paire encre/surface connue,
   quelle que soit la bande sous l'étiquette. */
.r-map__label-wrap { width: auto !important; height: auto !important; margin: 0 !important; }
.r-map__label {
  position: absolute;
  /* `--r-map-label-dx/dy` sont écrits par le script quand une étiquette
     dépasserait du cadre : on la ramène à l'intérieur plutôt que de la
     laisser rogner. Zéro dans le cas courant. */
  transform: translate(
    calc(-50% + var(--r-map-label-dx, 0px)),
    calc(-50% + var(--r-map-label-dy, 0px))
  );
  display: block;
  padding: 1px var(--r-s2);
  border-radius: var(--r-radius-pill);
  background: var(--r-nav-bg);
  -webkit-backdrop-filter: var(--r-backdrop);
  backdrop-filter: var(--r-backdrop);
  color: var(--r-ink);
  font-size: var(--r-fs-footnote);
  font-weight: var(--r-weight-medium);
  line-height: 1.5;
  letter-spacing: var(--r-track-nav);
  white-space: nowrap;
}

/* Infobulle de survol. */
.r-map__tip {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  padding: var(--r-s2) var(--r-s3);
  border-radius: var(--r-radius-s);
  background: var(--r-surface-inverse);
  color: var(--r-on-inverse);
  font-size: var(--r-fs-footnote);
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: var(--r-shadow-raised);
  transition: opacity var(--r-dur-fast) var(--r-ease);
}
.r-map__tip strong { font-weight: var(--r-weight-semi); }
.r-map__tip[data-show="true"] { opacity: 1; }

/* Légende. Chaque pastille porte un filet : les deux pastilles claires
   passent sous 3:1 sur la surface, le filet leur donne un contour défini. */
.r-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--r-s3) var(--r-s6);
  margin: var(--r-s5) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--r-fs-caption);
  color: var(--r-ink-2);
}
.r-legend li { display: flex; align-items: center; gap: var(--r-s2); }
.r-legend__chip {
  flex: none;
  width: var(--r-s3); height: var(--r-s3);
  border: var(--r-hairline-w) solid var(--r-hairline);
  border-radius: var(--r-radius-s);
}
.r-legend__chip--near { background: var(--r-map-near-chip); }
.r-legend__chip--mid  { background: var(--r-map-mid-chip); }
.r-legend__chip--out  { background: var(--r-map-out-chip); }

/* --------------------------------------------------------------------------
   Barre d'action collante — remplace les FABs #00C3FF / #FFBF00
   -------------------------------------------------------------------------- */

.r-actionbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: none;
  gap: var(--r-s3);
  padding: var(--r-s3) var(--r-gutter) calc(var(--r-s3) + env(safe-area-inset-bottom));
  background: var(--r-nav-bg);
  border-top: var(--r-hairline-w) solid var(--r-nav-hairline);
  -webkit-backdrop-filter: var(--r-backdrop);
  backdrop-filter: var(--r-backdrop);
}
.r-actionbar .r-btn { flex: 1; }

@media (max-width: 734px) {
  .r-actionbar { display: flex; }
  body:has(.r-actionbar) { padding-bottom: var(--r-s20); }
}

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

.r-footer {
  padding: var(--r-s16) var(--r-gutter) var(--r-s12);
  background: var(--r-surface-2);
  color: var(--r-ink-2);
  font-size: var(--r-fs-footnote);
  line-height: 1.5;
}
.r-footer__grid {
  display: grid;
  gap: var(--r-s10);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--r-footer-col-min)), 1fr));
  padding-bottom: var(--r-s10);
  border-bottom: var(--r-hairline-w) solid var(--r-hairline);
}
.r-footer__title { margin: 0 0 var(--r-s3); color: var(--r-ink); font-size: var(--r-fs-footnote); font-weight: var(--r-weight-semi); }
.r-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--r-s2); }
.r-footer a { color: var(--r-ink-2); text-decoration: none; }
.r-footer a:hover { color: var(--r-ink); text-decoration: underline; text-underline-offset: .2em; }
.r-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--r-s2) var(--r-s5);
  justify-content: space-between;
  padding-top: var(--r-s5);
  color: var(--r-ink-2);
}

/* --------------------------------------------------------------------------
   Mouvement : apparition au défilement

   L'état masqué est conditionné à `html.r-motion`, posé par le fragment en
   ligne du <head> (voir /design-system/#mise-en-oeuvre). Sans JavaScript, la
   classe n'existe pas et le contenu s'affiche normalement : on ne masque
   jamais du contenu qu'on ne serait pas capable de révéler.
   `.is-in` est ensuite posée par assets/design/reveal.js.
   -------------------------------------------------------------------------- */

.r-motion .r-reveal {
  opacity: 0;
  transform: translateY(var(--r-reveal-shift));
  transition: opacity var(--r-dur-slow) var(--r-ease),
              transform var(--r-dur-slow) var(--r-ease);
}
.r-motion .r-reveal.is-in { opacity: 1; transform: none; }

/* Cascade légère à l'intérieur d'une grille. */
.r-motion .r-reveal[data-delay="1"] { transition-delay:  80ms; }
.r-motion .r-reveal[data-delay="2"] { transition-delay: 160ms; }
.r-motion .r-reveal[data-delay="3"] { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r-scroller__track { scroll-behavior: auto; }
  .r-motion .r-reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
