/* Studio Legal 42 — feuille propre au site. Site AUTONOME : ni base.css ni tokens.
   Direction « papeterie pastel », 26/10/2026, sur une palette fournie par
   l'humain : six pastels (rose, vert, jaune, bleu, lilas, pêche), des bords
   NOIRS et COURBES partout, et une seule belle fonte, EB Garamond, du titre
   au corps en passant par la navigation et les boutons. Archivo ne sert plus
   qu'aux petits numéros et libellés techniques.

   Vocabulaire fermé (harnais) : le NOIR est la couleur principale — il trace
   les bords, l'anneau de focus et remplit les boutons, où il porte la crème.
   Les six pastels sont des tokens SUPPLÉMENTAIRES : ils remplissent des
   cartes et des bandes, et ne portent que du texte noir (contraste ≥ 13:1
   mesuré sur chacun). Le mouvement est en CSS seulement (GEO) : titre mot à
   mot, panneau qui se dévoile puis change lentement de pastel, ruban qui
   défile, cartes qui se posent au défilement, transitions de page.
   Aucune ressource externe. Aucun script. */

/* ── Fontes ────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/ebgaramond-400.5e8f01a6bb12.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/ebgaramond-700.e1acce9f96c0.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-400.28fb74b0bc6d.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Socle ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

:root {
  /* VOCABULAIRE FERMÉ : les six noms que le harnais confronte aux seuils
     WCAG. Le noir est la principale (bords, focus, boutons). */
  --color-text:        #141414;
  --color-background:  #FFFDF9;  /* crème très claire : les pastels s'y posent */
  --color-surface:     #F9E1A8;  /* le jaune de la palette : pied, en-têtes de tableau */
  --color-primary:     #141414;  /* le noir des bords courbes */
  --color-on-primary:  #FFFDF9;
  --color-muted:       #4B4744;
  /* Tokens SUPPLÉMENTAIRES — la palette fournie. Ils ne portent que du noir.
     Hors contrôle automatique : tenus à l'œil (≥ 13:1 avec --color-text). */
  --rose:   #FFCBE1;
  --vert:   #D6E5BD;
  --jaune:  #F9E1A8;
  --bleu:   #BCD8EC;
  --lilas:  #DCCCEC;
  --peche:  #FFDAB4;
  --serif:    "EB Garamond", "Adobe Garamond Pro", Garamond, Georgia, serif;
  --sans:     "Archivo", "Helvetica Neue", Arial, sans-serif;
  --marge:    clamp(1.25rem, 5vw, 7rem);
  --souffle:  clamp(2.5rem, 6vw, 5rem);
  --colonne:  min(100% - 2 * var(--marge), 80rem);
  --trait:    2px;                        /* l'épaisseur de tous les bords */
  --rayon:    clamp(1rem, 2vw, 1.5rem);   /* la courbe de tous les bords */
  --entree:   cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.55;
  font-synthesis: none;
  cursor: url("img/curseur.19213aa78296.svg") 2 2, auto;
}
a, button, summary, label { cursor: url("img/curseur-lien.1ba12987d863.svg") 2 2, pointer; }
input, textarea, select { cursor: text; }

.mesure { width: var(--colonne); margin-inline: auto; }

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
}
:focus-visible { outline: var(--trait) solid var(--color-primary); outline-offset: 3px; }

