/*
 * Lirval, studio IA. Direction « Galerie d'atelier » : page blanche, une seule famille (Archivo),
 * les réalisations montrées en grandes vignettes de couleur, la navigation en pilules.
 * Mode d'emploi des composants : COMPONENTS.md. Aucune ombre, aucun dégradé décoratif.
 */

/* ---------- Police (auto-hébergée, copiée depuis node_modules au build) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --papier: #FFFFFF;
  --brume: #F2F2EF;
  --brume-2: #E6E6E1;
  --encre: #000000;
  --graphite: #5E6166;
  --filet: #DCDCD6;
  --prusse: #1D4F91;
  --sur-prusse: #FFFFFF;
  --tampon: #C2361F;
  --vert: #1F8A4C;
  --surligneur: #F0E35A;
  --sur-surligneur: #000000;

  /* Aplats des vignettes, par famille de secteurs (voir FAMILLES dans build.mjs) */
  --c-prusse: #1D4F91; --s-prusse: #FFFFFF;
  --c-citron: #F0E35A; --s-citron: #000000;
  --c-menthe: #B9E0CB; --s-menthe: #000000;
  --c-lilas: #D5CCF6;  --s-lilas: #000000;
  --c-signal: #FF6B3D; --s-signal: #000000;

  --f-voix: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --t-1: .875rem;
  --t0: 1.0625rem;
  --t1: 1.3125rem;
  --t2: 1.625rem;
  --t3: clamp(2rem, 4.2vw, 3.25rem);
  --h1: clamp(2.6rem, 6.4vw, 5.25rem);

  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 24px; --e6: 32px; --e7: 48px; --e8: 64px; --e9: 96px;
  --r-s: 12px; --r-m: 20px; --r-l: 28px;
  --gouttiere: 16px;
  --colonnes: 4;
  --largeur: 1320px;
  --section: clamp(3.5rem, 6.5vw, 5.5rem);
  --entete: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #141414; --brume: #1F1F1E; --brume-2: #2B2B29;
    --encre: #F4F4F1; --graphite: #A4A49F; --filet: #363632;
    --prusse: #8DB2F0; --sur-prusse: #141414; --tampon: #F0907A; --vert: #6CCB92;
    --c-prusse: #2C62B0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papier: #141414; --brume: #1F1F1E; --brume-2: #2B2B29;
  --encre: #F4F4F1; --graphite: #A4A49F; --filet: #363632;
  --prusse: #8DB2F0; --sur-prusse: #141414; --tampon: #F0907A; --vert: #6CCB92;
  --c-prusse: #2C62B0;
  color-scheme: dark;
}
@media (min-width: 48em) { :root { --gouttiere: 28px; --colonnes: 8; --t0: 1.125rem; } }
@media (min-width: 72em) { :root { --colonnes: 12; --gouttiere: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--entete) + 20px); }
/* L'en-tête est collant : sans cette marge négative, y revenir au clavier ferait remonter la page pour le dégager du scroll-padding. */
.entete a:not(.tiroir-panneau a), .entete button, .entete summary { scroll-margin-top: -88px; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--f-voix);
  font-size: var(--t0);
  line-height: 1.55;
  font-weight: 400;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--surligneur); color: var(--sur-surligneur); }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4 { font-weight: 540; line-height: 1.05; letter-spacing: -.025em; margin: 0 0 var(--e4); text-wrap: balance; }
h1 { font-size: var(--h1); line-height: .98; letter-spacing: -.04em; }
h2 { font-size: var(--t3); letter-spacing: -.035em; }
h3 { font-size: var(--t1); font-weight: 580; letter-spacing: -.015em; line-height: 1.2; }
h4 { font-size: var(--t0); font-weight: 600; letter-spacing: 0; }
p, ul, ol, dl, table, figure, blockquote { margin: 0 0 var(--e4); }
p, li { max-width: 36em; }
strong, b { font-weight: 600; }
small { font-size: var(--t-1); }
hr { border: 0; border-top: 1px solid var(--filet); margin: var(--e7) 0; }

a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--filet); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2.5px solid var(--prusse); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

mark, .surligne {
  background: var(--surligneur); color: var(--sur-surligneur); padding: 0 .2em; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.est { font-size: var(--t-1); color: var(--graphite); white-space: nowrap; }
.chiffre { font-variant-numeric: tabular-nums; }
.prix { font-size: var(--t-1); font-weight: 600; font-variant-numeric: tabular-nums; }
.instrument { font-size: var(--t-1); color: var(--graphite); }
.discret { color: var(--graphite); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* ---------- Mise en page ---------- */
.conteneur { width: 100%; max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere); }
.grille { display: grid; grid-template-columns: repeat(var(--colonnes), minmax(0, 1fr)); column-gap: var(--gouttiere); row-gap: var(--e6); }
.grille > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 72em) {
  .col-1-5 { grid-column: 1 / span 5; }
  .col-1-6 { grid-column: 1 / span 6; }
  .col-1-7 { grid-column: 1 / span 7; }
  .col-1-8 { grid-column: 1 / span 8; }
  .col-6-12 { grid-column: 6 / -1; }
  .col-7-12 { grid-column: 7 / -1; }
  .col-8-12 { grid-column: 8 / -1; }
  .col-9-12 { grid-column: 9 / -1; }
}
.section { padding-block: var(--section); }
.section--serree { padding-top: var(--e7); }
.section--calque { background: var(--brume); }
.section-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--e3) var(--e6); margin-bottom: var(--e7); }
.section-tete h2 { margin: 0; }
.section-tete p { margin: 0; color: var(--graphite); }
.pile > * + * { margin-top: var(--e4); }

/* ---------- Liens d'évitement ---------- */
.evitement { position: absolute; left: var(--e2); top: var(--e2); z-index: 100; }
.evitement ul { list-style: none; margin: 0; padding: 0; }
.evitement a {
  position: absolute; left: -9999px; white-space: nowrap;
  background: var(--encre); color: var(--papier); padding: var(--e2) var(--e4); border-radius: 999px; text-decoration: none;
}
.evitement a:focus { left: 0; }

