/* LEGIO — feuille de la page (PAGE).
   Jetons de marque (SPEC §5), base, mise en page et sections marketing. Les jetons de mouvement
   (--m-*, --s-*, --e-*, --heat-*) et les images-clés mx-* vivent dans css/motion.css (MOTION), chargé
   avant cette feuille ; ici, chaque durée de la couche micro les lit avec un repli (var(--m-…, Xms)).
   Règles maison : aucun état caché hors de html.lg-js ; aucune règle large sur un élément
   dans un conteneur thématisé (on scope à la prose) ; capitales accentuées aérées
   (titre ≥ 1,24 · H2 ≥ 1,2 · titres de carte ≥ 1,22). */

/* Remplaçants calibrés (CLS) : tant que les polices web n'ont pas fini d'arriver, le texte est
   dessiné dans une police locale réduite (size-adjust) pour occuper la MÊME largeur. Les lignes
   coupent aux mêmes endroits avant et après l'échange : rien ne saute. Ratios mesurés dans
   Chromium sur les titres et le texte courant du site (Big Shoulders 900 / Archivo 400 et 600) :
   Arial ≡ Liberation Sans (métriques identiques), Arial Narrow = 82 % d'Arial. */
@font-face { font-family: "LG Display Fallback"; font-weight: 600 900; size-adjust: 85.7%;
  src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Liberation Sans Narrow Bold"), local("LiberationSansNarrow-Bold"); }
@font-face { font-family: "LG Display Fallback Sans"; font-weight: 600 900; size-adjust: 70.3%;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), local("Roboto Bold"), local("Roboto-Bold"); }
@font-face { font-family: "LG Display Fallback DejaVu"; font-weight: 600 900; size-adjust: 62.9%;
  src: local("DejaVu Sans Bold"), local("DejaVuSans-Bold"); }
@font-face { font-family: "LG Body Fallback"; font-weight: 400 500; size-adjust: 98%;
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"), local("Helvetica Neue"), local("HelveticaNeue"), local("Roboto"), local("Roboto-Regular"); }
@font-face { font-family: "LG Body Fallback"; font-weight: 600 700; size-adjust: 95.6%;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), local("Roboto Bold"), local("Roboto-Bold"); }
@font-face { font-family: "LG Body Fallback DejaVu"; font-weight: 400 700; size-adjust: 86.5%;
  src: local("DejaVu Sans"), local("DejaVuSans"); }

:root{
  color-scheme: dark;
  /* acier */
  --steel-950:#0C0E10; --steel-900:#121518; --steel-800:#1A1E22; --steel-700:#252A2F;
  --steel-500:#4A5259; --steel-300:#8B949B;
  /* papier technique */
  --paper:#E7E2D8; --paper-2:#DCD6CA; --ink:#16191C; --ink-2:#4B5157; --line:#B9B2A4;
  /* braise */
  --ember:#FF6B2C; --ember-hot:#FFB24A; --ember-deep:#C4401A; --glow:rgba(255,107,44,.35);
  /* plan */
  --blueprint:#9FC4D8; --blueprint-dim:rgba(159,196,216,.28);
  /* bois */
  --wood:#B07A45; --wood-dark:#6B4426;
  /* texte sur sombre */
  --bone:#EEE8DD; --ash:#A7ADB2;
  /* états */
  --ok:#7BC47F; --warn:#F2B544; --bad:#EF5B4F;
  /* typo */
  --f-display:"Big Shoulders Display","LG Display Fallback","LG Display Fallback Sans","LG Display Fallback DejaVu","Arial Narrow","Roboto Condensed",sans-serif;
  --f-body:"Archivo","LG Body Fallback","LG Body Fallback DejaVu",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,"SFMono-Regular",Menlo,monospace;
  /* rythme */
  --r-sm:4px; --r-md:8px; --gutter:max(16px, env(safe-area-inset-left, 0px));
  --maxw:1240px; --ease:cubic-bezier(.2,.8,.2,1);

  /* — extensions PAGE (dérivées des jetons ci-dessus) — */
  --gutter-r:max(16px, env(safe-area-inset-right, 0px));
  --pad-l:max(var(--gutter), min(5vw, 48px));
  --pad-r:max(var(--gutter-r), min(5vw, 48px));
  --col-gap:clamp(16px, 2vw, 24px);
  --header-h:64px;
  --blueprint-ink:#2C5A75;                 /* traits et codes sur papier (AA sur --paper) */
  --paper-grid:color-mix(in srgb, var(--blueprint-ink) 5%, transparent);
  --paper-grid-major:color-mix(in srgb, var(--blueprint-ink) 10%, transparent);
  --hair-dark:color-mix(in srgb, var(--bone) 12%, transparent);
  --hair-paper:color-mix(in srgb, var(--ink) 18%, transparent);
  --sec-pad:clamp(80px, 10vw, 152px);
}

/* ─── Base ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px);
  background: var(--steel-950);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-width: 320px;
  background: var(--steel-950);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main, section, footer, header, nav, figure { display: block; }
figure { margin: 0; }
img, svg, canvas { max-width: 100%; }
::selection { background: var(--ember); color: var(--steel-950); }
:focus-visible { outline: 2px solid var(--blueprint); outline-offset: 3px; }
.surface-paper :focus-visible { outline-color: var(--blueprint-ink); }
[hidden] { display: none !important; }

.lg-sr {
  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;
}
.lg-skip {
  position: fixed; z-index: 100; left: var(--pad-l); top: 8px;
  padding: 12px 16px; background: var(--bone); color: var(--steel-950);
  font: 600 15px/1 var(--f-body); text-decoration: none; border-radius: var(--r-sm);
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.lg-skip:focus { transform: none; }

/* ─── Gabarits ──────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--pad-l) + var(--pad-r));
  margin-inline: auto;
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}
.wrap--wide { max-width: calc(1440px + var(--pad-l) + var(--pad-r)); }
.sec { position: relative; padding-block: var(--sec-pad); }

/* ─── Surfaces ──────────────────────────────────────────────────────────── */
.surface-steel { position: relative; isolation: isolate; background: var(--steel-950); color: var(--bone); }
.surface-steel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: .055;
}
.surface-ember { background:
  radial-gradient(70% 55% at 0% 100%, color-mix(in srgb, var(--ember) 10%, transparent), transparent 70%),
  radial-gradient(40% 40% at 100% 0%, color-mix(in srgb, var(--ember-deep) 7%, transparent), transparent 70%),
  var(--steel-950); }
.surface-atelier {
  background-color: var(--steel-900);
  background-image:
    linear-gradient(color-mix(in srgb, var(--blueprint) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--blueprint) 5%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  border-block: 1px solid var(--steel-800);
}
.surface-paper {
  position: relative;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid-major) 1px, transparent 1px),
    linear-gradient(var(--paper-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
.surface-paper--2 { background-color: var(--paper-2); }

/* ─── Typographie ───────────────────────────────────────────────────────── */
.h1, .h2, .h3 {
  margin: 0;
  font-family: var(--f-display);
  text-transform: uppercase;
  text-wrap: balance;
  font-kerning: normal;
}
.h1 {
  font-weight: 900;
  font-size: clamp(40px, 11.6vw, 82px);
  line-height: 1.24;
  letter-spacing: .004em;
  color: var(--bone);
}
.h1__l { display: block; }
.h1__em { color: var(--ember); }
.h2 {
  font-weight: 800;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.2;
  letter-spacing: .006em;
}
.h3 {
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.22;
  letter-spacing: .01em;
}
.brd { display: none; }
@media (min-width: 900px) { .brd { display: inline; } }

.eyebrow {
  margin: 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  font-family: var(--f-mono);
  font-size: 12px; line-height: 1.4; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ash);
}
.eyebrow__k { color: var(--ember); display: inline-flex; align-items: center; gap: 14px; }
.eyebrow__k::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.surface-paper .eyebrow { color: var(--ink-2); }
.surface-paper .eyebrow__k { color: var(--blueprint-ink); }

.lead {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--ash);
  text-wrap: pretty;
}
.surface-paper .lead { color: var(--ink-2); }
.sc { font-variant-caps: all-small-caps; letter-spacing: .06em; font-style: normal; text-decoration: none; }
abbr.sc[title] { text-decoration: none; cursor: help; }

/* Prose : la seule règle de liens large, scopée aux paragraphes */
.qa__a p a, .lead a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--ember); }
.qa__a p a:hover, .lead a:hover { color: var(--ember-hot); }

/* ─── Boutons ───────────────────────────────────────────────────────────── */
a.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-family: var(--f-body); font-size: 16px; font-weight: 600; line-height: 1.1;
  letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
a.btn--lg, button.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16.5px; }
a.btn--ember, button.btn--ember { background: var(--ember); color: var(--steel-950); box-shadow: 0 0 0 0 var(--glow); }
a.btn--ember:hover, button.btn--ember:hover { background: var(--ember-hot); box-shadow: 0 10px 34px -10px var(--glow); }
/* Appui (MOTION-SPEC §9) : le bouton s'enfonce d'un pixel, son ombre se resserre, en --m-press ; même
   chose au toucher. Mouvement réduit : la couleur seule (le léger assombrissement). */
a.btn:active, button.btn:active, button.pc__add:active, button.flt:active, button.lg-motion-pref:active {
  transform: translateY(1px); filter: brightness(.94);
  transition-duration: var(--m-press, 90ms);
}
a.btn--ember:active, button.btn--ember:active { box-shadow: 0 4px 14px -8px var(--glow); }
a.btn--line, button.btn--line { background: transparent; color: var(--bone); border-color: var(--steel-500); }
a.btn--line:hover, button.btn--line:hover { border-color: var(--bone); background: color-mix(in srgb, var(--bone) 6%, transparent); }
.btn__arw { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
a.btn:hover .btn__arw, a.btn:focus-visible .btn__arw { transform: translateX(3px); }
button.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
button.btn--ember:disabled:hover { background: var(--ember); }

/* ─── En-tête ───────────────────────────────────────────────────────────── */
.lg-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
  background: color-mix(in srgb, var(--steel-950) 93%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--steel-800);
}
.lg-header__in {
  display: flex; align-items: center; gap: 16px;
  height: var(--header-h);
  max-width: calc(1440px + var(--pad-l) + var(--pad-r));
  margin-inline: auto;
  padding-left: var(--pad-l); padding-right: var(--pad-r);
}
a.lg-logo { display: inline-flex; flex: none; align-items: center; min-height: 44px; margin-right: auto; color: var(--bone); text-decoration: none; font: 900 26px/1 var(--f-display); letter-spacing: .08em; }
/* Logo « Acier taillé » (5,38 : 1, tout au module). Coupes au pixel près : 38 px de haut = 205 × 38, 32 px = 172 × 32.
   Jamais étiré ni rétréci (max-width: none) : un pixel de travers et les plaques deviennent floues.
   En-tête : la coupe animée en ligne (svg.legio-anim) à partir de 960 px, l'<img> écran à 32 px dessous. */
