@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-100_900-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2265, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Martian Mono';
  src: url('../fonts/martian-mono-100_800-normal.woff2') format('woff2');
  font-weight: 100 800; font-style: normal; font-stretch: 75% 112.5%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2265, U+FEFF, U+FFFD;
}

:root {
  --c-bg: #F4F4F0;
  --c-fg: #101114;
  --c-muted: #55564F;
  --c-line: rgb(16 17 20 / 0.2);
  --c-accent: #1437E8;
  --c-curtain: #24292F;

  --papier: #F4F4F0; --ardoise: #24292F; --laine: #F4C21F; --platre: #E6E4DE;
  --beton: #B5B4AC; --terre: #33241B; --encre: #101114;

  --f-display: 'Archivo', 'Arial Narrow', sans-serif;
  --f-body: 'Archivo', Arial, sans-serif;
  --f-mono: 'Martian Mono', ui-monospace, monospace;

  --t-mega: clamp(5rem, 1.2rem + 19vw, 21rem);
  --t-xl: clamp(2.5rem, 1.4rem + 4.8vw, 6rem);
  --t-l: clamp(1.75rem, 1.3rem + 1.9vw, 3rem);
  --t-m: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --t-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --t-s: 0.875rem;
  --t-xs: 0.75rem;

  --u: clamp(0.5rem, 0.35rem + 0.6vw, 1rem);
  --gutter: clamp(1rem, 0.6rem + 1.6vw, 2.5rem);
  --cols: 12;
  --radius: 0px;

  /* La scène : unité qui préserve la pente du toit à toutes les tailles. */
  --s: min(1vw, 1.6svh);
  --axis: calc(var(--s) * 11.8);
  --ridge: max(4.5rem, calc(var(--s) * 5));

  --head-ink: #101114; --head-ground: transparent; --read-ink: #101114;

  --z-gl: 0; --z-content: 1; --z-plumb: 40; --z-header: 50; --z-cursor: 80; --z-curtain: 90; --z-loader: 100;

  --ease: cubic-bezier(0.165, 0.84, 0.44, 1);

  --h-zig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='18'%3E%3Cpath d='M0 16 8 2l8 14 8-14 8 14' fill='none' stroke='%23101114' stroke-width='1.6'/%3E%3C/svg%3E");
  --h-ardoise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Cpath d='M0 .5h44M0 11.5h44M11 .5v11M33 11.5v11' stroke='%23F4F4F0' stroke-opacity='.55' fill='none'/%3E%3C/svg%3E");
  --h-bois: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='40'%3E%3Crect x='6' y='6' width='24' height='28' fill='none' stroke='%23101114' stroke-width='1.4'/%3E%3Cpath d='m6 6 24 28M30 6 6 34' stroke='%23101114'/%3E%3C/svg%3E");
  --h-carreau: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M.5 0v36M0 .5h36' stroke='%23101114'/%3E%3C/svg%3E");
  --h-beton: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='44'%3E%3Cg fill='%23101114'%3E%3Ccircle cx='8' cy='9' r='1.3'/%3E%3Ccircle cx='38' cy='6' r='1'/%3E%3Ccircle cx='50' cy='30' r='1.4'/%3E%3Ccircle cx='22' cy='36' r='1'/%3E%3C/g%3E%3Cpath d='m22 12 8 13-13 1zM42 24l7 4-8 6z' fill='none' stroke='%23101114' stroke-width='1.2'/%3E%3C/svg%3E");
  --h-terre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 40 40 0M-10 20 20-10M20 50 50 20M8 40 40 8' stroke='%23F4F4F0' stroke-opacity='.55' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
  :root { --s: 1vw; --axis: calc(var(--s) * 6); --ridge: calc(var(--s) * 19); }
}

/* ENGINE + FOUNDATION. The project look lives in tokens and component styles; edit this file
   only to change engine behavior. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  background: var(--c-bg);
  color: var(--c-fg);
}
body {
  min-height: 100dvh;
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: clip;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--c-fg); color: var(--c-bg); }

/* Accessibility */
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }
#main:focus { outline: none; }
.skip-link {
  position: fixed; left: var(--gutter); top: var(--gutter); z-index: calc(var(--z-loader) + 1);
  padding: 0.6em 1em; background: var(--c-fg); color: var(--c-bg);
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Stacking: canvas under content so text can sit over GL images */
#gl { position: fixed; inset: 0; z-index: var(--z-gl); pointer-events: none; }
.gl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#main, [data-layer='content'] { position: relative; z-index: var(--z-content); }
/* GL replaces the pixels of [data-gl] media; the <img> stays for SEO, a11y and fallback. */
.gl-on [data-gl] img, .gl-on [data-gl] .gl-fallback { opacity: 0; }
/* The canvas sits UNDER the content: any background on a GL element would hide its plane. */
.gl-on [data-gl] { background: none !important; }
[data-gl='procedural'] .gl-fallback {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 30% 20%, var(--c-muted), var(--c-fg));
}
[data-gl] { position: relative; }

/* Hidden-until-revealed (only when motion is allowed and JS runs) */
.motion [data-split], .motion [data-reveal] { visibility: hidden; }
.split-line { padding-bottom: 0.08em; margin-bottom: -0.08em; } /* descender room inside masks */
/* SplitText turns each line into a block: keep text-indent on the first line only. */
[data-split] > * , [data-split] > * > * { text-indent: 0; }
[data-split] > :first-child, [data-split] > :first-child > :first-child { text-indent: inherit; }

/* Curtain (page transitions) */
#curtain { position: fixed; inset: 0; z-index: var(--z-curtain); pointer-events: none; visibility: hidden; overflow: hidden; }
/* No CSS transform here: GSAP owns it (CSS translate + yPercent would stack). #curtain visibility hides it. */
.curtain__panel { position: absolute; inset: 0; background: var(--c-curtain); }

/* Cursor follower: decorative, never replaces the native cursor */
#cursor {
  position: fixed; left: 0; top: 0; z-index: var(--z-cursor); pointer-events: none;
  display: grid; place-items: center; width: 0; height: 0; opacity: 0;
}
#cursor.is-ready { opacity: 1; }
#cursor span {
  display: grid; place-items: center; min-width: 5.5rem; aspect-ratio: 1; border-radius: 50%;
  background: var(--c-fg); color: var(--c-bg); font-size: var(--t-xs); letter-spacing: 0.02em;
  transform: translate(-50%, -50%) scale(0); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
