/* Léo Matrat — « Note de breffage, publication vivante ». Feuille unique du site (référence : DESIGN.md).
   1. Socle (tokens, typographie, signatures)  2. Édition V2bis  3. Fiches de réalisation */

:root {
  --papier: #f5f2ea;
  --papier-2: #ece7da;
  --encre: #1a1c1a;
  --encre-2: #4a4a44;
  --vert: #1e4636;
  --rouge: #a63d2a;
  --filet: #d9d3c4;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, Consolas, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --page: 86rem;
  --gouttiere: clamp(1rem, 4vw, 3rem);
  --large: 1100px; /* rappel : seuil des notes en marge, voir signatures.js */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.1875rem/1.55 var(--serif);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 450; line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--vert); color: var(--papier); }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; border-radius: 1px; }

.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lien-evitement { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--encre); color: var(--papier); padding: .5rem 1rem; font: 500 .9rem var(--sans); }
.lien-evitement:focus { top: 1rem; }

/* ---------- Petits caractères ---------- */
.meta { font: 500 .75rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); }
.ui { font-family: var(--sans); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.chapo { font-size: clamp(1.25rem, 1.6vw, 1.45rem); line-height: 1.45; color: var(--encre-2); }

/* ---------- Titre de section : « § 2  Travaux » ---------- */
.titre-section { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .75rem; padding-top: 1.25rem; border-top: 1px solid var(--encre); margin-bottom: 2.5rem; }
.titre-section .paragraphe { font: 500 .8rem var(--mono); color: var(--vert); letter-spacing: .06em; }
.titre-section h2 { font-size: clamp(2rem, 3.4vw, 3rem); }

/* ---------- Boutons et liens ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .95rem/1 var(--sans); text-decoration: none;
  padding: .95em 1.3em; border-radius: 2px;
  background: var(--encre); color: var(--papier); border: 1px solid var(--encre);
  transition: background-color 150ms ease, border-color 150ms ease, transform 120ms var(--ease-out);
}
.bouton.secondaire { background: transparent; color: var(--encre); }
.bouton:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .bouton:hover { background: var(--vert); border-color: var(--vert); color: var(--papier); }
}

/* Soulignement qui se trace au survol (feedback, ~tens/jour : discret et rapide) */
.lien {
  font-family: var(--sans); font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 250ms var(--ease-out), color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .lien { background-size: 0 1px; background-image: linear-gradient(var(--vert), var(--vert)), linear-gradient(var(--filet), var(--filet)); background-size: 0 1px, 100% 1px; }
  .lien:hover { color: var(--vert); background-size: 100% 1px, 100% 1px; }
}
.fleche { display: inline-block; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a:hover .fleche { transform: translateX(3px); } }

/* ---------- Figures légendées ---------- */
figure { margin: 0; }
.cadre { overflow: hidden; background: var(--papier-2); outline: 1px solid var(--filet); outline-offset: -1px; }
.cadre img { width: 100%; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a:hover > .cadre img, a:hover .cadre img { transform: scale(1.025); } }
figcaption { font: 400 .85rem/1.45 var(--sans); color: var(--encre-2); margin-top: .7rem; }
figcaption b { font: 500 .75rem var(--mono); color: var(--encre); letter-spacing: .04em; margin-right: .4em; }

.code { font: 400 .8rem/1.65 var(--mono); background: var(--papier-2); outline: 1px solid var(--filet); outline-offset: -1px; padding: 1.25rem 1.4rem; margin: 0; overflow-x: auto; color: var(--encre); white-space: pre; }
.code .c { color: var(--encre-2); }
.code .s { color: var(--vert); }

/* =========================================================
   SIGNATURE 1 — Stylo rouge (explication ; rare : une fois par chargement)
   Un trait manuscrit se trace sous l'essentiel, ligne par ligne.
   ========================================================= */
.stylo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9.5C30 6.5 62 11 96 8.2S160 5.8 198 8.6' fill='none' stroke='%23a63d2a' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% .5em; /* sans JS : déjà tracé */
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-bottom: .12em;
  transition: background-size 800ms var(--ease-in-out);
  transition-delay: var(--delai, 0ms);
}
.js .stylo:not(.trace) { background-size: 0% .5em; }

/* Figure tracée : un tracé SVG se dessine une fois (explication) */
.trace-svg path { stroke-dasharray: 1; transition: stroke-dashoffset 1100ms var(--ease-in-out); transition-delay: var(--delai, 0ms); }
.js .trace-svg:not(.trace) path { stroke-dashoffset: 1; }
.trace-svg .etiquette { transition: opacity 400ms ease 1000ms; }
.js .trace-svg:not(.trace) .etiquette { opacity: 0; }

/* Renvoi : le titre ciblé s'éclaire puis s'éteint (indication d'état) */
h2.eclaire { animation: eclaire 1400ms ease-out; }
@keyframes eclaire { 0%, 30% { color: var(--rouge); } }


/* =========================================================
   SIGNATURE 2 — Notes en marge reliées (technique des notes latérales)
   ========================================================= */