/* ── Mouvement : les images-clés ─────────────────────────────────────── */
@keyframes monter {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
@keyframes apparaitre {
  from { opacity: 0; transform: translateY(1.25rem); }
  to   { opacity: 1; transform: none; }
}
@keyframes volet-bas {
  from { clip-path: inset(100% 0 0 0 round var(--rayon)); }
  to   { clip-path: inset(0 0 0 0 round var(--rayon)); }
}
@keyframes tracer {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes revele {
  from { opacity: 0; translate: 0 2rem; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes glisser {
  from { opacity: 0; translate: -1.5rem 0; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes poser {
  from { opacity: 0; transform: translateX(-0.75rem) rotate(-6deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes defiler {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Le panneau passe lentement d'un pastel à l'autre, et revient au rose :
   sous `reduce`, la boucle tombe à 0,01 ms et s'arrête sur sa dernière image,
   qui est la première. */
@keyframes pastels {
  0%, 100% { background-color: var(--rose); }
  18%      { background-color: var(--peche); }
  36%      { background-color: var(--jaune); }
  54%      { background-color: var(--vert); }
  72%      { background-color: var(--bleu); }
  90%      { background-color: var(--lilas); }
}
@keyframes page-sortir {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes page-entrer {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: none; }
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-sortir 0.25s ease both; }
::view-transition-new(root) { animation: page-entrer 0.6s var(--entree) 0.1s both; }
.header { view-transition-name: entete; }

/* ── Mouvement réduit : UN interrupteur ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  @view-transition { navigation: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, .bouton, .nav__link, .nav .button, .header__name, summary, .index__lien, .palier, .parcours__lien, .config__carte, .config__puce {
    transition:
      color 220ms ease,
      background-color 260ms ease,
      background-size 260ms ease,
      border-color 220ms ease,
      box-shadow 260ms var(--entree),
      text-decoration-color 220ms ease,
      text-underline-offset 220ms ease,
      transform 320ms var(--entree);
  }
}

/* ── En-tête ─────────────────────────────────────────────────────────── */
.header { position: relative; padding: 1rem var(--marge); }
.header::after {
  content: "";
  position: absolute;
  left: var(--marge);
  right: var(--marge);
  bottom: 0;
  height: var(--trait);
  border-radius: 999px;
  background: var(--color-primary);
  transform-origin: left center;
  animation: tracer 1.2s var(--entree) 0.1s both;
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.header__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.01em; text-decoration: none; }
.header__logo { display: none; }
/* La navigation en Garamond, chaque lien dans une pastille à bord noir
   qui n'apparaît qu'au survol ; le bouton Contact est la pastille pleine. */
.nav { display: flex; gap: 0.35rem; flex-wrap: wrap; font-size: 1.05rem; align-items: center; }
.nav__link, .nav .button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.3rem 0.9rem;
  border: var(--trait) solid transparent;
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-text);
}
.nav .button {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.nav-repli { display: none; }
body.nav-repliee .nav-desktop { display: flex; }
body.nav-repliee .nav-repli { display: none; }
@media (max-width: 52rem) {
  .nav-desktop,
  body.nav-repliee .nav-desktop { display: none; }
  .nav-repli,
  body.nav-repliee .nav-repli { display: block; margin-left: auto; text-align: right; }
  .nav-repli summary {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.3rem 1rem;
    border: var(--trait) solid var(--color-primary);
    border-radius: 999px;
    font-size: 1.05rem;
    list-style: none;
  }
  .nav-repli summary::-webkit-details-marker { display: none; }
  .nav-repli .nav {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0.25rem;
    padding-top: 0.75rem;
  }
}

/* ── 1. L'ouverture ──────────────────────────────────────────────────── */
.ouverture { display: grid; gap: 0 clamp(1rem, 2vw, 2rem); }
@media (min-width: 60rem) {
  .ouverture {
    grid-template-columns: minmax(0, 1.2fr) minmax(22rem, 1fr);
    min-height: min(calc(80vh - 4.5rem), 38rem);
    min-height: min(calc(80svh - 4.5rem), 38rem);
  }
}
.ouverture__texte {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem) var(--marge) clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 60rem) { .ouverture__texte { padding-right: 0; } }
.ouverture__titre {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.1rem + 4.8vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  max-width: 14ch;
  text-wrap: balance;
}
.mot {
  display: inline-block;
  overflow: hidden;
  padding: 0.14em 0.06em 0.12em;
  margin: -0.14em -0.06em -0.12em;
  vertical-align: top;
}
.mot__in { display: inline-block; animation: monter 1s var(--entree) 0.2s both; }
.mot:nth-child(2) .mot__in  { animation-delay: 0.28s; }
.mot:nth-child(3) .mot__in  { animation-delay: 0.36s; }
.mot:nth-child(4) .mot__in  { animation-delay: 0.44s; }
.mot:nth-child(5) .mot__in  { animation-delay: 0.52s; }
.mot:nth-child(6) .mot__in  { animation-delay: 0.6s; }
.mot:nth-child(7) .mot__in  { animation-delay: 0.68s; }
.mot:nth-child(8) .mot__in  { animation-delay: 0.76s; }
.mot:nth-child(9) .mot__in  { animation-delay: 0.84s; }
.mot:nth-child(n + 10) .mot__in { animation-delay: 0.92s; }
.ouverture__chapo {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 38ch;
  color: var(--color-muted);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.35rem);
  line-height: 1.45;
  animation: apparaitre 0.9s var(--entree) 0.9s both;
}
.ouverture__action { margin-top: 1.5rem; animation: apparaitre 0.9s var(--entree) 1.05s both; }

/* Le panneau : une carte rose à bord noir, posée dans la marge, qui se
   dévoile par volet puis change de pastel toutes les sept secondes. */
.ouverture__panneau {
  position: relative;
  margin: clamp(1rem, 2vw, 1.5rem) var(--marge) clamp(1rem, 2vw, 1.5rem) 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--rose);
  border: var(--trait) solid var(--color-primary);
  border-radius: var(--rayon);
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation:
    volet-bas 1.1s var(--entree) 0.3s backwards,
    pastels 42s linear 2s infinite;
}
@media (max-width: 59.99rem) {
  .ouverture__panneau { margin: 0 var(--marge) clamp(1.5rem, 4vw, 2.5rem); }
}
.index { display: grid; }
.index__item { border-top: var(--trait) solid var(--color-primary); animation: apparaitre 0.8s var(--entree) both; }
.index__item:nth-child(1) { animation-delay: 1.1s; }
.index__item:nth-child(2) { animation-delay: 1.2s; }
.index__item:nth-child(3) { animation-delay: 1.3s; }
.index__item:nth-child(n + 4) { animation-delay: 1.4s; }
.index__item:last-child { border-bottom: var(--trait) solid var(--color-primary); }
.index__lien {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0.5rem;
  border-radius: calc(var(--rayon) / 2);
  text-decoration: none;
  color: inherit;
}
.index__rang { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.12em; }
.index__titre { font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); line-height: 1.15; }

/* ── 2. Le ruban ─────────────────────────────────────────────────────── */
.ruban {
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: 0.75rem 0;
  cursor: url("img/curseur-clair.405a842caa17.svg") 2 2, auto;
}
.ruban__piste { display: flex; width: max-content; animation: defiler 36s linear infinite; }
.ruban:hover .ruban__piste { animation-play-state: paused; }
.ruban__liste { display: flex; flex-shrink: 0; }
.ruban__item {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.75rem);
  line-height: 1.2;
  white-space: nowrap;
  padding-right: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
/* Un disque pastel entre deux intitulés, un pastel différent à chaque fois. */
.ruban__item::after { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--rose); flex-shrink: 0; }
.ruban__item:nth-child(6n + 2)::after { background: var(--vert); }
.ruban__item:nth-child(6n + 3)::after { background: var(--jaune); }
.ruban__item:nth-child(6n + 4)::after { background: var(--bleu); }
.ruban__item:nth-child(6n + 5)::after { background: var(--lilas); }
.ruban__item:nth-child(6n)::after     { background: var(--peche); }
@media (prefers-reduced-motion: reduce) {
  .ruban__piste { animation: none; width: auto; flex-wrap: wrap; }
  .ruban__liste { flex-wrap: wrap; row-gap: 0.5rem; }
  .ruban__liste + .ruban__liste { display: none; }
}

/* ── Titres de section ───────────────────────────────────────────────── */
.section__titre {
  position: relative;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding-bottom: 0.9rem;
}
.section__titre::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--trait);
  border-radius: 999px;
  background: var(--color-primary);
  transform-origin: left center;
}

/* ── Les cartes : un seul dessin pour tout le site ───────────────────── */
.palier,
.serie,
.signature,
.parcours__lien,
.fenetre,
.reponse-directe,
.avertissement,
.aparte,
.table-defilante {
  border: var(--trait) solid var(--color-primary);
  border-radius: var(--rayon);
}

/* ── 3. Les offres en escalier : des cartes pastel qui se posent ──────── */
.offres { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: var(--souffle); }
.escalier { width: var(--colonne); margin-inline: auto; display: grid; gap: 1rem; margin-top: clamp(1.25rem, 3vw, 2rem); }
.palier {
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.5rem);
  background: var(--vert);
}
.palier:nth-child(2) { background: var(--bleu); }
.palier:nth-child(3) { background: var(--lilas); }
.palier:nth-child(4) { background: var(--peche); }
.palier:nth-child(5) { background: var(--rose); }
.palier:nth-child(n + 6) { background: var(--jaune); }
/* Le rang : une pastille noire, un numéro en Archivo. */
.palier__rang {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  margin-bottom: 0.9rem;
}
.palier__titre {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
}
.palier__titre a {
  text-decoration: none;
  background-image: linear-gradient(var(--color-primary), var(--color-primary));
  background-size: 0 var(--trait);
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.5s var(--entree);
}
.palier__resume { margin-top: 0.9rem; max-width: 46ch; color: var(--color-muted); }
/* L'escalier : chaque carte avance un peu plus que la précédente. */
@media (min-width: 60rem) {
  .palier:nth-child(2) { margin-left: 12%; }
  .palier:nth-child(3) { margin-left: 24%; }
  .palier:nth-child(n+4) { margin-left: 36%; }
}
.escalier--droit .palier { margin-left: 0; }

/* ── 4. Les questions : une carte lilas, un tiret noir par question ───── */
.questions { padding-bottom: var(--souffle); }
.serie {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(0.5rem, 1.5vw, 1rem) clamp(1.25rem, 3vw, 2.5rem);
  background: var(--lilas);
}
/* Chaque question est un `details` natif : repliée, seul l'intitulé se
   voit ; ouverte, la réponse se déplie. Les DEUX états sont habillés ici
   (précision 11.18), et un test l'exige. */
.question { border-top: var(--trait) solid var(--color-primary); }
.question:first-child { border-top: 0; }
.question__intitule {
  display: grid;
  grid-template-columns: 1fr 2rem;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.8rem);
  line-height: 1.25;
}
.question__intitule::-webkit-details-marker { display: none; }
/* Le marqueur : un « + » dessiné aux bordures, dans une pastille à bord
   noir. Ouvert, il tourne et devient un « × ». */