.lg-logo img, .lg-logo svg { display: block; flex: none; height: 38px; width: auto; max-width: none; }
.lg-header .lg-logo__img { display: none; }
.lg-nav { display: flex; align-items: center; }
.lg-nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
a.lg-nav__a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap;
  color: var(--ash); text-decoration: none; font-size: 14.5px; font-weight: 500; letter-spacing: .01em;
  transition: color .15s var(--ease);
}
a.lg-nav__a:hover { color: var(--bone); }
a.lg-nav__a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 2px;
  background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
a.lg-nav__a[aria-current="true"] { color: var(--bone); }
a.lg-nav__a[aria-current="true"]::after { transform: scaleX(1); }
.lg-nav__cta { display: none !important; }
@media (min-width: 1360px) {
  a.lg-nav__cta { display: inline-flex !important; min-height: 40px; margin-left: 10px; padding: 0 16px; font-size: 14.5px; }
  /* Tant que le CTA du héros est à l'écran, celui de l'en-tête attend (sans décaler la nav). */
  html.lg-js .lg-header:not(.is-past-hero) a.lg-nav__cta { visibility: hidden; opacity: 0; }
  html.lg-js a.lg-nav__cta { transition: opacity .25s var(--ease), visibility 0s linear 0s, background-color .18s var(--ease); }
  html.lg-js .lg-header:not(.is-past-hero) a.lg-nav__cta { transition: opacity .2s var(--ease), visibility 0s linear .2s; }
}

/* Langue : FR ↔ EN, un lien simple vers l'autre page (index.html ↔ en.html). */
a.lg-lang {
  display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 44px; min-height: 44px; padding: 0 10px;
  color: var(--ash); text-decoration: none; border: 1px solid var(--steel-700); border-radius: var(--r-sm);
  font: 600 12.5px/1 var(--f-mono); letter-spacing: .14em; transition: color .15s var(--ease), border-color .15s var(--ease);
}
a.lg-lang:hover { color: var(--bone); border-color: var(--steel-500); }
#cart-open {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 14px;
  background: var(--steel-900); color: var(--bone);
  border: 1px solid var(--steel-700); border-radius: var(--r-sm);
  font: 600 14.5px/1 var(--f-body); cursor: pointer; white-space: nowrap;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
#cart-open:hover { border-color: var(--steel-500); background: var(--steel-800); }
#cart-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: var(--r-sm); background: var(--steel-700); color: var(--bone);
  font: 700 12.5px/1 var(--f-mono); font-variant-numeric: tabular-nums;
}
#cart-open.has-items #cart-count { background: var(--ember); color: var(--steel-950); }

.lg-burger {
  display: none; position: relative; width: 44px; height: 44px; padding: 0; margin-right: -6px;
  background: transparent; border: 0; color: var(--bone); cursor: pointer;
}
.lg-burger i { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .25s var(--ease), top .25s var(--ease); }
.lg-burger i:nth-of-type(1) { top: 17px; }
.lg-burger i:nth-of-type(2) { top: 25px; }
.lg-burger[aria-expanded="true"] i:nth-of-type(1) { top: 21px; transform: rotate(45deg); }
.lg-burger[aria-expanded="true"] i:nth-of-type(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1320px) { a.lg-nav__a { padding: 0 9px; } }
@media (max-width: 1080px) { a.lg-nav__a { padding: 0 8px; font-size: 14px; } }
/* Neuf liens depuis « Ton gril » (2026-11-21) : entre 1100 et 1199 px, la nav se serre pour garder le panier à l'écran. */
@media (min-width: 1100px) and (max-width: 1199px) { a.lg-nav__a { padding: 0 6px; font-size: 14px; } }
@media (max-width: 1099px) {
  .lg-header__in { gap: 8px; }
  .lg-header .lg-logo svg { display: none; }
  .lg-header .lg-logo__img { display: block; height: 32px; }
  html.lg-js .lg-burger { display: inline-block; }
  html.lg-js .lg-nav {
    display: none;
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    height: calc(100vh - var(--header-h) - env(safe-area-inset-top, 0px));
    height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px));
    overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 12px var(--pad-r) calc(28px + env(safe-area-inset-bottom, 0px)) var(--pad-l);
    background: var(--steel-950); border-bottom: 1px solid var(--steel-700);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  }
  html.lg-js .lg-header.is-open .lg-nav { display: flex; }
  html.lg-js .lg-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  /* Page figée derrière le menu. Sur html seulement : un body en overflow:hidden deviendrait le
     conteneur de défilement de l'en-tête collant, qui partirait alors avec la page. */
  html.lg-js.lg-menu-open { overflow: hidden; }
  html.lg-js .lg-nav__list > li { display: block; }
  html.lg-js a.lg-nav__a {
    display: flex; width: 100%;
    min-height: 56px; padding: 0; border-bottom: 1px solid var(--steel-800);
    font: 800 26px/1.22 var(--f-display); letter-spacing: .02em; text-transform: uppercase; color: var(--bone);
  }
  html.lg-js a.lg-nav__a::after { left: auto; right: 0; bottom: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateY(50%) scale(0); }
  html.lg-js a.lg-nav__a[aria-current="true"]::after { transform: translateY(50%) scale(1); }
  html.lg-js .lg-nav__cta { display: inline-flex !important; align-self: flex-start; }
  /* Sans script : la navigation devient une bande défilante, jamais un menu inatteignable */
  html:not(.lg-js) .lg-header__in { flex-wrap: wrap; height: auto; padding-block: 10px 0; }
  html:not(.lg-js) .lg-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  html:not(.lg-js) .lg-nav__list { gap: 0; }
  html:not(.lg-js) a.lg-nav__a { padding: 0 10px; white-space: nowrap; }
}
/* Menu mobile : à l'ouverture, les liens prennent leur rang, 30 ms d'écart (opacité .28 → 1,
   6 px → 0, 220 ms). La fermeture est instantanée (display: none). */
@media (max-width: 1099px) and (prefers-reduced-motion: no-preference) {
  html.lg-js:not(.mx-pref-reduced) .lg-header.is-open .lg-nav__list > li,
  html.lg-js:not(.mx-pref-reduced) .lg-header.is-open a.lg-nav__cta { animation: lg-rank-in 220ms var(--e-arrive, ease-out) both; }
  html.lg-js:not(.mx-pref-reduced) .lg-header.is-open .lg-nav__list > li:nth-child(2) { animation-delay: 30ms; }
  html.lg-js:not(.mx-pref-reduced) .lg-header.is-open .lg-nav__list > li:nth-child(3) { animation-delay: 60ms; }
  html.lg-js:not(.mx-pref-reduced) .lg-header.is-open .lg-nav__list > li:nth-child(4) { animation-delay: 90ms; }
  html.lg-js:not(.mx-pref-reduced) .lg-header.is-open .lg-nav__list > li:nth-child(5) { animation-delay: 120ms; }
  html.lg-js:not(.mx-pref-reduced) .lg-header.is-open .lg-nav__list > li:nth-child(6) { animation-delay: 150ms; }
  html.lg-js:not(.mx-pref-reduced) .lg-header.is-open a.lg-nav__cta.lg-nav__cta { animation-delay: 180ms; }
}
@keyframes lg-rank-in { from { opacity: .28; transform: translate3d(0, 6px, 0); } }

/* ─── Héros : un écran, plein cadre ──────────────────────────────────────
   Un seul mouvement, et c'est le défilement du visiteur qui le mène (js/ui/hero-scrub.js) : la piste est
   haute, l'écran reste collé dedans (sticky) et le cadre se monte pièce par pièce. Rien d'autre ne bouge :
   ni caméra, ni braises, ni lueur. Sans lg-scrub (JS absent, mouvement réduit, Save-Data, WebGL absent,
   écran trop bas) : pas de piste, la station finie, un écran. */
.hero { padding: 0 0 clamp(40px, 5vw, 72px); }
.hero__track { position: relative; }
.hero__pin {
  position: relative; display: flex; align-items: stretch; overflow: hidden;
  height: calc(100vh - var(--header-h) - env(safe-area-inset-top, 0px));
  height: calc(100svh - var(--header-h) - env(safe-area-inset-top, 0px));
  min-height: 480px;
  background: var(--steel-950);
}
html.lg-scrub .hero__track { height: 400vh; height: 400svh; }
html.lg-scrub .hero__pin { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); min-height: 0; }
@media (max-width: 899px) { html.lg-scrub .hero__track { height: 280vh; height: 280svh; } }

/* La grille couvre tout l'écran ; seuls le titre et les appels reçoivent le pointeur (le bouton « 3D en direct » est dessous). */
.hero__grid { position: relative; z-index: 2; display: flex; pointer-events: none; }
.hero__head, .hero__foot { pointer-events: auto; }
.hero__copy {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  width: 100%; padding-block: clamp(20px, 3.4vh, 40px);
}
.eyebrow--hero { margin-bottom: 18px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
a.hero__link, button.hero-act__edit {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  font: 600 15px/1.2 var(--f-body); color: var(--bone); text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--bone) 40%, transparent); cursor: pointer;
}
a.hero__link:hover, button.hero-act__edit:hover { color: var(--ember-hot); text-decoration-color: currentColor; }
.hero__more { padding-top: clamp(28px, 4vw, 56px); }
.hero__lead { margin: 0; max-width: 34em; font-size: clamp(18px, 1.45vw, 20px); line-height: 1.6; color: var(--ash); text-wrap: pretty; }
.hero__note { margin: 18px 0 0; max-width: 46em; font: 500 12px/1.5 var(--f-mono); letter-spacing: .08em; color: var(--steel-300); text-wrap: balance; }