/* ---------- Boutons : pilules ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e2);
  min-height: 48px; padding: var(--e2) 22px;
  font: inherit; font-size: 1rem; font-weight: 550; line-height: 1.2; text-align: center; text-decoration: none;
  border-radius: 999px; border: 0;
  background: var(--encre); color: var(--papier); cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.bouton:hover { background: color-mix(in srgb, var(--encre) 80%, var(--papier)); }
.bouton:active { transform: scale(.98); }
.bouton--filet { background: var(--brume); color: var(--encre); }
.bouton--filet:hover { background: var(--brume-2); }
.bouton--petit { white-space: nowrap; min-height: 40px; padding: var(--e1) 18px; font-size: .9375rem; }
.boutons { display: flex; flex-wrap: wrap; gap: var(--e3); margin: var(--e5) 0 0; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
/* Flou sur un calque : posé sur .entete, backdrop-filter ferait d'elle le repère du tiroir (position: fixed), réduit alors à 0 px de haut. */
.entete::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--papier) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
}
.entete.est-defile { border-bottom-color: var(--filet); }
.entete-barre { display: flex; align-items: center; gap: var(--e4); min-height: var(--entete); }
.logo { display: inline-flex; align-items: center; gap: var(--e2); color: var(--encre); text-decoration: none; margin-right: auto; }
.logo svg { width: auto; height: 24px; display: block; }
.nav-bureau { display: none; }
.nav-bureau > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-bureau li { max-width: none; }
.nav-lien, .nav-bouton {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: var(--e2) 15px;
  font: inherit; font-size: .9875rem; font-weight: 500; color: var(--encre); text-decoration: none;
  background: none; border: 0; border-radius: 999px; cursor: pointer; transition: background-color .15s;
}
.nav-lien:hover, .nav-bouton:hover, .nav-bouton[aria-expanded="true"] { background: var(--brume); }
.nav-lien[aria-current="page"], .nav-bouton.est-courant, .nav-lien.est-courant { background: var(--brume-2); }
.nav-bouton::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 150ms; opacity: .6;
}
.nav-bouton[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.entete-cta { display: none; }
@media (min-width: 72em) {
  .nav-bureau { display: block; margin-right: auto; }
  .logo { margin-right: var(--e5); }
  .entete-cta { display: inline-flex; }
  .tiroir { display: none; }
}

/* Méga-menu : panneau pleine largeur */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--papier); border-block: 1px solid var(--filet);
  padding-block: var(--e6) var(--e5);
  animation: mega-ouvre 160ms ease-out;
}
@keyframes mega-ouvre { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-titre { font-size: var(--t2); font-weight: 540; letter-spacing: -.025em; margin-bottom: var(--e4); }
.mega-liste { columns: 3; column-gap: var(--e6); list-style: none; padding: 0; margin: 0 0 var(--e4); }
.mega-liste li { break-inside: avoid; padding: var(--e2) 0 var(--e3); max-width: none; }
.mega-liste a { font-weight: 550; text-decoration: none; }
.mega-liste a:hover { text-decoration: underline; }
.mega-liste span { display: block; color: var(--graphite); font-size: var(--t-1); line-height: 1.4; }
.mega-pied { max-width: none; border-top: 1px solid var(--filet); padding-top: var(--e4); margin: 0; display: flex; flex-wrap: wrap; gap: var(--e2); }
.mega-pied a { padding: 6px 14px; border-radius: 999px; background: var(--brume); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.mega-pied a:hover { background: var(--brume-2); }
.mega .nomenclature { margin-bottom: var(--e4); }

/* Tiroir mobile (details natif : fonctionne sans JavaScript) */
.tiroir > summary {
  list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: var(--e2) 18px;
  background: var(--brume); border-radius: 999px; font-weight: 550; cursor: pointer;
}
.tiroir > summary::-webkit-details-marker { display: none; }
.tiroir[open] > summary { background: var(--encre); color: var(--papier); }
.tiroir-panneau {
  position: fixed; inset: var(--entete) 0 0 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain;
  background: var(--papier); display: flex; flex-direction: column;
}
/* Tiroir ouvert : l'annonce s'efface, l'en-tête remonte à y = 0 et le bouton Menu reste au-dessus du panneau. */
html:has(.tiroir[open]) .annonce { display: none; }
.tiroir-panneau > ul { list-style: none; margin: 0; padding: var(--e3) var(--gouttiere); flex: 1; }
.tiroir-panneau li { border-bottom: 1px solid var(--filet); max-width: none; }
.tiroir-panneau li > a, .tiroir-panneau summary { display: flex; align-items: center; min-height: 60px; font-weight: 540; font-size: 1.625rem; letter-spacing: -.025em; color: var(--encre); text-decoration: none; cursor: pointer; }
.tiroir-panneau summary { list-style: none; justify-content: space-between; }
.tiroir-panneau summary::-webkit-details-marker { display: none; }
.tiroir-panneau summary::after { content: "+"; font-weight: 300; }
.tiroir-panneau details[open] summary::after { content: "−"; }
.tiroir-panneau details ul { list-style: none; padding: 0 0 var(--e4); margin: 0; }
.tiroir-panneau details li { border: 0; }
.tiroir-panneau details a { display: block; padding: var(--e2) 0; font-size: var(--t0); text-decoration: none; }
.tiroir-bas { position: sticky; bottom: 0; padding: var(--e4) var(--gouttiere); background: var(--papier); border-top: 1px solid var(--filet); }
.tiroir-bas .bouton { width: 100%; }

/* ---------- La cote : sous-titre court sous un h1 ---------- */
.cote { max-width: 36em; margin: var(--e3) 0 var(--e5); font-size: var(--t-1); line-height: 1.4; color: var(--graphite); }
.cote--large { max-width: none; }

/* ---------- Tampons : statut d'un produit, en pastille ---------- */
.tampon {
  display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; padding: 3px 11px 3px 9px;
  font-size: .8125rem; font-weight: 550; line-height: 1.35; white-space: nowrap;
  color: var(--encre); background: var(--papier); border: 1px solid var(--filet); border-radius: 999px;
}
.tampon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-signal); }
.tampon--service::before { background: var(--vert); }
.tampons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2); margin: 0 0 var(--e4); }

/* ---------- Planches (cartes) et cartouche (fiche technique) ---------- */
.planche {
  position: relative; display: flex; flex-direction: column; gap: var(--e3);
  border-radius: var(--r-l); padding: var(--e5);
  background: var(--brume);
}
.section--calque .planche { background: var(--papier); }
.planche > :last-child { margin-bottom: 0; }
.planche h3 { margin: 0; font-size: var(--t1); }
.planche h3 a { color: var(--encre); text-decoration: none; }
.planche h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* carte entièrement cliquable */
.planche a:not(h3 a), .planche .tampon { position: relative; z-index: 1; }
.planche:has(h3 a:focus-visible) { outline: 2.5px solid var(--prusse); outline-offset: 3px; }
.planche h3 a:focus-visible { outline: none; }
.planche:has(h3 a):hover h3 a { text-decoration: underline; text-decoration-thickness: 1.5px; }
.planche-sous { margin: 0; color: var(--graphite); }
.planche p { margin: 0; }
@media (min-width: 48em) { .planche { font-size: 1rem; } }
.planche-pied { margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--e3); }

.planches { display: grid; grid-template-columns: repeat(var(--colonnes), minmax(0, 1fr)); gap: var(--gouttiere); grid-auto-flow: dense; align-items: start; }
.planches > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 48em) {
  .planches > .planche--a3 { grid-column: span 8; }
  .planches > .planche--a4, .planches > .planche--a5 { grid-column: span 4; }
}
@media (min-width: 72em) {
  .planches > .planche--a3 { grid-column: span 6; }
  .planches > .planche--a4, .planches > .planche--a5 { grid-column: span 3; }
  .planches--trio > .planche--a3 { grid-column: span 6; }
}

.cartouche {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e4) var(--e5); margin: 0;
  padding: var(--e5); border-radius: var(--r-m); background: var(--brume);
  font-size: var(--t-1); line-height: 1.4;
}
.section--calque .cartouche, .planche .cartouche { background: var(--papier); }
.cartouche > div { min-width: 0; }
.cartouche > .cartouche-large { grid-column: 1 / -1; }
.cartouche dt { color: var(--graphite); font-size: .8125rem; }
.cartouche dd { margin: 2px 0 0; font-weight: 550; font-size: .9375rem; }
.cartouche dd .tampon { margin-top: 2px; }
.cartouche--mini { max-width: 22rem; align-self: flex-end; width: max-content; }
@media (min-width: 40em) { .cartouche--mini { margin-left: auto; } }