.question__intitule::after {
  content: "";
  justify-self: end;
  width: 2rem;
  height: 2rem;
  border: var(--trait) solid var(--color-primary);
  border-radius: 50%;
  background:
    linear-gradient(var(--color-primary), var(--color-primary)) center / 0.9rem var(--trait) no-repeat,
    linear-gradient(var(--color-primary), var(--color-primary)) center / var(--trait) 0.9rem no-repeat;
  transition: transform 0.4s var(--entree), background-color 0.3s ease;
}
.question[open] > .question__intitule::after { transform: rotate(45deg); background-color: var(--color-on-primary); }
.question__reponse { padding: 0 0 1.4rem; max-width: 60ch; color: var(--color-muted); }
/* L'ouverture se déplie en hauteur là où le navigateur sait interpoler
   `auto` (Chrome 131+) ; ailleurs, elle apparaît d'un coup, puis monte. */
:root { interpolate-size: allow-keywords; }
.question::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.45s var(--entree), content-visibility 0.45s allow-discrete;
}
.question[open]::details-content { height: auto; }
.question[open] > .question__reponse { animation: apparaitre 0.5s var(--entree) both; }

/* ── 5. Le fondateur : une carte pêche, la biographie en grand ────────── */
.equipe { padding-bottom: var(--souffle); }
.signatures { margin-top: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; }
.signature { position: relative; padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.5rem); background: var(--peche); }
.signature__bio {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.8rem);
  line-height: 1.4;
  max-width: 36em;
  margin-bottom: 1.5rem;
}
.signature__nom { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.signature__role { margin-top: 0.25rem; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); }