/* La scène remplit tout l'écran, derrière le texte. Le voile est fixe (un dégradé, jamais animé). */
.hero-visual { position: absolute; inset: 0; z-index: 0; background: var(--steel-900); pointer-events: none; }
.hero-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--steel-950) 78%, transparent) 0, transparent 34%, transparent 58%, color-mix(in srgb, var(--steel-950) 86%, transparent) 100%);
}
#hero-canvas, .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
/* L'affiche (la station avant la première pièce) n'existe que pour le héros au défilement ; la 3D arrive dessous, puis la remplace. */
.hero-poster { display: none; }
html.lg-scrub .hero-poster { display: block; transition: opacity .25s var(--ease), visibility 0s linear .25s; }
html.lg-scrub .hero-fallback { display: none; }
html.lg-scrub .hero-visual.is-live .hero-poster { opacity: 0; visibility: hidden; }
#hero-canvas { opacity: 0; }
.hero-visual.is-live #hero-canvas { opacity: 1; }
html:not(.lg-scrub) #hero-canvas { transition: opacity 1s var(--ease); }
.hero-fallback { position: absolute; inset: 0; overflow: hidden; transition: opacity .8s var(--ease); }
.hero-visual.is-live .hero-fallback { opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s linear .8s; }
.hero-plan { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-plan .hp-paper { fill: var(--steel-900); }
.hero-plan .hp-fine { fill: none; stroke: var(--blueprint); stroke-opacity: .07; stroke-width: 1; }
.hero-plan .hp-major { fill: none; stroke: var(--blueprint); stroke-opacity: .14; stroke-width: 1; }
.hero-plan .hp-cell { fill: color-mix(in srgb, var(--blueprint) 4%, transparent); stroke: var(--blueprint); stroke-opacity: .45; stroke-dasharray: 3 4; }
.hero-plan .hp-fire { fill: color-mix(in srgb, var(--ember) 9%, transparent); stroke: var(--ember); stroke-opacity: .55; }
.hero-plan .hp-frame { fill: none; stroke: var(--blueprint); stroke-width: 2; }
.hero-plan .hp-axis { fill: none; stroke: var(--blueprint); stroke-opacity: .35; stroke-dasharray: 14 4 2 4; }
.hero-plan .hp-post { fill: var(--steel-900); stroke: var(--blueprint); stroke-width: 1.5; }
.hero-plan .hp-lab { fill: var(--blueprint); fill-opacity: .8; font: 500 10px var(--f-mono); letter-spacing: .14em; }
.hero-plan .hp-lab-f { fill: var(--ember); fill-opacity: 1; }
.hero-plan .hp-k { fill: none; stroke: var(--blueprint); stroke-opacity: .8; }
.hero-plan .hp-kbg { fill: var(--steel-900); }
.hero-plan .hp-kt, .hero-plan .hp-side { fill: var(--blueprint); font: 500 11px var(--f-mono); letter-spacing: .16em; }
.hero-plan .hp-side { fill-opacity: .6; font-size: 10px; }
.hero-plan .hp-cart rect, .hero-plan .hp-cart path { fill: none; stroke: var(--blueprint); stroke-opacity: .5; }
.hero-plan .hp-cart text { fill: var(--blueprint); fill-opacity: .75; font: 500 9.5px var(--f-mono); letter-spacing: .12em; }
.hero-mark {
  position: absolute; left: 50%; top: 50%; width: clamp(104px, 26%, 200px); height: auto;
  transform: translate(-50%, -48%);
  filter: drop-shadow(0 0 40px var(--steel-900)) drop-shadow(0 0 18px var(--steel-900));
}
/* « 3D en direct » : le seul reste de la légende, un vrai bouton (pause, WCAG 2.2.2), cible de 44 px, discret. */
.hero-cap__live {
  display: none; position: absolute; z-index: 3; right: var(--pad-r); bottom: clamp(14px, 2.6vh, 28px);
  align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 10px; margin: 0 -10px;
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer; pointer-events: auto;
  font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash);
  -webkit-tap-highlight-color: transparent; transition: color .15s var(--ease);
}
.hero-cap__live::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); }
.hero-visual.is-live .hero-cap__live { display: inline-flex; }
.hero-cap__live:hover { color: var(--bone); }
.hero-cap__live:focus-visible { outline-offset: -2px; }
/* En pause (classe posée par site.js sur legio:hero:paused) : la braise s'éteint, il reste son contour. */
.hero-cap__live.is-paused::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding: 14px 0 0; max-width: 34rem; }
/* Avec JS, la barre garde sa place pendant le calcul de la nomenclature (pas de saut de mise en page). */
html.lg-js .hero-act[hidden] { display: flex; visibility: hidden; }
html.lg-js .hero-act.is-off { display: none; }
.hero-act__sum { margin: 0; flex: 1 1 100%; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 14px; }
.hero-act__k { font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.hero-act__price { font: 800 28px/1.1 var(--f-display); letter-spacing: .01em; color: var(--bone); font-variant-numeric: tabular-nums; }
.hero-act__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.hero-act .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }

.specs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: clamp(36px, 5vw, 64px) 0 0; padding: 0;
  border-top: 1px solid var(--steel-700);
  position: relative;
}
.specs::before, .specs::after { /* traits d'attache de la cote */
  content: ""; position: absolute; top: -6px; width: 1px; height: 11px; background: var(--steel-500);
}
.specs::before { left: 0; }
.specs::after { right: 0; }
.specs__i { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 18px 16px 4px 0; }
.specs__i:nth-child(n+3) { border-top: 1px solid var(--steel-800); }
.specs dd { margin: 0; font: 800 clamp(40px, 5vw, 64px)/1.05 var(--f-display); color: var(--bone); letter-spacing: .01em; }
.specs dd small { font-size: .5em; font-weight: 700; color: var(--ash); letter-spacing: .04em; }
.specs dt { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }

@media (min-width: 640px) {
  .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .specs__i { padding: 22px 20px 4px; border-left: 1px solid var(--steel-800); }
  .specs__i:first-child { border-left: 0; padding-left: 0; }
  .specs__i:nth-child(n+3) { border-top: 0; }
}
@media (min-width: 900px) {
  /* Bureau : le texte à gauche, la station dans le reste de l'écran (le cadrage de la scène laisse la colonne libre). */
  .hero__copy { max-width: 38rem; justify-content: center; gap: clamp(28px, 6vh, 56px); }
  .hero-visual::after {
    background: linear-gradient(to right, color-mix(in srgb, var(--steel-950) 88%, transparent) 0, color-mix(in srgb, var(--steel-950) 62%, transparent) 30%, transparent 58%),
                linear-gradient(to top, color-mix(in srgb, var(--steel-950) 55%, transparent) 0, transparent 22%);
  }
  .h1 { font-size: clamp(56px, 5.6vw, 80px); }
}
@media (max-width: 899px) {
  /* Téléphone : le titre en haut, la station au milieu, les appels en bas (main.js mesure les deux blocs). */
  .hero__pin { min-height: 520px; }
  .hero__copy { gap: 12px; padding-block: 16px 14px; }
  .eyebrow--hero { margin-bottom: 12px; }
  .hero__cta .btn--lg { min-height: 48px; padding: 0 18px; font-size: 15.5px; }
  .hero__cta { gap: 4px 14px; }
  .hero-act { padding-top: 4px; gap: 2px 16px; }
  .hero-act__sum { flex-direction: column; gap: 2px; }
  .hero-act__k { letter-spacing: .1em; font-size: 10.5px; }
  .hero-act__price { font-size: 26px; }
  .hero-act__alt { font-size: 13px; }
  .hero-cap__live { right: var(--pad-r); bottom: calc(var(--hero-bot, 38%) + 2px); }
}

/* ─── En-têtes de section ───────────────────────────────────────────────── */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 18px; margin-bottom: clamp(44px, 6vw, 88px); }
.sec-head .lead { margin-top: 6px; }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 22px; }
  .sec-head > .eyebrow { grid-column: 1 / span 3; align-self: start; padding-top: .9em; }
  .sec-head > .h2 { grid-column: 4 / -1; }
  .sec-head > .lead { grid-column: 4 / span 7; }
  .sec-head > .howto { grid-column: 4 / -1; }
}
.sec-head--tight { margin-bottom: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) and (max-width: 1099px) {
  /* Colonne de 3/12 trop étroite pour « PL. 04 —— LE CATALOGUE » : le filet décoratif cède sa place. */
  .sec-head > .eyebrow .eyebrow__k::after { display: none; }
}