.appel {
  font: 700 .68em/1 var(--mono); color: var(--rouge);
  background: none; border: 0; padding: .1em .2em; margin-left: .05em;
  vertical-align: super; cursor: pointer; border-radius: 2px;
  transition: background-color 150ms ease, color 150ms ease;
}
.appel.actif { background: var(--rouge); color: var(--papier); }
.note {
  display: block; font: 400 .85rem/1.5 var(--sans); color: var(--encre-2);
  border-left: 2px solid transparent; padding-left: .75rem;
  transition: border-color 150ms ease, color 150ms ease;
}
.note .num-note { font: 700 .75rem var(--mono); color: var(--rouge); margin-right: .35em; }
.note.actif { border-left-color: var(--rouge); color: var(--encre); }
.note a { color: var(--vert); }
/* Étroit : la note s'ouvre dans le texte */
@media (max-width: 1099.98px) {
  .note { display: none; margin: .6rem 0 .8rem; padding: .7rem .9rem; background: var(--papier-2); border-left-color: var(--rouge); }
  .note.ouverte { display: block; animation: note-in 200ms var(--ease-out); }
}
@keyframes note-in { from { opacity: 0; transform: translateY(-4px); } }
/* Large : la note flotte dans la marge droite */
@media (min-width: 1100px) {
  .avec-marge { --marge: 15rem; --ecart: 3rem; margin-right: calc(var(--marge) + var(--ecart)); }
  .avec-marge .note { float: right; clear: right; width: var(--marge); margin-right: calc(-1 * (var(--marge) + var(--ecart))); margin-top: .3rem; margin-bottom: 1rem; }
}
.fil-notes { position: absolute; inset: 0 auto auto 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.fil-notes path { fill: none; stroke: var(--rouge); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 260ms var(--ease-out), opacity 150ms ease; }
.fil-notes path.trace { stroke-dashoffset: 0; opacity: 1; }

/* =========================================================
   SIGNATURE 3 — Sommaire vivant
   ========================================================= */
.sommaire ol { list-style: none; margin: 0; padding: 0; position: relative; }
.sommaire a { position: relative; display: grid; grid-template-columns: 2.2rem 1fr; align-items: baseline; text-decoration: none; font: 500 .95rem/1.3 var(--sans); color: var(--encre-2); padding: .55rem 0; transition: color 150ms ease; }
.sommaire a .num { font-size: .75rem; color: var(--encre-2); }
.sommaire a[aria-current="true"] { color: var(--encre); }
.sommaire a[aria-current="true"] .num { color: var(--vert); }
@media (hover: hover) and (pointer: fine) { .sommaire a:hover { color: var(--vert); } }
.jauge { position: absolute; left: 2.2rem; right: 0; bottom: .25rem; height: 1px; background: var(--vert); transform: scaleX(0); transform-origin: 0 50%; }
.sommaire a[aria-current="true"] .jauge { transform: scaleX(var(--p, 0)); }
.sommaire .curseur { position: absolute; left: -1rem; top: 0; width: 2px; height: 2.4rem; background: var(--vert); transform: translateY(var(--y, 0)); transition: transform 300ms var(--ease-in-out), opacity 150ms ease; opacity: 0; }
.sommaire.pret .curseur { opacity: 1; }

/* Barre de lecture mobile + sommaire en tiroir */
.barre-lecture {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  display: none; align-items: stretch; gap: 1px;
  background: var(--encre); color: var(--papier);
  padding-bottom: env(safe-area-inset-bottom);
  font: 600 .9rem var(--sans);
}
.barre-lecture::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--rouge); transform: scaleX(var(--p-page, 0)); transform-origin: 0 50%; }
.barre-lecture button, .barre-lecture a { flex: 1; display: flex; align-items: center; gap: .6rem; min-height: 3.25rem; padding: 0 1rem; background: none; color: inherit; border: 0; font: inherit; text-decoration: none; cursor: pointer; }
.barre-lecture a { flex: 0 0 auto; border-left: 1px solid #ffffff33; }
.barre-lecture .num { color: #f0b9ac; font-size: .8rem; }
@media (max-width: 1099.98px) { .barre-lecture { display: flex; } body { padding-bottom: 3.5rem; } }

.tiroir {
  margin: auto 0 0; width: 100%; max-width: none; max-height: 85dvh; border: 0; padding: 1.5rem var(--gouttiere) 2rem;
  background: var(--papier); color: var(--encre);
  transform: translateY(100%);
  transition: transform 380ms var(--ease-drawer), overlay 380ms allow-discrete, display 380ms allow-discrete;
}
.tiroir[open] { transform: translateY(0); }
@starting-style { .tiroir[open] { transform: translateY(100%); } }
.tiroir::backdrop { background: #1a1c1a00; transition: background-color 300ms ease, overlay 300ms allow-discrete, display 300ms allow-discrete; }
.tiroir[open]::backdrop { background: #1a1c1a73; }
@starting-style { .tiroir[open]::backdrop { background: #1a1c1a00; } }
.tiroir .entete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.tiroir .fermer { background: none; border: 1px solid var(--filet); font: 600 .9rem var(--sans); padding: .6rem 1rem; border-radius: 2px; color: var(--encre); }
.tiroir .sommaire a { display: block; font-size: 1.25rem; padding: .9rem 0; border-bottom: 1px solid var(--filet); }

/* =========================================================
   SIGNATURE 4 — La figure devient la page (View Transitions entre documents)
   ========================================================= */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 450ms; animation-timing-function: var(--ease-in-out); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 250ms; }

/* Titre composé : chaque ligne monte de sous sa ligne de base (première visite : budget « plaisir ») */
.lignes .ligne { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.lignes .ligne > span { display: block; animation: ligne-monte 900ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }
@keyframes ligne-monte { from { transform: translateY(105%); } }
.apparait { animation: apparait 600ms var(--ease-out) both; animation-delay: var(--d, 400ms); }
@keyframes apparait { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Colophon ---------- */
.colophon { border-top: 1px solid var(--encre); margin-top: 6rem; padding: 2rem 0 3rem; font: 400 .85rem/1.6 var(--sans); color: var(--encre-2); }
.colophon .grille { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.colophon a { color: var(--encre); }
.hors-serie { display: block; text-decoration: none; border: 1px solid var(--filet); padding: 1rem; transition: border-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .hors-serie:hover { border-color: var(--vert); } }

/* ---------- Mouvement réduit : moins et plus doux, jamais caché ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  .lignes .ligne > span, .apparait { animation: fondu 200ms ease both; animation-delay: 0ms; }
  .stylo, .trace-svg path, .trace-svg .etiquette { transition: none; }
  h2.eclaire { animation-duration: 1s; }
  .sommaire .curseur, .tiroir, .fil-notes path, .cadre img, .fleche { transition-property: opacity; }
  .note.ouverte { animation: none; }
}
@keyframes fondu { from { opacity: 0; } }

/* ---------- Édition imprimable ---------- */
@media print {
  :root { --papier: #fff; }
  body { font-size: 11pt; padding: 0; }
  .barre-lecture, .tiroir, .sommaire, .fil-notes, .bascule-lecture, nav { display: none !important; }
  .stylo { background: none; text-decoration: underline 1.5px var(--rouge); }
  .note { display: block !important; float: none !important; margin: .3rem 0 .6rem !important; width: auto !important; }
  .avec-marge { margin-right: 0 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
  section { break-inside: avoid-page; }
}

/* Document imprimé : un graphique d'origine (ggplot) fondu dans le papier */
.cadre.document { background: var(--papier); }
.cadre.document img { filter: grayscale(1) contrast(1.08); mix-blend-mode: multiply; }

/* Note toujours visible (lecture d'une figure) : reliée mais jamais repliée */
.note.fixe { display: block !important; float: none !important; width: auto !important; margin: 0 !important; background: none; }
@media (max-width: 640px) { .code { white-space: pre-wrap; overflow-wrap: anywhere; } }

/* =====================================================================
   2. Édition V2bis « La Une, édition de fond »
   ===================================================================== */
/* « La Une, édition de fond » — surcharge le socle ci-dessus.
   Règle typographique : deux familles seulement, chacune avec un rôle.
   - Newsreader : tout ce qui se lit (nom, titres, texte, dates, légendes en italique).
   - Atkinson Hyperlegible Next : tout ce qui se manipule ou s'étiquette (navigation, boutons, libellés), en bas de casse.
   - La chasse fixe disparaît : elle signalait du code là où il n'y en avait pas. Seul l'extrait de code la garde (police système). */

:root {
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --col-texte: 19rem;   /* colonne des intitulés de la frise */
  --ecart: 2rem;
  --axe-grille: minmax(0, 5fr) minmax(0, 7fr); /* l'axe 5/7 de la une, repris par chaque section */
  --axe-ecart: clamp(2.5rem, 5vw, 4.5rem);
}

/* ---------- Petits textes : une seule voix d'interface ---------- */
.meta { font: 500 .8125rem/1.4 var(--sans); letter-spacing: .005em; text-transform: none; color: var(--encre-2); }
.rubrique { font: 600 .8125rem/1.3 var(--sans); color: var(--vert); margin: 0; }
.date { font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; }
figcaption { font: italic 400 .95rem/1.45 var(--serif); color: var(--encre-2); }
figcaption b { font: 600 .95rem var(--serif); font-style: normal; color: var(--encre); letter-spacing: 0; margin-right: .3em; }
.appel { font: 700 .7em/1 var(--sans); }
.note { font: 400 .9rem/1.5 var(--sans); }
.note .num-note { font: 600 .95rem var(--serif); }
.barre-lecture .num { font: 600 .8rem var(--sans); }
.code { font: 400 .78rem/1.65 var(--mono); }
h2 { font-weight: 400; letter-spacing: -.02em; }

.page { max-width: var(--page); margin: 0 auto; padding-inline: var(--gouttiere); }

/* ---------- En-tête : le nom en titre de revue, l'annonce du hors-série à droite ---------- */
.tete { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding: 1.6rem 0 1.2rem; border-bottom: 1px solid var(--encre); }
.nom { font-size: clamp(3.4rem, 8.2vw, 7.75rem); font-weight: 400; letter-spacing: -.035em; line-height: .92; }

/* ---------- Manchette : sommaire en bas de casse, sans numéros ---------- */
.manchette { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 2rem; background: var(--papier); border-bottom: 1px solid var(--filet); }
.manchette .sommaire ol { display: flex; gap: 2rem; }
.manchette .sommaire a { display: inline-block; padding: .85rem 0; font: 500 .9375rem var(--sans); }
.manchette .sommaire .jauge { left: 0; bottom: .55rem; }
.manchette .cv { font-size: .9375rem; }
.manchette .atlas-lien { margin-left: auto; font-size: .9375rem; }
.tiroir .atlas-lien { display: inline-block; margin-top: 1.5rem; font-size: 1.1rem; }

/* ---------- La une : présentation à gauche, travail phare à droite ---------- */
.une { display: grid; grid-template-columns: var(--axe-grille); gap: var(--axe-ecart); align-items: start; padding: 2.5rem 0 1rem; }
.manifeste { font: 400 clamp(2.1rem, 3.2vw, 3.05rem)/1.06 var(--serif); letter-spacing: -.02em; margin: 0 0 .55rem; text-wrap: balance; }
.manifeste em { color: var(--vert); }
.fiche { margin: 0 0 1.75rem; border-top: 1px solid var(--encre); }
.fiche div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--filet); }
.fiche dt { font: 500 .8125rem/1.75 var(--sans); color: var(--encre-2); }
.fiche dd { margin: 0; font-size: 1.0625rem; line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.a-la-une .rubrique { margin: 1.15rem 0 .45rem; }
.a-la-une h2 { font-size: clamp(1.9rem, 2.5vw, 2.5rem); line-height: 1.08; margin-bottom: .6rem; }
.a-la-une .chapo { font-size: 1.125rem; margin-bottom: .9rem; }
.liens { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin: 0; }

/* ---------- Sections : même axe 5/7, un titre et un chapeau qui dit ce qu'on va lire ---------- */
main > section:not(.une) { padding-top: 6.5rem; }
.tete-section { display: grid; grid-template-columns: var(--axe-grille); gap: .75rem var(--axe-ecart); align-items: baseline; padding-top: 1rem; margin-bottom: 2.5rem; border-top: 1px solid var(--encre); }
.tete-section h2 { font-size: clamp(2.2rem, 3.3vw, 3rem); }
.tete-section p { margin: 0; max-width: 34rem; font: italic 400 1.25rem/1.4 var(--serif); color: var(--encre-2); }

/* ---------- Travaux : index à gauche, aperçu à droite (même colonne que la une) ---------- */
.index { display: grid; grid-template-columns: var(--axe-grille); gap: var(--axe-ecart); }
.index ol { list-style: none; margin: 0; padding: 0; }
.index li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: baseline; padding: .95rem 0 1rem; border-bottom: 1px solid var(--filet); text-decoration: none; }
.index li:first-child a { padding-top: 0; }
.t-titre { font: 400 clamp(1.4rem, 1.9vw, 1.7rem)/1.15 var(--serif); transition: color 150ms ease; }
.t-annee { font: 400 1rem var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--encre-2); }
.t-type { grid-column: 1 / -1; font: 400 .9375rem/1.4 var(--sans); color: var(--encre-2); transition: color 150ms ease; }
.index li a[data-actif] .t-titre { color: var(--vert); }
.index li a[data-actif] .t-type { color: var(--encre); }
.index .t-vignette { display: none; }
.apercu { position: sticky; top: 4.5rem; align-self: start; display: grid; }
.apercu figure { grid-area: 1 / 1; opacity: 0; transition: opacity 220ms var(--ease-out); }
.apercu figure.visible { opacity: 1; }
.vignette { aspect-ratio: 40 / 21; }
.vignette img { width: 100%; height: 100%; object-fit: cover; }
.apercu .code { aspect-ratio: 40 / 21; overflow: hidden; padding: 1.75rem 2rem; font-size: .9rem; }

/* ---------- Analyse : figure annotée ---------- */
.figure-annotee { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--axe-ecart); align-items: start; }
.graphique { position: relative; }
.graphique svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.graphique svg path { fill: none; stroke: var(--rouge); stroke-width: 4; stroke-linecap: round; }
.graphique .appel { position: absolute; transform: translate(-50%, -50%); vertical-align: baseline; width: 1.75rem; height: 1.75rem; padding: 0; border-radius: 50%; border: 1.5px solid var(--rouge); background: var(--papier); font-size: .8rem; }
.graphique .appel.actif { background: var(--rouge); }
.lecture { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.lecture .note { font-size: .95rem; }
.lecture .note strong { display: block; margin-bottom: .2rem; font: 500 1.15rem/1.3 var(--serif); color: var(--encre); }
.analyse .liens { margin-top: 2rem; }

/* ---------- Parcours : deux registres sur une même échelle de temps ---------- */
.frise-cadre { position: relative; --debut: 2020; --axe: 7; } /* échelle de 2020 à 2027 */
.registre { margin: 2.25rem 0 .4rem; font: 600 .8125rem var(--sans); color: var(--vert); }
.registre:first-child { margin-top: 0; }
.frise { list-style: none; margin: 0; padding: 0; }
.frise li { display: grid; grid-template-columns: var(--col-texte) minmax(0, 1fr); gap: var(--ecart); align-items: center; padding: .8rem 0; border-top: 1px solid var(--filet); }
.frise h4 { margin: 0 0 .15rem; font: 500 1.125rem/1.25 var(--serif); }
.frise .ou { margin: 0; font: 400 .875rem/1.45 var(--sans); color: var(--encre-2); }
.piste { position: relative; height: 1.5rem; background: repeating-linear-gradient(to right, var(--filet) 0 1px, transparent 1px calc(100% / var(--axe))); }
.barre { position: absolute; top: 50%; height: 8px; margin-top: -4px; left: calc((var(--d) - var(--debut)) / var(--axe) * 100%); width: calc((var(--f) - var(--d)) / var(--axe) * 100%); background: var(--vert); transform-origin: 0 50%; transition: transform 900ms var(--ease-in-out) calc(var(--i, 0) * 110ms), opacity 200ms ease; }
.barre.en-cours::after { content: ""; position: absolute; right: -9px; top: -3px; border: 7px solid transparent; border-left: 9px solid var(--vert); border-right: 0; }
.barre.incertaine { background: repeating-linear-gradient(90deg, var(--vert) 0 7px, transparent 7px 11px); }
.barre.leger { background: var(--encre-2); }
.barre.leger.incertaine { background: repeating-linear-gradient(90deg, var(--encre-2) 0 7px, transparent 7px 11px); }
.js .frise-cadre:not(.trace) .barre { transform: scaleX(0); }
.axe { display: grid; grid-template-columns: var(--col-texte) minmax(0, 1fr); gap: var(--ecart); padding-top: .5rem; border-top: 1px solid var(--encre); }
.axe ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--axe), 1fr); font: 400 .9rem var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--encre-2); }
.legende-frise { margin: 1rem 0 0; font: 400 .875rem/1.5 var(--sans); color: var(--encre-2); }
.hors-champ { margin: 2.5rem 0 0; max-width: 40rem; font: italic 400 1.15rem/1.5 var(--serif); color: var(--encre-2); }

/* ---------- Compétences : chaque pratique renvoie à sa preuve ---------- */
.competences { width: 100%; border-collapse: collapse; }
.competences th { padding: 0 1.5rem .6rem 0; text-align: left; font: 500 .8125rem var(--sans); color: var(--encre-2); border-bottom: 1px solid var(--encre); }
.competences td { padding: .9rem 1.5rem .9rem 0; vertical-align: baseline; border-bottom: 1px solid var(--filet); }
.competences td:first-child { width: 26%; font: 500 1.125rem/1.3 var(--serif); }
.competences td:nth-child(2) { font: 400 1rem/1.5 var(--sans); }
.competences td:last-child { padding-right: 0; font: 400 .9375rem/1.5 var(--sans); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: var(--axe-grille); gap: 2rem var(--axe-ecart); align-items: end; }
.contact .courriel { display: block; font: 400 clamp(1.8rem, 3.6vw, 3.4rem)/1.1 var(--serif); letter-spacing: -.025em; overflow-wrap: anywhere; text-decoration: none; }
.contact .courriel span { background: linear-gradient(var(--rouge), var(--rouge)) 0 100% / 0 2px no-repeat; transition: background-size 350ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .contact .courriel:hover span { background-size: 100% 2px; } }
.contact .autres { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin: 0; }
.contact .chapo { grid-column: 1 / -1; margin: 0; }

/* ---------- Étroit ---------- */
@media (max-width: 1099.98px) {
  .manchette { display: none; }
  .tete { flex-direction: column; align-items: start; gap: 1rem; }
  .une, .tete-section, .index, .figure-annotee, .contact { grid-template-columns: minmax(0, 1fr); }
  .une { gap: 2.75rem; padding-top: 2rem; }
  .apercu { display: none; }
  .index .t-vignette { display: block; grid-column: 1 / -1; margin-top: .7rem; }
  .frise-cadre { --col-texte: 0px; --ecart: 0px; }
  .frise li { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .axe { grid-template-columns: minmax(0, 1fr); }
  .axe > span { display: none; }
  main > section:not(.une) { padding-top: 4.5rem; }
}
@media (max-width: 640px) {
  .nom { font-size: 17vw; }
  .manifeste { font-size: 2.15rem; }
  .fiche div { grid-template-columns: 6rem minmax(0, 1fr); gap: .75rem; }
  .actions .bouton, .contact .bouton { width: 100%; justify-content: center; }
  .axe ol li:nth-child(even) { visibility: hidden; }
  .competences thead { display: none; }
  .competences tr { display: grid; padding: .9rem 0; border-bottom: 1px solid var(--filet); }
  .competences td { width: auto !important; padding: .1rem 0; border: 0; }
  .competences td:last-child { color: var(--encre-2); }
}

/* Le trait rouge sous « lisible » ne doit pas être rogné par le masque de la ligne */
.manifeste .ligne { padding-bottom: .2em; margin-bottom: -.2em; }

/* Chiffres : Atkinson Hyperlegible dessine un zéro barré (sans variante pour le retirer).
   Utile pour distinguer 0 et O, mais il donne aux dates un air de terminal : tout chiffre passe en Newsreader. */
.frise .ou { font: 400 1rem/1.45 var(--serif); }
.barre-lecture .num { font: 600 .9rem var(--serif); }

/* Finitions relevées sur capture */
.tete { padding-top: 2.4rem; }
.fiche div, .memo div { align-items: baseline; }
.fiche dt, .memo dt { line-height: 1.4; }

/* Le courriel occupe toute la largeur et ne se coupe jamais au milieu d'un mot */
.contact { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1.75rem; }
.contact .courriel { font-size: clamp(1.55rem, 5.6vw, 4.25rem); overflow-wrap: normal; white-space: nowrap; }
/* Colonne des preuves : des titres d'œuvres, donc en Newsreader (et sans zéro barré) */
.competences td:last-child, .competences td:last-child .lien { font-family: var(--serif); font-size: 1.0625rem; }
.competences td:last-child .lien { font-weight: 500; }

/* ---------- Hors-série Atlas : l'annonce de couverture, à la place de l'avatar ----------
   Un globe au trait (méridiens, parallèles), une route tracée une fois au stylo rouge : la grammaire
   d'annotation du site, appliquée à un futur projet. Rien ne tourne : le globe interactif viendra avec Atlas. */
.atlas { display: flex; align-items: center; gap: 1rem; max-width: 22rem; margin: 0 0 .35rem; }
.atlas .globe { flex: none; width: 4.25rem; height: 4.25rem; overflow: visible; }
.atlas .globe circle:not(.escale), .atlas .globe ellipse, .atlas .globe .axe-globe { fill: none; stroke: var(--vert); stroke-width: .9; }
.atlas .globe .axe-globe { opacity: .55; }
.atlas .globe .route { fill: none; stroke: var(--rouge); stroke-width: 1.6; stroke-linecap: round; }
.atlas .globe .escale { fill: var(--rouge); }
.atlas .rubrique { margin-bottom: .2rem; }
.atlas-titre { margin: 0 0 .15rem; font: 400 1.15rem/1.3 var(--serif); }
.atlas-titre em { font-size: 1.3rem; }
@media (max-width: 1099.98px) { .atlas { max-width: none; } .atlas .globe { width: 3.5rem; height: 3.5rem; } }
/* base.css pointille toute ligne d'un .trace-svg : les repères du globe restent pleins */
.js .atlas .globe .axe-globe, .atlas .globe .axe-globe { stroke-dasharray: none; stroke-dashoffset: 0; }

/* Finitions phase 6 */
.frise-cadre { --col-texte: 22rem; }
.frise .ou + .ou { margin-top: .35rem; }
/* Mobile : l'annonce Atlas reste une ligne de couverture, elle ne repousse pas la fiche sous la ligne de flottaison */
@media (max-width: 640px) {
  .atlas { gap: .75rem; }
  .atlas .globe { width: 2.75rem; height: 2.75rem; }
  .atlas-titre { font-size: 1.02rem; }
  .atlas-titre em { font-size: 1.1rem; }
  .tete { padding-top: 1.6rem; gap: .75rem; }
}

/* ---------- Phase 7 ----------
   Atlas : le globe devient une vraie carte (côtes Natural Earth, projection orthographique, repère sur Québec) ;
   le titre mène à la fiche du hors-série. */
.atlas img.globe { display: block; }
.atlas-titre a { text-decoration: none; background: linear-gradient(var(--rouge), var(--rouge)) 0 100% / 0 1px no-repeat; transition: background-size 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .atlas-titre a:hover { background-size: 100% 1px; } }
.atlas-statut { margin: 0; font: 400 .8125rem/1.4 var(--sans); color: var(--encre-2); }
/* Portrait : une photo d'identité en tête de la fiche signalétique, comme sur une note de breffage */
.identite { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; margin: 0 0 1.75rem; }
.identite .fiche { margin: 0; }
.identite .fiche div { grid-template-columns: 5.75rem minmax(0, 1fr); }
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; outline: 1px solid var(--filet); outline-offset: -1px; }
@media (max-width: 640px) {
  .atlas-statut { display: none; }
  .identite { grid-template-columns: 4.75rem minmax(0, 1fr); gap: .9rem; }
  .identite .fiche div { grid-template-columns: minmax(0, 1fr); gap: .1rem; padding: .55rem 0; }
}

/* ---------- Phase 9 ----------
   Accroche validée (« Éclairer les décisions publiques… ») : le masque de révélation ne doit pas rogner
   l'accent des capitales ; l'accroche se sépare de la fiche sans la note « à valider » qui faisait l'écart. */
.manifeste .ligne { padding-top: .14em; margin-top: -.14em; }
.une .manifeste { margin-bottom: 1.75rem; }

/* =====================================================================
   Phase 10 — finition et mouvement (voir DESIGN.md § 7). Comportements : site.js.
   ===================================================================== */

/* ---------- Polices de secours aux métriques mesurées : le passage aux polices web ne fait plus bouger le texte ---------- */
@font-face { font-family: "Newsreader repli"; font-style: normal; src: local("Georgia"); size-adjust: 100.49%; ascent-override: 73.64%; descent-override: 26.87%; line-gap-override: 0%; }
/* L'italique de Georgia est bien plus large que celui de Newsreader : sans facteur propre, l'accroche gagnait une ligne (37 px de saut sur téléphone) */
@font-face { font-family: "Newsreader repli"; font-style: italic; src: local("Georgia Italic"), local("Georgia-Italic"); size-adjust: 91.41%; ascent-override: 80.95%; descent-override: 29.54%; line-gap-override: 0%; }
@font-face { font-family: "Atkinson repli"; src: local("Arial"); size-adjust: 102.1%; ascent-override: 95.98%; descent-override: 31.34%; line-gap-override: 0%; }
:root {
  --serif: "Newsreader", "Newsreader repli", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Atkinson repli", "Segoe UI", system-ui, sans-serif;
}

/* Cadres en « clip » et non « hidden » : un cadre « hidden » devient un conteneur de défilement et fige la profondeur */
.cadre, .portrait { overflow: clip; }
.portrait { outline: 1px solid var(--filet); outline-offset: -1px; }
.portrait img { outline: 0; }

/* ---------- Tablette (641–1099 px) : l'axe 5/7 revient dans la une et dans l'index, au lieu d'images pleine largeur ---------- */
@media (min-width: 641px) and (max-width: 1099.98px) {
  .a-la-une { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr repeat(4, auto) 1fr; column-gap: var(--axe-ecart); }
  .a-la-une > a { grid-column: 1; grid-row: 1 / -1; align-self: center; }
  .a-la-une > .rubrique { grid-column: 2; grid-row: 2; margin-top: 0; }
  .a-la-une > h2 { grid-column: 2; grid-row: 3; }
  .a-la-une > .chapo { grid-column: 2; grid-row: 4; }
  .a-la-une > .liens { grid-column: 2; grid-row: 5; }
  .index li a { grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); grid-template-rows: auto auto 1fr; grid-template-areas: "titre vignette" "annee vignette" "type vignette"; column-gap: 1.75rem; align-items: start; }
  .index .t-titre { grid-area: titre; }
  .index .t-annee { grid-area: annee; }
  .index .t-type { grid-area: type; grid-column: auto; }
  .index .t-vignette { grid-area: vignette; grid-column: auto; margin-top: 0; }
}

/* ---------- Boutons : une marche au survol, un appui au clic ---------- */
@media (hover: hover) and (pointer: fine) { .bouton:hover { transform: translateY(-1px); } }
.bouton:active { transform: scale(.97); }

/* ---------- Aperçu de l'index : la nouvelle image se pose sur l'ancienne (plus de double image grise à mi-fondu) ---------- */
.apercu figure { z-index: 0; transition: opacity 0s linear 280ms; }
.apercu figure.visible { z-index: 1; transition: opacity 280ms var(--ease-out); }
.apercu figure img { scale: 1.02; transition: scale 300ms var(--ease-out); }
.apercu figure.visible img { scale: 1; }
/* Légendes : l'ancienne disparaît aussitôt, la nouvelle arrive juste après (jamais deux textes superposés) */
.apercu figure:not(.visible) figcaption { opacity: 0; transition: none; }
.apercu figure.visible figcaption { opacity: 1; transition: opacity 220ms ease 100ms; }

/* ---------- Trait de lecture : un seul trait glisse d'une rubrique à l'autre et s'allonge avec la lecture ---------- */
.avec-trait .manchette .jauge { display: none; }
.trait-lecture { position: absolute; left: 0; bottom: .55rem; width: 1px; height: 2px; background: var(--vert); pointer-events: none; opacity: 0;
  transform-origin: 0 50%; transform: translateX(var(--x, 0)) scaleX(var(--w, 0)); transition: transform 300ms var(--ease-in-out), opacity 150ms ease; }
.trait-lecture.pret { opacity: 1; }

/* ---------- Frise : repère « aujourd'hui » calculé, survol qui isole une ligne ---------- */
.frise-cadre { --auj-x: calc((var(--maintenant, 2026.85) - var(--debut)) / var(--axe) * 100%); }
.avec-aujourdhui .piste::after { content: ""; position: absolute; top: -.4rem; bottom: -.4rem; left: var(--auj-x); width: 1px; background: var(--rouge); opacity: 0; transition: opacity 400ms ease var(--auj-delai, 1200ms); }
.avec-aujourdhui .axe ol { position: relative; }
.axe ol li.aujourdhui { visibility: visible; position: absolute; top: 0; left: var(--auj-x); translate: -100% 0; padding-right: .35rem; font: italic 400 .85rem var(--serif); color: var(--rouge); white-space: nowrap; opacity: 0; transition: opacity 400ms ease var(--auj-delai, 1200ms); }
.frise-cadre.trace .piste::after, .frise-cadre.trace .aujourdhui { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .frise-cadre:has(.frise li:hover) .barre { opacity: .3; }
  .frise-cadre .frise li:hover .barre { opacity: 1; }
}

/* ---------- Annotations vivantes : cercles au stylo autour des zones commentées ---------- */
.graphique svg.cercles path { fill: none; stroke: var(--rouge); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  transition: stroke-dashoffset 650ms var(--ease-out), opacity 200ms ease, stroke-width 200ms ease; }
.graphique svg.cercles path.vu { stroke-dashoffset: 0; opacity: .4; }
.graphique svg.cercles path.actif { stroke-dashoffset: 0; opacity: 1; stroke-width: 4; }

/* ---------- Réalisation suivante (bas des fiches) ---------- */
.fiche-suivante { margin-top: 3.5rem; padding-top: 1rem; border-top: 1px solid var(--encre); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; }
.fiche-suivante .rubrique { margin: 0; }
.fiche-suivante a { font: 400 clamp(1.5rem, 3vw, 2.2rem)/1.15 var(--serif); text-decoration: none; padding: .25rem 0; transition: color 150ms ease; }
.fiche-suivante a .fleche { font-family: var(--sans); }
@media (hover: hover) and (pointer: fine) { .fiche-suivante a:hover { color: var(--vert); } }

/* ---------- Transitions entre pages ---------- */
.fiche-page main > figure .cadre { view-transition-name: fig-hero; }
::view-transition-group(fig-hero) { animation-duration: 500ms; animation-timing-function: var(--ease-in-out); }
::view-transition-old(root) { animation: 220ms var(--ease-out) both vt-sort; }
::view-transition-new(root) { animation: 420ms var(--ease-out) both vt-entre; }
html:active-view-transition-type(suivant)::view-transition-old(root) { animation: 420ms var(--ease-in-out) both vt-gauche; }
html:active-view-transition-type(suivant)::view-transition-new(root) { animation: 420ms var(--ease-in-out) both vt-droite; }
@keyframes vt-sort { to { opacity: 0; } }
@keyframes vt-entre { from { opacity: 0; translate: 0 10px; } }
@keyframes vt-gauche { to { opacity: 0; translate: -5% 0; } }
@keyframes vt-droite { from { opacity: 0; translate: 5% 0; } }

/* =====================================================================
   Mouvement d'entrée et de lecture — uniquement sans « mouvement réduit »
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* ---------- La une se compose (première visite de la session) : lisible en ≈ 1 s, achevée en 1,8 s ---------- */
  .compo .tete, .compo .fiche, .compo .fiche div { position: relative; border-color: transparent; }
  .compo .manchette { border-bottom-color: transparent; }
  .compo .tete::after, .compo .manchette::after, .compo .fiche::before, .compo .fiche div::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1px; transform-origin: 0 50%; animation: compo-filet 800ms var(--ease-in-out) both; }
  .compo .tete::after { bottom: -1px; background: var(--encre); animation-delay: 100ms; }
  .compo .manchette::after { bottom: -1px; background: var(--filet); animation-delay: 260ms; }
  .compo .fiche::before { top: -1px; background: var(--encre); animation-delay: 500ms; }
  .compo .fiche div::after { bottom: -1px; background: var(--filet); animation-delay: calc(580ms + var(--n, 0) * 70ms); }
  .compo .fiche div:nth-child(2) { --n: 1; } .compo .fiche div:nth-child(3) { --n: 2; } .compo .fiche div:nth-child(4) { --n: 3; }
  .compo .manchette li:not(.trait-lecture), .compo .manchette .cv { animation: compo-monte 450ms var(--ease-out) both; animation-delay: calc(300ms + var(--k, 0) * 40ms); }
  .compo .manchette li:nth-child(2) { --k: 1; } .compo .manchette li:nth-child(3) { --k: 2; } .compo .manchette li:nth-child(4) { --k: 3; }
  .compo .manchette li:nth-child(5) { --k: 4; } .compo .manchette li:nth-child(6) { --k: 5; } .compo .manchette .cv { --k: 6; }
  .compo .manifeste .ligne > span { animation-delay: calc(var(--i, 0) * 100ms + 360ms); }
  .compo .manifeste .stylo { transition-delay: 1450ms; }
  .compo .identite, .compo .a-la-une { animation: none; }
  .compo .portrait { animation: compo-devoile-bas 900ms var(--ease-in-out) both 500ms; }
  .compo .portrait img { animation: compo-developpe 1300ms var(--ease-out) both 500ms; }
  .compo .fiche dt, .compo .fiche dd { animation: compo-monte 450ms var(--ease-out) both; animation-delay: calc(640ms + var(--n, 0) * 70ms); }
  .compo .actions { animation: compo-monte 450ms var(--ease-out) both 1000ms; }
  .compo .a-la-une .cadre { animation: compo-devoile-gauche 1000ms var(--ease-in-out) both 380ms; }
  .compo .a-la-une .cadre img { animation: compo-resserre 1400ms var(--ease-out) both 380ms; }
  .compo .a-la-une > :not(a) { animation: compo-monte 500ms var(--ease-out) both; animation-delay: calc(900ms + var(--k, 0) * 60ms); }
  .compo .a-la-une > h2 { --k: 1; } .compo .a-la-une > .chapo { --k: 2; } .compo .a-la-une > .liens { --k: 3; }
  /* Téléphone : la une hors de l'écran attend d'y entrer */
  .compo-attente .a-la-une .cadre, .compo-attente .a-la-une .cadre img, .compo-attente .a-la-une > :not(a) { animation-play-state: paused; }
  /* Au premier geste, tout rejoint son état final en 120 ms */
  .compo-fin *, .compo-fin *::before, .compo-fin *::after { animation-delay: 0s !important; animation-duration: 120ms !important; }
  .compo-fin .stylo { transition-delay: 0s !important; }

  /* ---------- Révélations au défilement, une fois : titres de section, images de l'index (étroit), figure de l'analyse ---------- */
  .revelations .tete-section[data-revele] { position: relative; border-top-color: transparent; }
  .revelations .tete-section[data-revele]::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--encre); transform: scaleX(0); transform-origin: 0 50%; transition: transform 900ms var(--ease-in-out); }
  .revelations .tete-section[data-revele] > * { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
  .revelations .tete-section[data-revele] > h2 { transition-delay: 120ms; }
  .revelations .tete-section[data-revele] > p { transition-delay: 240ms; }
  .revelations .tete-section.revele::before { transform: none; }
  .revelations .tete-section.revele > * { opacity: 1; transform: none; }

  .revelations .revele-image[data-revele] { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-in-out); }
  .revelations .revele-image[data-revele] img { scale: 1.06; transition: scale 1400ms var(--ease-out); }
  .revelations .revele-image.revele { clip-path: inset(0); }
  .revelations .revele-image.revele img { scale: 1; }
  .graphique .trace-svg path { transition-delay: 600ms; }

  /* ---------- Profondeur : très légère parallaxe (±3 %) sur les grandes figures seulement, jamais sur une donnée ---------- */
  @supports (animation-timeline: view()) {
    .a-la-une .cadre img, .fiche-page main > figure .cadre img { scale: 1.07; animation: profondeur linear both; animation-timeline: view(); animation-range: cover; }
    .compo .a-la-une .cadre img { animation: compo-resserre 1400ms var(--ease-out) both 380ms, profondeur linear both; animation-timeline: auto, view(); animation-range: normal, cover; }
  }
}
@keyframes compo-filet { from { transform: scaleX(0); } }
@keyframes compo-monte { from { opacity: 0; transform: translateY(6px); } }
@keyframes compo-devoile-bas { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes compo-devoile-gauche { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes compo-developpe { from { scale: 1.1; filter: grayscale(1) contrast(1.12) brightness(1.1); } }
@keyframes compo-resserre { from { scale: 1.12; } }
@keyframes profondeur { from { translate: 0 -3%; } to { translate: 0 3%; } }

/* ---------- Mouvement réduit : moins et plus doux, jamais caché ---------- */
@media (prefers-reduced-motion: reduce) {
  .apercu figure, .apercu figure.visible { transition: opacity 200ms ease; }
  .apercu figure img { scale: 1; transition: none; }
  .trait-lecture, .graphique svg.cercles path { transition: opacity 200ms ease; }
  .barre { transition: opacity 200ms ease; }
  .bouton:hover, .bouton:active { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Accroche : la ligne part d'assez bas pour qu'aucun sommet de lettre ne dépasse de son masque au départ (le masque déborde de .2em) */
@media (prefers-reduced-motion: no-preference) { .manifeste .ligne > span { animation-name: ligne-monte-accroche; } }
@keyframes ligne-monte-accroche { from { transform: translateY(calc(100% + .4em)); } }

/* Implication associative : une seule ligne, en retrait des formations, du poste et des réalisations */
.frise li.discret { padding: .45rem 0; }
.frise li.discret h4 { margin: 0; font-size: 1rem; color: var(--encre-2); }
.frise li.discret .ou { font-size: .875rem; }
.frise li.discret .barre { height: 4px; margin-top: -2px; }

/* =====================================================================
   3. Fiches de réalisation (/travaux/…/) : en-tête « objet, date », figure, mémo, sections, accès
   ===================================================================== */
.fiche-page { max-width: 64rem; margin: 0 auto; padding: 0 var(--gouttiere) 2rem; }
.haut { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.4rem 0 1rem; border-bottom: 1px solid var(--encre); font: 500 .9375rem var(--sans); }
.haut a { text-decoration: none; padding: .45rem 0; margin: -.45rem 0; }
.titre-fiche { padding: 2.75rem 0 1.75rem; }
.titre-fiche h1 { margin: .5rem 0 .4rem; font-size: clamp(3rem, 7vw, 5.25rem); font-weight: 400; letter-spacing: -.035em; }
.titre-fiche h1 + .chapo { margin-top: .6rem; }
.titre-fiche .sous-titre { margin: 0 0 1rem; font: italic 400 clamp(1.4rem, 2.4vw, 1.9rem)/1.25 var(--serif); color: var(--encre-2); }
.memo { margin: 2rem 0 0; border-top: 1px solid var(--encre); }
.memo div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--filet); }
.memo dt { font: 500 .8125rem/1.75 var(--sans); color: var(--encre-2); }
.memo dd { margin: 0; font-size: 1.0625rem; line-height: 1.45; }
.fiche-page section { padding-top: 3.25rem; }
.fiche-page h2 { margin-bottom: 1rem; font-size: 2rem; }
.liste-numerotee { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.liste-numerotee li { counter-increment: n; display: grid; grid-template-columns: 2.5rem 1fr; padding: .75rem 0; border-top: 1px solid var(--filet); }
.liste-numerotee li::before { content: counter(n) "."; font: 400 1.1875rem var(--serif); color: var(--vert); }
.liste-numerotee strong { font-weight: 500; }
.acces { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
@media (max-width: 640px) {
  .memo div { grid-template-columns: 6rem minmax(0, 1fr); gap: .75rem; }
  .acces .bouton { width: 100%; justify-content: center; }
}

/* =====================================================================
   4. Finitions de la mise en ligne
   ===================================================================== */
/* Au doigt, les liens pris dans le texte (preuves, annonce Atlas, colophon) reçoivent une zone de contact
   d'environ 44 px, invisible : la mise en page et le soulignement ne bougent pas. */
@media (pointer: coarse) {
  .competences td:last-child .lien, .atlas-titre a, .colophon a { position: relative; }
  .competences td:last-child .lien::after, .atlas-titre a::after, .colophon a::after { content: ""; position: absolute; inset: -.7rem -.3rem; }
}