/* ── 6. Clore : le bandeau noir ──────────────────────────────────────── */
.clore {
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  cursor: url("img/curseur-clair.405a842caa17.svg") 2 2, auto;
}
.clore a, .clore button, .clore .bouton { cursor: url("img/curseur-lien-clair.ee8f4939f640.svg") 2 2, pointer; }
.clore a:not(.bouton) { color: inherit; }
.clore :focus-visible { outline-color: var(--color-on-primary); }
.clore__phrase {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.1rem + 3.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.clore__action { margin-top: 1.75rem; }
.clore__coordonnees { margin-top: clamp(2rem, 4vw, 3rem); font-style: normal; line-height: 2; opacity: 0.86; }

/* ── Pied : le jaune de la palette ───────────────────────────────────── */
.footer {
  background: var(--color-surface);
  border-top: var(--trait) solid var(--color-primary);
  padding-block: clamp(2rem, 4vw, 3rem);
  font-size: 1rem;
  color: var(--color-muted);
}
.footer__inner {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  align-items: start;
}
.footer__identity { font-family: var(--serif); font-size: 1.15rem; color: var(--color-text); }
.footer__heading { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.9rem; }
.footer__contact, .footer__hours, .footer__areas { font-style: normal; line-height: 1.8; }
.footer__contact, .footer__hours { margin-top: 1rem; }
.footer__legal { margin-top: 2rem; padding-top: 1.25rem; border-top: var(--trait) solid var(--color-primary); }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer__col .footer-links { flex-direction: column; gap: 0.15rem; }
.footer__link { color: inherit; display: inline-block; padding-block: 0.25rem; }

/* ── Révélations au défilement : zéro script ─────────────────────────── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section__titre::after {
      animation: tracer 1s var(--entree) both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    .serie,
    .signature,
    .clore__phrase,
    .clore__action,
    .clore__coordonnees,
    .reponse-directe,
    .prose > p,
    .prose h2,
    .prose h3,
    .prose ul,
    .prose ol,
    .prose .fenetre,
    .table-defilante,
    .pied-article,
    .avertissement,
    .champ,
    .aparte,
    .footer__col {
      animation: revele 0.8s var(--entree) both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    .palier {
      animation: glisser 0.85s var(--entree) both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    .palier__rang {
      animation: poser 0.7s var(--entree) both;
      animation-timeline: view();
      animation-range: entry 15% entry 70%;
    }
    .palier:nth-child(2) { animation-range: entry 8% entry 63%; }
    .palier:nth-child(3) { animation-range: entry 16% entry 71%; }
    .palier:nth-child(n + 4) { animation-range: entry 22% entry 77%; }
  }
}

/* ── Survols : seulement là où il y a un pointeur ────────────────────── */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  a:hover { text-decoration-thickness: var(--trait); text-underline-offset: 0.3em; }
  .nav__link:hover { border-color: var(--color-primary); background: var(--jaune); }
  .nav .button:hover { background: var(--rose); color: var(--color-primary); }
  .header__name:hover { color: var(--color-muted); }
  .palier__titre a:hover { background-size: 100% var(--trait); }
  /* Les cartes se soulèvent et laissent une ombre noire pleine : c'est
     l'ombre portée d'un bord, pas un flou. */
  .palier:hover,
  .parcours__lien:hover { transform: translate(-0.25rem, -0.25rem); box-shadow: 0.5rem 0.5rem 0 var(--color-primary); }
  .index__lien:hover { background: var(--color-on-primary); transform: translateX(0.4rem); }
  .config__radio:not(:checked) + .config__carte:hover,
  .config__radio:not(:checked) + .config__puce:hover { background: var(--jaune); }
  .fenetre__lien:hover img { transform: scale(1.025); }
  .footer__link:hover { color: var(--color-text); }
  .clore a:hover { color: inherit; text-decoration-color: currentColor; }
  .bouton:hover { background: var(--jaune); color: var(--color-primary); transform: translate(-0.2rem, -0.2rem); box-shadow: 0.4rem 0.4rem 0 var(--color-primary); }
  .bouton--sur-primaire:hover { background: var(--color-on-primary); box-shadow: 0.4rem 0.4rem 0 var(--rose); }
}