/* ─── Définition ────────────────────────────────────────────────────────── */
.dict { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.dict__entry {
  position: relative; padding: clamp(24px, 4vw, 48px) 0 clamp(24px, 3vw, 36px);
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--hair-paper);
}
.dict__head { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; }
.dict__word {
  font-family: var(--f-display); font-style: normal; font-weight: 900;
  font-size: clamp(96px, 17vw, 200px); line-height: .92; letter-spacing: -.005em; color: var(--ink);
}
.dict__pos { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); }
.dict__pos [lang="la"] { font-style: italic; }
.dict__pos .sc { margin-left: 6px; color: var(--blueprint-ink); font-weight: 600; }
.dict__ety { margin: clamp(30px, 3.2vw, 44px) 0 0; /* le jambage du g de « legio » déborde de sa ligne */ font-size: clamp(18px, 1.6vw, 21px); color: var(--ink); }
.dict__senses { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: sense; display: grid; gap: 18px; max-width: 46em; }
.dict__senses li { counter-increment: sense; position: relative; padding-left: 40px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; }
.dict__senses li::before {
  content: counter(sense) "."; position: absolute; left: 0; top: 0;
  font: 800 22px/1.35 var(--f-display); color: var(--blueprint-ink);
}
.dict__senses em { font-style: normal; font-weight: 600; box-shadow: inset 0 -.38em 0 color-mix(in srgb, var(--ember) 22%, transparent); }
.dict__senses .sc { color: var(--blueprint-ink); font-weight: 600; margin-right: 4px; }
.dict__date { font-family: var(--f-mono); font-size: .82em; letter-spacing: .04em; color: var(--blueprint-ink); margin-right: 4px; }
.dict__ex { display: block; margin-top: 8px; font-style: italic; color: var(--ink-2); quotes: "«\00A0" "\00A0»"; }
.dict__see { margin: 26px 0 0; padding-top: 18px; border-top: 1px dashed var(--hair-paper); font-size: 16px; color: var(--ink-2); }
.dict__see .sc { color: var(--ink); font-weight: 600; margin-right: 8px; }
.dict__margin { display: grid; gap: 22px; align-content: start; }
.margin-note {
  margin: 0; padding-left: 18px; border-left: 2px solid var(--blueprint-ink);
  font-size: 16.5px; line-height: 1.6; color: var(--ink-2); max-width: 36em;
}
.margin-note__k { display: block; margin-bottom: 6px; font: 600 11.5px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blueprint-ink); }
@media (min-width: 900px) {
  .dict { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .dict__entry { grid-column: 1 / span 8; }
  .dict__margin { grid-column: 10 / -1; padding-top: 56px; }
}

.legion { margin-top: clamp(72px, 9vw, 128px); }
.legion__head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.legion__lead { margin: 0; max-width: 58ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); text-wrap: pretty; }
@media (min-width: 900px) {
  .legion__head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
  .legion__head .h3 { grid-column: 1 / span 5; }
  .legion__head .legion__lead { grid-column: 7 / -1; }
}
.units { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.unit { position: relative; display: flex; flex-direction: column; padding: 24px 0 28px; border-bottom: 1px solid var(--hair-paper); }
.unit__drw { display: block; width: auto; max-width: 100%; height: 104px; margin-bottom: 14px; }
.unit__n { margin: 0; font: 900 clamp(52px, 6vw, 84px)/1.05 var(--f-display); color: var(--ink); letter-spacing: .005em; font-variant-numeric: tabular-nums; }
.unit__approx { color: var(--blueprint-ink); font-size: .62em; vertical-align: .12em; }
.unit__name { margin: 6px 0 0; font: 700 13px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--blueprint-ink); }
.unit__txt { margin: 6px 0 16px; color: var(--ink-2); font-size: 16px; }
/* margin-top:auto : les étiquettes LEGIO s'alignent au pied de chaque colonne. */
.unit__fmt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: auto 0 0; padding-top: 12px; border-top: 1px dashed var(--hair-paper); font: 500 12px/1.5 var(--f-mono); letter-spacing: .06em; color: var(--ink); }
.unit__fmt > span { white-space: nowrap; }
.unit__fmt-k { display: inline-block; padding: 2px 6px; background: var(--ink); color: var(--paper); font-weight: 700; letter-spacing: .12em; }
.unit__fmt-f { color: var(--blueprint-ink); font-weight: 700; }
.unit__x {
  position: absolute; right: 0; top: 24px;
  font: 800 22px/1 var(--f-display); color: var(--ember-deep); letter-spacing: .02em;
}
@media (min-width: 640px) {
  .units { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
  /* Chaque rangée (dessin, chiffre, nom, texte, étiquette) s'aligne d'une colonne à l'autre,
     même quand une étiquette passe sur deux lignes. */
  @supports (grid-template-rows: subgrid) {
    .unit { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .unit__fmt { margin-top: 0; }
  }
}
@media (min-width: 1000px) {
  .units { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; }
  .unit { padding: 28px 28px 32px; border-bottom: 0; border-left: 1px solid var(--hair-paper); }
  .unit:first-child { padding-left: 0; border-left: 0; }
  .unit__x {
    right: auto; left: 0; top: 62px; translate: -50% 0; /* « translate » : se compose avec le tampon mx-stamp */
    padding: 5px 8px; background: var(--paper); border: 1px solid var(--ink); font-size: 20px;
  }
}

/* Le tampon « × 10 » s'imprime quand son unité arrive (S5) : 1,3 → 1, −8° → 0, 300 ms, après 420 ms.
   Seulement sous html.mx-on (MOTION actif, mouvement permis) : sans MOTION, il est là, immobile. */
html.lg-js.mx-on .unit.is-in .unit__x { animation: mx-stamp 300ms var(--e-seat) 420ms both; }

/* Dessins techniques (SVG inline) — trait bleu-plan sur sombre, encre-plan sur papier */
.drw { color: var(--blueprint); overflow: visible; }
.surface-paper .drw { color: var(--blueprint-ink); }
.drw .ln, .drw .ln * { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.drw .faint, .drw .ln.faint, .drw .ln .faint { stroke-opacity: .4; }
.drw .ln.dash, .drw .dash * { stroke-dasharray: 3 3; stroke-opacity: .55; }
.drw .ln.thin { stroke-width: 1; }
.drw .solid, .drw .ln.solid { fill: var(--steel-900); }
.surface-paper .drw .solid { fill: var(--paper); }
.drw .pt rect { fill: var(--steel-950); stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.surface-paper .drw .pt rect { fill: var(--paper); }
.drw .dot circle { fill: currentColor; }
.drw .fire, .drw .fire * { fill: var(--ember); stroke: none; }
.surface-paper .drw .fire, .surface-paper .drw .fire * { fill: var(--ember-deep); }
.drw .hl { fill: color-mix(in srgb, var(--ember) 18%, transparent); stroke: var(--ember); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.drw .hl-s { stroke: var(--ember) !important; }
.drw .hl-l { fill: none; stroke: var(--ember); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.drw .no { fill: none; stroke: var(--ember); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.drw .arw { fill: currentColor; }
.drw .cur { fill: var(--bone); stroke: var(--steel-950); stroke-width: 1; vector-effect: non-scaling-stroke; }
.drw .plate { fill: color-mix(in srgb, var(--blueprint) 10%, var(--steel-900)); stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.drw .bolt circle { fill: var(--steel-950); stroke: var(--ember); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.drw .hole circle { fill: var(--steel-950); stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.drw .hatch { fill: none; stroke: currentColor; stroke-opacity: .35; stroke-width: 1; vector-effect: non-scaling-stroke; }
.drw .k { fill: none; stroke: currentColor; stroke-opacity: .85; stroke-width: 1; vector-effect: non-scaling-stroke; }
.drw .kt { fill: currentColor; font-family: var(--f-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .14em; }
.drw .kt--s { font-size: 8.5px; letter-spacing: .1em; }

/* ─── Le système ────────────────────────────────────────────────────────── */
.pillars { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--steel-700); }
.pillar {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; row-gap: 18px;
  padding: 28px 0; border-bottom: 1px solid var(--steel-800);
}
.pillar__no { margin: 0; font: 800 34px/1.22 var(--f-display); color: var(--ember); letter-spacing: .04em; }
.pillar__t { margin: 0 0 8px; font: 800 clamp(28px, 3vw, 40px)/1.22 var(--f-display); text-transform: uppercase; letter-spacing: .01em; color: var(--bone); }
.pillar__txt p { margin: 0; max-width: 46ch; color: var(--ash); }
.pillar__drw { grid-column: 2; width: 100%; max-width: 280px; height: auto; }
@media (min-width: 900px) {
  .pillar { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; padding: 34px 0; }
  .pillar__no { grid-column: 1 / span 2; align-self: start; font-size: clamp(56px, 5vw, 76px); line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--ember); }
  .pillar__txt { grid-column: 4 / span 5; display: grid; grid-template-columns: minmax(0, 1fr); }
  .pillar__drw { grid-column: 10 / -1; justify-self: end; max-width: 240px; }
}

.details { margin-top: clamp(72px, 9vw, 120px); }
.details__t {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 28px;
  font: 500 12px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ash);
}
.details__grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--col-gap); }
.detail { display: flex; flex-direction: column; padding: 0 0 8px; }
.detail__fig {
  position: relative; display: grid; place-items: center; aspect-ratio: 8 / 7; margin-bottom: 18px;
  background: var(--steel-900); border: 1px solid var(--steel-800);
  background-image:
    linear-gradient(color-mix(in srgb, var(--blueprint) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--blueprint) 6%, transparent) 1px, transparent 1px);
  background-size: 16px 16px; background-position: -1px -1px;
}
.detail__fig svg { width: 76%; height: auto; }
.detail__tag {
  position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid var(--blueprint); border-radius: 2px;
  font: 700 13px/1 var(--f-mono); color: var(--blueprint);
}
.detail__h { margin: 0 0 8px; font: 800 24px/1.22 var(--f-display); text-transform: uppercase; letter-spacing: .015em; color: var(--bone); }
.detail p { margin: 0; color: var(--ash); font-size: 16px; line-height: 1.6; }
@media (min-width: 640px) { .details__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (min-width: 1100px) { .details__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ─── Configurateur (en-tête seulement : #cfg-root appartient à LOGIC) ─── */
.sec--atelier { padding-top: clamp(72px, 8vw, 120px); padding-bottom: clamp(56px, 7vw, 104px); }
@media (min-width: 1024px) {
  /* En-tête compact : titre et mode d'emploi sur une seule rangée, l'atelier commence tôt. */
  #configurateur { padding-top: clamp(56px, 6vw, 88px); }
  #configurateur .sec-head--tight { align-items: end; margin-bottom: 32px; }
  #configurateur .sec-head > .h2 { grid-column: 4 / span 5; font-size: clamp(40px, 4.2vw, 60px); }
  #configurateur .sec-head > .howto { grid-column: 9 / -1; flex-direction: column; gap: 10px; margin: 0; padding-bottom: 6px; }
}
.howto { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.howto li { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }
.howto__n {
  display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--blueprint); border-radius: 2px;
  color: var(--blueprint); font-weight: 700; letter-spacing: 0;
}
#cfg-root { position: relative; min-height: 120px; }
/* Sans script, #cfg-root reste vide : pas de trou au-dessus de la note <noscript>. */
html:not(.lg-js) #cfg-root:empty { min-height: 0; }
.nojs-note { margin: 0; padding: 24px; border: 1px dashed var(--steel-500); color: var(--ash); max-width: 60ch; }
/* Atelier en attente (repli « L'atelier se charge… » posé par main.js, remplacé par
   configurator-ui) et note sans script : une planche de plan à la place exacte de l'atelier.
   Pendant le chargement, elle réserve la hauteur de l'atelier : la page ne saute pas à son arrivée. */
#configurateur .nojs-note {
  max-width: none;
  padding: clamp(28px, 4vw, 48px) max(clamp(20px, 4vw, 48px), calc((100% - 62ch) / 2));
  border-color: color-mix(in srgb, var(--blueprint) 38%, transparent); border-radius: var(--r-sm);
  background-color: color-mix(in srgb, var(--steel-950) 60%, transparent);
  background-image:
    linear-gradient(color-mix(in srgb, var(--blueprint) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--blueprint) 7%, transparent) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
  text-wrap: pretty;
}
/* Centré seulement quand la ligne est courte : six lignes centrées sur téléphone se lisent mal. */
@media (min-width: 700px) { #configurateur .nojs-note { text-align: center; text-wrap: balance; } }
html.lg-js #cfg-root:empty, #cfg-root[aria-busy="true"] { min-height: min(80vh, 720px); }
#cfg-root[aria-busy="true"] > .cfg-wait {
  min-height: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  text-align: center; text-wrap: balance;
}
#cfg-root[aria-busy="true"] > .cfg-wait::before { /* la braise carrée du module (identité « Acier taillé ») */
  content: ""; width: 10px; height: 10px;
  background: var(--ember); box-shadow: 0 0 14px 3px var(--glow);
}
@media (prefers-reduced-motion: no-preference) {
  #cfg-root[aria-busy="true"] > .cfg-wait::before { animation: lg-braise 1.4s ease-in-out infinite alternate; }
}
@keyframes lg-braise { from { opacity: .35; transform: scale(.7); } to { opacity: 1; transform: none; } }

/* ─── Les 20 pièces ─────────────────────────────────────────────────────── */
/* Les filtres restent sous l'en-tête pendant qu'on parcourt les cartes (MOB-09) : changer de
   catégorie depuis la 12e carte ne demande plus de remonter 4 000 px. */
html.lg-js .catalog-bar {
  position: sticky; z-index: 5; top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  margin-inline: calc(-1 * var(--pad-l)) calc(-1 * var(--pad-r));
  padding: 10px var(--pad-r) 10px var(--pad-l);
  border-bottom: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
html.lg-js .catalog-bar.is-stuck { background: var(--paper); border-bottom-color: var(--hair-paper); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 699px) {
  /* Une seule rangée qui défile de côté ; le fondu à droite dit qu'il y en a d'autres. */
  html.lg-js .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    margin-right: calc(-1 * var(--pad-r)); padding-right: var(--pad-r);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
  html.lg-js .filters::-webkit-scrollbar { display: none; }
  html.lg-js button.flt { flex: none; }
}
/* Le remplissage encre du filtre actif balaie de gauche à droite (background-size 0 → 100 %,
   180 ms --e-rule) ; mouvement réduit : instantané. */
button.flt {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  background-color: transparent; background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat; background-position: left center; background-size: 0% 100%;
  color: var(--ink); border: 1px solid var(--ink); border-radius: var(--r-sm);
  font: 600 15px/1 var(--f-body); cursor: pointer;
  transition: background-color .15s var(--ease), background-size 180ms var(--e-rule, ease), color 180ms var(--e-rule, ease), transform .15s var(--ease);
}
button.flt:hover { background-color: color-mix(in srgb, var(--ink) 7%, transparent); }
button.flt[aria-pressed="true"] { background-size: 100% 100%; color: var(--paper); }
.flt__n { font: 500 12px/1 var(--f-mono); }
.filters__blurb { margin: 14px 0 28px; min-height: 1.5em; font: 500 12.5px/1.5 var(--f-mono); letter-spacing: .06em; color: var(--ink-2); }
.filters__blurb b { color: var(--ink); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-right: 6px; }

.pieces-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--col-gap); }
@media (min-width: 600px) { .pieces-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .pieces-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
  .pieces-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Quatre colonnes : une vignette plus basse suffit, la pièce reste entière (object-fit: contain). */
  .pieces-grid .piece-thumb { aspect-ratio: 16 / 10; }
}

.pc {
  position: relative; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--paper) 55%, #F4F1EA);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
@media (hover: hover) {
  .pc:hover { border-color: var(--ink-2); box-shadow: 0 18px 40px -26px rgba(22,25,28,.45); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pc:hover { transform: translateY(-2px); }
}
.pc__top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 0; font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.pc__no { font-weight: 700; color: var(--ink); }
.piece-thumb {
  position: relative; margin: 10px 14px 0; aspect-ratio: 4 / 3; overflow: hidden;
  display: grid; place-items: center;
  background-color: var(--paper-2);
  background-image:
    linear-gradient(var(--paper-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid-major) 1px, transparent 1px);
  background-size: 20px 20px; background-position: -1px -1px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.piece-thumb img { position: absolute; inset: 6% 8%; width: 84%; height: 88%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(22,25,28,.28)); }
.pc__glyph {
  font: 900 clamp(30px, 3.2vw, 40px)/1.22 var(--f-display); letter-spacing: .04em; color: transparent;
  -webkit-text-stroke: 1px var(--blueprint-ink); text-stroke: 1px var(--blueprint-ink);
  max-width: 92%; overflow: hidden; text-overflow: clip; white-space: nowrap;
}
.piece-thumb.has-render .pc__glyph { display: none; }
.pc__badge {
  position: absolute; z-index: 1; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 7px; background: var(--ink); color: var(--paper);
  font: 600 10px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; border-radius: 2px;
}
.pc__badge::before { content: ""; width: 6px; height: 6px; background: var(--ember); border-radius: 50%; }
.pc__badge--opt { background: transparent; color: var(--blueprint-ink); border: 1px solid var(--blueprint-ink); }
.pc__badge--opt::before { background: var(--blueprint-ink); }
.pc__head { padding: 14px 14px 0; }
.pc__body { display: flex; flex-direction: column; flex: 1; padding: 0 14px; }
.pc__code { margin: 0; font: 700 12px/1.4 var(--f-mono); letter-spacing: .2em; color: var(--blueprint-ink); }
.pc__title { margin: 6px 0 0; font: 800 23px/1.22 var(--f-display); text-transform: uppercase; letter-spacing: .015em; color: var(--ink); text-wrap: balance; }
.pc__latin { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); }
.pc__latin i { font-style: italic; color: var(--ink); }
.pc__dims { text-wrap: pretty; margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--hair-paper); font: 500 11.5px/1.55 var(--f-mono); letter-spacing: .02em; color: var(--ink); }
.pc__dims { overflow: hidden; }
.pc__dims-in { display: block; margin-left: -1.24em; }
/* Chaque segment est un bloc en ligne : court, il garde sa largeur et passe d'un bloc à la ligne
   suivante ; plus large que la carte (« Érable massif 1 3/4 po, noyer ou acier »), il se plie
   dans sa propre boîte au lieu d'être rogné par overflow:hidden. Le « · » pend dans la marge
   (padding + marge négative) : rogné en début de ligne, jamais seul en bout de ligne. */
.pc__dims .nw { display: inline-block; box-sizing: border-box; max-width: 100%; padding-left: 1.24em; vertical-align: top; }
.pc__dims .nw::before { content: "·"; content: "·" / ""; display: inline-block; width: 1.24em; margin-left: -1.24em; color: var(--ink-2); }
.pc__desc { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.pc__rule { margin: 10px 0 0; font: 500 11.5px/1.5 var(--f-mono); color: var(--ink-2); }
.pc__rule span { color: var(--blueprint-ink); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-right: 6px; }
.pc__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 16px 14px 14px; }
.pc__price { font: 800 26px/1.1 var(--f-display); color: var(--ink); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
button.pc__add {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: var(--r-sm);
  font: 600 15px/1 var(--f-body); cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
button.pc__add:hover { background: var(--ember-deep); border-color: var(--ember-deep); color: #fff; }
button.pc__add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button.pc__add.is-added { background: transparent; color: var(--ink); border-color: var(--ink); }
/* « Ajoutée » : le ✓ se trace en 220 ms (pathLength="1" dans site.js). Mouvement réduit : il apparaît. */
button.pc__add.is-added svg path { stroke-dasharray: 1; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.mx-pref-reduced) button.pc__add.is-added svg path { --mx-len: 1; animation: mx-draw var(--m-ignite, 220ms) var(--e-ignite, ease-out) both; }
}
@media (max-width: 599px) {
  /* Mobile : vignette à côté du titre, détails pleine largeur — deux fois moins de défilement */
  /* Le numéro et la catégorie montent à côté de la vignette : une rangée de moins par carte (MOB-09). */
  .pc { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; grid-template-areas: "thumb top" "thumb head" "body body" "foot foot"; }
  .pc__top { grid-area: top; padding: 12px 14px 0; }
  .piece-thumb { grid-area: thumb; align-self: start; aspect-ratio: 1; margin: 14px 0 0 14px; }
  .pc__glyph { font-size: 17px; letter-spacing: .02em; }
  /* Vignette de 98 px : le badge se réduit à « 3D » / « Option » (le texte complet reste lu). */
  .pc__badge { left: 4px; top: 4px; padding: 3px 5px; font-size: 0; letter-spacing: 0; gap: 4px; }
  .pc__badge::before { width: 5px; height: 5px; }
  .pc__badge::after { content: "3D"; content: "3D" / ""; font-size: 9px; letter-spacing: .1em; }
  .pc__badge--opt::after { content: "Option"; content: "Option" / ""; }
  .pc__head { grid-area: head; align-self: start; padding: 6px 14px 0 14px; }
  .pc__title { font-size: 21px; }
  .pc__body { grid-area: body; padding-top: 2px; }
  .pc__foot { grid-area: foot; padding-top: 12px; }
}

/* ─── Formats ───────────────────────────────────────────────────────────── */
.formats-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--col-gap); }
@media (max-width: 699px) { .fmt__plan { min-height: 0; } }
@media (min-width: 700px) { .formats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1160px) { .formats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fmt {
  position: relative; display: flex; flex-direction: column;
  padding: 22px 20px 20px; background: var(--steel-900); border: 1px solid var(--steel-800); border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
  container-type: inline-size;
}
@media (hover: hover) {
  .fmt:hover { border-color: color-mix(in srgb, var(--ember) 55%, var(--steel-700)); }
  .fmt:hover button.fmt__load { border-color: var(--ember); color: var(--ember-hot); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fmt:hover { transform: translateY(-2px); }
}
.fmt__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.fmt__roman { color: var(--ember); font-weight: 700; }
.fmt__code { margin: 14px 0 0; font: 900 clamp(28px, 3vw, 40px)/1.22 var(--f-display); font-size: clamp(24px, 14cqi, 40px); letter-spacing: .02em; color: var(--bone); overflow-wrap: normal; white-space: nowrap; }
.fmt__size { margin: 2px 0 0; font: 500 13px/1.5 var(--f-mono); letter-spacing: .06em; color: var(--blueprint); }
.fmt__plan { display: flex; align-items: flex-end; justify-content: flex-start; min-height: 172px; margin: 18px 0 0; padding: 14px 0 16px; border-block: 1px solid var(--steel-800); }
.fmt__plan svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.fmt__unit { margin: 16px 0 0; font: 500 11.5px/1.5 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--steel-300); }
.fmt__pitch { margin: 8px 0 0; color: var(--ash); font-size: 15.5px; line-height: 1.55; }
.fmt__bom { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--steel-700); }
.fmt__qty { font: 500 12px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
.fmt__price { font: 800 30px/1.1 var(--f-display); color: var(--bone); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.fmt__foot { display: grid; gap: 8px; margin-top: auto; padding-top: 18px; }
.fmt__foot .btn { width: 100%; padding-inline: 14px; white-space: normal; text-align: center; text-wrap: balance; }
.fmt__note { margin: 10px 0 0; font: 500 11px/1.4 var(--f-mono); letter-spacing: .06em; color: var(--steel-300); }

/* Glyphes du plan de format (générés par site.js) */
.fp-cell { fill: color-mix(in srgb, var(--blueprint) 4%, transparent); stroke: var(--blueprint); stroke-opacity: .5; stroke-width: 1; }
.fp-cell--fire { fill: color-mix(in srgb, var(--ember) 13%, transparent); stroke: var(--ember); stroke-opacity: .8; }
/* Les cases de feu chauffent vite (220 ms) et refroidissent lentement (600 ms --e-cool). Souris :
   survol ou focus dans la carte ; toucher : .is-warm posée par site.js au milieu de l'écran.
   Mouvement réduit : rien ne chauffe (état statique). */
.fmt .fp-cell--fire { transition: fill 600ms var(--e-cool, ease-out), stroke-opacity 600ms var(--e-cool, ease-out), filter 600ms var(--e-cool, ease-out); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.mx-pref-reduced) .fmt.is-warm .fp-cell--fire {
    fill: color-mix(in srgb, var(--ember) 32%, transparent); stroke-opacity: 1; filter: drop-shadow(0 0 6px var(--glow));
    transition-duration: var(--m-ignite, 220ms); transition-timing-function: var(--e-ignite, ease-out);
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  html:not(.mx-pref-reduced) .fmt:hover .fp-cell--fire, html:not(.mx-pref-reduced) .fmt:focus-within .fp-cell--fire {
    fill: color-mix(in srgb, var(--ember) 32%, transparent); stroke-opacity: 1; filter: drop-shadow(0 0 6px var(--glow));
    transition-duration: var(--m-ignite, 220ms); transition-timing-function: var(--e-ignite, ease-out);
  }
}
.fp-frame { fill: none; stroke: var(--blueprint); stroke-width: 1.6; }
.fp-post { fill: var(--steel-900); stroke: var(--blueprint); stroke-width: 1.2; }
.fp-g { fill: none; stroke: var(--blueprint); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.fp-g--fire { stroke: var(--ember); }
.fp-g--wood { fill: color-mix(in srgb, var(--wood) 55%, transparent); stroke: var(--wood); }
.fp-g--solid { fill: color-mix(in srgb, var(--blueprint) 30%, transparent); }
.fp-g--own { stroke: var(--ember); stroke-dasharray: 3 2.4; }
.fp-g--top { stroke: var(--ember-hot); stroke-width: 1.6; }
.fp-g--hook { stroke: var(--ember-hot); }
.fp-k { fill: none; stroke: var(--steel-300); stroke-width: 1; }
.fp-kt { fill: var(--steel-300); font: 500 9.5px var(--f-mono); letter-spacing: .12em; }
.fmt-note { margin: 14px 0 0; font: 500 12px/1.5 var(--f-mono); letter-spacing: .06em; color: var(--steel-300); }
.fp-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; list-style: none; }
.fp-legend li { display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ash); }
.fp-legend svg { width: 22px; height: 22px; flex: none; }

.invent {
  display: grid; gap: 24px; align-items: end; margin-top: var(--col-gap);
  padding: clamp(24px, 4vw, 40px); border: 1px dashed var(--steel-500); border-radius: var(--r-sm);
}
.invent .h3 { margin-top: 14px; }
.invent__txt p:last-child { margin: 12px 0 0; max-width: 56ch; color: var(--ash); }
@media (min-width: 800px) { .invent { grid-template-columns: minmax(0, 1fr) auto; } }

/* ─── Montage ───────────────────────────────────────────────────────────── */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; padding: 28px 0 32px; border-bottom: 1px solid var(--hair-paper); }
.step__fig { display: grid; place-items: center; height: 300px; margin-bottom: 18px; }
.step__fig .iso { width: auto; height: 100%; max-width: 100%; }
.step__n { margin: 0; font: 900 64px/1 var(--f-display); color: var(--ink); }
.step__t { margin: 8px 0 10px; font: 800 28px/1.22 var(--f-display); text-transform: uppercase; letter-spacing: .015em; color: var(--ink); }
.step p { max-width: 42ch; }
.step > p:not(.step__n):not(.step__parts) { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.step__parts { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.step__parts span { padding: 3px 7px; border: 1px solid var(--blueprint-ink); font: 600 10.5px/1.3 var(--f-mono); letter-spacing: .12em; color: var(--blueprint-ink); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { padding: 32px 28px 36px; border-bottom: 0; border-left: 1px solid var(--hair-paper); }
  .step:first-child { padding-left: 0; border-left: 0; }
  .step__fig { height: 320px; }
}
.steps__more { margin: 28px 0 0; }
.lg-nw { white-space: nowrap; }
.surface-paper a.btn--line, .surface-paper button.btn--line { color: var(--ink); border-color: var(--ink); }
.surface-paper a.btn--line:hover, .surface-paper button.btn--line:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); border-color: var(--ink); }
.iso .k, .iso .k.ext { fill: none; stroke: var(--blueprint-ink); stroke-width: .9; vector-effect: non-scaling-stroke; }
.iso .k.ext { stroke-opacity: .55; }
.iso .k-arw { fill: var(--blueprint-ink); }
.iso .k-bg { fill: var(--paper); }
.iso .k-t { fill: var(--blueprint-ink); font: 600 10px var(--f-mono); letter-spacing: .14em; }
.iso .gh { fill: none; stroke: var(--blueprint-ink); stroke-opacity: .35; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.iso .gh.n { stroke-dasharray: none; stroke-opacity: .25; }
.iso .prev { fill: none; stroke: var(--ink-2); stroke-opacity: .55; stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.iso .prev.n { fill: var(--paper); }
.iso .cur { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.iso .cur.n { fill: var(--ember); stroke: var(--ink); stroke-width: 1.2; }
.iso .cur.thin { stroke-width: 1.3; }
.iso .cur.wood { fill: color-mix(in srgb, var(--wood) 45%, var(--paper)); stroke-width: 1.6; }
.iso .fire { fill: none; stroke: var(--ember-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.iso .arw-l { stroke: var(--ember-deep); stroke-width: 1.6; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.iso .arw-h { fill: var(--ember-deep); }

/* ─── Asado ─────────────────────────────────────────────────────────────── */
.ritual { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--steel-700); }
.rite { padding: 24px 0 26px; border-bottom: 1px solid var(--steel-800); }
.rite__k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 10px; font: 800 26px/1.22 var(--f-display); text-transform: uppercase; letter-spacing: .015em; color: var(--bone); }
.rite__n { font: 700 13px/1 var(--f-mono); color: var(--ember); letter-spacing: 0; align-self: center; }
.rite__code { font: 600 11px/1.4 var(--f-mono); letter-spacing: .18em; color: var(--blueprint); }
.rite p:last-child { margin: 0; max-width: 46ch; color: var(--ash); }
@media (min-width: 640px) and (max-width: 1099px) {
  /* Deux colonnes : le 5e rite prend toute la rangée au lieu de rester seul dans sa colonne. */
  .ritual { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .rite:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .rite:last-child:nth-child(odd) p:last-child { max-width: 62ch; }
}
@media (min-width: 1100px) {
  /* Trois colonnes alignées sur la grille ; la 2e rangée part du bord gauche, comme la 1re. */
  .ritual { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); }
}

.temps { margin-top: clamp(56px, 7vw, 96px); }
.temps__t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 22px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.temps__table { width: 100%; border-collapse: collapse; }
.temps__table thead th { padding: 0 16px 12px 0; text-align: left; font: 500 11px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--steel-300); border-bottom: 1px solid var(--steel-500); }
.temps__table tbody th, .temps__table td { padding: 22px 16px 22px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--steel-800); font-weight: 400; }
.temps__cut { display: block; font: 800 26px/1.22 var(--f-display); text-transform: uppercase; letter-spacing: .015em; color: var(--bone); }
.temps__fr { display: block; margin-top: 4px; font-size: 15px; color: var(--ash); }
.temps__deg { display: block; font: 800 40px/1.1 var(--f-display); color: var(--ember); letter-spacing: .01em; white-space: nowrap; }
.temps__deg--word { color: var(--ember-hot); text-transform: uppercase; }
.temps__sub { display: block; margin-top: 4px; font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel-300); }
.temps__table td:last-child { color: var(--ash); max-width: 32ch; padding-top: 26px; }
@media (max-width: 699px) {
  .temps__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .temps__table, .temps__table tbody, .temps__table tr, .temps__table th, .temps__table td { display: block; width: 100%; }
  .temps__table tr { padding: 20px 0; border-bottom: 1px solid var(--steel-800); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
  .temps__table tbody th, .temps__table td { padding: 0; border: 0; }
  .temps__table tbody th { grid-column: 1; }
  .temps__table td:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
  .temps__table td:last-child { grid-column: 1 / -1; padding-top: 12px; }
  .temps__deg { font-size: 34px; }
}

/* ─── Première cohorte ──────────────────────────────────────────────────── */
.cohort { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.cohort__main .h2 { margin-top: 18px; }
.cohort__main .lead { margin-top: 20px; }
.cohort__form { margin-top: 32px; max-width: 560px; }
.cohort__label { display: block; margin-bottom: 8px; font: 600 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.cohort__row { display: flex; flex-wrap: wrap; gap: 10px; }
.cohort__input {
  flex: 1 1 240px; min-width: 0; min-height: 54px; padding: 0 16px;
  background: #F6F3ED; color: var(--ink); border: 1px solid var(--ink); border-radius: var(--r-sm);
  font: 500 17px/1 var(--f-body);
}
.cohort__input::placeholder { color: color-mix(in srgb, var(--ink-2) 75%, transparent); }
.cohort__input:focus-visible { outline: 2px solid var(--blueprint-ink); outline-offset: 2px; }
/* Invalide : le champ se souligne (braise sombre, AA sur papier) et tremble une fois, 2 oscillations,
   240 ms (.is-shake, posée par site.js à chaque envoi refusé). Mouvement réduit : pas de tremblement. */
.cohort__input[aria-invalid="true"] { border-color: var(--ember-deep); box-shadow: inset 0 0 0 1px var(--ember-deep), inset 0 -3px 0 var(--ember-deep); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.mx-pref-reduced) .cohort__input.is-shake { animation: lg-shake 240ms linear 1; }
}
@keyframes lg-shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
button.cohort__btn { flex: 0 0 auto; }
.cohort__note { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.cohort__msg { margin: 14px 0 0; min-height: 1.6em; font-weight: 600; color: var(--ink); }
.cohort__msg.is-ok { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; background: var(--ink); color: var(--paper); border-radius: var(--r-sm); }
.cohort__msg.is-ok::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .45em; border-radius: 50%; background: var(--ok); }
/* Message honnête : un filet de 1 px se trace dessous (300 ms). Pas de fête : rien n'a été envoyé. */
.cohort__msg.is-ok { position: relative; }
.cohort__msg.is-ok::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: var(--ink); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.mx-pref-reduced) .cohort__msg.is-ok::after { animation: lg-rule 300ms var(--e-rule, ease) both; }
}
@keyframes lg-rule { from { transform: scaleX(0); } }
.cohort__msg.is-bad { color: var(--ember-deep); }

.ledger { align-self: start; padding: clamp(22px, 3vw, 32px); background: #F4F1EA; border: 1px solid var(--ink); border-radius: var(--r-sm); box-shadow: 8px 8px 0 0 color-mix(in srgb, var(--ink) 12%, transparent); }
.ledger__t { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 6px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font: 700 11px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.ledger__list { margin: 0; padding: 0; list-style: none; }
.ledger__list li, .ledger__total { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--hair-paper); }
.ledger__k { flex: 1 1 auto; min-width: 0; font-size: 16px; line-height: 1.45; color: var(--ink); }
.ledger__v { flex: 0 0 auto; max-width: 48%; text-align: right; font: 600 12px/1.45 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--blueprint-ink); }
.ledger__total { margin: 0; border-bottom: 2px solid var(--ink); border-top: 2px solid var(--ink); margin-top: -1px; }
.ledger__total .ledger__k { font-weight: 700; }
.ledger__total .ledger__v { font: 900 32px/1 var(--f-display); color: var(--ember-deep); letter-spacing: .01em; }
.ledger__foot { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 960px) {
  .cohort { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .cohort__main { grid-column: 1 / span 6; }
  .ledger { grid-column: 8 / -1; margin-top: 40px; }
}

/* ─── FAQ ───────────────────────────────────────────────────────────────── */
.faq__list { border-top: 1px solid var(--steel-700); }
.qa { border-bottom: 1px solid var(--steel-800); }
.qa__q {
  position: relative; display: block; list-style: none; cursor: pointer;
  padding: 22px 52px 22px 0; min-height: 44px;
  font: 600 clamp(18px, 1.6vw, 21px)/1.4 var(--f-body); color: var(--bone);
  transition: color .15s var(--ease);
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q::marker { content: ""; }
.qa__q::before, .qa__q::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--ember);
  transition: transform .25s var(--ease);
}
.qa__q::after { transform: rotate(90deg); }
.qa[open] > .qa__q::after { transform: rotate(0deg); }
.qa__q:hover { color: var(--ember-hot); }
.qa__a { padding: 0 52px 24px 0; }
/* La réponse s'ouvre en 220 ms là où le navigateur sait animer vers « auto » ; ailleurs, instantané. */
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    html:not(.mx-pref-reduced) .qa { interpolate-size: allow-keywords; }
    html:not(.mx-pref-reduced) .qa::details-content {
      block-size: 0; overflow-y: clip;
      transition: block-size 220ms var(--e-rule, ease), content-visibility 220ms allow-discrete;
    }
    html:not(.mx-pref-reduced) .qa[open]::details-content { block-size: auto; }
  }
}
.qa__a p { margin: 0; max-width: 62ch; color: var(--ash); }
@media (min-width: 900px) {
  .faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .faq__head { grid-column: 1 / -1; }
  .faq__list { grid-column: 4 / -1; }
}

/* ─── Pied de page ──────────────────────────────────────────────────────── */
.lg-footer { padding: clamp(64px, 8vw, 112px) 0 calc(36px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--steel-800); }
.lg-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.lg-footer .lg-logo { margin: 0; }
.lg-footer .lg-logo img { height: 38px; }
.lg-footer__ety { margin: 14px 0 0; color: var(--ash); font-size: 15px; }
.lg-footer__sign { margin: 0; font: 900 clamp(64px, 11vw, 160px)/1.24 var(--f-display); text-transform: uppercase; letter-spacing: .005em; color: var(--bone); }
/* « Réduire les animations » (O9, WCAG 2.3.3) : caché tant que MOTION ne l'a pas affiché.
   Case à cocher dessinée d'après aria-pressed (bordures : lisible en couleurs forcées). */
button.lg-motion-pref {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px; margin: 6px 0 0; padding: 0 12px 0 0;
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
  color: var(--ash); font: 500 15px/1.3 var(--f-body); text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s var(--ease);
}
button.lg-motion-pref:hover { color: var(--bone); }
button.lg-motion-pref::before { content: ""; flex: none; width: 18px; height: 18px; border: 1.5px solid var(--steel-300); border-radius: 3px; transition: border-color .15s var(--ease); }
button.lg-motion-pref[aria-pressed="true"] { color: var(--bone); }
button.lg-motion-pref[aria-pressed="true"]::before { border-color: var(--ember); }
button.lg-motion-pref[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 11px;
  border: solid var(--ember); border-width: 0 2px 2px 0; transform: translateY(-62%) rotate(45deg);
}
.lg-footer__nav ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.lg-footer__nav a { display: flex; width: 100%; align-items: center; min-height: 44px; color: var(--ash); text-decoration: none; font-size: 15px; }
.lg-footer__nav a:hover { color: var(--bone); }
.lg-footer__legal { padding-top: 20px; border-top: 1px solid var(--steel-800); font: 500 11.5px/1.6 var(--f-mono); letter-spacing: .06em; color: var(--steel-300); }
.lg-footer__legal p { margin: 0; }
@media (min-width: 960px) {
  .lg-footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 48px; }
  .lg-footer__brand { grid-column: 1 / span 4; }
  .lg-footer__nav { grid-column: 8 / -1; }
  .lg-footer__end { grid-column: 1 / -1; grid-row: 2; }
  .lg-footer__legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; }
  .lg-footer__nav ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ─── Replis sans script ────────────────────────────────────────────────── */
/* Visibles sans JavaScript, ou si le script n'a jamais rendu la grille (main.js bloqué) :
   cachés tant que le drapeau lg-js est posé, et dès que la grille a du contenu. */
html.lg-js .nojs-fallback,
.pieces-grid:not(:empty) ~ .nojs-fallback,
.formats-grid:not(:empty) ~ .nojs-fallback { display: none; }
.nojs-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid currentColor; }
.nojs-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--hair-paper); }
.surface-steel .nojs-list li { border-bottom-color: var(--steel-800); }
.nojs-list__no, .nojs-list__cat { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .1em; color: var(--ink-2); }
.surface-steel .nojs-list__no, .surface-steel .nojs-list__cat { color: var(--ash); }
.nojs-list__code { font: 700 13px/1.4 var(--f-mono); letter-spacing: .16em; }
.nojs-list__price { margin-left: auto; font: 800 20px/1.2 var(--f-display); }