#cursor.is-active span { transform: translate(-50%, -50%) scale(1); }
@media (hover: none), (pointer: coarse) { #cursor { display: none; } }

/* Loader skeleton: restyle in the project, keep it covering the first paint */
#loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  display: grid; align-content: end; padding: var(--gutter);
  background: var(--c-fg); color: var(--c-bg);
  clip-path: inset(0% 0% 0% 0%);
}
.loader__inner { display: flex; justify-content: space-between; align-items: end; overflow: hidden; }
.loader__count { font-variant-numeric: tabular-nums; }
.loader__bar { height: 1px; margin-top: calc(var(--u) * 1.5); background: currentColor; transform: scaleX(0); transform-origin: left; }
html:not(.js) #loader, #loader[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ===== Fond sous le canvas GL : les sections peignent leur matière derrière #gl. ===== */
#main { position: static; z-index: auto; }
.level { position: relative; color: var(--ink, var(--encre)); --accent: var(--c-accent); }
.level::before { content: ''; position: absolute; inset: 0; background: var(--ground); z-index: -1; }
.level > * { position: relative; z-index: 1; }
.level[data-tone='dark'] { --ink: #F4F4F0; --muted: #CFCDC6; --accent: var(--laine); }
.level[data-tone='light'] { --ink: var(--encre); --muted: #3F4039; --accent: var(--c-accent); }
:focus-visible { outline-color: var(--accent, var(--c-accent)); }
body { font-weight: 420; }
html:not(.gl-on) .pic img { filter: grayscale(1) contrast(1.06); transition: filter .4s; }
@media (hover: hover) { html:not(.gl-on) .lnk-pic:hover .pic img { filter: none; } }
html:not(.gl-on) .lnk-pic:focus-visible .pic img { filter: none; }

/* ===== Loader ===== */
#loader { background: var(--papier); color: var(--encre); display: block; padding: 0; }
.loader__bar { position: absolute; left: var(--axis); bottom: 0; width: 2px; height: 100%; margin: 0; background: currentColor; transform: scaleY(0); transform-origin: bottom; }
.loader__inner { position: absolute; left: calc(var(--axis) + var(--gutter)); bottom: var(--gutter); align-items: baseline; gap: .6em; overflow: clip; justify-content: flex-start; }
.loader__count { font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: var(--t-mega); line-height: .9; letter-spacing: -.03em; }
.loader__unit { font-family: var(--f-mono); font-size: var(--t-xs); }

/* ===== Courtine ===== */
.curtain__panel { background: var(--h-terre) 0 0 / 40px, var(--ardoise); }

/* ===== Fil à plomb ===== */
.plumb { position: fixed; top: 0; left: var(--axis); width: 0; height: 78svh; z-index: var(--z-plumb); pointer-events: none; mix-blend-mode: difference; }
.plumb__arm { position: absolute; inset: 0; transform-origin: 50% 0; }
.plumb__line { position: absolute; top: 0; bottom: 48px; left: -1px; width: 2px; background: #fff; }
.plumb__bob { position: absolute; bottom: 0; left: -12px; }
.read { position: fixed; top: calc(78svh - 3.1rem); left: 0; width: max-content; max-width: calc(var(--axis) - 3rem); margin-left: calc(var(--axis) - 2.6rem); translate: -100% 0; padding: .1rem .35rem; background: var(--read-ground, #F4F4F0); z-index: var(--z-plumb); pointer-events: none; text-align: right; font-family: var(--f-mono); font-size: .66rem; line-height: 1.5; color: var(--read-ink); transition: color .3s, background-color .3s; }
.read span { display: block; }
.read__cote { font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ===== Entête ===== */
.head { position: fixed; inset: 0 0 auto 0; z-index: var(--z-header); display: flex; justify-content: space-between; align-items: center; padding: .85rem var(--gutter); color: var(--head-ink); background: var(--head-ground); transition: translate .6s var(--ease), background-color .35s, color .35s; }
html.frame-away .head { translate: 0 -110%; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-display); font-stretch: 76%; font-size: 1.6rem; line-height: 1; letter-spacing: -.005em; min-height: 44px; }
.logo__m { flex: none; }
.logo__w { font-weight: 400; white-space: nowrap; }
.logo__w b { font-weight: 850; }
.head__nav ul { list-style: none; padding: 0; display: flex; gap: clamp(.9rem, 1.7vw, 1.9rem); font-size: .875rem; font-weight: 520; }
.head__menu { display: none; font-size: .95rem; font-weight: 600; min-height: 44px; min-width: 44px; }
.roll { display: inline-grid; overflow: clip; padding-block: .3rem; }
.roll > span { grid-area: 1 / 1; transition: translate .5s var(--ease); }
.roll > span + span { translate: 0 -120%; }
@media (hover: hover) { .roll:hover > span { translate: 0 120%; } .roll:hover > span + span { translate: 0 0; } }
.roll:focus-visible > span { translate: 0 120%; } .roll:focus-visible > span + span { translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .roll > span { transition: none; translate: none !important; }
  .roll > span + span { visibility: hidden; }
  .roll:focus-visible { text-decoration: underline; text-underline-offset: .25em; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) { .roll:hover { text-decoration: underline; text-underline-offset: .25em; } }

/* Menu mobile */
.menu { position: fixed; inset: 0; z-index: calc(var(--z-header) + 1); background: var(--laine); color: var(--encre); padding: 1rem var(--gutter) 2rem calc(var(--axis) + .9rem); overflow: auto; }
.menu[hidden] { display: none; }
.menu ul { list-style: none; padding: 3.2rem 0 0; }
.menu li a { display: block; font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: clamp(2.4rem, 13vw, 3.5rem); line-height: 1.12; text-transform: uppercase; letter-spacing: -.01em; }
.menu__close { position: absolute; right: var(--gutter); top: .85rem; font-weight: 600; min-height: 44px; }

/* ===== Boutons et liens ===== */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; min-height: 3.25rem; padding: .3rem 1.5rem; border: 2px solid currentColor; font-weight: 650; overflow: clip; transition: color .35s; --fill: var(--encre); --on: var(--papier); }
.btn--light { --fill: var(--laine); --on: var(--encre); }
.btn__fill { position: absolute; inset: -2px; z-index: -1; background: var(--fill); clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); }
.btn:active, .btn:focus-visible { color: var(--on); }
.btn:active .btn__fill, .btn:focus-visible .btn__fill { clip-path: inset(0); }
@media (hover: hover) { .btn:hover { color: var(--on); } .btn:hover .btn__fill { clip-path: inset(0); } }

.txt { background: linear-gradient(currentColor 0 0) left bottom / 100% 1.5px no-repeat; padding-bottom: .1em; transition: background-size .4s var(--ease), color .3s; }
@media (hover: hover) { .txt:hover { background-image: linear-gradient(var(--accent) 0 0); background-size: 100% .34em; } }
.txt:focus-visible { background-size: 100% .34em; }

.pic { margin: 0; overflow: clip; width: 100%; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.lnk-pic { display: block; }
.cap { display: inline; font-weight: 600; font-size: var(--t-m); line-height: 1.2; background: linear-gradient(currentColor 0 0) left bottom / 0% 2px no-repeat; transition: background-size .5s var(--ease); }
@media (hover: hover) { .lnk-pic:hover .cap { background-size: 100% 2px; } }
.lnk-pic:focus-visible .cap { background-size: 100% 2px; }

/* ===== Ouverture ===== */
.hero__stage { position: relative; min-height: 100svh; overflow: clip; }
.roof { position: absolute; left: 0; top: calc(var(--ridge) - var(--s) * 5); width: calc(var(--s) * 220); height: calc(var(--s) * 128); pointer-events: none; }
.pente { position: absolute; left: calc(var(--s) * 41); top: calc(var(--ridge) + var(--s) * 11.4); transform-origin: 0 100%; rotate: 28.81deg; font-family: var(--f-mono); font-size: calc(var(--s) * .86); white-space: nowrap; background: linear-gradient(currentColor 0 0) left bottom / 100% 1px no-repeat; padding-bottom: .15em; }
@media (hover: hover) { .pente:hover { color: var(--c-accent); } }
.sky { position: absolute; right: var(--gutter); top: calc(var(--ridge) + var(--s) * 2); width: calc(var(--s) * 27); display: grid; gap: calc(var(--s) * 1.6); justify-items: start; }
.sky__s { font-size: max(1rem, calc(var(--s) * 1.3)); line-height: 1.4; }
.sky__s h1 { display: inline; font-weight: 700; text-wrap: wrap; }
.sky__s p { display: inline; }
.h1 { position: absolute; left: calc(var(--axis) + var(--s) * 1.5); top: calc(var(--ridge) + var(--s) * 15.4); font-family: var(--f-display); font-weight: 850; font-size: calc(var(--s) * 11.2); line-height: .86; text-transform: uppercase; letter-spacing: -.012em; white-space: nowrap; }
.h1__l { display: block; overflow: clip; padding-top: .04em; }
.h1__l > span { display: block; }
.h1__l--1 { font-stretch: 78%; } .h1__l--2 { font-stretch: 62%; } .h1__l--3 { font-stretch: 84%; } .h1__l--4 { font-stretch: 84%; }
.stats { display: flex; gap: calc(var(--s) * 2.4); font-family: var(--f-mono); }
.stats div { display: grid; }
.stats dt { font-size: var(--t-xs); order: 2; }
.stats dd { margin: 0; font-size: calc(var(--s) * 2.6); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* ===== Niveaux ===== */
.slab { height: clamp(2.5rem, 5vw, 5rem); }
.slab--ardoise { background: var(--h-ardoise) 0 0 / 44px, #161A1E; }
.slab--laine { background: var(--h-zig) 0 0 / 32px 18px, var(--laine); border-block: 2px solid var(--encre); }
.slab--bois { background: var(--h-bois) 0 0 / 70px 100%, #D3C3A4; border-block: 2px solid var(--encre); }
.slab--carreau { background: var(--h-carreau) 0 0 / 36px, #fff; border-block: 2px solid var(--encre); }
.slab--beton { background: var(--h-beton) 0 0 / 60px 44px, #9B9A92; border-block: 2px solid var(--encre); }
.slab--terre { background: var(--h-terre) 0 0 / 40px, #1F150F; }
.slab--fond { background: var(--h-beton) 0 0 / 60px 44px, #8A8982; border-block: 2px solid #000; }
.in { padding: clamp(3rem, 7vw, 8rem) var(--gutter) clamp(4rem, 9vw, 10rem) calc(var(--axis) + var(--gutter)); position: relative; }
.lh { position: relative; margin-bottom: clamp(2rem, 4vw, 4.5rem); }
.lh h2, .fond__t { font-family: var(--f-display); font-weight: 800; font-stretch: 85%; font-size: var(--t-l); line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.mark { position: absolute; left: calc(-1 * var(--gutter) - var(--axis)); width: calc(var(--axis) - 1.1rem); top: .35em; display: flex; justify-content: flex-end; align-items: center; gap: .45em; font-family: var(--f-mono); font-size: .72rem; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mega { font-family: var(--f-display); font-weight: 850; font-stretch: 82%; font-size: var(--t-mega); line-height: .86; letter-spacing: -.025em; white-space: nowrap; }
.mega--s { font-size: var(--t-xl); font-stretch: 90%; letter-spacing: -.01em; }
.fig { font-family: var(--f-display); font-weight: 850; font-stretch: 88%; font-size: var(--t-xl); line-height: .95; margin-top: .3em; white-space: nowrap; }
.fig__n { max-width: 30ch; margin-top: .4em; color: var(--muted); }
.liens { list-style: none; padding: 0; display: grid; gap: .9rem; margin-top: 2rem; font-weight: 560; }

.toit { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.toit__lead { grid-column: 1 / 8; font-size: var(--t-m); }
.toit .mega { grid-column: 1 / -1; color: var(--laine); margin-block: .08em .16em; }
.toit__sub { grid-column: 1 / 5; color: var(--muted); align-self: start; }
.toit__pic { grid-column: 6 / -1; margin-top: calc(var(--t-mega) * -.32); }
.toit__pic .cap { display: inline; }
.toit__pic .pic { margin-bottom: .9rem; }

.r { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-size: clamp(5.5rem, 1rem + 25vw, 28rem); line-height: .8; letter-spacing: -.03em; white-space: nowrap; }
.combles__g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(2.5rem, 5vw, 5rem); }
.combles__c { grid-column: 1 / 6; display: grid; gap: 1.6rem; align-content: start; }
.combles__s { font-family: var(--f-display); font-weight: 650; font-stretch: 90%; font-size: var(--t-l); line-height: 1.08; }
.combles__c .txt { justify-self: start; font-weight: 600; }
.combles__pic { margin-top: clamp(2.5rem, 5vw, 5rem); width: 72%; margin-left: auto; }

.mur { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(3rem, 6vw, 7rem); }
.mur__c--1 { grid-column: 1 / 8; } .mur__c--2 { grid-column: 9 / -1; margin-top: 16vw; } .mur__c--3 { grid-column: 3 / 9; margin-top: -7vw; }
.mur .fig { font-size: clamp(2.4rem, 1.2rem + 3.3vw, 4.4rem); white-space: normal; }
.mur .pic { margin-bottom: .7rem; } .mur .cap { display: inline-block; margin-top: .8rem; font-size: 1.1rem; }

.index { list-style: none; padding: 0; border-top: 2px solid var(--encre); }
.index li { border-bottom: 1px solid var(--c-line); }
.index a { position: relative; display: grid; grid-template-columns: 8fr 3fr; gap: var(--gutter); align-items: baseline; padding-block: clamp(1rem, 1.8vw, 1.7rem); transition: padding-left .5s var(--ease); }
.index a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--c-accent); scale: 0 1; transform-origin: left; transition: scale .6s var(--ease); }
@media (hover: hover) { .index a:hover { padding-left: 1.2rem; } .index a:hover::after { scale: 1 1; } }
.index a:focus-visible { padding-left: 1.2rem; } .index a:focus-visible::after { scale: 1 1; }
.index__h { font-family: var(--f-display); font-weight: 720; font-stretch: 88%; font-size: var(--t-m); line-height: 1.12; }
.index__g { font-family: var(--f-mono); font-size: var(--t-xs); justify-self: end; text-align: right; }
.index__t { display: none; }
.preview { position: fixed; left: 0; top: 0; width: 22vw; aspect-ratio: 3/2; pointer-events: none; translate: 16% -55%; opacity: 0; visibility: hidden; z-index: 5; overflow: clip; border: 2px solid var(--encre); }
.preview img { width: 100%; height: 100%; object-fit: cover; }

.pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.pair__pic { grid-column: 1 / 8; }
.pair__t { grid-column: 9 / -1; margin-top: 7vw; }

.data { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(2.5rem, 4vw, 4rem); }
.data__a { grid-column: 1 / 5; } .data__b { grid-column: 5 / 9; } .data__pic { grid-column: 9 / -1; }
.data p:not(.mega) { color: var(--muted); max-width: 30ch; margin-top: .5em; }
.liens--2 { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 0; font-size: var(--t-m); font-weight: 600; line-height: 1.25; }

/* ===== Finale ===== */
.fond__in { padding: clamp(3rem, 6vw, 7rem) var(--gutter) var(--gutter) calc(var(--axis) + var(--gutter)); position: relative; overflow: clip; }
.fond .mark { top: calc(clamp(3rem, 6vw, 7rem) + .35em); left: 0; }
.outils { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgb(244 244 240 / .35); margin-top: 2rem; }
.outils li + li { border-left: 1px solid rgb(244 244 240 / .35); }
.outil { position: relative; isolation: isolate; display: grid; gap: .3rem; padding: 1.2rem 1rem 1.6rem; overflow: clip; transition: color .35s; }
.outil::before { content: ''; position: absolute; inset: 0; background: var(--laine); z-index: -1; clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); }
.outil__n { font-family: var(--f-display); font-weight: 850; font-stretch: 85%; font-size: var(--t-xl); line-height: 1; }
.outil__l { font-weight: 560; }
@media (hover: hover) { .outil:hover { color: var(--encre); } .outil:hover::before { clip-path: inset(0); } }
.outil:focus-visible, .outil:active { color: var(--encre); } .outil:focus-visible::before, .outil:active::before { clip-path: inset(0); }
.redac { max-width: 40rem; margin: clamp(3rem, 6vw, 6rem) 0 0 auto; display: grid; gap: 1rem; justify-items: start; }
.redac h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 85%; font-size: var(--t-m); text-transform: uppercase; }
.redac p { color: var(--muted); }
.fond__big { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-size: clamp(9rem, 2rem + 34vw, 40rem); line-height: .78; letter-spacing: -.03em; margin: clamp(2rem, 5vw, 5rem) 0 clamp(1.5rem, 3vw, 3rem) -.05em; color: var(--laine); white-space: nowrap; }
.legal { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; font-size: var(--t-s); }
.legal a { display: inline-flex; min-height: 28px; align-items: center; }
@media (hover: hover) { .legal a:hover { color: var(--laine); } }
.legal__c { margin-left: auto; align-self: center; }

/* ===== 404 ===== */
.nf .in { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 1.4rem; }
.nf .mark { top: auto; margin-top: -.2rem; }
.nf__t { font-family: var(--f-display); font-weight: 850; font-stretch: 80%; font-size: var(--t-mega); line-height: .86; text-transform: uppercase; letter-spacing: -.02em; }
.nf__s { font-size: var(--t-m); max-width: 34ch; }

/* ===== Article ===== */
.art-h .in { padding-top: clamp(7rem, 12vw, 12rem); padding-bottom: clamp(2.5rem, 5vw, 5rem); }
.art-h .mark { top: clamp(7rem, 12vw, 12rem); }
.art-h__k { font-family: var(--f-mono); font-size: var(--t-xs); margin-bottom: 1.2rem; }
.art-h__t { font-family: var(--f-display); font-weight: 850; font-stretch: 82%; font-size: clamp(2.4rem, 1rem + 4.4vw, 5.6rem); line-height: .94; letter-spacing: -.012em; text-transform: uppercase; max-width: 20ch; }
.art-h__l { font-family: var(--f-display); font-weight: 600; font-stretch: 92%; font-size: var(--t-m); line-height: 1.22; max-width: 38em; margin-top: 2rem; }
.art-b .in { padding-top: clamp(2.5rem, 5vw, 5rem); }
.art-pic { width: min(100%, 62rem); margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.prose { max-width: 42rem; line-height: 1.6; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-family: var(--f-display); font-weight: 800; font-stretch: 88%; font-size: var(--t-l); line-height: 1.04; margin-top: 2em; }
.prose h3 { font-weight: 750; font-size: var(--t-m); margin-top: 1.6em; }
.prose ul { padding-left: 1.1em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { font-family: var(--f-display); font-weight: 700; font-stretch: 90%; font-size: var(--t-m); line-height: 1.2; background: var(--laine); padding: 1.1em 1.2em; }
.table { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--t-s); }
.prose th, .prose td { text-align: left; padding: .7em .6em .7em 0; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.prose thead th { border-bottom: 2px solid var(--encre); font-weight: 700; }
.prose tbody th { font-weight: 560; }
.prose td { font-family: var(--f-mono); font-size: .76rem; }

/* ===== Téléphone : composé pour la main ===== */
@media (max-width: 1099px) { .head__nav { display: none; } .head__menu { display: inline-flex; align-items: center; justify-content: flex-end; } }
@media (max-width: 767px) {
  .read { top: .85rem; left: auto; right: 5rem; width: auto; max-width: none; margin: 0; translate: 0 0; background: transparent; text-align: right; color: var(--head-ink); font-size: .58rem; line-height: 1.25; transition: translate .6s var(--ease), color .35s; }
  .read__cote { font-size: .66rem; }
  html.frame-away .read { translate: 0 -500%; }
  .plumb__bob { transform: scale(.8); transform-origin: top; bottom: -8px; }
  .logo__c { display: none; }
  .hero__stage { min-height: 100svh; padding: calc(var(--ridge) + var(--s) * 29.5) var(--gutter) var(--gutter) calc(var(--axis) + .9rem); display: flex; flex-direction: column; }
  .h1 { position: static; order: 1; font-size: 18vw; line-height: .88; }
  .h1__l--1 { font-stretch: 125%; } .h1__l--2 { font-stretch: 81%; } .h1__l--3 { font-stretch: 86%; } .h1__l--4 { font-stretch: 62%; }
  .sky { position: static; order: 2; width: auto; margin-top: 1.6rem; gap: 1.2rem; display: flex; flex-direction: column; flex: 1; }
  .btn { width: 100%; justify-content: center; }
  .sky__s { font-size: 1.0625rem; }
  .stats { padding-top: .4rem; gap: 2rem; margin-top: auto; }
  .stats dd { font-size: 1.6rem; }
  .roof { left: calc(var(--s) * -5.8); }
  .pente { left: calc(var(--s) * 36); top: calc(var(--ridge) + var(--s) * 10.2); font-size: .625rem; }
  .pente { min-height: 24px; display: inline-flex; align-items: flex-end; }
  .in { padding: 2.75rem var(--gutter) 3.5rem calc(var(--axis) + .9rem); }
  .fond__in { padding: 2.75rem var(--gutter) var(--gutter) calc(var(--axis) + .9rem); }
  .mark { position: static; width: auto; justify-content: flex-start; margin-bottom: .45rem; }
  .fond .mark { position: static; }
  .art-h .mark { position: static; }
  .art-h .in { padding-top: 6rem; }
  .toit, .pair, .data, .combles__g, .combles__c { display: block; }
  .combles__fig { margin-top: 2rem; }
  .mega { font-size: 26vw; }
  .mega--s { font-size: 17vw; }
  .toit__sub { margin-top: .6rem; } .toit__pic { margin-top: 1.8rem; }
  .r { font-size: 30vw; }
  .combles__c .txt { display: inline; }
  .combles__c p + a { margin-top: 1.2rem; }
  .combles__s { margin-bottom: 1.2rem; }
  .combles__pic { width: 100%; }
  .mur { display: flex; flex-direction: column; gap: 2.5rem; }
  .mur__c--1, .mur__c--2, .mur__c--3 { margin: 0; }
  .mur__c--2 { margin-left: 14%; } .mur__c--3 { margin-right: 10%; }
  .index a { grid-template-columns: 26% 1fr; column-gap: .9rem; align-items: start; }
  .index__t { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; grid-row: 1 / 3; }
  .index__g { justify-self: start; text-align: left; grid-column: 2; }
  .preview { display: none; }
  .pair__t { margin-top: 1.8rem; }
  .data__a, .data__b { margin-bottom: 2rem; }
  .data__pic { display: block; margin-bottom: 2rem; }
  .liens--2 { display: grid; grid-template-columns: 1fr; font-size: 1.15rem; }
  .outils { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outils li:nth-child(3) { border-left: 0; }
  .outils li:nth-child(n+3) { border-top: 1px solid rgb(244 244 240 / .35); }
  .legal__c { margin-left: 0; width: 100%; }
  .art-h__t { font-size: 10vw; }
}
@media (prefers-reduced-motion: reduce) { .slab { clip-path: none !important; } }
.ridge-mark { position: absolute; left: 0; top: var(--ridge); width: 0; height: 0; }
.roof, .plumb__bob, .logo__m { max-width: none; }
.combles__fig { grid-column: 6 / -1; }
.fig-r { margin-block: 2.2em; }

@media (max-width: 767px) { #loader { display: none; } }
.nf__t { font-size: clamp(3.2rem, .8rem + 10.5vw, 12.5rem); font-stretch: 72%; }
.art-h__k a, .prose a.txt { display: inline-block; padding-block: .22rem; }
.logo__p { transition: translate .45s var(--ease); }
@media (hover: hover) { .logo:hover .logo__p { translate: 0 2.5px; } }
.logo:focus-visible .logo__p { translate: 0 2.5px; }

/* Passe critique 1 */
.preview { left: 65vw; width: 19.5vw; translate: 0 -50%; }
.pente { z-index: 3; }
.roll { background: linear-gradient(currentColor 0 0) left bottom / 0% 2px no-repeat; transition: background-size .45s var(--ease); }
@media (hover: hover) { .roll:hover { background-size: 100% 2px; } }
.roll:focus-visible, .roll[aria-current='page'] { background-size: 100% 2px; }
.head :focus-visible, .logo:focus-visible { outline-color: var(--head-ink); }
.liens .txt { padding-block: .2em; }
html:not(.gl-on) .pic img, .index__t { filter: grayscale(1) contrast(1.06); }
.art-pic, .art-b .prose { margin-inline: auto; }
@media (max-width: 767px) { .plumb__bob { transform: scale(.6); bottom: -2px; } }
.paroi__keys button[aria-pressed='true'] span { background: linear-gradient(currentColor 0 0) left bottom / 0% 2px no-repeat; transition: background-size .45s var(--ease); }
@media (hover: hover) { .paroi__keys button[aria-pressed='true']:hover span { background-size: 100% 2px; } }

/* Passe critique 2 */
.floors { width: 100%; }
.floors ul { list-style: none; padding: 0; border-top: 1px solid var(--c-line); }
.floors a { display: flex; align-items: baseline; gap: .6rem; min-height: 1.75rem; padding-block: .2rem; font-size: .875rem; font-weight: 520; border-bottom: 1px solid var(--c-line); transition: padding-left .45s var(--ease); }
.floors i { flex: 1; }
.floors b { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .floors a:hover { padding-left: .8rem; border-bottom-color: var(--encre); } }
.floors a:focus-visible { padding-left: .8rem; }
.ps { display: none; }
.pente { transition: translate .5s var(--ease), background-size .4s var(--ease); }
@media (hover: hover) { .pente:hover { translate: 7px 3.9px; background-size: 100% 3px; } }
.pente:focus-visible { translate: 7px 3.9px; background-size: 100% 3px; }
.roll[aria-current='page']:hover { background-size: 100% 4px; }
.paroi .iso-halo { display: none; }
.paroi .iso-legend { color: #101114; }
.toit__left { grid-column: 1 / 5; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.toit__art .cap { font-family: var(--f-display); font-weight: 750; font-stretch: 88%; font-size: var(--t-l); line-height: 1.05; }
@media (hover: hover) { .toit__art:hover .cap { background-size: 100% 2px; } }
.toit__art:focus-visible .cap { background-size: 100% 2px; }
.toit__pic { margin-top: .4rem; }
.toit__pic .pic { margin-bottom: 0; }
.nf .in { min-height: 82svh; }
@media (min-width: 768px) {
  .mur { grid-template-rows: auto auto auto auto; row-gap: 0; }
  .mur__c { display: grid; grid-row: span 4; grid-template-rows: subgrid; margin: 0 !important; }
  .mur__c > a { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  .mur__c .pic { align-self: end; }
  .mur__c--1 { grid-column: 1 / 6; } .mur__c--2 { grid-column: 6 / 10; } .mur__c--3 { grid-column: 10 / -1; }
}
@media (min-width: 1100px) {
  .fond__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .fond__t { grid-column: 1 / 7; grid-row: 1; }
  .outils { grid-column: 1 / 7; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outils li:nth-child(odd) { border-left: 0; }
  .outils li:nth-child(n+3) { border-top: 1px solid rgb(244 244 240 / .35); }
  .redac { grid-column: 8 / -1; grid-row: 1 / 3; margin: 0; max-width: none; }
  .fond__big { grid-column: 1 / -1; }
  .legal { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .pl { display: none; } .ps { display: inline; }
  .pente { top: calc(var(--ridge) + var(--s) * 7.4); left: calc(var(--s) * 40); }
  .floors { margin-top: auto; }
  .toit__left { margin-top: .6rem; }
  .toit__pic { margin-top: 1.8rem; display: block; }
  .prose td { font-size: .72rem; }
  .prose th, .prose td { padding-right: .9em; }
}
.sky { z-index: 4; }

/* Passe critique 3 */
:focus-visible { border-radius: 0; outline-offset: 3px; }
.read { background: transparent; padding: 0; text-shadow: 0 0 2px var(--read-ground), 0 0 2px var(--read-ground), 0 0 4px var(--read-ground), 0 0 6px var(--read-ground); }
.curtain__panel[data-to='laine'] { background: var(--h-zig) 0 0 / 32px 18px, var(--laine); }
.floors b { transition: translate .45s var(--ease); }
@media (hover: hover) { .floors a:hover b { translate: -.8rem 0; } }
.floors a:focus-visible b { translate: -.8rem 0; }
.pente { background: linear-gradient(currentColor 0 0) left bottom / 100% 1px no-repeat, linear-gradient(currentColor 0 0) left bottom / 0% 3px no-repeat; transition: translate .5s var(--ease), background-size .55s var(--ease); }
@media (hover: hover) { .pente:hover { color: inherit; translate: 7px 3.9px; background-size: 100% 1px, 100% 3px; } }
.pente:focus-visible { background-size: 100% 1px, 100% 3px; }
.fond__big { margin-left: calc(-1 * var(--gutter) - .148em); }
.index a { grid-template-columns: 7.5rem 8fr 3fr; align-items: center; }
.index__t { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; grid-row: auto; transition: filter .4s; }
@media (hover: hover) { .index a:hover .index__t { filter: none; } }
.index a:focus-visible .index__t, .is-lit { filter: none !important; }
.outil__go { font-family: var(--f-mono); font-size: var(--t-xs); margin-top: .5rem; transition: translate .4s var(--ease); }
@media (hover: hover) { .outil:hover .outil__go { translate: 0 4px; } }
.outil:focus-visible .outil__go { translate: 0 4px; }
@media (hover: hover) { .paroi__keys button:not([aria-pressed='true']):hover::before { clip-path: inset(0 0 calc(100% - 3px) 0); } }
@media (min-width: 768px) {
  .lh .mark, .art-h .mark, .nf .mark { position: static; width: auto; justify-content: flex-start; margin-bottom: .55rem; }
  .fond .mark { display: none; }
}
@media (max-width: 767px) {
  .fond__big { margin-left: calc(-.9rem - .148em); }
  .index a { grid-template-columns: 26% 1fr; align-items: start; }
  .index__t { aspect-ratio: 1; grid-row: 1 / 3; }
  .prose td { white-space: nowrap; }
  .prose tbody th { min-width: 9.5em; }
}

/* Dernière passe /jury */
.slab[data-label]::after { content: attr(data-label); position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; font-family: var(--f-mono); font-size: .72rem; font-weight: 500; padding: .18rem .5rem; background: #fff; color: #101114; border: 1px solid #101114; }
.liens li { transition: translate .45s var(--ease); }
@media (hover: hover) { .liens li:hover { translate: .55rem 0; } }
.liens li:focus-within { translate: .55rem 0; }
@media (max-width: 767px) {
  .h1__l--1 { font-stretch: 100%; }
  .table { overflow-x: visible; }
  .prose td:last-child { white-space: normal; }
  .prose tbody th { min-width: 7.5em; }
  .nf .in { min-height: 62svh; }
  .slab[data-label]::after { font-size: .625rem; padding: .1rem .35rem; }
}

/* ===== Gabarits : même coupe, une pièce par type de page ===== */
.curtain__panel[data-to='beton'] { background: var(--h-beton) 0 0 / 60px 44px, #9B9A92; }
.curtain__panel[data-to='bois'] { background: var(--h-bois) 0 0 / 70px 40px, #D3C3A4; }
.curtain__panel[data-to='terre'] { background: var(--h-terre) 0 0 / 40px, #1F150F; }
.curtain__panel[data-to='carreau'] { background: var(--h-carreau) 0 0 / 36px, #fff; }
[hidden] { display: none !important; }

.ph__in { padding-top: clamp(6.5rem, 10vw, 10rem); padding-bottom: clamp(2.5rem, 5vw, 5rem); }
.ph .mark { position: static; width: auto; justify-content: flex-start; margin-bottom: .55rem; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .5rem; font-family: var(--f-mono); font-size: var(--t-xs); margin-bottom: 1.1rem; }
.crumbs li + li::before { content: '/'; margin-right: .5rem; opacity: .6; }
.crumbs a { display: inline-flex; min-height: 24px; align-items: center; }
@media (hover: hover) { .crumbs a:hover { text-decoration: underline; text-underline-offset: .25em; } }
.ph__t { font-family: var(--f-display); font-weight: 850; line-height: .9; letter-spacing: -.015em; text-transform: uppercase; }
.ph__t--xl { font-stretch: 78%; font-size: clamp(3.4rem, 1rem + 11.5vw, 13.5rem); max-width: 13ch; }
.ph__t--l { font-stretch: 82%; font-size: clamp(2.5rem, 1rem + 5.6vw, 6.8rem); max-width: 19ch; }
.ph__d { font-family: var(--f-display); font-weight: 600; font-stretch: 92%; font-size: var(--t-m); line-height: 1.24; max-width: 40em; margin-top: 1.6rem; }
.ph__m { font-family: var(--f-mono); font-size: var(--t-xs); margin-top: 1.1rem; }
.sub { font-family: var(--f-display); font-weight: 800; font-stretch: 85%; font-size: var(--t-l); line-height: 1; letter-spacing: -.01em; text-transform: uppercase; margin-bottom: 1.2rem; }
.cap-s { font-size: var(--t-s); color: var(--muted); max-width: 62ch; margin: .7rem 0; }
.in > section + section, .in > .rel, .in > .secs + section { margin-top: clamp(3rem, 6vw, 6rem); }

/* Filtres de l'archive */
.filt { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.filt button { display: inline-flex; gap: .6rem; align-items: baseline; min-height: 44px; padding: .5rem .9rem; border: 2px solid currentColor; font-weight: 600; font-size: .9rem; position: relative; isolation: isolate; overflow: clip; transition: color .3s; }
.filt b { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; }
.filt button::before { content: ''; position: absolute; inset: 0; background: var(--encre); z-index: -1; clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease); }
.filt button[aria-pressed='true'] { color: var(--papier); }
.filt button[aria-pressed='true']::before { clip-path: inset(0); }
@media (hover: hover) { .filt button:not([aria-pressed='true']):hover::before { clip-path: inset(0 0 calc(100% - 4px) 0); } }

/* Archive : niveau collant à gauche, lignes à droite */
.grp__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.grp__h { grid-column: 1 / 5; position: sticky; top: 5.5rem; }
.grp__h .mark { position: static; width: auto; justify-content: flex-start; margin-bottom: .55rem; }
.grp__h h2 { font-family: var(--f-display); font-weight: 850; font-stretch: 78%; font-size: var(--t-xl); line-height: .92; text-transform: uppercase; letter-spacing: -.01em; }
.grp__c { font-family: var(--f-mono); font-size: var(--t-xs); margin-top: .9rem; }
.rows { grid-column: 5 / -1; list-style: none; padding: 0; border-top: 2px solid currentColor; }
.rows li { border-bottom: 1px solid color-mix(in srgb, currentColor 28%, transparent); }
.row { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: 1.1rem; align-items: center; padding-block: .85rem; transition: padding-left .45s var(--ease); }
.row__t { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(1) contrast(1.06); transition: filter .4s; }
span.row__t { background: var(--h-carreau) 0 0 / 18px; opacity: .35; }
.row h3 { font-family: var(--f-display); font-weight: 680; font-stretch: 90%; font-size: clamp(1.06rem, 1rem + .4vw, 1.35rem); line-height: 1.14; }
.row__m { font-family: var(--f-mono); font-size: .66rem; white-space: nowrap; }
@media (hover: hover) { .row:hover { padding-left: .8rem; } .row:hover .row__t { filter: none; } }
.row:focus-visible { padding-left: .8rem; } .row:focus-visible .row__t { filter: none; }

/* Comparatifs : l'établi */
.banc { list-style: none; }
.banc__r { position: relative; isolation: isolate; display: grid; grid-template-columns: 5rem 7fr 4fr auto; gap: var(--gutter); align-items: start; padding-block: clamp(1.3rem, 2.4vw, 2.3rem); border-bottom: 1px solid var(--c-line); transition: color .35s; }
.banc li:first-child .banc__r { border-top: 2px solid var(--encre); }
.banc__r::before { content: ''; position: absolute; inset: 0 calc(-1 * var(--gutter)); background: var(--encre); z-index: -1; clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); }
.banc__n { font-family: var(--f-mono); font-size: .8rem; padding-top: .45em; }
.banc__r h2 { font-family: var(--f-display); font-weight: 760; font-stretch: 86%; font-size: var(--t-l); line-height: 1.04; }
.banc__r p { font-size: .95rem; color: var(--muted); transition: color .35s; }
.banc__p { font-family: var(--f-mono); font-size: .68rem; white-space: nowrap; padding-top: .55em; }
@media (hover: hover) { .banc__r:hover { color: var(--papier); } .banc__r:hover p { color: #CFCDC6; } .banc__r:hover::before { clip-path: inset(0 0 0 0); } }
.banc__r:focus-visible { color: var(--papier); } .banc__r:focus-visible p { color: #CFCDC6; } .banc__r:focus-visible::before { clip-path: inset(0 0 0 0); }

.bref { background: var(--laine); padding: clamp(1.2rem, 2.4vw, 2.2rem); margin-bottom: clamp(3rem, 5vw, 5rem); }
.bref ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem var(--gutter); font-weight: 560; line-height: 1.32; }
.bref li { border-top: 2px solid var(--encre); padding-top: .6rem; }
.sec { display: grid; grid-template-columns: 5rem minmax(0, 42rem); gap: var(--gutter); padding-block: 1.8rem; border-top: 1px solid var(--c-line); }
.sec__n { font-family: var(--f-mono); font-size: .8rem; padding-top: .35em; }
.sec h2 { font-family: var(--f-display); font-weight: 780; font-stretch: 88%; font-size: var(--t-m); line-height: 1.12; margin-bottom: .7rem; }
.cmp { width: 100%; border-collapse: collapse; font-size: var(--t-s); line-height: 1.34; }
.cmp thead th { position: sticky; top: 0; background: var(--encre); color: var(--papier); padding: .9rem .9rem; text-align: left; font-weight: 720; vertical-align: top; z-index: 2; }
.cmp tbody th { text-align: left; font-weight: 700; padding: .85rem .9rem .85rem 0; width: 20%; vertical-align: top; }
.cmp td { padding: .85rem .9rem; vertical-align: top; border-left: 1px solid var(--c-line); }
.cmp tbody tr { border-bottom: 1px solid var(--c-line); transition: background-color .3s; }
@media (hover: hover) { .cmp tbody tr:hover { background: #fff; } }
.cas dl > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: 1.2rem; border-top: 1px solid var(--c-line); }
.cas dt { grid-column: 1 / 7; font-family: var(--f-display); font-weight: 700; font-stretch: 90%; font-size: var(--t-m); line-height: 1.14; }
.cas dd { grid-column: 7 / -1; margin: 0; }

/* Étiquettes et rayonnages */
.rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0; border-bottom: 6px solid var(--encre); }
.rack--s { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.eti { position: relative; isolation: isolate; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: .15rem; align-content: start; padding: 1rem 1rem 1.15rem; min-height: 15.5rem; background: #fff; box-shadow: inset 0 0 0 1px var(--c-line); transition: color .35s; }
.eti::before { content: ''; position: absolute; inset: 0; background: var(--encre); z-index: -1; clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); }
.eti__p { color: inherit; margin-bottom: .8rem; }
.eti__p svg { width: 3.4rem; height: 3.4rem; }
.eti__m { font-family: var(--f-mono); font-size: .68rem; }
.eti__n { font-family: var(--f-display); font-weight: 780; font-stretch: 88%; font-size: 1.32rem; line-height: 1.08; }
.eti__t { font-size: .9rem; line-height: 1.28; margin-top: .25rem; }
.eti__s { font-family: var(--f-mono); font-size: .66rem; margin-top: .7rem; }
@media (hover: hover) { .eti:hover { color: var(--papier); } .eti:hover::before { clip-path: inset(0); } }
.eti:focus-visible { color: var(--papier); } .eti:focus-visible::before { clip-path: inset(0); }
.rayons ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; margin-top: 1.8rem; }
.rayons a { display: inline-flex; gap: .45rem; align-items: baseline; min-height: 28px; font-weight: 600; background: linear-gradient(currentColor 0 0) left bottom / 0% 2px no-repeat; transition: background-size .4s var(--ease); }
.rayons b { font-family: var(--f-mono); font-size: .68rem; font-weight: 500; }
@media (hover: hover) { .rayons a:hover { background-size: 100% 2px; } }
.rayons a:focus-visible, .rayons a[aria-current='page'] { background-size: 100% 2px; }
.shelf + .shelf { margin-top: clamp(3rem, 6vw, 6rem); }
.shelf__h { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-bottom: 1.1rem; align-items: baseline; }
.shelf__h h2 { grid-column: 1 / 7; font-family: var(--f-display); font-weight: 800; font-stretch: 85%; font-size: var(--t-l); line-height: 1; text-transform: uppercase; }
.shelf__h p { grid-column: 7 / -1; font-size: .95rem; color: var(--muted); }

/* Fiche produit */
.fp__in { padding-top: clamp(6.5rem, 9vw, 9rem); }
.fp .mark { position: static; width: auto; justify-content: flex-start; margin-bottom: .55rem; }
.fp__g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.fp__v { grid-column: 1 / 7; aspect-ratio: 1; display: grid; place-items: center; background: var(--h-carreau) 0 0 / 36px, #fff; box-shadow: inset 0 0 0 2px var(--encre); }
.fp__v svg { width: 56%; height: 56%; background: #fff; stroke-width: .7; }
.fp__i { grid-column: 7 / -1; }
.fp__b { font-family: var(--f-mono); font-size: .8rem; }
.fp__i h1 { font-family: var(--f-display); font-weight: 850; font-stretch: 80%; font-size: clamp(2.6rem, 1rem + 5.2vw, 6rem); line-height: .94; text-transform: uppercase; margin-block: .3rem .7rem; }
.fp__t { font-size: var(--t-m); font-weight: 600; line-height: 1.2; }
.fp__r { padding-left: 1.1em; margin-top: 1rem; }
.fp__a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-block: 2px solid var(--encre); padding-block: .9rem; margin-top: 1.5rem; }
.fp__a p { display: grid; } .fp__a strong { font-size: 1.15rem; } .fp__a span { font-family: var(--f-mono); font-size: .7rem; }
.fp__a button { min-height: 3.25rem; padding-inline: 1.8rem; background: #E6E4DE; color: #55564F; font-weight: 650; cursor: not-allowed; }
.fp__d { font-size: var(--t-s); margin-top: .8rem; max-width: 46ch; }
.fp__ref { font-family: var(--f-mono); font-size: .7rem; margin-top: .7rem; }
.fp__b2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 4rem) clamp(2rem, 5vw, 6rem); align-items: start; }
.fp__s > * + * { margin-top: .75rem; } .fp__s ul { padding-left: 1.1em; }
.fp__s--w { grid-column: 1 / -1; }
.ft { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.ft th { text-align: left; font-weight: 700; padding: .55rem .9rem .55rem 0; width: 36%; }
.ft td { padding: .55rem 0; } .ft tr { border-bottom: 1px solid var(--c-line); }
.tape-l { list-style: none; padding: 0 !important; display: grid; gap: .7rem; }
.tape-l li, .tape { background: var(--laine); padding: .8rem 1rem; font-weight: 520; line-height: 1.36; }

/* Pas à pas : l'escalier */
.stair { list-style: none; display: grid; gap: 0; }
.stair li { margin-left: calc(var(--i) * clamp(0rem, 4.4vw, 5rem)); }
.marche { position: relative; isolation: isolate; display: grid; grid-template-columns: clamp(5rem, 11vw, 11rem) 1fr; gap: var(--gutter); padding: 1.3rem 1rem 1.3rem 0; border-bottom: 8px solid var(--encre); border-left: 2px solid var(--encre); padding-left: 1.2rem; transition: color .35s; }
.marche::before { content: ''; position: absolute; inset: 0; background: #D3C3A4; z-index: -1; clip-path: inset(100% 0 0 0); transition: clip-path .45s var(--ease); }
.marche__n { font-family: var(--f-display); font-weight: 850; font-stretch: 80%; font-size: clamp(3.4rem, 1rem + 6vw, 7rem); line-height: .86; display: grid; }
.marche__n small { font-family: var(--f-mono); font-size: .68rem; font-weight: 500; }
.marche__k { font-family: var(--f-mono); font-size: .7rem; }
.marche h2 { font-family: var(--f-display); font-weight: 760; font-stretch: 86%; font-size: var(--t-l); line-height: 1.04; margin-block: .3rem; }
.marche__d { font-size: .95rem; color: var(--muted); }
@media (hover: hover) { .marche:hover::before { clip-path: inset(0); } }
.marche:focus-visible::before { clip-path: inset(0); }

.fiche { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin-top: 1.6rem; }
.fiche dt { font-family: var(--f-mono); font-size: .68rem; }
.fiche dd { margin: 0; font-weight: 700; }
.tuto { position: relative; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.tuto__mat { grid-column: 2; grid-row: 1; background: #fff; position: relative; z-index: 1; }
.tuto__s { position: sticky; top: 5rem; padding: clamp(1.5rem, 3vw, 3rem) var(--gutter); }
.tuto__s ul { padding-left: 1.1em; display: grid; gap: .55rem; font-size: .96rem; line-height: 1.34; }
.steps { grid-column: 1; grid-row: 1; list-style: none; padding: 0; }
.step__in { display: grid; grid-template-columns: clamp(5rem, 11vw, 11rem) minmax(0, 1fr); gap: var(--gutter); padding: clamp(2.2rem, 4vw, 4rem) var(--gutter) clamp(2.2rem, 4vw, 4rem) calc(var(--axis) + var(--gutter)); border-bottom: 8px solid var(--encre); }
.step__n { font-family: var(--f-display); font-weight: 850; font-stretch: 78%; font-size: clamp(5rem, 2rem + 10vw, 13rem); line-height: .8; }
.step__h { font-family: var(--f-mono); font-size: .7rem; }
.step__c > * + * { margin-top: .8rem; }
.step h2 { font-family: var(--f-display); font-weight: 800; font-stretch: 84%; font-size: var(--t-l); line-height: 1.02; text-transform: uppercase; }
.check h2 { font-family: var(--f-display); font-weight: 850; font-stretch: 78%; font-size: var(--t-xl); line-height: .94; text-transform: uppercase; margin-bottom: 1rem; }
.check p { font-size: var(--t-m); font-weight: 560; line-height: 1.26; max-width: 40em; }

/* Calculateur */
.calc__in { padding-top: clamp(6.5rem, 9vw, 9rem); }
.calc .mark { position: static; width: auto; justify-content: flex-start; margin-bottom: .55rem; }
.calc__g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.6rem, 3vw, 3rem) var(--gutter); margin-top: 2rem; align-items: start; }
.calc__fig { grid-column: 1 / 9; grid-row: 1 / 3; margin: 0; }
.calc__fig svg { width: 100%; height: auto; display: block; overflow: visible; }
.calc__fig figcaption { font-size: var(--t-s); color: var(--muted); margin-top: .8rem; max-width: 62ch; }
.calc__tx { font-family: var(--f-mono); font-size: 15px; fill: #F4F4F0; }
.calc__tx--s { font-size: 12px; }
.calc__f { grid-column: 9 / -1; display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.field input[type='number'] { width: 100%; min-height: 3rem; padding: .3rem .7rem; background: transparent; border: 2px solid var(--papier); color: var(--papier); font-family: var(--f-mono); font-size: 1.1rem; border-radius: 0; }
.field input[type='range'] { width: 100%; margin-top: .55rem; accent-color: var(--laine); min-height: 24px; }
.calc__e { color: var(--laine); font-weight: 600; min-height: 1.4em; font-size: .9rem; }
.calc__r { grid-column: 9 / -1; display: grid; gap: .9rem; margin: 0; border-top: 2px solid var(--papier); padding-top: 1rem; }
.calc__r dt { font-size: .86rem; } .calc__r dd { margin: 0; font-family: var(--f-mono); font-weight: 600; font-size: 1.5rem; }
.calc__big dd { font-family: var(--f-display); font-weight: 850; font-stretch: 80%; font-size: clamp(4rem, 1.4rem + 6vw, 7.5rem); line-height: .94; color: var(--laine); }
.calc__t { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 4rem) clamp(2rem, 5vw, 6rem); align-items: start; }
.calc__t .rel { grid-column: 1 / -1; margin: 0; }
.sec2 { margin: 0 !important; }

/* Pages de texte */
.doc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.cart { grid-column: 9 / -1; grid-row: 1; position: sticky; top: 5.5rem; border: 2px solid var(--encre); background: #fff; }
.cart dl { margin: 0; }
.cart dl > div { display: grid; grid-template-columns: 6rem 1fr; border-bottom: 1px solid var(--c-line); padding: .55rem .7rem; font-size: .84rem; gap: .5rem; }
.cart dl > div:last-child { border: 0; }
.cart dt { font-family: var(--f-mono); font-size: .68rem; padding-top: .15em; } .cart dd { margin: 0; font-weight: 600; }
.doc__p { grid-column: 1 / 8; grid-row: 1; }
.ap { display: grid; gap: 1.4rem; }
.ap__l { font-family: var(--f-display); font-weight: 680; font-stretch: 90%; font-size: var(--t-l); line-height: 1.1; max-width: 26em; }
.ap__not { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.ap__not h2 { grid-column: 1 / 7; font-family: var(--f-display); font-weight: 850; font-stretch: 78%; font-size: var(--t-xl); line-height: .94; text-transform: uppercase; }
.ap__not > div { grid-column: 7 / -1; display: grid; gap: 1rem; font-size: var(--t-m); font-weight: 560; line-height: 1.26; }
.ap__g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 4rem) clamp(2rem, 5vw, 6rem); align-items: start; padding-bottom: 2rem; }
.meth { padding: 0; list-style: none; counter-reset: m; }
.meth li { counter-increment: m; display: grid; gap: .1rem; padding-block: .85rem; border-top: 1px solid var(--c-line); line-height: 1.36; }
.meth b { font-family: var(--f-display); font-weight: 780; font-stretch: 88%; font-size: var(--t-m); line-height: 1.14; }
.ap__c { padding-top: 0; display: flex; flex-wrap: wrap; gap: 1.4rem 3rem; align-items: center; justify-content: space-between; }
.ap__c p { font-size: var(--t-m); font-weight: 600; max-width: 34em; line-height: 1.24; }
.form { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.3rem var(--gutter); max-width: 60rem; }
.f--a { grid-column: 1 / 7; } .f--b { grid-column: 7 / -1; } .f--w { grid-column: 1 / -1; }
.f label { display: block; font-weight: 650; margin-bottom: .3rem; }
.f input, .f textarea { width: 100%; min-height: 3.25rem; padding: .55rem .8rem; background: #fff; border: 2px solid var(--encre); border-radius: 0; font: inherit; }
.form__e { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; } .form__e p { font-weight: 600; }
.masse { columns: 3 18rem; column-gap: clamp(2rem, 4vw, 4rem); }
.masse section { break-inside: avoid; margin: 0 0 2.6rem !important; }
.masse h2 { font-family: var(--f-display); font-weight: 800; font-stretch: 85%; font-size: var(--t-l); line-height: 1; text-transform: uppercase; border-bottom: 2px solid var(--encre); padding-bottom: .5rem; }
.masse h2 a { background: none; }
.masse .liens { margin-top: .9rem; gap: .35rem; font-size: .96rem; font-weight: 500; }
.rel__g { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem var(--gutter); }
.rel h3 { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; margin-bottom: .6rem; }
.rel .liens { margin: 0; }
.src .liens { font-weight: 500; }

@media (max-width: 1099px) {
  .tuto { display: block; }
  .tuto__s { position: static; }
  .calc__fig, .calc__f, .calc__r { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 767px) {
  .ph__in { padding-top: 5.5rem; }
  .ph__t--xl { font-size: 15vw; } .ph__t--l { font-size: 11vw; }
  .grp__in, .doc, .ap__not, .fp__g, .calc__g, .form, .shelf__h { display: block; }
  .grp__h { position: static; margin-bottom: 1.2rem; }
  .row { grid-template-columns: 4.6rem 1fr; } .row__m { grid-column: 2; }
  .banc__r { grid-template-columns: 2.6rem 1fr; } .banc__r p, .banc__p { grid-column: 2; }
  .bref ul { grid-template-columns: 1fr; }
  .sec { grid-template-columns: 2.6rem minmax(0, 1fr); gap: .4rem; }
  .cmp, .cmp tbody, .cmp tr, .cmp td, .cmp th { display: block; width: auto; }
  .cmp thead { display: none; }
  .cmp tbody tr { padding-block: .8rem; }
  .cmp tbody th { padding: 0 0 .4rem; font-size: 1rem; }
  .cmp td { border: 0; padding: .3rem 0; }
  .cmp td::before { content: attr(data-h); display: block; font-family: var(--f-mono); font-size: .66rem; }
  .cas dl > div { display: block; } .cas dd { margin-top: .4rem; }
  .fp__v { margin-bottom: 1.5rem; aspect-ratio: 16 / 9; }
  .fp__v svg { width: 34%; height: 80%; }
  .fp__b2, .calc__t, .ap__g { grid-template-columns: minmax(0, 1fr); }
  .stair li { margin-left: 0; }
  .step__in { grid-template-columns: 3.6rem minmax(0, 1fr); gap: .8rem; padding: 2rem var(--gutter) 2rem calc(var(--axis) + .9rem); }
  .step__n { font-size: 3.8rem; }
  .marche { grid-template-columns: 3.6rem 1fr; gap: .8rem; }
  .marche__n { font-size: 3.2rem; }
  .cart { position: static; margin-bottom: 1.6rem; }
  .ap__not h2 { margin-bottom: 1rem; }
  .form { display: grid; grid-template-columns: minmax(0, 1fr); }
  .f--a, .f--b, .f--w { grid-column: 1; }
  .calc__fig { margin-bottom: 1.4rem; }
  .calc__f { margin-bottom: 1.4rem; }
  .calc__tx { font-size: 22px; } .calc__tx--s { font-size: 17px; }
  .masse { columns: 1; }
}

/* Relecture des captures */
.calc__stage { position: relative; grid-column: 1 / 9; grid-row: 1 / 3; }
.calc__fig { grid-column: auto; grid-row: auto; }
.calc__r { position: absolute; left: 8.5%; top: 0; width: 56%; grid-column: auto; border: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1.4rem; }
.calc__big { grid-column: 1 / -1; }
.calc__tx--d { fill: #101114; }
.calc__f { grid-row: 1 / 3; }
.calc__g { margin-top: 1.2rem; }
.filt button[aria-pressed='true'] b { transition: translate .4s var(--ease); }
@media (hover: hover) { .filt button[aria-pressed='true']:hover b { translate: 0 3px; } }
.rel .txt, .liens .txt { padding-block: .28em; }
.ap__not h2 { font-size: clamp(2.3rem, 1rem + 3.7vw, 4.7rem); }
.grp__h h2 { font-size: clamp(2.2rem, 1rem + 3.3vw, 4.3rem); }
@media (max-width: 1099px) { .calc__stage { grid-column: 1 / -1; grid-row: auto; } .calc__f { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 767px) {
  .calc__r { position: static; width: auto; margin-bottom: 1rem; }
  .calc__stage { display: flex; flex-direction: column-reverse; }
}

/* Passe critique, tous gabarits */
@media (min-width: 768px) { .read { background: #fff; color: #101114; text-shadow: none; padding: .2rem .45rem; border: 1px solid #101114; } }
.rack { display: flex; flex-wrap: wrap; }
.eti { flex: 1 1 15rem; grid-template-rows: auto auto auto 1fr; min-height: 13.5rem; }
.eti__p svg { width: 4.4rem; height: 4.4rem; }
.eti:only-child { grid-template-columns: 6rem 1fr; grid-template-rows: auto auto 1fr; column-gap: 1.2rem; min-height: 0; }
.eti:only-child .eti__p { grid-row: 1 / 4; margin: 0; }
.fp__v { background: #fff; position: relative; }
.fp__v::before { content: ''; position: absolute; inset: 1.1rem; background: linear-gradient(var(--encre) 0 0) left top / 22px 2px no-repeat, linear-gradient(var(--encre) 0 0) left top / 2px 22px no-repeat, linear-gradient(var(--encre) 0 0) right bottom / 22px 2px no-repeat, linear-gradient(var(--encre) 0 0) right bottom / 2px 22px no-repeat; }
.fp__v svg { background: none; stroke-width: 1; width: 62%; height: 62%; }
.fp__g-l { display: grid; text-align: right; max-width: 22ch; font-weight: 620; font-size: .94rem; line-height: 1.18; background: linear-gradient(currentColor 0 0) left bottom / 0% 2px no-repeat; transition: background-size .4s var(--ease); }
.fp__g-l small { font-family: var(--f-mono); font-size: .66rem; font-weight: 500; }
@media (hover: hover) { .fp__g-l:hover { background-size: 100% 2px; } }
.fp__g-l:focus-visible { background-size: 100% 2px; }
.tape-l li { background: none; padding: .7rem 0; border-top: 2px solid var(--encre); }
.sec2 .sub, .fp__s .sub { font-size: var(--t-m); }
.tuto { grid-template-columns: minmax(0, 1fr) 20rem; }
.crumbs a { background: linear-gradient(currentColor 0 0) left bottom / 0% 1px no-repeat; transition: background-size .4s var(--ease); }
@media (hover: hover) { .crumbs a:hover { text-decoration: none; background-size: 100% 1px; } }
.cmp thead a { display: inline-block; padding-block: .32rem; }
.outil { grid-template-rows: auto 1fr auto; }
.meth li span { display: block; }
@media (max-width: 767px) {
  .ph__t--xl { font-size: 13vw; }
  .calc__g { display: flex; flex-direction: column; gap: 1.2rem; }
  .calc__stage { display: contents; }
  .calc__r { order: 1; margin: 0; } .calc__f { order: 2; margin: 0; } .calc__fig { order: 3; margin: 0; }
  .fp__a { flex-wrap: wrap; } .fp__g-l { text-align: left; max-width: none; }
}
@media (max-width: 767px) { .calc__g { align-items: stretch; } }

.iso{
  --anatomy-page:#0b0b0b;--anatomy-card:#131313;--anatomy-text:#a3a3a3;--anatomy-strong:#e6e6e6;--anatomy-muted:#6e6e6e;
  --anatomy-paper:#131313;--anatomy-face:#1b1b1b;--anatomy-top:#1c1c1c;
  --anatomy-shade-0:#0f0f0f;--anatomy-shade-1:#121212;--anatomy-shade-2:#151515;--anatomy-shade-3:#181818;
  --anatomy-lit-top:#262626;--anatomy-lit-shade:#1d1d1d;
  --anatomy-hi:#d4d4d4;--anatomy-mid:#6a6a6a;--anatomy-lo:#3e3e3e;--anatomy-faint:#2a2a2a;--anatomy-lit:#ffffff;
  --anatomy-halo:#050505;--anatomy-halo-opacity:.9;--anatomy-dot:#e6e6e6;
  --anatomy-red:#ff6b6b;--anatomy-green:#6be0a0;--anatomy-blue:#6b9bff;
  --anatomy-weight:.6px;--anatomy-ease:cubic-bezier(.32,.72,0,1);
  --anatomy-mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --anatomy-lift:inset 0 1px 0 0 #ffffff0a,inset 0 0 0 1px #ffffff06,0 0 0 1px #00000026,0 1px 1px -.5px #00000014,0 3px 3px -1.5px #00000014,0 6px 6px -3px #00000014,0 12px 12px -6px #00000014;
}
.iso[data-theme="light"]{
  --anatomy-page:#f2f2ef;--anatomy-card:#fbfbfa;--anatomy-text:#57575a;--anatomy-strong:#18181a;--anatomy-muted:#8c8c90;
  --anatomy-paper:#fbfbfa;--anatomy-face:#ffffff;--anatomy-top:#ffffff;
  --anatomy-shade-0:#dcdcd9;--anatomy-shade-1:#e5e5e2;--anatomy-shade-2:#ededea;--anatomy-shade-3:#f4f4f1;
  --anatomy-lit-top:#ffffff;--anatomy-lit-shade:#eeeeeb;
  --anatomy-hi:#26262a;--anatomy-mid:#8a8a8f;--anatomy-lo:#b4b4b8;--anatomy-faint:#d4d4d6;--anatomy-lit:#000000;
  --anatomy-halo:#8a8a80;--anatomy-halo-opacity:.32;--anatomy-dot:#3a3a3e;
  --anatomy-red:#e5484d;--anatomy-green:#30a46c;--anatomy-blue:#3e63dd;
  --anatomy-lift:inset 0 1px 0 0 #ffffff,0 0 0 1px #0000000f,0 1px 1px -.5px #0000000a,0 3px 3px -1.5px #0000000a,0 6px 6px -3px #0000000a,0 12px 12px -6px #0000000a;
}
.iso-svg{display:block;width:100%;height:auto;overflow:visible}
.iso-svg path,.iso-svg circle{vector-effect:non-scaling-stroke}
.iso-fill{fill:var(--anatomy-paper);stroke:none}
.iso-solid[data-lit]>.iso-fill{fill:var(--anatomy-face)}
.iso-shade,.iso-top{stroke:none}
.iso-shade[data-shade="0"]{fill:var(--anatomy-shade-0)}
.iso-shade[data-shade="1"]{fill:var(--anatomy-shade-1)}
.iso-shade[data-shade="2"]{fill:var(--anatomy-shade-2)}
.iso-shade[data-shade="3"]{fill:var(--anatomy-shade-3)}
.iso-top{fill:var(--anatomy-top)}
.iso-solid[data-lit]>.iso-top{fill:var(--anatomy-lit-top)}
.iso-solid[data-lit]>.iso-shade{fill:var(--anatomy-lit-shade)}
.iso-solid[data-seamless]>.iso-shade,.iso-solid[data-seamless]>.iso-top{stroke-width:.4;stroke-linejoin:round}
.iso-solid[data-seamless]>.iso-shade[data-shade="0"]{stroke:var(--anatomy-shade-0)}
.iso-solid[data-seamless]>.iso-shade[data-shade="1"]{stroke:var(--anatomy-shade-1)}
.iso-solid[data-seamless]>.iso-shade[data-shade="2"]{stroke:var(--anatomy-shade-2)}
.iso-solid[data-seamless]>.iso-shade[data-shade="3"]{stroke:var(--anatomy-shade-3)}
.iso-solid[data-seamless]>.iso-top{stroke:var(--anatomy-top)}
.iso-solid[data-seamless][data-lit]>.iso-top{stroke:var(--anatomy-lit-top)}
.iso-solid[data-seamless][data-lit]>.iso-shade{stroke:var(--anatomy-lit-shade)}
.iso-solid[data-lit]>.iso-edge{stroke:var(--anatomy-lit)}
.iso-halo{fill:var(--anatomy-halo);stroke:none;filter:blur(9px);opacity:var(--anatomy-halo-opacity);transform:translateY(3px)}
.iso-line{fill:none;stroke:var(--anatomy-lo);stroke-width:var(--anatomy-weight);stroke-linecap:round;stroke-linejoin:round}
.iso-line[data-tone="hi"]{stroke:var(--anatomy-hi)}
.iso-line[data-tone="mid"]{stroke:var(--anatomy-mid)}
.iso-line[data-tone="lo"]{stroke:var(--anatomy-lo)}
.iso-line[data-tone="faint"]{stroke:var(--anatomy-faint)}
.iso-line[data-tone="lit"]{stroke:var(--anatomy-lit)}
.iso-line[data-tone="red"]{stroke:var(--anatomy-red)}
.iso-line[data-tone="green"]{stroke:var(--anatomy-green)}
.iso-line[data-tone="blue"]{stroke:var(--anatomy-blue)}
.iso-line[data-dotted]{stroke-dasharray:.01 3.5;stroke-width:1}
.iso-line[data-dashed]{stroke-dasharray:3 3}
.iso-line[data-flow]{stroke-dasharray:2 6}
.iso-wire-end{fill:var(--anatomy-paper);stroke:var(--anatomy-lo);stroke-width:var(--anatomy-weight)}
.iso-wire[data-tone="hi"] .iso-wire-end{stroke:var(--anatomy-hi)}
.iso-wire[data-tone="mid"] .iso-wire-end{stroke:var(--anatomy-mid)}
.iso-wire[data-tone="faint"] .iso-wire-end{stroke:var(--anatomy-faint)}
.iso-wire[data-tone="lit"] .iso-wire-end{stroke:var(--anatomy-lit)}
.iso-dots circle{fill:var(--anatomy-dot);stroke:none;opacity:.32}
.iso-dots[data-tone="hi"] circle{opacity:.85}
.iso-dots[data-tone="mid"] circle{opacity:.45}
.iso-dots[data-tone="lo"] circle{opacity:.22}
.iso-dots[data-tone="faint"] circle{opacity:.12}
.iso-face-text{fill:var(--anatomy-mid);font-family:var(--anatomy-mono);letter-spacing:.04em}
.iso-face-text[data-tone="hi"]{fill:var(--anatomy-hi)}
.iso-face-text[data-tone="lo"]{fill:var(--anatomy-lo)}
.iso-face-text[data-tone="faint"]{fill:var(--anatomy-faint)}
.tb-body{fill:var(--anatomy-shade-2);stroke:none}
.tb-shine{fill:var(--anatomy-top);stroke:none}
.tb-shade{fill:var(--anatomy-shade-0);stroke:none}
.tb-ring{fill:none;stroke:var(--anatomy-lo);stroke-width:.45;stroke-linecap:butt;stroke-linejoin:round}
.tb-ring[data-tone="mid"]{stroke:var(--anatomy-mid)}
.tb-ring[data-tone="faint"]{stroke:var(--anatomy-faint)}
.tb-ring[data-tone="hi"]{stroke:var(--anatomy-hi)}
@keyframes iso-flow{to{stroke-dashoffset:-32}}
@keyframes iso-pulse{0%,100%{opacity:.18}12%{opacity:1}40%{opacity:.18}}
.iso-line[data-flow]{animation:iso-flow 1600ms linear infinite}
.iso-dots circle[data-pulse]{animation:iso-pulse 1600ms steps(1,end) infinite;animation-delay:var(--pulse-at,0ms)}
.iso-figure{margin:32px 0 36px}
.iso-plate{position:relative;padding:52px 24px;border-radius:0;background:var(--anatomy-card);box-shadow:0 0 0 1px var(--anatomy-mid);--anatomy-paper:var(--anatomy-card)}
.iso-plate-corners{position:absolute;inset:18px 20px;pointer-events:none}
.iso-plate-corner{position:absolute;color:var(--anatomy-muted);font-family:var(--anatomy-mono);font-size:10.5px;line-height:1;letter-spacing:.04em;white-space:nowrap}
.iso-plate-corner[data-corner="fig"]{top:0;left:0;color:var(--anatomy-text)}
.iso-plate-corner[data-corner="title"]{top:0;right:0;text-transform:uppercase;letter-spacing:.1em}
.iso-plate-corner[data-corner="hint"]{bottom:0;left:0;text-transform:uppercase;letter-spacing:.1em}
.iso-plate-corner[data-corner="readout"]{right:0;bottom:0;color:var(--anatomy-text);font-variant-numeric:tabular-nums}
.iso-plate .iso-svg{margin:0 auto}
.iso-legend{display:grid;gap:8px;margin-top:12px;color:var(--anatomy-muted);font-size:13px;line-height:1.55}
.iso-keys{display:flex;flex-wrap:wrap;gap:6px 18px}
.iso-key{display:inline-flex;align-items:center;gap:7px}
.iso-swatch{width:16px;height:10px;flex:none;overflow:visible}
.iso-swatch path{fill:none;stroke:var(--anatomy-hi);stroke-width:1;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
.iso-swatch[data-mark="raised"] path,.iso-swatch[data-mark="flat"] path{stroke:var(--anatomy-mid)}
.iso-swatch[data-mark="lit"] path{stroke:var(--anatomy-lit)}
.iso-swatch[data-mark="dim"] path{stroke:var(--anatomy-lo)}
.iso-swatch[data-mark="dotted"] path{stroke-dasharray:.01 3;stroke-width:1.4}
.iso-swatch[data-mark="dashed"] path{stroke-dasharray:3 2.5}
.iso-swatch[data-mark="red"] path{stroke:var(--anatomy-red)}
.iso-swatch[data-mark="green"] path{stroke:var(--anatomy-green)}
.iso-swatch[data-mark="blue"] path{stroke:var(--anatomy-blue)}
.iso-swatch-crease{stroke:var(--anatomy-lo)!important}
@media (max-width:560px){.iso-plate{padding:48px 12px 70px}.iso-plate-corner[data-corner="hint"]{bottom:18px}}
@media (prefers-reduced-motion:reduce){.iso-line[data-flow],.iso-dots circle[data-pulse]{animation:none}}


  .paroi { --anatomy-lit: #1437E8; --anatomy-mono: var(--f-mono); --anatomy-page: transparent; --anatomy-card: #fff; --anatomy-paper: #fff; color: #101114; }
  .paroi .iso-figure { margin: 0; }
  .paroi .laine .iso-top { fill: #F9D35A; }
  .paroi .laine .iso-shade { fill: #F4C21F; }
  .paroi .laine .iso-shade[data-shade="0"] { fill: #DBA90F; }
  .paroi .laine .iso-shade[data-shade="1"] { fill: #E6B518; }
  .paroi .laine .iso-fill { fill: #F4C21F; }
  .paroi .iso-legend { color: #3F4039; font-size: .85rem; line-height: 1.45; }
  .paroi .iso-plate-corner { font-size: .72rem; color: #3F4039; }
  .paroi__keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgb(16 17 20 / .2); margin-top: .4rem; }
  .paroi__keys button { position: relative; isolation: isolate; overflow: clip; display: grid; gap: .1rem; justify-items: start; padding: .7rem .7rem .8rem; text-align: left; font-size: .875rem; font-weight: 560; line-height: 1.15; min-height: 44px; transition: color .3s; }
  .paroi__keys button + button { border-left: 1px solid rgb(16 17 20 / .2); }
  .paroi__keys b { font-family: var(--f-mono); font-size: .72rem; font-weight: 600; }
  .paroi__keys button::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #101114; clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease); }
  .paroi__keys button[aria-pressed='true'] { color: #fff; }
  .paroi__keys button[aria-pressed='true']::before { clip-path: inset(0); }
  @media (hover: hover) { .paroi__keys button:not([aria-pressed='true']):hover::before { clip-path: inset(0 0 72% 0); } }
  @media (max-width: 767px) { .paroi__keys { grid-template-columns: repeat(2, minmax(0, 1fr)); } .paroi__keys button:nth-child(3) { border-left: 0; } .paroi__keys button:nth-child(n+3) { border-top: 1px solid rgb(16 17 20 / .2); } }

/* Ce qui n'existe que sur WordPress : contenus publiés, plugins, signature d'article. */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.entry-content img { width: 100%; height: auto; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content ul { list-style: square; }
.entry-content ol { list-style: decimal; }
.entry-content a:not(.txt) { text-decoration: underline; text-underline-offset: 3px; }
.entry-content h2, .entry-content h3 { scroll-margin-top: 5rem; }
.entry-content table { display: block; overflow-x: auto; }

/* Sommaire (Easy Table of Contents) : une fiche à filets, sans cadre arrondi. */
#ez-toc-container.ez-toc-container-direction { width: 100%; background: none; border: 0; border-top: 2px solid var(--encre); border-bottom: 1px solid var(--c-line); border-radius: 0; box-shadow: none; padding: .9rem 0; margin-top: 0; }
#ez-toc-container .ez-toc-title-container { display: flex; justify-content: space-between; align-items: center; }
#ez-toc-container .ez-toc-title { font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500; }
#ez-toc-container ul { list-style: none; padding-left: 0; }
#ez-toc-container ul ul { padding-left: 1.1em; }
#ez-toc-container li { margin-top: .35em; }
#ez-toc-container a { text-decoration: none; }
#ez-toc-container a:hover { text-decoration: underline; }
#ez-toc-container .ez-toc-title-toggle a { min-width: 24px; min-height: 24px; display: inline-flex; align-items: center; justify-content: center; }

/* Fin d'article, sur la même colonne que le texte. */
.art-fin { max-width: 42rem; margin: 3rem auto 0; display: grid; gap: 2.2rem; }
.art-fin .rel { margin: 0; }
.art-fin .rel__g { grid-template-columns: 1fr; }
.art-rate { font-size: var(--t-s); }
.art-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-family: var(--f-mono); font-size: var(--t-xs); }
.art-tags a { display: inline-flex; min-height: 24px; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.sign { border-top: 2px solid var(--encre); padding-top: 1.1rem; display: grid; gap: .55rem; font-size: var(--t-s); line-height: 1.5; }
.sign h2 { font-family: var(--f-display); font-weight: 800; font-stretch: 88%; font-size: var(--t-m); line-height: 1.1; }
.sign__r { font-family: var(--f-mono); font-size: var(--t-xs); }
.art-v .sub { max-width: 62rem; margin-inline: auto; }
.art-v .rows { max-width: 62rem; margin-inline: auto; }
.art-v .in { padding-block: clamp(3rem, 5vw, 5rem); }

/* Formulaire de contact (Contact Form 7), dessiné comme le reste. */
.wpcf7 { max-width: 60rem; }
.wpcf7-form { display: grid; gap: 1.3rem; }
.wpcf7-form p { margin: 0; }
.wpcf7-form label { display: block; font-weight: 650; }
.wpcf7-form br { display: none; }
.wpcf7-form .wpcf7-form-control-wrap { display: block; margin-top: .3rem; }
.wpcf7-form input:not([type='submit']):not([type='hidden']), .wpcf7-form textarea { width: 100%; min-height: 3.25rem; padding: .55rem .8rem; background: #fff; border: 2px solid var(--encre); border-radius: 0; font: inherit; }
.wpcf7-form input[type='submit'] { min-height: 3.25rem; padding: .3rem 1.5rem; background: none; border: 2px solid currentColor; border-radius: 0; font: inherit; font-weight: 650; cursor: pointer; transition: background-color .35s, color .35s; }
.wpcf7-form input[type='submit']:hover, .wpcf7-form input[type='submit']:focus-visible { background: var(--encre); color: var(--papier); }
.wpcf7-spinner { display: none; }
.wpcf7-not-valid-tip { font-size: var(--t-s); font-weight: 600; margin-top: .3rem; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: .7rem .9rem; border: 2px solid var(--encre); font-weight: 600; }