/* ---------- Vignettes : la réalisation en aplat de couleur, le chiffre en grand ---------- */
.vignette {
  --champ: var(--c-prusse); --sur-champ: var(--s-prusse);
  position: relative; container-type: inline-size; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: var(--r-l);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(18px, 6cqi, 32px);
  background: var(--champ); color: var(--sur-champ);
}
.vignette--citron { --champ: var(--c-citron); --sur-champ: var(--s-citron); }
.vignette--menthe { --champ: var(--c-menthe); --sur-champ: var(--s-menthe); }
.vignette--lilas { --champ: var(--c-lilas); --sur-champ: var(--s-lilas); }
.vignette--signal { --champ: var(--c-signal); --sur-champ: var(--s-signal); }
.vignette-motif {
  position: absolute; top: 12%; right: 7%; width: 44%;
  fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.vignette-motif .m-plein { fill: currentColor; }
.vignette-motif .m-fond { fill: var(--champ); }
.vignette-secteur {
  position: absolute; top: clamp(14px, 5cqi, 24px); left: clamp(14px, 5cqi, 24px);
  padding: 4px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 550; line-height: 1.3;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.vignette-chiffre {
  font-size: 19cqi; font-weight: 600; font-stretch: 108%; letter-spacing: -.045em; line-height: .88;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.vignette-libelle { margin-top: 1.6cqi; font-size: max(.875rem, 3.6cqi); font-weight: 500; line-height: 1.25; max-width: 24ch; }
@container (max-width: 380px) { .vignette-chiffre { font-size: 21cqi; } }

/* Galerie de l'accueil : 2 grandes, puis 3 */
.galerie {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--e3);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  margin: var(--e7) calc(-1 * var(--gouttiere)) 0; padding-inline: var(--gouttiere); scroll-padding-inline: var(--gouttiere);
}
.galerie::-webkit-scrollbar { display: none; }
.galerie-item { position: relative; scroll-snap-align: start; min-width: 0; }
.galerie-item h3 { font-size: var(--t0); font-weight: 550; letter-spacing: -.01em; margin: var(--e4) 0 2px; }
.galerie-item h3 a { text-decoration: none; }
.galerie-item h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-l); }
.galerie-item:hover h3 a { text-decoration: underline; }
.galerie-item:has(a:focus-visible) .vignette { outline: 2.5px solid var(--prusse); outline-offset: 3px; }
.galerie-item h3 a:focus-visible { outline: none; }
.galerie-item p { margin: 0; color: var(--graphite); font-size: var(--t-1); }
.galerie-item .vignette { transition: border-radius .35s cubic-bezier(.2, .8, .2, 1); }
.galerie-item:hover .vignette { border-radius: calc(var(--r-l) + 14px); }
.galerie-suite { margin: var(--e5) 0 0; max-width: none; text-align: right; }
@media (min-width: 48em) {
  .galerie { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; gap: var(--e7) var(--e4); }
  .galerie-item { grid-column: span 3; }
  .galerie-item:nth-child(n + 3) { grid-column: span 2; }
  .galerie-item:nth-child(n + 6) { grid-column: span 3; }
  .galerie-item:nth-child(-n + 2) .vignette { aspect-ratio: 5 / 4; }
}
@media (min-width: 72em) {
  .galerie { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .galerie-item:nth-child(1) { grid-column: span 7; }
  .galerie-item:nth-child(2) { grid-column: span 5; }
  .galerie-item:nth-child(n + 3) { grid-column: span 4; }
  .galerie-item:nth-child(-n + 2) .vignette { aspect-ratio: auto; height: clamp(340px, 34vw, 500px); }
  /* 7 vignettes : 2 grandes, 3 petites, puis 2 moyennes pour fermer la grille */
  .galerie-item:nth-child(n + 6) { grid-column: span 6; }
  .galerie-item:nth-child(n + 6) .vignette { aspect-ratio: 2 / 1; }
  .galerie-item:nth-child(n + 6) .vignette-motif { width: 30%; top: 10%; }
  .galerie-item:nth-child(n + 6) .vignette-chiffre { font-size: 12.5cqi; }
  .galerie-item:nth-child(n + 6) .vignette-libelle { font-size: max(.875rem, 2.6cqi); }
}

/* ---------- Maquettes d'interface (captures, écrans reconstitués) ---------- */
.maquette {
  position: relative; margin: 0; background: var(--papier); color: var(--encre);
  font-size: var(--t-1); line-height: 1.45;
  border: 1px solid var(--filet); border-radius: var(--r-m); overflow: hidden;
}
.maquette-corps { padding: var(--e4); }
.maquette img { width: 100%; }
.maquette figcaption, .maquette-legende { padding: var(--e2) var(--e4); font-size: .8125rem; color: var(--graphite); border-top: 1px solid var(--filet); background: var(--papier); }
.maquette .chiffre { font-size: .875rem; }
.maquette table { width: 100%; border-collapse: collapse; margin: 0; }
.maquette th, .maquette td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--filet); font-weight: 400; }
.maquette th { color: var(--graphite); }
.maquette-barre { display: flex; justify-content: space-between; gap: var(--e3); padding: var(--e3) var(--e4); border-bottom: 1px solid var(--filet); font-weight: 600; background: var(--brume); }
.maquette-ligne { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--e3); padding: 8px 0; border-bottom: 1px solid var(--filet); }
.maquette-ligne:last-child { border-bottom: 0; }
.maquette-pastille { display: inline-block; padding: 1px 9px; background: var(--brume); border-radius: 999px; font-size: .75rem; font-weight: 550; flex: none; max-width: 50%; } /* tient sur une ligne, sauf un libellé plus long que la moitié de la ligne */
.maquette-ligne > .chiffre { flex: none; white-space: nowrap; }
.maquette + .maquette { margin-top: var(--e5); }
.refs > .maquette + .maquette { margin-top: 0; }
.maquette .maquette-bulle { max-width: 85%; width: fit-content; padding: 8px 12px; margin: 0 0 6px; border-radius: 16px 16px 16px 4px; background: var(--brume); }
.maquette .maquette-bulle--droite { margin-left: auto; border-radius: 16px 16px 4px 16px; background: var(--encre); color: var(--papier); }
.maquette-entree { animation: maquette-entree 260ms cubic-bezier(.2, .8, .2, 1); }
@keyframes maquette-entree { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.maquette--ratio-a3 { aspect-ratio: auto; }
@media (min-width: 48em) {
  .maquette--ratio-a3 .maquette-corps { aspect-ratio: 1.414 / 1; overflow: hidden; }
  .maquette--ratio-a4 .maquette-corps { aspect-ratio: 1 / 1.414; overflow: hidden; }
}
.capture-mobile { max-width: 260px; border: 6px solid var(--encre); border-radius: 34px; background: var(--encre); }
.capture-mobile img { aspect-ratio: 390 / 844; object-fit: cover; border-radius: 28px; }

/* ---------- Tableaux : nomenclature, données ---------- */
.tableau-conteneur { overflow-x: auto; }
.tableau, .nomenclature { width: 100%; border-collapse: collapse; margin: 0 0 var(--e5); font-size: var(--t0); }
.tableau caption, .nomenclature caption { text-align: left; font-weight: 600; padding-bottom: var(--e2); }
.tableau th, .tableau td, .nomenclature th, .nomenclature td { text-align: left; vertical-align: top; padding: var(--e4) var(--e4) var(--e4) 0; border-bottom: 1px solid var(--filet); }
.tableau thead th, .nomenclature thead th { font-size: var(--t-1); font-weight: 500; color: var(--graphite); padding-block: var(--e2); }
.tableau tbody th { font-weight: 600; }
.nomenclature td:first-child, .nomenclature th:first-child { font-size: var(--t-1); color: var(--graphite); white-space: nowrap; }
.tableau .montant { font-variant-numeric: tabular-nums; font-weight: 500; }
.tableau .resume { display: block; color: var(--graphite); font-size: var(--t-1); line-height: 1.4; }
@media (max-width: 47.99em) {
  .tableau--blocs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tableau--blocs, .tableau--blocs tbody, .tableau--blocs tr, .tableau--blocs th, .tableau--blocs td { display: block; width: 100%; }
  .tableau--blocs tr { border-top: 1px solid var(--filet); padding: var(--e4) 0; }
  .tableau--blocs th, .tableau--blocs td { border: 0; padding: 2px 0; }
  .tableau--blocs td[data-label]::before { content: attr(data-label) " : "; font-size: var(--t-1); color: var(--graphite); }
  .tableau--blocs td[data-label]:has(> p)::before { content: none; } /* cellule de paragraphes : le libellé resterait seul sur sa ligne */
  /* Le titre de la ligne n'a pas besoin de son libellé répété : il se repère à sa graisse. */
  .nomenclature.tableau--blocs td:nth-child(2)::before { content: none; }
  .nomenclature.tableau--blocs td:nth-child(2) { font-weight: 600; }
  .nomenclature.tableau--blocs td:nth-child(2) .resume { font-weight: 400; }
}

/* ---------- En-tête de page ---------- */
.tete-page { padding-block: clamp(2.5rem, 7vw, 5.5rem) var(--e7); }
.tete-page h1 { max-width: 18ch; }
.tete-page .lead { font-size: var(--t1); line-height: 1.45; max-width: 32em; margin: var(--e4) 0 0; color: var(--graphite); }
.tete-page .lead + .boutons { margin-top: var(--e5); }
.fil { font-size: var(--t-1); margin: 0 0 var(--e5); color: var(--graphite); }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--e2); margin: 0; padding: 0; }
.fil li + li::before { content: "/"; margin-right: var(--e2); color: var(--filet); }
.fil a { color: var(--graphite); text-decoration: none; }
.fil a:hover { color: var(--encre); text-decoration: underline; }
.tete-page .cartouche { align-self: end; }
.tete-page .tampons { margin-top: var(--e3); }
.tete-page .etiquettes { margin-bottom: var(--e4); }
.tete-page + .section, .tete-page + .prose { padding-top: var(--e7); }
.tete-resultats { margin-top: var(--e5); }