/* ─── Contraste élevé (forced-colors) ───────────────────────────────────── */
/* Le système repeint chaque fond avec sa propre couleur : un état ou une icône dessinés seulement
   par un fond disparaissent. On les redessine en couleurs système, comme le configurateur. */
@media (forced-colors: active) {
  button.flt[aria-pressed="true"] { outline: 3px solid Highlight; outline-offset: -3px; }
  /* Section en cours : le trait (bureau) et la pastille (menu mobile) sont des fonds. */
  a.lg-nav__a::after { forced-color-adjust: none; background: Highlight; }
  /* Icônes en barres pleines : menu / fermer, plus / moins de la FAQ. */
  .lg-burger i { forced-color-adjust: none; background: ButtonText; }
  .qa__q::before, .qa__q::after { forced-color-adjust: none; background: CanvasText; }
  /* Étiquettes et messages sur fond plein : un cadre les garde groupés. */
  .pc__badge, .cohort__msg.is-ok { border: 1px solid CanvasText; }
}
/* Logo crème, fait pour l'acier : sur un thème contrasté clair, il passerait au blanc sur blanc. */
@media (forced-colors: active) and (prefers-color-scheme: light) {
  .lg-logo img { filter: brightness(0); }
}
@media (forced-colors: active) {
  .lg-logo svg .la-word, .lg-logo svg .la-module, .lg-logo svg .la-coal { fill: CanvasText; }
}