/* ── Boutons : des pastilles noires à bord noir ──────────────────────── */
.bouton {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.6rem;
  border: var(--trait) solid var(--color-primary);
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.bouton::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-left: 0.8em;
  border-top: var(--trait) solid currentColor;
  border-right: var(--trait) solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.35s var(--entree);
}
.bouton:hover::after { transform: translateX(0.3em) rotate(45deg); }
/* Sur le bandeau noir : la pastille passe en rose, le texte en noir. */
.bouton--sur-primaire { border-color: var(--rose); background: var(--rose); color: var(--color-primary); }

/* ── Contact ─────────────────────────────────────────────────────────── */
.ouverture--courte { min-height: 0; display: block; padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.ouverture--courte .mesure { position: relative; }
.ouverture__titre--court { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.75rem); animation: apparaitre 0.9s var(--entree) 0.1s both; }
.ouverture--courte .ouverture__chapo { max-width: 44ch; animation-delay: 0.35s; }
.ouverture--courte .ouverture__action { animation-delay: 0.5s; }

.formulaire { padding-bottom: var(--souffle); }
.formulaire__grille { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 62rem) { .formulaire__grille { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.champ { margin-bottom: 1.25rem; }
.champ__etiquette { display: block; margin-bottom: 0.4rem; font-family: var(--serif); font-size: 1.05rem; }
.field__input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: var(--trait) solid var(--color-primary);
  border-radius: calc(var(--rayon) * 0.6);
  background: var(--color-on-primary);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1.1rem;
  line-height: 1.4;
}
.field__input:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--bleu); }
textarea.field__input { resize: vertical; }
.champ--faute .field__input { background: var(--rose); }
.champ__faute { display: block; margin-top: 0.4rem; font-size: 1rem; }
.aparte { padding: clamp(1.25rem, 3vw, 2rem); background: var(--bleu); align-self: start; }
.aparte__avis { max-width: 40ch; }
.aparte__coordonnees, .aparte__horaires { margin-top: 1.5rem; font-style: normal; line-height: 1.9; }