/* ---------- Texte courant (pages Markdown) ---------- */
.prose { padding-block: var(--e7) var(--section); }
.section .prose { padding-block: 0; }
.prose > * { max-width: 42rem; }
.prose h2 { margin-top: var(--e8); font-size: clamp(1.75rem, 3vw, 2.5rem); }
.prose h3 { margin-top: var(--e6); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: var(--e2); }
.prose li::marker { color: var(--graphite); }
.prose .table-wrap { overflow-x: auto; max-width: none; margin-bottom: var(--e5); }
.prose table { width: 100%; max-width: none; border-collapse: collapse; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--e3) var(--e3) var(--e3) 0; border-bottom: 1px solid var(--filet); }
.prose thead th { font-size: var(--t-1); font-weight: 500; color: var(--graphite); }
/* Après .prose td, qui annulerait la mise en blocs à spécificité égale. Le numéro de nomenclature n'a pas de sens sans sa colonne. */
@media (max-width: 47.99em) {
  .prose .tableau--blocs th, .prose .tableau--blocs td { border: 0; padding: 2px 0; }
  .nomenclature.tableau--blocs td:first-child:not([data-label]) { display: none; }
}
.prose blockquote { border-left: 3px solid var(--brume-2); padding-left: var(--e4); margin-left: 0; }
.prose code { font-size: .9em; background: var(--brume); padding: .1em .35em; border-radius: 6px; }
.prose > .planches, .prose > .usages, .prose > .refs, .prose > .produits, .prose > .chiffres, .prose > .temoignages, .prose > .frise, .prose > .equipe, .prose > .parcours, .prose > .irritants, .prose > .tableau-conteneur, .prose > .avant-apres, .prose > .faq, .prose > .liste-liens, .prose > .agents, .prose > .methode { max-width: none; }
.prose > .capture-mobile { max-width: 260px; }
.prose > h2:first-child { margin-top: 0; }
.prose > :is(.maquette, figure, .garantie, .equipe, .frise, .refs, .temoignages, .usages, .produits) { margin-block: var(--e5); }
.prose > .mesure { margin-bottom: var(--e5); }
.prose > .faq { max-width: 46rem; }
.prose .frise, .prose .equipe, .prose .parcours, .prose .irritants, .prose .usages, .prose .etiquettes, .prose .liste-liens, .prose .agents, .prose .methode { padding-left: 0; }
.prose .avant-apres h3, .prose .planche h3, .prose .methode h3, .prose .personne h3, .prose .parcours h3 { margin-top: 0; }
.prose .frise h3 { margin-top: var(--e3); }
.prose .frise li, .prose .equipe li, .prose .irritants li, .prose .parcours li { margin-bottom: 0; }
.prose .personne h3 { margin-top: var(--e3); }

/* ---------- Fiche détail : texte (9 colonnes) et sommaire collant (3), repli sous 72em ---------- */
.sommaire { display: none; }
.sommaire-repli { margin-top: var(--e5); padding-inline: var(--e4); border-radius: var(--r-m); background: var(--brume); }
.sommaire-repli > summary { cursor: pointer; list-style: none; }
.sommaire-repli ol, .sommaire ol { list-style: none; margin: 0; padding: 0; }
.sommaire-repli li, .sommaire li { max-width: none; padding: var(--e2) 0; line-height: 1.3; }
.sommaire-repli ol { padding-bottom: var(--e3); }
.sommaire-repli a:not(.bouton), .sommaire a:not(.bouton) { text-decoration: none; color: var(--graphite); }
.sommaire-repli a:not(.bouton):hover, .sommaire a:not(.bouton):hover { color: var(--encre); text-decoration: underline; }
.sommaire-titre { font-size: var(--t-1); font-weight: 600; margin-bottom: var(--e2); }
.sommaire li { font-size: var(--t-1); }
.sommaire ol { margin-bottom: var(--e5); }
.sommaire .bouton { width: 100%; padding-inline: var(--e3); }
@media (min-width: 72em) {
  .fiche { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gouttiere); }
  .fiche > .prose { grid-column: 1 / span 9; grid-row: 1; min-width: 0; }
  /* Les grilles tiennent sur 9 colonnes : pas de quatre colonnes étroites, et une carte seule prend toute la largeur. */
  .fiche .prose > :is(.refs, .temoignages, .usages, .produits) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
  .fiche .prose > :is(.refs--quatre, .irritants:has(> li:nth-child(4):last-child), .usages:has(> li:nth-child(4):last-child)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fiche .prose > .chiffres:not(.chiffres--resultats) { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
  .sommaire-repli { display: none; }
  /* Le retrait de 6 px laisse la place au contour de focus, que overflow couperait. */
  .sommaire { display: block; grid-column: 10 / -1; grid-row: 1; align-self: start; position: sticky; top: calc(var(--entete) + 20px); margin: var(--e7) -6px 0; padding: 0 6px 6px; max-height: calc(100vh - 110px); overflow-y: auto; }
}

/* ---------- Rubriques de fiche (prototype, secteur) ---------- */
.rubrique { padding-block: var(--e7); border-top: 1px solid var(--filet); }
.rubrique:first-child { border-top: 0; }
.rubrique > h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }

/* Avant / après */
.avant-apres { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e2); margin: 0 0 var(--e4); }
.avant-apres > div { padding: var(--e5); min-width: 0; border-radius: var(--r-m); background: var(--brume); }
.avant-apres > div + div { background: var(--encre); color: var(--papier); }
.avant-apres > div + div dt { color: color-mix(in srgb, var(--papier) 65%, transparent); }
.avant-apres h3, .avant-apres h4 { font-size: var(--t0); margin-bottom: var(--e3); }
.avant-apres dl { margin: 0; font-size: var(--t-1); }
.avant-apres dt { color: var(--graphite); }
.avant-apres dd { margin: 0 0 var(--e3); font-weight: 600; }

/* Liens croisés */
.liens-croises { padding-block: 0 var(--section); }
.liens-croises h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); border-top: 1px solid var(--filet); padding-top: var(--e7); }
.liens-croises-grille { display: grid; gap: var(--e6); }
@media (min-width: 48em) { .liens-croises-grille { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); } }
.liens-croises h3 { font-size: var(--t0); font-weight: 600; letter-spacing: 0; padding-bottom: var(--e2); }
.liste-liens { list-style: none; padding: 0; margin: 0; }
.liste-liens li { padding: var(--e3) 0; border-top: 1px solid var(--filet); max-width: none; }
.liste-liens a { font-weight: 550; }
.liste-liens .instrument { display: block; margin-bottom: 2px; }
.liste-liens .resume { display: block; color: var(--graphite); font-size: var(--t-1); line-height: 1.4; }