/* ─── Révélations au défilement — UNIQUEMENT sous html.lg-js ───────────── */
html.lg-js [data-reveal] {
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
html.lg-js [data-reveal]:not(.is-in) { opacity: .28; transform: translate3d(0, 22px, 0); }

@media (prefers-reduced-motion: reduce) {
  html.lg-js [data-reveal], html.lg-js [data-reveal]:not(.is-in) { opacity: 1; transform: none; transition: none; }
  #hero-canvas, .hero-fallback, .lg-burger i, a.lg-nav__a::after, .qa__q::before, .qa__q::after, .btn__arw, button.flt { transition: none !important; }
  a.btn:active, button.btn:active, button.pc__add:active, button.flt:active, button.lg-motion-pref:active { transform: none; }
  a.btn:hover .btn__arw, a.btn:focus-visible .btn__arw { transform: none; }
}
/* « Réduire les animations » : les mêmes états finaux, sur demande (motion.css ramène déjà toute
   durée à 1 ms ; ici on retire aussi les déplacements). */
html.mx-pref-reduced.lg-js [data-reveal], html.mx-pref-reduced.lg-js [data-reveal]:not(.is-in) { opacity: 1; transform: none; transition: none; }
html.mx-pref-reduced a.btn:active, html.mx-pref-reduced button.btn:active, html.mx-pref-reduced button.pc__add:active,
html.mx-pref-reduced button.flt:active, html.mx-pref-reduced button.lg-motion-pref:active,
html.mx-pref-reduced a.btn:hover .btn__arw, html.mx-pref-reduced a.btn:focus-visible .btn__arw,
html.mx-pref-reduced .pc:hover, html.mx-pref-reduced .fmt:hover { transform: none; }

/* La cuisine (2026-11-19) : un format sous toit a son cadre doublé */
.fp-frame--roof { stroke-width: 3.2; stroke-dasharray: none; }

/* ═══ LA CUISINE (2026-11-19) ═══════════════════════════════════════════ */
.cui { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 960px) { .cui { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.cui__stack { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.cui__lvl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 24px; padding: 22px 0 24px; border-bottom: 1px solid var(--line); position: relative; }
@media (min-width: 640px) { .cui__lvl { grid-template-columns: 150px minmax(0, 1fr); } }
.cui__lvl--work { background: linear-gradient(90deg, color-mix(in srgb, var(--ember) 7%, transparent), transparent 70%); }
.cui__lvl-k { margin: 0; font: 800 22px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.cui__lvl-k span { display: block; margin-top: 6px; font: 600 11px/1.4 var(--f-mono); letter-spacing: .14em; color: var(--blueprint-ink); }
.cui__mods { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cui__mods li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.cui__code { font: 700 12px/1.3 var(--f-mono); letter-spacing: .1em; color: var(--blueprint-ink); }
.cui__lvl--work .cui__code { color: var(--ember-deep); }
.cui__side { padding: clamp(22px, 3vw, 32px); background: var(--paper-2); border: 1px solid var(--line); }
.cui__side .h3 { margin: 0 0 10px; color: var(--ink); text-transform: uppercase; font-family: var(--f-display); }
.cui__side-lead { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.cui__rules { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 12px; }
.cui__rules li { counter-increment: r; position: relative; padding-left: 36px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.cui__rules li::before { content: counter(r, upper-roman); position: absolute; left: 0; top: 1px; font: 700 13px/1.6 var(--f-mono); color: var(--ember-deep); }
.cui__rules b { color: var(--ink); font-weight: 700; }
.cui__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.cui__cta .btn { flex: 1 1 auto; justify-content: center; }
.next { margin-top: clamp(56px, 7vw, 96px); }
.next__t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 22px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.next__grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .next__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .next__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.next__i { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; background: var(--paper); }
.next__i b { font: 800 19px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.next__i > span:last-child { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.next__note { margin: 16px 0 0; font-size: 15px; color: var(--ink-2); }
.next__note a, .fit__note a { color: var(--blueprint-ink); }
.fp-side { fill: none; stroke-width: 5; stroke-linecap: butt; }
.fp-side--wood { stroke: color-mix(in srgb, var(--wood) 85%, var(--paper)); }
.fp-side--steel { stroke: var(--steel-300); stroke-dasharray: 2 2; }
.fp-aisle { font: 600 7px var(--f-mono); letter-spacing: .14em; fill: var(--blueprint); opacity: .6; }

/* Montage en 5 étapes (2026-11-19) */
.iso .prev.wood { fill: color-mix(in srgb, var(--wood) 22%, var(--paper)); }
@media (min-width: 900px) {
  .steps--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .steps--5 .step:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .steps--5 .step__fig { height: 260px; }
}
@media (min-width: 1200px) {
  .steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .steps--5 .step { padding: 28px 18px 32px; }
  .steps--5 .step:nth-child(3n + 1) { padding-left: 18px; border-left: 1px solid var(--hair-paper); }
  .steps--5 .step:first-child { padding-left: 0; border-left: 0; }
  .steps--5 .step__fig { height: 220px; }
  .steps--5 .step__n { font-size: 52px; }
  .steps--5 .step__t { font-size: 24px; }
  .steps--5 .step > p:not(.step__n):not(.step__parts) { font-size: 15px; }
}
.cui__lvl--side .cui__code { color: var(--wood-dark); }

/* ─── LIVRAISON ET MONTAGE (2026-11-19) ─────────────────────────────────── */
.livr__facts {
  margin: clamp(36px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--hair-paper);
}
.livr__fact { padding: 20px 16px 22px 0; border-bottom: 1px dashed var(--hair-paper); }
.livr__fact dt { font: 600 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.livr__fact dd { margin: 6px 0 0; font: 900 clamp(40px, 5vw, 60px)/1 var(--f-display); color: var(--ink); letter-spacing: .01em; }
.livr__fact dd small { font-size: .45em; font-weight: 700; color: var(--ink-2); }
.livr__fact p { margin: 8px 0 0; max-width: 30ch; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
@media (min-width: 900px) {
  .livr__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .livr__fact { border-bottom: 0; padding-right: 24px; }
  .livr__fact + .livr__fact { padding-left: 24px; border-left: 1px solid var(--hair-paper); }
}
.livr__cols { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px var(--col-gap); }
@media (min-width: 960px) { .livr__cols { grid-template-columns: 1.25fr 1fr 1fr; } }
.livr__h { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font: 800 22px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.livr__zones, .livr__list { margin: 0; padding: 0; list-style: none; }
.livr__zones li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px dashed var(--hair-paper); }
.livr__zk { font-weight: 700; color: var(--ink); }
.livr__zv { text-align: right; font: 600 11.5px/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--blueprint-ink); }
.livr__zn { grid-column: 1 / -1; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.livr__note { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
.livr__list li { position: relative; padding: 10px 0 10px 18px; border-bottom: 1px dashed var(--hair-paper); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.livr__list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 2px; background: var(--ember-deep); }
.livr__list b { color: var(--ink); }

/* La cuisine, saison 2 */
.cui__season { margin: 0 0 20px; padding: 12px 14px; border-left: 3px solid var(--ember-deep); background: color-mix(in srgb, var(--ink) 5%, transparent); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.cui__season b { color: var(--ink); }

/* Formats : l'offre ouverte et la saison 2 (une ligne, pas une pastille) */
.fmt__offre { margin: 6px 0 0; font: 600 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.fmt__offre.is-open { color: var(--ember-hot); }
.fmt__offre.is-open::before { content: "● "; color: var(--ember); }

/* Édition fondatrice */
.cohort__steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: cs; display: grid; gap: 14px; max-width: 60ch; }
.cohort__steps li { counter-increment: cs; position: relative; padding-left: 44px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.cohort__steps li::before {
  content: counter(cs); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: var(--r-sm); font: 800 16px/1 var(--f-display); color: var(--ink);
}
.cohort__steps b { color: var(--ink); }
.cohort__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 560px) { .cohort__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cohort__grid .cohort__f:nth-child(2) { grid-column: 1 / -1; grid-row: 1; } }
.cohort__f { margin: 0; display: flex; flex-direction: column; }
.cohort__f .cohort__input { flex: none; width: 100%; }
.cohort__where { display: flex; gap: 8px; }
.cohort__where .cohort__input { flex: 1 1 auto; width: auto; }
.cohort__where .cohort__pays { flex: 0 0 auto; max-width: 48%; padding-right: 10px; cursor: pointer; }
.cohort__help { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.cohort__check { display: flex; align-items: center; gap: 10px; margin: 16px 0 18px; min-height: 44px; font-size: 15px; color: var(--ink); cursor: pointer; }
.cohort__check input { width: 20px; height: 20px; accent-color: var(--ember-deep); }

/* ── Le plan (Pl. 10) : quatre étapes, chacune paie la suivante ───────────── */
.plan { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.plan__step { position: relative; padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.plan__no { margin: 0; font: 800 44px/1 var(--f-display); letter-spacing: .04em; color: var(--blueprint-ink); }
.plan__when { margin: 12px 0 6px; font: 600 11px/1.4 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ember-deep); }
.plan__t { margin: 0 0 10px; font: 800 clamp(24px, 2.4vw, 32px)/1.15 var(--f-display); text-transform: uppercase; letter-spacing: .015em; color: var(--ink); }
.plan__step > p:last-child { margin: 0; max-width: 46ch; color: var(--ink-2); }
.plan__sum { margin: clamp(28px, 4vw, 44px) 0 0; max-width: 62ch; font: 500 clamp(17px, 1.6vw, 20px)/1.55 var(--f-body); color: var(--ink); }
@media (min-width: 760px) {
  .plan { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 1100px) {
  .plan { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; }
  .plan__step { border-bottom: 0; padding-right: 8px; }
}

/* ── La cuisine simple, en trois modules (Pl. 03) : le gril, + le comptoir, + l'évier ─────────────── */
.kit { margin: 0 0 18px; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.kit__step { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; background: var(--paper); }
.kit__no { margin: 0; font: 800 40px/1 var(--f-display); color: var(--ember-deep); }
.kit__t { margin: 0; font: 800 clamp(24px, 2.4vw, 30px)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .015em; color: var(--ink); }
.kit__what { margin: 0; max-width: 40ch; color: var(--ink-2); }
.kit__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 6px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.kit__facts div { margin: 0; }
.kit__facts dt { font: 600 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.kit__facts dd { margin: 2px 0 0; font: 700 18px/1.3 var(--f-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.kit__btn { align-self: flex-start; margin-top: auto; }
.kit__note { margin: 0 0 clamp(40px, 5vw, 64px); max-width: 64ch; font: 500 clamp(16px, 1.5vw, 18px)/1.55 var(--f-body); color: var(--ink); }
.kit__more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 22px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
@media (min-width: 900px) { .kit { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Sans JavaScript : les boutons qui chargent le 3D ne font rien, on ne les montre pas ; la légende du héros
   (Castra) ne correspond pas au plan de secours dessiné. */
html:not(.lg-js) [data-load-format], html:not(.lg-js) .hero-cap { display: none !important; }

/* ─── Le cadre pour tous (2026-11-21) : ton gril dans la baie ──────────────── */
.hero-act__alt { flex: 1 1 100%; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font: 500 14px/1.45 var(--f-body); color: var(--ash); }
.hero-act__alt [data-bom] { color: var(--bone); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-act__link { min-height: 44px; padding: 0; border: 0; background: none; font: inherit; color: var(--ember-hot); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hero-act__link:hover { color: var(--bone); }

.drw .own, .drw .own * { fill: none; stroke: var(--ember); stroke-width: 1.6; stroke-dasharray: 4 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.surface-paper .drw .own, .surface-paper .drw .own * { stroke: var(--ember-deep); }

.ways { margin: 0 0 clamp(48px, 6vw, 80px); padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.way { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; background: var(--paper); }
.way__fig { margin: 0 0 4px; }
.way__drw { display: block; width: 100%; height: auto; max-height: 190px; }
.way__k { margin: 0; font: 600 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blueprint-ink); }
.way__t { margin: 0; font: 800 clamp(22px, 2.2vw, 28px)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .015em; color: var(--ink); }
.way__p { margin: 0; max-width: 46ch; color: var(--ink-2); }
.way__fit { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); font: 600 12px/1.5 var(--f-mono); letter-spacing: .05em; color: var(--ink); font-variant-numeric: tabular-nums; }

.fit__t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 18px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.fit__table { width: 100%; border-collapse: collapse; }
.fit__table thead th { padding: 0 16px 10px 0; text-align: left; font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.fit__table tbody th, .fit__table td { padding: 14px 16px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.fit__table tbody th { font: 700 16px/1.35 var(--f-body); color: var(--ink); }
.fit__table td { color: var(--ink-2); }
.fit__ok, .fit__wip { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.fit__ok { color: var(--ink); }
.fit__ok::before, .fit__wip::before { content: ""; width: 8px; height: 8px; flex: none; }
.fit__ok::before { background: var(--ember-deep); }
.fit__wip { color: var(--ink-2); }
.fit__wip::before { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.fit__note { margin: 18px 0 0; max-width: 72ch; color: var(--ink-2); }
.fit__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 719px) {
  .fit__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .fit__table, .fit__table tbody { display: block; }
  .fit__table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .fit__table tbody th, .fit__table td { padding: 0; border: 0; }
  .fit__table tbody th { grid-column: 1; grid-row: 1; }
  .fit__table td:nth-child(4) { grid-column: 2; grid-row: 1; }
  .fit__table td:nth-child(2), .fit__table td:nth-child(3) { grid-column: 1 / -1; }
  .fit__table td:nth-child(3) { font-size: 14px; }
  .fit__table td:nth-child(2)::before, .fit__table td:nth-child(3)::before { content: attr(data-label) " · "; font: 600 10.5px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
}

.kit__ours { margin: 0 0 18px; padding: 16px 18px 18px; border: 1px solid var(--line); }
.kit__ours-k { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.kit__ours-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 700px) { .kit__ours-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kit__ours-b { width: 100%; min-height: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.kit__ours-b:hover { border-color: var(--ink); }
.kit__ours-n { font: 600 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.kit__ours-v { font: 700 17px/1.3 var(--f-body); font-variant-numeric: tabular-nums; }

@media (min-width: 560px) { .cohort__grid .cohort__f--wide { grid-column: 1 / -1; } }
.cohort__opt { font-weight: 500; letter-spacing: .06em; text-transform: none; color: var(--ink-2); }
.hero-plan .hp-own { fill: color-mix(in srgb, var(--ember) 7%, transparent); stroke: var(--ember); stroke-opacity: .9; stroke-dasharray: 5 4; }
.hero-plan .hp-lab-o { fill: var(--ember-hot); fill-opacity: 1; }