/* ── Pages intérieures ───────────────────────────────────────────────── */
.surtitre {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: var(--trait) solid var(--color-primary);
  border-radius: 999px;
  background: var(--bleu);
  margin-bottom: 1rem;
}
.corps { padding-bottom: var(--souffle); }
.prose { max-width: 64ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 1.25rem + 1.5vw, 2.5rem); line-height: 1.15; margin-top: 1.7em; }
.prose h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose strong { font-weight: 700; }

/* ── Tableaux : un cadre noir courbe, l'en-tête en jaune ─────────────── */
.table-defilante { overflow-x: auto; overflow-y: hidden; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.prose caption { text-align: left; padding: 0.8rem 1rem; color: var(--color-muted); font-size: 1rem; border-bottom: var(--trait) solid var(--color-primary); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-bottom: 1px solid var(--color-primary); }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.prose thead th { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; background: var(--jaune); border-bottom: var(--trait) solid var(--color-primary); }
.prose tbody th { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; line-height: 1.3; }
.prose td { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── /notre-offre/ : les trois portes, trois cartes pastel ───────────── */
.prose .parcours { list-style: none; padding-left: 0; display: grid; gap: 0.9rem; }
.prose .parcours .parcours__item + .parcours__item { margin-top: 0; }
.parcours__lien { display: block; padding: 1.25rem 1.5rem 1.4rem; background: var(--rose); text-decoration: none; }
.parcours__item:nth-child(2) .parcours__lien { background: var(--vert); }
.parcours__item:nth-child(3) .parcours__lien { background: var(--bleu); }
.parcours__item:nth-child(4) .parcours__lien { background: var(--lilas); }
.parcours__situation { color: var(--color-muted); }
.prose .parcours .parcours__titre { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.1; margin: 0.3rem 0 0.5rem; }
/* ── /notre-offre/ : le configurateur, sans une ligne de script ───────────
   Trois questions en boutons radio — objectif, profession, effectif — et une
   estimation. L'estimation est en fait la GRILLE ENTIÈRE, servie dans le
   HTML : un palier par ligne, le site, le délai et les trois abonnements par
   colonne. Sans `:has()` (ou sans CSS, ou pour un moteur), on lit le tableau
   complet, et les questions, inutiles, restent masquées. Avec `:has()`, la
   feuille ne laisse paraître que la ligne du palier et la colonne de
   l'objectif. Les DEUX états sont exigés par un test (précision 11.18). */
.corps > .mesure:has(.config) { container-type: inline-size; }
.prose > .config { display: grid; gap: 1.25rem; align-items: start; }
.prose .config .config__titre { margin-top: 0; }
.config__etapes { display: none; gap: 1rem; }
.config__etape { min-width: 0; margin: 0; padding: 1.25rem 1.25rem 1.4rem; border: var(--trait) solid var(--color-primary); border-radius: var(--rayon); }
.config__question { float: left; width: 100%; padding: 0; margin-bottom: 0.9rem; font-family: var(--serif); font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.7rem); line-height: 1.2; }
.config__question + * { clear: both; }
.config__rang { display: inline-flex; align-items: center; justify-content: center; width: 1.7em; height: 1.7em; margin-right: 0.35em; border: var(--trait) solid var(--color-primary); border-radius: 50%; font-family: var(--sans); font-size: 0.6em; vertical-align: 0.25em; }
.config__groupe { min-width: 0; margin: 0; padding: 0.9rem 0 0; border: 0; border-top: 1px solid var(--color-primary); }
.config__groupe + .config__groupe { margin-top: 0.9rem; }
.config__libelle { float: left; width: 100%; padding: 0; margin-bottom: 0.6rem; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.config__libelle + * { clear: both; }
.config__aide { color: var(--color-muted); margin-top: 0.9rem; }
.config__objectifs, .config__puces { position: relative; }
.config__objectifs { display: grid; gap: 0.75rem; }
.config__puces { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.config__radio { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; opacity: 0; }
.config__radio:focus-visible + label { outline: var(--trait) solid var(--color-primary); outline-offset: 3px; }
.config__carte { display: block; padding: 1rem 1.25rem 1.1rem; border: var(--trait) solid var(--color-primary); border-radius: var(--rayon); background: var(--color-background); }
.config__carte-titre { display: block; font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem); line-height: 1.15; }
.config__carte-texte { display: block; margin-top: 0.25rem; color: var(--color-muted); }
.config__radio:checked + .config__carte { background: var(--rose); box-shadow: 0.35rem 0.35rem 0 var(--color-primary); }
#objectif-google:checked + .config__carte { background: var(--vert); }
#objectif-ia:checked + .config__carte { background: var(--bleu); }
.config__puce { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0.3rem 1rem; border: var(--trait) solid var(--color-primary); border-radius: 999px; background: var(--color-background); font-family: var(--sans); font-size: 0.95rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.config__radio:checked + .config__puce { background: var(--color-primary); color: var(--color-on-primary); }
.config__estimation { padding: 1.25rem 1.25rem 1.5rem; border: var(--trait) solid var(--color-primary); border-radius: var(--rayon); background: var(--color-surface); }
.config__surtitre { display: none; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.config__pour { display: none; }
.prose .config__ensuite { list-style: none; padding: 0.9rem 0 0; margin-top: 1rem; border-top: 1px solid var(--color-primary); }
.config__action { margin-top: 1.25rem; }
@container (min-width: 44rem) { .config__objectifs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 58rem) {
  .prose > .config { grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 1fr); }
  .config__titre { grid-column: 1 / -1; }
  .config__estimation { position: sticky; top: 1.5rem; }
}

@supports selector(:has(*)) {
  /* Hors de ce bloc, sans conteneur, `100cqi` vaudrait la largeur d'écran : débordement. */
  .prose > .config { width: 100cqi; max-width: none; }
  .config__etapes { display: grid; }
  .config__surtitre { display: block; }
  .config__pour { display: block; margin-top: 0.35rem; color: var(--color-muted); }
  .config__pour > span { display: none; }
  .config:has(#metier-avocat:checked) .config__pour--avocat,
  .config:has(#metier-notaire:checked) .config__pour--notaire,
  .config:has(#metier-expert-comptable:checked) .config__pour--expert-comptable,
  .config:has(#metier-gestionnaire:checked) .config__pour--gestionnaire,
  .config:has(#metier-commissaire:checked) .config__pour--commissaire,
  .config:has(#metier-administrateur:checked) .config__pour--administrateur { display: inline; }
  .grille caption,
  .grille thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .config__estimation .table-defilante { border: 0; border-radius: 0; overflow: visible; }
  .prose .grille, .grille tbody { display: block; }
  .grille__ligne { display: none; }
  .config:has(#effectif-1:checked) .grille__ligne:nth-child(1),
  .config:has(#effectif-2:checked) .grille__ligne:nth-child(2),
  .config:has(#effectif-3:checked) .grille__ligne:nth-child(3),
  .config:has(#effectif-4:checked) .grille__ligne:nth-child(4),
  .config:has(#effectif-5:checked) .grille__ligne:nth-child(5) { display: grid; gap: 0.35rem; margin-top: 0.6rem; }
  .config:has(#objectif-lancer:checked) .grille__mois:not(.grille__mois--lancer),
  .config:has(#objectif-google:checked) .grille__mois:not(.grille__mois--google),
  .config:has(#objectif-ia:checked) .grille__mois:not(.grille__mois--ia) { display: none; }
  .prose .grille__ligne > * { padding: 0; border: 0; }
  .prose .grille__ligne th { font-family: var(--sans); font-size: 1rem; }
  .grille__site { font-family: var(--serif); font-size: clamp(2.4rem, 1.9rem + 2vw, 3.4rem); line-height: 1; }
  .prose .grille__delai, .prose .grille__echange { color: var(--color-muted); white-space: normal; }
  .prose .grille__mois { margin-top: 0.5rem; padding-top: 0.6rem; border-top: 1px solid var(--color-primary); font-family: var(--serif); font-size: 1.35rem; white-space: normal; }
}

/* ── Réalisations : la fenêtre de navigateur ─────────────────────────── */
.fenetre { background: var(--color-background); overflow: hidden; }
.fenetre__barre { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; border-bottom: var(--trait) solid var(--color-primary); background: var(--jaune); font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.04em; }
.fenetre__pastilles { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--rose); box-shadow: 1rem 0 0 var(--vert), 2rem 0 0 var(--bleu); margin-right: 1.7rem; }
.fenetre__lien { display: block; overflow: hidden; }
.fenetre img { width: 100%; transition: transform 0.9s var(--entree); }
.fenetre__legende { padding: 0.7rem 1rem; border-top: var(--trait) solid var(--color-primary); color: var(--color-muted); font-size: 1rem; }

/* La réponse directe : une carte pêche en tête d'article. */
.reponse-directe { padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 64ch; background: var(--peche); }
.reponse-directe__texte { font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); line-height: 1.4; }
.pied-article { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.25rem; border-top: var(--trait) solid var(--color-primary); max-width: 64ch; }
.pied-article__meta { color: var(--color-muted); }
.pied-article__meta + .pied-article__meta { margin-top: 0.4rem; }
.avertissement { margin-top: clamp(2rem, 4vw, 3rem); padding: 1.1rem 1.4rem; background: var(--lilas); max-width: 64ch; }
.pagination { display: flex; gap: 2rem; align-items: baseline; padding-top: clamp(2rem, 4vw, 3rem); }
.pagination__etat { color: var(--color-muted); }

/* ── Pages LÉGALES — gabarit de plateforme, habillé ici ──────────────── */
.section { padding-bottom: var(--souffle); }
.container { width: var(--colonne); margin-inline: auto; }
.container--narrow { max-width: 64ch; }
.page-header { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.25rem, 2.5vw, 2rem); }
.page-header__eyebrow { display: inline-block; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.8rem; border: var(--trait) solid var(--color-primary); border-radius: 999px; background: var(--bleu); margin-bottom: 1rem; }
.page-header__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.75rem); line-height: 0.98; letter-spacing: -0.011em; }
.lede { color: var(--color-muted); max-width: 46ch; margin-top: 1.25rem; }