/* Cartes de cas d'usage */
.usages { display: grid; gap: var(--e4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.usages > li { max-width: none; }
.usages .planche { height: 100%; }
.usages .meta { font-size: var(--t-1); color: var(--graphite); }

/* ---------- Méthode : quatre étapes ---------- */
.methode { list-style: none; padding: 0; margin: 0 0 var(--e5); counter-reset: jalon; display: grid; gap: var(--e3); }
.methode > li { counter-increment: jalon; max-width: none; padding: var(--e5); border-radius: var(--r-l); background: var(--brume); display: flex; flex-direction: column; }
.methode > li::before { content: counter(jalon); display: block; font-size: 3.5rem; font-weight: 500; letter-spacing: -.05em; line-height: 1; margin-bottom: var(--e6); color: var(--graphite); font-variant-numeric: tabular-nums; }
.section--calque .methode > li { background: var(--papier); }
.methode h3 { font-size: var(--t1); margin-bottom: 2px; }
.methode p { margin: 0 0 var(--e3); }
.methode .livrable { font-weight: 550; margin: auto 0 0; padding-top: var(--e3); border-top: 1px solid var(--filet); }
.methode .livrable .instrument { display: block; font-weight: 400; }
@media (min-width: 48em) { .methode { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .methode { grid-template-columns: repeat(4, 1fr); } }
.garantie { border-radius: var(--r-m); background: var(--encre); color: var(--papier); padding: var(--e5) var(--e6); max-width: 52rem; margin: var(--e5) 0 0; }
.garantie p { margin: 0; }
.garantie + .notice { margin-top: var(--e5); }
.maquette :is([data-revele], [data-bascule]) { margin-top: var(--e3); }

/* ---------- FAQ ---------- */
.faq { margin: 0 0 var(--e5); max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { cursor: pointer; padding: var(--e5) var(--e7) var(--e5) 0; font-weight: 550; font-size: var(--t0); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: var(--e5); font-weight: 300; font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div, .faq details > p { padding-bottom: var(--e5); }
.faq details p { max-width: 66ch; }

/* ---------- Formulaires (contact, simulateur) ---------- */
.champ { margin: 0 0 var(--e5); }
.champ label, .champ legend { display: block; font-weight: 550; margin-bottom: var(--e2); }
.champ .aide { display: block; color: var(--graphite); font-size: var(--t-1); margin: -4px 0 var(--e2); }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 52px; padding: var(--e3) var(--e4);
  font: inherit; color: var(--encre); background: var(--brume);
  border: 1.5px solid transparent; border-radius: 14px; transition: border-color .15s, background-color .15s;
}
.champ textarea { min-height: 10rem; resize: vertical; }
.champ input:hover, .champ select:hover, .champ textarea:hover { background: var(--brume-2); }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--encre); background: var(--papier); outline: none; }
.champ input[aria-invalid="true"], .champ select[aria-invalid="true"], .champ textarea[aria-invalid="true"] { border-color: var(--tampon); }
.erreur { color: var(--tampon); font-weight: 600; margin: var(--e2) 0 0; font-size: var(--t-1); }
.notice { color: var(--graphite); font-size: var(--t-1); }
form:has(.champ) { max-width: 44rem; }
.champs-2 { display: grid; gap: 0 var(--e4); align-items: end; }
@media (min-width: 48em) { .champs-2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Filtres de la grille des réalisations */
.filtres { margin-bottom: var(--e6); padding: var(--e2) var(--e5); border-radius: var(--r-m); background: var(--brume); }
.filtres-repli > summary, .sommaire-repli > summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; font-weight: 550; cursor: pointer; list-style: none; }
.filtres-repli > summary::-webkit-details-marker, .sommaire-repli > summary::-webkit-details-marker { display: none; }
.filtres-repli > summary::after, .sommaire-repli > summary::after { content: "+"; font-weight: 300; font-size: 1.4rem; }
.filtres-repli[open] > summary::after, .sommaire-repli[open] > summary::after { content: "−"; }
.filtres-champs { display: flex; flex-wrap: wrap; gap: var(--e5) var(--e7); padding-block: var(--e3) var(--e4); }
/* Collé sous l'en-tête : cocher une case montre tout de suite son effet, sans défiler jusqu'à la grille. */
.filtres-etat { position: sticky; top: var(--entete); z-index: 10; background: var(--papier); display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2) var(--e4); min-height: 44px; padding-block: var(--e2); }
html:has(.filtres-etat) { scroll-padding-top: 130px; } /* un élément atteint au clavier ne passe pas sous la barre */
.filtres-etat p { margin: 0; }
.filtres legend { font-weight: 600; margin-bottom: var(--e2); }
.filtres label { display: inline-flex; align-items: center; gap: 8px; margin: 0 var(--e4) var(--e2) 0; font-size: var(--t-1); cursor: pointer; min-height: 30px; }
.filtres input { width: 18px; height: 18px; accent-color: var(--encre); }

/* Résultat du simulateur */
.resultat-montant { font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 560; letter-spacing: -.04em; line-height: 1.05; margin: var(--e2) 0; }
.resultat-montant mark { padding: 0 .15em; }
.planche + .pile { margin-top: var(--e6); }
/* Bureau : le bouton Calculer est en bas du formulaire, le montant reste visible à côté. */
@media (min-width: 72em) { .col-8-12:has(#s-resultat) { position: sticky; top: calc(var(--entete) + 24px); align-self: start; } }

/* ---------- Héros de l'accueil ---------- */
.heros { padding-block: clamp(2rem, 4.5vw, 4rem) var(--e7); }
.heros-pilule { margin: 0 0 var(--e6); }
.heros-pilule a {
  display: inline-flex; align-items: center; padding: 7px 16px 7px 12px;
  border: 1px solid var(--filet); border-radius: 999px; font-size: .9375rem; font-weight: 500; text-decoration: none;
  transition: background-color .15s;
}
.heros-pilule a::before { content: ""; flex: none; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 4px color-mix(in srgb, var(--vert) 18%, transparent); }
.heros-pilule a:hover { background: var(--brume); }
.heros h1 { font-size: clamp(2.75rem, 7vw, 6.4rem); max-width: 16ch; margin-bottom: var(--e6); }
.heros-bas { display: grid; gap: var(--e5) var(--e7); align-items: end; }
.heros .sous-titre { font-size: var(--t1); line-height: 1.45; max-width: 28em; margin: 0; color: var(--graphite); }
.heros .boutons { margin: 0; }
.heros-grille { display: grid; gap: var(--e7) var(--gouttiere); }
@media (min-width: 72em) {
  .heros-grille { grid-template-columns: 7fr 5fr; align-items: end; }
  .heros h1 { font-size: clamp(3rem, 5.3vw, 5.1rem); }
  .heros-bas { grid-template-columns: none; }
}

/* Pupitre du héros : un process réel, étape par étape, jusqu'à la validation humaine */
.pupitre { margin: 0; padding: var(--e5); border-radius: var(--r-l); background: var(--brume); display: flex; flex-direction: column; gap: var(--e4); min-width: 0; }
.pupitre-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px var(--e4); font-size: var(--t-1); font-weight: 550; }
.pupitre-tete span { color: var(--graphite); font-weight: 400; }
.pupitre-onglets { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--brume-2); align-self: flex-start; }
.pupitre-onglets button {
  min-height: 40px; padding: 8px 18px; border: 0; border-radius: 999px; background: none; color: var(--graphite);
  font: inherit; font-size: .9375rem; font-weight: 550; cursor: pointer; transition: background-color .2s, color .2s;
}
.pupitre-onglets button:hover { color: var(--encre); }
.pupitre-onglets [aria-selected="true"] { background: var(--papier); color: var(--encre); }
/* Les trois panneaux occupent la même case : la carte garde la hauteur du plus long, la page ne saute pas. */
.pupitre-corps { display: grid; }
.pupitre-panneau { grid-area: 1 / 1; display: flex; flex-direction: column; }
.pupitre-panneau[hidden] { display: flex !important; visibility: hidden; } /* garde sa place, invisible et hors de l'arbre d'accessibilité */
.pupitre-avant { margin: 0 0 var(--e4); font-size: var(--t0); font-weight: 500; letter-spacing: -.01em; line-height: 1.35; max-width: none; }
.pupitre-etapes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
.pupitre-etapes li {
  position: relative; display: grid; grid-template-columns: 4.2em 1fr; gap: var(--e3); max-width: none; margin: 0;
  padding: 10px 0 10px 26px; border-bottom: 1px solid var(--filet); font-size: .9375rem; line-height: 1.4;
}
.pupitre-etapes li > span { color: var(--graphite); font-variant-numeric: tabular-nums; }
/* Puce : un rond plein, coché en vert pour l'étape humaine */
.pupitre-etapes li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--encre); }
.pupitre-etapes .pupitre-humain { font-weight: 550; }
.pupitre-etapes .pupitre-humain::before { left: 0; top: 12px; width: 15px; height: 15px; background: var(--vert); }
.pupitre-etapes .pupitre-humain::after { content: ""; position: absolute; left: 5px; top: 15px; width: 3.5px; height: 7px; border: solid var(--papier); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pupitre-apres { display: flex; align-items: baseline; gap: var(--e3); margin: auto 0 0; padding-top: var(--e4); max-width: none; font-size: var(--t-1); color: var(--graphite); line-height: 1.4; }
.pupitre-apres a { white-space: nowrap; }
.pupitre-apres strong { flex: none; color: var(--encre); font-size: clamp(1.875rem, 2.6vw, 2.375rem); font-weight: 560; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }

/* Aiguillage de l'accueil : deux portes, PME et collectivités */
.portes { display: grid; gap: var(--e3); }
@media (min-width: 60em) { .portes { grid-template-columns: 7fr 5fr; } }
.porte { padding: var(--e6) var(--e5); border-radius: var(--r-l); background: var(--brume); display: flex; flex-direction: column; gap: var(--e3); min-width: 0; }
.porte > * { margin: 0; }
.porte h3 { font-size: var(--t2); letter-spacing: -.03em; }
.porte > p:not(.instrument) { color: var(--graphite); max-width: 36em; }
.porte .pilules { margin-top: var(--e3); gap: 8px; }
.porte .pilules a { min-height: 44px; padding: 8px 16px; font-size: var(--t0); background: var(--papier); }
.porte .pilules a:hover { background: var(--encre); }
.porte--collectivite { background: var(--c-prusse); color: var(--s-prusse); }
.porte--collectivite > p:not(.instrument), .porte--collectivite .instrument { color: color-mix(in srgb, currentColor 92%, transparent); }
.porte-liens { list-style: none; padding: 0; margin: auto 0 0 !important; padding-top: var(--e4); display: grid; }
.porte-liens li { max-width: none; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.porte-liens a { display: flex; justify-content: space-between; padding: 12px 0; font-weight: 550; text-decoration: none; }
.porte-liens a::after { content: "→"; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.porte-liens a:hover::after { transform: translateX(4px); }
.porte-liens a:hover { text-decoration: underline; }
.porte-liens a:focus-visible { outline-color: currentColor; }

.preuves-chiffres { margin-top: var(--e8); }
.refs-groupe + .refs-groupe { margin-top: var(--section); padding-top: var(--e6); border-top: 1px solid var(--filet); }
.refs-sous-titre { font-size: var(--t3); margin-bottom: var(--e2); }
.refs-groupe .notice { margin: 0 0 var(--e6); }

/* Qui vous répond / ce qu'ils en disent : deux colonnes en grand écran */
.duo { display: grid; gap: var(--e8) var(--gouttiere); }
.duo h2 { margin-bottom: var(--e6); }
@media (min-width: 72em) { .duo { grid-template-columns: 5fr 7fr; } }
.fondateur { display: flex; gap: var(--e5); align-items: flex-start; padding: var(--e5); border-radius: var(--r-l); background: var(--brume); }
.fondateur .monogramme { flex: none; width: 72px; height: 72px; font-size: 1.35rem; background: var(--encre); color: var(--papier); }
.fondateur p { margin: 0 0 var(--e2); }
.fondateur-nom { font-size: var(--t1); font-weight: 600; letter-spacing: -.02em; }
.fondateur + .notice { margin-top: var(--e5); }

/* Ouverture : le titre puis les vignettes montent, une seule fois */
@media (prefers-reduced-motion: no-preference) {
  .heros h1, .heros-bas, .pupitre, .galerie-item { animation: monte .9s cubic-bezier(.16, .84, .24, 1) both; }
  .heros-bas { animation-delay: .08s; }
  .pupitre { animation-delay: .2s; }
  /* Titre mot à mot (site.js pose .mot) : chaque mot sort de sous sa ligne */
  .heros h1:has(.mot) { animation: none; }
  .mot { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .1em; margin: -.06em 0 -.1em; }
  .mot > span { display: inline-block; animation: mot .95s cubic-bezier(.16, .84, .24, 1) both; animation-delay: calc(var(--i) * 55ms); }
  @keyframes mot { from { transform: translateY(105%); } to { transform: none; } }
  /* Étapes du pupitre : une à une, puis le chiffre */
  .pupitre.joue .pupitre-panneau:not([hidden]) :is(.pupitre-etapes li, .pupitre-apres) { animation: etape .5s cubic-bezier(.2, .8, .2, 1) both; }
  .pupitre.joue .pupitre-panneau:not([hidden]) .pupitre-etapes li:nth-child(2) { animation-delay: .45s; }
  .pupitre.joue .pupitre-panneau:not([hidden]) .pupitre-etapes li:nth-child(3) { animation-delay: .9s; }
  .pupitre.joue .pupitre-panneau:not([hidden]) .pupitre-etapes li:nth-child(4) { animation-delay: 1.6s; }
  .pupitre.joue .pupitre-panneau:not([hidden]) .pupitre-apres { animation-delay: 2.2s; }
  .pupitre.joue .pupitre-panneau:not([hidden]) .pupitre-avant { animation: monte .5s cubic-bezier(.2, .8, .2, 1) both; }
  .pupitre.joue .pupitre-panneau:not([hidden]) .pupitre-humain::before { animation: coche .45s 1.6s cubic-bezier(.3, 1.6, .5, 1) both; }
  @keyframes etape { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
  @keyframes coche { from { transform: scale(0); } to { transform: none; } }

  /* Révélations au défilement (site.js pose .revele puis .vu, un seul passage) */
  .revele { transition: opacity .8s cubic-bezier(.16, .84, .24, 1), transform .8s cubic-bezier(.16, .84, .24, 1); transition-delay: calc(min(var(--i, 0), 8) * 70ms); }
  .revele:not(.vu) { opacity: 0; transform: translateY(24px); }

  /* Motifs des vignettes : le trait se dessine après la montée de la carte */
  .vignette-motif :is(path, rect, circle) { stroke-dasharray: 1 1; animation: trace 1.4s cubic-bezier(.4, 0, .2, 1) .5s both; }
  .vignette-motif { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
  .galerie-item:hover .vignette-motif, .ref:hover .vignette-motif { transform: translate(-3%, -5%) rotate(-2deg); }

  /* Services : la ligne survolée glisse, une flèche arrive */
  .lignes-titre { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .lignes a:hover .lignes-titre { transform: translateX(10px); }
  .lignes-n { position: relative; }
  .lignes-n::after { content: "→"; position: absolute; left: calc(100% + 4px); opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .35s cubic-bezier(.2, .8, .2, 1); }
  .lignes a:hover .lignes-n::after { opacity: 1; transform: none; }

  /* Grand logo du pied : il monte en place à l'arrivée en bas de page */
  @supports (animation-timeline: view()) {
    .pied-geant { overflow: hidden; }
    .pied-geant svg { animation: pied linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes pied { from { transform: translateY(55%); } to { transform: none; } }
  }
  .galerie-item:nth-child(1) { animation-delay: .16s; }
  .galerie-item:nth-child(2) { animation-delay: .24s; }
  .galerie-item:nth-child(3) { animation-delay: .32s; }
  .galerie-item:nth-child(4) { animation-delay: .38s; }
  .galerie-item:nth-child(5) { animation-delay: .44s; }
  .galerie-item:nth-child(6) { animation-delay: .5s; }
  @keyframes monte { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  @view-transition { navigation: auto; }
}

/* Plans et schémas SVG des pages (démos, services) */
.plan { display: block; width: 100%; height: auto; color: var(--encre); font-family: var(--f-voix); }
.plan text { fill: currentColor; font-size: 12px; }
.plan .reperes text { fill: var(--graphite); font-size: 10px; }
.plan .fin { stroke: var(--filet); stroke-width: 1; fill: none; }
.plan .fort { stroke: currentColor; stroke-width: 1.5; fill: none; }
.plan .fond { fill: var(--papier); }
.plan .attache { stroke: currentColor; stroke-width: 1; fill: none; }
.plan .pointille { stroke: currentColor; stroke-width: 1; fill: none; stroke-dasharray: 4 3; }
.plan .valide { stroke: currentColor; stroke-width: 1.5; fill: var(--papier); }
.plan .titre-noeud { font-weight: 650; }
@media (max-width: 47.99em) { .maquette .plan text { font-size: 16px; } }
.plan .note { fill: var(--graphite); font-size: 10.5px; }
.plan--vertical { display: none; }
@media (max-width: 47.99em) { .plan--horizontal { display: none; } .plan--vertical { display: block; } }
.plan .trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.2s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }

/* ---------- Démo rejouable ---------- */
.demo-service { display: grid; gap: var(--e6); }
@media (min-width: 60em) { .demo-service { grid-template-columns: 5fr 7fr; align-items: start; } }
.demo-commandes { list-style: none; margin: 0; padding: 0; }
.demo-commandes li { display: grid; grid-template-columns: 4.5em 1fr auto; gap: var(--e3); padding: 8px 0; border-bottom: 1px solid var(--filet); max-width: none; }
.demo-compteurs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--filet); }
.demo-compteurs > div { display: flex; flex-direction: column; justify-content: space-between; padding: var(--e3); min-width: 0; }
.demo-compteurs > div + div { border-left: 1px solid var(--filet); }
.demo-compteurs dt { color: var(--graphite); font-size: .75rem; }
.demo-compteurs dd { margin: 0; font-variant-numeric: tabular-nums; font-size: 1.15rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 47.99em) { .demo-compteurs > div { padding-inline: var(--e2); } .demo-compteurs dd { font-size: .95rem; } }
.curseur { display: flex; align-items: center; gap: var(--e3); }
.curseur input[type="range"] { flex: 1 1 8rem; min-width: 0; accent-color: var(--encre); min-height: 44px; }
@media (max-width: 30em) { .curseur { flex-wrap: wrap; justify-content: space-between; } .curseur input[type="range"] { order: -1; flex-basis: 100%; } }

/* ---------- Bandeau d'appel : grand panneau sombre ---------- */
.appel { padding-block: 0 var(--e7); }
.appel-corps {
  display: grid; gap: var(--e5) var(--e8); align-items: end;
  padding: clamp(32px, 7vw, 88px) clamp(24px, 6vw, 80px);
  border-radius: clamp(24px, 4vw, 44px); background: var(--encre); color: var(--papier);
}
@media (min-width: 60em) { .appel-corps { grid-template-columns: 7fr 5fr; } }
.appel h2 { font-size: clamp(2.25rem, 5.2vw, 4.5rem); letter-spacing: -.04em; line-height: 1; margin: 0; max-width: 13em; }
.appel p { margin: 0; color: color-mix(in srgb, var(--papier) 72%, transparent); }
.appel .boutons { margin-top: var(--e5); }
.appel .bouton { background: var(--papier); color: var(--encre); }
.appel .bouton:hover { background: color-mix(in srgb, var(--papier) 85%, var(--encre)); }
.appel .bouton--filet { background: color-mix(in srgb, var(--papier) 12%, transparent); color: var(--papier); }
.appel .bouton--filet:hover { background: color-mix(in srgb, var(--papier) 22%, transparent); }
.appel :focus-visible { outline-color: var(--papier); }

/* ---------- Pied de page ---------- */
.pied { padding-block: var(--e8) var(--e5); font-size: var(--t-1); border-top: 1px solid var(--filet); }
.pied-grille { display: grid; gap: var(--e6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48em) { .pied-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pied h2 { font-size: var(--t-1); font-weight: 600; letter-spacing: 0; color: var(--graphite); margin-bottom: var(--e3); }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { padding: 4px 0; }
.pied li a { text-decoration: none; }
.pied li a:hover { text-decoration: underline; }
.pied-marque { grid-column: 1 / -1; }
@media (min-width: 72em) { .pied-grille { grid-template-columns: 2fr repeat(4, 1fr); } .pied-marque { grid-column: auto; } }
.pied-marque p { max-width: 24em; color: var(--graphite); }
.pied-marque .logo { margin-bottom: var(--e4); }
.pied .cartouche { margin-top: var(--e7); padding: var(--e4) var(--e5); }
.pied .cartouche > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 72em) { .pied .cartouche { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; } .pied .cartouche > div:last-child:nth-child(odd) { grid-column: auto; } }
.pied-geant { margin-top: var(--e7); color: var(--brume-2); line-height: 0; }
.pied-geant svg { width: 100%; height: auto; display: block; }
.theme { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2) var(--e4); margin-top: var(--e5); }
.theme legend { font-weight: 600; float: left; margin-right: var(--e3); }
.theme label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; min-height: 32px; }
.theme input { accent-color: var(--encre); width: 16px; height: 16px; }

/* ---------- Divers ---------- */
.plan-site ul { list-style: none; padding-left: 0; }
.plan-site li { margin-bottom: var(--e2); }
.page-404 { padding-block: var(--e9); }
.agents { columns: 2 14rem; column-gap: var(--e6); list-style: none; padding: 0; margin: 0 0 var(--e5); }
.agents li { break-inside: avoid; padding: var(--e3) 0; border-top: 1px solid var(--filet); }
.agents code { font-size: var(--t-1); font-weight: 650; }
.agents span { display: block; color: var(--graphite); font-size: var(--t-1); line-height: 1.4; }

/* ---------- Bannière d'annonce (partiel annonce.html) ---------- */
.annonce { background: var(--brume); font-size: var(--t-1); }
.annonce-corps { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 var(--e4); padding-block: var(--e2); }
.annonce p { margin: 0; max-width: none; color: var(--graphite); }
.annonce strong { color: var(--encre); }
.annonce a { font-weight: 550; white-space: nowrap; }
.annonce-court { display: none; }
@media (max-width: 47.99em) { .annonce-long { display: none; } .annonce-court { display: inline; } }

/* ---------- Étiquettes (secteur, type de mission, expertise) ---------- */
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 var(--e2); }
.etiquettes li { font-size: .8125rem; line-height: 1.3; padding: 3px 10px; border-radius: 999px; background: var(--brume); color: var(--graphite); max-width: none; }
.section--calque .etiquettes li, .planche .etiquettes li { background: var(--papier); }

/* ---------- Chiffres : la valeur en grand ---------- */
.chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e6) var(--gouttiere); margin: 0; }
.chiffres > div { display: flex; flex-direction: column; min-width: 0; padding-top: var(--e4); border-top: 1px solid var(--filet); }
.chiffres dd { margin: 0; }
@media (min-width: 48em) { .chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 72em) { .chiffres { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.chiffres--resultats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)) !important; }
.chiffres dd:first-of-type { order: -1; margin-bottom: var(--e2); font-size: clamp(2.25rem, 3.6vw, 3.25rem); font-weight: 540; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chiffres dt { font-size: var(--t-1); line-height: 1.4; max-width: 18em; color: var(--graphite); }
.chiffres .chiffres-detail { order: 1; font-size: .8125rem; color: var(--graphite); margin-top: var(--e1); }
.chiffres--resultats dt { font-weight: 550; color: var(--encre); }
.mesure { font-size: var(--t-1); color: var(--graphite); max-width: 46rem; margin: var(--e5) 0 0; }
.mesure .instrument { color: var(--encre); font-weight: 650; margin-right: var(--e2); }

/* ---------- Cartes de réalisation : la vignette, le texte dessous ---------- */
.refs { display: grid; gap: var(--e7) var(--e4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); align-items: stretch; }
.refs > .planche.ref { background: none; padding: 0; gap: var(--e2); border-radius: var(--r-l); }
.ref .vignette { margin-bottom: var(--e3); }
.ref .vignette { transition: border-radius .35s cubic-bezier(.2, .8, .2, 1); }
.ref:hover .vignette { border-radius: calc(var(--r-l) + 14px); }
.ref:has(h3 a:focus-visible) { outline: none; }
.ref:has(h3 a:focus-visible) .vignette { outline: 2.5px solid var(--prusse); outline-offset: 3px; }
@media (min-width: 48em) { .refs--quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72em) { .refs--quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ref h3, .fiche-mission h3 { font-size: var(--t1); line-height: 1.2; }
.ref-client { color: var(--graphite); font-size: var(--t-1); }
.ref .etiquettes li { background: var(--brume); }
.ref .etiquettes li:first-child { display: none; } /* le secteur est déjà sur la vignette */
.tete-page .vignette { margin-bottom: var(--e3); }
.refs-suite { margin-top: var(--e6); }
/* Deux colonnes égales ; une valeur trop longue pour sa moitié passe à la ligne au lieu de chevaucher sa voisine. */
.ref-chiffres { display: flex; flex-wrap: wrap; gap: var(--e3); margin: var(--e2) 0 0; padding-top: var(--e3); border-top: 1px solid var(--filet); }
.ref-chiffres > div { flex: 1 1 0; min-width: min-content; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.ref-chiffres dd { margin: 0; font-size: var(--t2); font-weight: 560; letter-spacing: -.035em; line-height: 1.05; white-space: nowrap; }
.ref-chiffres dt { font-size: .8125rem; line-height: 1.3; color: var(--graphite); }
.ref-meta { margin-top: auto !important; padding-top: var(--e2); color: var(--graphite); }
.ref--grand h3 { font-size: var(--t2); }
.ref-citation { margin: var(--e3) 0 0; padding-left: var(--e4); border-left: 3px solid var(--brume-2); }
.ref-citation p { margin: 0; }
.ref-citation .ref-auteur { margin-top: var(--e2); font-size: var(--t-1); color: var(--graphite); }
.fiche-mission .cartouche { margin: var(--e2) 0; }
.fiche-resultat { font-size: var(--t-1); }
.fiche-mission:target { outline: 2.5px solid var(--prusse); outline-offset: 3px; }

/* ---------- Produits ---------- */
.produits { display: grid; gap: var(--e4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); align-items: stretch; }
.produit { padding: var(--e6); }
.produit h3 { font-size: var(--t2); letter-spacing: -.03em; }
.produit .tampons { margin: 0; }
.produit .capture-mobile { max-width: 190px; }
@media (min-width: 48em) {
  .produit--capture { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) 190px; grid-auto-rows: min-content; gap: var(--e3) var(--e6); }
  .produit--capture > * { grid-column: 1; }
  .produit--capture > .capture-mobile { grid-column: 2; grid-row: 1 / span 6; align-self: start; transform: rotate(3deg); }
}

/* ---------- Citations et témoignages ---------- */
.citation { margin: 0; display: flex; flex-direction: column; }
.citation blockquote { margin: 0 0 var(--e4); }
.citation blockquote p { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.35; font-weight: 450; letter-spacing: -.015em; max-width: 30em; margin: 0; }
.citation blockquote p::before { content: "«\00a0"; }
.citation blockquote p::after { content: "\00a0»"; }
.citation figcaption { padding-top: var(--e4); border-top: 1px solid var(--filet); font-size: var(--t-1); color: var(--graphite); line-height: 1.45; }
.citation-auteur { color: var(--encre); font-weight: 600; }
.temoignages { display: grid; gap: var(--e7) var(--gouttiere); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }

/* ---------- Bande de références : les clients par leur type, chacun lié à son cas ---------- */
.clients-titre { font-size: var(--t-1); font-weight: 600; letter-spacing: 0; color: var(--graphite); margin: var(--e8) 0 var(--e3); }
.bande-refs { list-style: none; margin: 0 0 var(--e4); padding: 0; display: grid; gap: 0 var(--gouttiere); grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); font-size: var(--t-1); }
.bande-refs li { max-width: none; padding: var(--e3) 0; border-top: 1px solid var(--filet); }
.bande-refs a { text-decoration: none; }
.bande-refs a:hover { text-decoration: underline; }

/* ---------- Accueil : services en grandes lignes, secteurs en pilules ---------- */
.lignes { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--filet); }
.lignes li { max-width: none; border-top: 1px solid var(--filet); }
.lignes a {
  display: grid; gap: var(--e1) var(--e6); align-items: baseline;
  padding: var(--e5) var(--e4); margin-inline: calc(-1 * var(--e4)); border-radius: var(--r-m);
  text-decoration: none; transition: background-color .2s;
}
.lignes a:hover { background: var(--brume); }
.lignes-titre { font-size: clamp(1.5rem, 2.8vw, 2.375rem); font-weight: 520; letter-spacing: -.035em; line-height: 1.1; }
.lignes-resume { color: var(--graphite); font-size: var(--t-1); line-height: 1.45; max-width: 34em; }
.lignes-n { color: var(--graphite); font-size: var(--t-1); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 60em) { .lignes a { grid-template-columns: 6fr 5fr 2fr; } .lignes-n { text-align: right; } }

.pilules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pilules li { max-width: none; }
.pilules a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 22px;
  border-radius: 999px; background: var(--brume); font-size: clamp(1.0625rem, 1.6vw, 1.375rem); font-weight: 500; letter-spacing: -.015em;
  text-decoration: none; transition: background-color .2s, color .2s;
}
.pilules span { font-size: .8125rem; color: var(--graphite); font-variant-numeric: tabular-nums; transition: color .2s; }
.pilules a:hover { background: var(--encre); color: var(--papier); }
.pilules a:hover span { color: color-mix(in srgb, var(--papier) 65%, transparent); }

/* ---------- Équipe ---------- */
.equipe { display: grid; gap: var(--e6) var(--gouttiere); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.equipe > li { max-width: none; }
.personne { padding: var(--e5); border-radius: var(--r-l); background: var(--brume); height: 100%; }
.personne h3 { font-size: var(--t1); margin: var(--e4) 0 var(--e1); }
.personne p { margin: 0 0 var(--e2); }
.personne-role { font-weight: 550; }
.monogramme { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--papier); font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; }
.personne--fondateur .monogramme { background: var(--encre); color: var(--papier); }

/* ---------- Parcours tarifé : quatre paliers en escalier ---------- */
.parcours { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--e3); }
.parcours > li { max-width: none; padding: var(--e5); border-radius: var(--r-l); background: var(--brume); display: flex; flex-direction: column; }
.section--calque .parcours > li { background: var(--papier); }
.parcours h3 { font-size: var(--t1); margin-bottom: var(--e1); }
.parcours p { margin: 0 0 var(--e3); }
.parcours-prix { font-size: var(--t1); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-top: auto !important; padding-top: var(--e4); }
@media (min-width: 60em) {
  .parcours { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .parcours > li:nth-child(1) { margin-top: 96px; }
  .parcours > li:nth-child(2) { margin-top: 64px; }
  .parcours > li:nth-child(3) { margin-top: 32px; }
  .parcours > li:nth-child(4) { background: var(--encre); color: var(--papier); }
  .parcours > li:nth-child(4) .instrument { color: color-mix(in srgb, var(--papier) 65%, transparent); }
}

/* ---------- Frise de mission (fiche de cas client) ---------- */
.frise { list-style: none; padding: 0; margin: 0 0 var(--e5); display: grid; gap: var(--e4); }
.frise > li { position: relative; max-width: none; padding-left: var(--e5); border-left: 1.5px solid var(--filet); }
.frise > li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--encre); }
.frise h3 { font-size: var(--t0); font-weight: 600; letter-spacing: 0; margin-bottom: var(--e1); }
.frise p { margin: 0; }
.frise-quand { display: block; font-size: var(--t-1); color: var(--graphite); }
@media (min-width: 60em) {
  .frise { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0 var(--e4); }
  .frise > li { padding: var(--e4) 0 0; border-left: 0; border-top: 1.5px solid var(--filet); }
  .frise > li::before { left: 0; top: -6px; }
}

/* ---------- « Ça vous parle ? » : irritants et réponses ---------- */
.irritants { display: grid; gap: var(--e3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); list-style: none; padding: 0; margin: 0; }
@media (min-width: 48em) { .irritants:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72em) { .irritants:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.irritants > li { max-width: none; padding: var(--e5) var(--e5) var(--e4); border-radius: var(--r-l); background: var(--brume); display: flex; flex-direction: column; }
.section--calque .irritants > li { background: var(--papier); }
.irritants .irritant { font-size: var(--t1); font-weight: 540; letter-spacing: -.02em; line-height: 1.25; margin-bottom: var(--e4); }
.irritants p { margin: 0 0 var(--e3); color: var(--graphite); font-size: var(--t-1); }
.irritants p:last-child { margin: auto 0 0; padding-top: var(--e2); color: var(--encre); font-weight: 550; }

/* ---------- Mouvement réduit : tout s'affiche dans son état final ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .plan .trace { stroke-dashoffset: 0; }
}

@media print {
  .entete, .appel, .theme, .tiroir, .sommaire, .sommaire-repli, .pied-geant { display: none; }
  body { background: #fff; color: #000; }
}
