/* Provence Fluides Ingénierie — feuille de style commune à toutes les pages */

:root {
  --ink: #1a2340;
  --ink-2: #33405e;
  --muted: #5d6880;
  --faint: #8a93a6;
  --line: rgba(26, 35, 64, 0.16);
  --line-2: rgba(26, 35, 64, 0.08);
  --paper: #ffffff;
  --paper-2: #f4f5f7;
  --paper-3: #e9ecf1;
  --grid: rgba(26, 35, 64, 0.045);
  --red: #d61f1f;
  /* couleurs de réseaux, charte des calques PFI */
  --n-soufflage: #007fff;
  --n-reprise: #ee6363;
  --n-air-neuf: #1f9e1f;
  --n-rejet: #8b1a1a;
  --n-primaire: #7f00ff;
  --n-frigo: #00a5c8;
  --n-ef: #1f3be0;
  --n-ecs: #e00000;
  --n-bouclage: #7f3f3f;
  --n-eu: #a100d8;
  --n-ev: #009900;
  --n-gt: #e07000;

  --font: 'Barlow', Arial, sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, monospace;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--n-soufflage); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--font-mono); }

/* ------------------------------------------------------------------ en-tête */
.site-head { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-cond); text-transform: uppercase; }
.brand-txt b { font-weight: 700; font-size: 1.2rem; letter-spacing: 0.09em; }
.brand-txt span { font-weight: 600; font-size: 0.66rem; letter-spacing: 0.34em; color: var(--faint); margin-top: 3px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.head-tel { font-family: var(--font-mono); font-size: 0.84rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.head-tel:hover { text-decoration: underline; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.site-head.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-head.open .burger span:nth-child(2) { opacity: 0; }
.site-head.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; font-family: var(--font); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 0.8rem; }
.btn .arr { font-family: var(--font-mono); font-weight: 400; }
.link-arr { font-weight: 700; font-size: 0.86rem; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-arr:hover { border-color: var(--ink); }

/* ------------------------------------------------------------------ typographie de section */
.kicker { display: block; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.h-xl { font-family: var(--font-cond); font-weight: 700; font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.02; letter-spacing: -0.005em; }
.h-l { font-family: var(--font-cond); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.08; }
.h-m { font-family: var(--font-cond); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.lead { font-size: 1.08rem; line-height: 1.7; color: var(--ink-2); max-width: 60ch; }
.txt { color: var(--ink-2); max-width: 64ch; }
.muted { color: var(--muted); }

.sec { padding: 88px 0; border-top: 1px solid var(--line); }
.sec-alt { background: var(--paper-2); }
.sec-dark { background: var(--ink); color: #fff; border-top: 0; }
.sec-head { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 0.9fr); gap: 0 32px; align-items: start; margin-bottom: 48px; }
.sec-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); padding-top: 8px; border-top: 2px solid var(--ink); }
.sec-head .h-l { max-width: 18ch; }
.sec-head .txt { padding-top: 6px; }
.sec-dark .sec-num { color: rgba(255, 255, 255, 0.6); border-color: #fff; }
.sec-dark .txt, .sec-dark .muted { color: rgba(255, 255, 255, 0.72); }

/* fond papier millimétré */
.grid-paper { background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 56px 0 0; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.hero h1 { font-weight: inherit; }
.hero h1 .kicker { margin-bottom: 20px; }
.hero h1 .h-xl { display: block; }
.hero .lead { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-contact { margin-top: 22px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.hero-contact a { color: var(--ink); text-decoration: none; }
.hero-contact a:hover { text-decoration: underline; }

/* planche : schéma dans un cadre, avec sa ligne de références */
.planche { background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line-2), 0 18px 40px -24px rgba(26, 35, 64, 0.35); }
.planche a.planche-img { display: block; cursor: zoom-in; }
.planche img { width: 100%; }
.planche figcaption { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--ink-2); }
.planche figcaption .ref { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); }
.planche figcaption a { font-family: var(--font-mono); font-size: 0.76rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.planche figcaption a:hover { text-decoration: underline; }

/* fiche d'identité sous le hero (style cartouche) */
.fiche { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line); }
.fiche > div { padding: 18px 18px 22px 0; border-right: 1px solid var(--line-2); }
.fiche > div + div { padding-left: 18px; }
.fiche > div:last-child { border-right: 0; }
.fiche dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fiche dd { font-weight: 600; font-size: 0.95rem; line-height: 1.4; }

/* ------------------------------------------------------------------ profils (pour qui) */
.profils { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: #fff; }
.profil { padding: 30px 28px 32px; display: flex; flex-direction: column; }
.profil + .profil { border-left: 1px solid var(--line); }
.profil-code { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
.profil h3 { margin: 10px 0 20px; }
.profil h4 { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.profil h4:first-of-type { margin-top: 0; }
.profil li { position: relative; padding-left: 18px; font-size: 0.93rem; line-height: 1.5; color: var(--ink-2); margin-bottom: 7px; }
.profil li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 9px; height: 1.5px; background: var(--ink); }
.profil .link-arr { margin-top: auto; align-self: flex-start; padding-top: 22px; border-bottom: 0; }
.profil .link-arr span { border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------------------ visionneuse de planches */
.planches-tabs { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-bottom: 0; background: #fff; }
.planches-tabs button { flex: 1 1 0; min-width: 150px; text-align: left; padding: 12px 14px; background: transparent; border: 0; border-right: 1px solid var(--line-2); border-bottom: 3px solid transparent; font-family: var(--font); cursor: pointer; color: var(--ink-2); }
.planches-tabs button:last-child { border-right: 0; }
.planches-tabs button .ref { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }
.planches-tabs button b { display: block; font-size: 0.9rem; line-height: 1.3; margin-top: 2px; }
.planches-tabs button[aria-selected="true"] { background: var(--paper-2); border-bottom-color: var(--ink); color: var(--ink); }
.planches-tabs button:hover { background: var(--paper-2); }
.planche-panel + .planche-panel { margin-top: 28px; }
.js .planche-panel + .planche-panel { margin-top: 0; }
.planche-notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 18px; font-size: 0.92rem; color: var(--ink-2); }
.planche-notes h3 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.note-avert { margin-top: 18px; font-size: 0.84rem; color: var(--muted); max-width: 90ch; }

/* extrait de note de calcul (grille) */
.ndc { background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(26, 35, 64, 0.35); }
.ndc-head { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; padding: 16px 18px; border-bottom: 2px solid var(--ink); }
.ndc-head b { font-family: var(--font-cond); font-size: 1.2rem; }
.ndc-head span { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
.ndc-scroll { overflow-x: auto; }
.ndc table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.8rem; min-width: 760px; }
.ndc th, .ndc td { border: 1px solid var(--line); padding: 7px 10px; text-align: right; white-space: nowrap; }
.ndc th { background: var(--paper-2); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.02em; color: var(--ink-2); text-align: center; vertical-align: bottom; }
.ndc td:first-child, .ndc th:first-child { text-align: left; }
.ndc tr.tot td { font-weight: 600; background: var(--paper-2); border-top: 2px solid var(--ink); }
.ndc td.ok { color: var(--n-air-neuf); }
.ndc-foot { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 12px 18px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ prestations (lignes de nomenclature) */
.presta { border-top: 2px solid var(--ink); }
.presta-row { display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1.4fr) 150px; gap: 24px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.presta-row:hover { background: linear-gradient(90deg, var(--paper-2), transparent 80%); }
.presta-code { font-family: var(--font-mono); font-weight: 500; font-size: 0.9rem; padding-top: 3px; }
.presta-code i { display: block; width: 26px; height: 3px; margin-top: 10px; }
.presta-row h3 { font-family: var(--font-cond); font-size: 1.45rem; line-height: 1.15; }
.presta-row p { font-size: 0.94rem; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span { font-family: var(--font-mono); font-size: 0.7rem; padding: 3px 8px; border: 1px solid var(--line); color: var(--ink-2); background: #fff; }
.presta-go { justify-self: end; font-family: var(--font-mono); font-size: 0.78rem; padding-top: 5px; white-space: nowrap; }
.presta-row:hover .presta-go { text-decoration: underline; }

/* ------------------------------------------------------------------ phasage des missions */
.phasage { overflow-x: auto; border: 1px solid rgba(255, 255, 255, 0.18); }
.phasage-grid { display: grid; grid-template-columns: 210px repeat(6, minmax(92px, 1fr)); min-width: 820px; }
.phasage-grid > * { border-right: 1px solid rgba(255, 255, 255, 0.10); border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
.ph-col { padding: 14px 12px; font-family: var(--font-mono); font-size: 0.8rem; text-align: center; }
.ph-col b { display: block; font-size: 1rem; }
.ph-col span { display: block; font-size: 0.66rem; color: rgba(255, 255, 255, 0.6); margin-top: 2px; line-height: 1.3; }
.ph-corner { padding: 14px 16px; font-family: var(--font-mono); font-size: 0.7rem; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; letter-spacing: 0.06em; align-self: stretch; }
.ph-label { padding: 14px 16px; font-size: 0.9rem; font-weight: 600; }
.ph-label small { display: block; font-weight: 400; font-size: 0.78rem; color: rgba(255, 255, 255, 0.62); }
.ph-cell { position: relative; }
.ph-bar { margin: 12px 6px; padding: 7px 10px; font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.3; background: #fff; color: var(--ink); border-left: 3px solid var(--bar, var(--n-soufflage)); align-self: center; }
.phasage-legend { margin-top: 14px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); }

.etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.etape { padding: 22px 22px 0 0; }
.etape + .etape { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.etape .num { font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); }
.etape h3 { font-family: var(--font-cond); font-size: 1.2rem; margin: 6px 0 8px; }
.etape p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }
.sec:not(.sec-dark) .etapes { border-top-color: var(--ink); }
.sec:not(.sec-dark) .etape + .etape { border-left-color: var(--line); }
.sec:not(.sec-dark) .etape .num { color: var(--muted); }
.sec:not(.sec-dark) .etape p { color: var(--ink-2); }

/* ------------------------------------------------------------------ charte de dessin */
.charte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.faits { border-top: 2px solid var(--ink); }
.fait { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fait b { font-family: var(--font-cond); font-size: 1.45rem; line-height: 1; }
.fait b small { display: block; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 400; color: var(--muted); margin-top: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.fait p { font-size: 0.93rem; color: var(--ink-2); }
.calques { background: #fff; border: 1px solid var(--line); }
.calques-head { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.calques ul { display: grid; grid-template-columns: 1fr 1fr; }
.calques li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--line-2); font-size: 0.86rem; }
.calques li:nth-child(odd) { border-right: 1px solid var(--line-2); }
.calques li i { height: 0; border-top: 2.5px solid var(--c); }
.calques li i.tir { border-top-style: dashed; }
.calques li code { display: block; font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); }

/* ------------------------------------------------------------------ références */
.refs { border-top: 2px solid var(--ink); }
.ref-row { display: grid; grid-template-columns: 60px minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ref-row .n { font-family: var(--font-mono); color: var(--muted); font-size: 0.85rem; padding-top: 4px; }
.ref-row h3 { font-family: var(--font-cond); font-size: 1.4rem; line-height: 1.15; margin-bottom: 6px; }
.ref-row p { font-size: 0.93rem; color: var(--ink-2); }
.ref-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 0.88rem; align-content: start; }
.ref-meta dt { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding-top: 3px; }
.ref-more { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

/* fiche référence détaillée (page références) */
.ref-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); border: 1px solid var(--line); background: #fff; }
.ref-card + .ref-card { margin-top: 28px; }
.ref-card aside { padding: 24px; border-right: 1px solid var(--line); background: var(--paper-2); }
.ref-card aside .n { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); display: block; margin-bottom: 16px; }
.ref-card aside dl > div { padding: 10px 0; border-top: 1px solid var(--line); }
.ref-card aside dt { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ref-card aside dd { font-weight: 600; font-size: 0.94rem; }
.ref-card .ref-body { padding: 28px 32px 30px; }
.ref-card .ref-body .kicker { margin-bottom: 8px; }
.ref-card .ref-body h2 { margin-bottom: 12px; }
.ref-card .ref-body h3 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 22px 0 10px; }

/* listes à tiret */
.liste li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--ink-2); line-height: 1.55; }
.liste li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1.5px; background: var(--ink); }
.liste-num { counter-reset: n; border-top: 1px solid var(--line); }
.liste-num li { counter-increment: n; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.liste-num li::before { content: counter(n, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); padding-top: 2px; }

/* ------------------------------------------------------------------ pages prestations */
.crumb { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); margin-bottom: 26px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.page-hero { padding: 44px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero .hero-grid { align-items: start; }
.page-hero h1 { margin: 10px 0 18px; }

.scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.scope-item { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; padding: 22px 24px 24px 0; border-bottom: 1px solid var(--line); }
.scope-item:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.scope-item .n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); padding-top: 4px; }
.scope-item h3 { font-family: var(--font-cond); font-size: 1.3rem; margin-bottom: 4px; }
.scope-item p { font-size: 0.93rem; color: var(--ink-2); }

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.pour-qui { margin-top: 28px; }
.pour-qui h3 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 0.86rem; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); background: #fff; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.related a { display: block; padding: 22px 22px 24px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.related a + a { padding-left: 22px; border-left: 1px solid var(--line); }
.related .code { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
.related b { display: block; font-family: var(--font-cond); font-size: 1.3rem; margin: 6px 0 10px; }
.related .go { font-family: var(--font-mono); font-size: 0.76rem; }
.related a:hover .go { text-decoration: underline; }

.cta-band { padding: 64px 0; background: var(--ink); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta-band p { color: rgba(255, 255, 255, 0.75); max-width: 60ch; margin-top: 8px; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn:hover { background: var(--paper-3); }
.cta-band .btn-line { background: transparent; color: #fff; }
.cta-band .btn-line:hover { background: #fff; color: var(--ink); }

/* ------------------------------------------------------------------ zone, FAQ */
.zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.zone h3 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
.zone .chips + h3 { margin-top: 22px; }

.faq { border-top: 2px solid var(--ink); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 16px; padding: 18px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.45; }
.faq summary::after { content: '+'; font-family: var(--font-mono); font-size: 1.2rem; text-align: right; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 44px 20px 0; color: var(--ink-2); }

/* ------------------------------------------------------------------ contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.coord { margin-top: 28px; border-top: 2px solid var(--ink); }
.coord > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.coord dt { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding-top: 3px; }
.coord a { text-decoration: none; }
.coord a:hover { text-decoration: underline; }
.a-joindre { margin-top: 26px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--ink); font-size: 0.9rem; color: var(--ink-2); }
.a-joindre b { display: block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; }
.form { background: #fff; border: 1px solid var(--line); padding: 28px; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; font-family: var(--font); font-size: 0.95rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-bottom: 1.5px solid var(--ink-2); padding: 11px 12px; border-radius: 0; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--n-soufflage); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 3px; flex-shrink: 0; }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.form-status { font-size: 0.88rem; }
.form-status.ok { color: #1d7a3e; }
.form-status.err { color: var(--red); }

/* ------------------------------------------------------------------ pied de page */
.site-foot { background: var(--ink); color: rgba(255, 255, 255, 0.78); padding: 56px 0 28px; font-size: 0.88rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.foot-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.foot-brand img { height: 52px; width: auto; }
.foot-brand b { display: block; font-family: var(--font-cond); font-size: 1.3rem; letter-spacing: 0.08em; color: #fff; }
.foot-brand span { font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; }
.site-foot address { font-style: normal; line-height: 1.8; }
.site-foot h2 { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.55); margin-bottom: 12px; }
.site-foot li { margin-bottom: 7px; }
.site-foot a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 22px; font-size: 0.76rem; color: rgba(255, 255, 255, 0.55); }
.site-foot a:focus-visible { outline-color: #fff; }

/* ------------------------------------------------------------------ pages de texte (mentions, 404) */
.doc { max-width: 820px; padding: 48px var(--gut) 88px; margin: 0 auto; }
.doc h1 { margin: 6px 0 6px; }
.doc .maj { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); margin-bottom: 40px; }
.doc h2 { font-family: var(--font-cond); font-size: 1.5rem; margin: 40px 0 12px; padding-top: 14px; border-top: 2px solid var(--ink); }
.doc h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink-2); margin-bottom: 10px; }
.doc ul { margin: 0 0 12px; }
.doc ul li { position: relative; padding-left: 20px; }
.doc ul li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 10px; height: 1.5px; background: var(--ink); }
.doc .bloc { background: var(--paper-2); border-left: 3px solid var(--ink); padding: 16px 20px; margin-bottom: 12px; }
.doc .bloc p { margin-bottom: 4px; }

.e404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px var(--gut); }
.e404 .code { font-family: var(--font-mono); color: var(--muted); }
.e404 h1 { margin: 10px 0; }
.e404 p { color: var(--ink-2); margin-bottom: 26px; }

/* ------------------------------------------------------------------ bandeau cookies */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 540px; margin-left: auto; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink); box-shadow: 0 16px 40px rgba(26, 35, 64, 0.2); padding: 18px 20px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 0.88rem; line-height: 1.6; color: var(--ink-2); margin: 0 0 14px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; justify-content: center; }

/* ------------------------------------------------------------------ adaptatif */
@media (max-width: 1180px) {
  .head-tel { display: none; }
  .fiche { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fiche > div:nth-child(3n) { border-right: 0; }
  .fiche > div:nth-child(3n + 1) { padding-left: 0; }
  .fiche > div:nth-child(n + 4) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 1060px) {
  .burger { display: flex; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px var(--gut) 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(26, 35, 64, 0.3); }
  .site-head.open .nav { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 0.95rem; }
  .site-head .btn-head { display: none; }
  .hero-grid, .page-hero .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sec-num { justify-self: start; padding-right: 30px; }
  .profils { grid-template-columns: minmax(0, 1fr); }
  .profil + .profil { border-left: 0; border-top: 1px solid var(--line); }
  .presta-row { grid-template-columns: 70px minmax(0, 1fr); }
  .presta-row p, .presta-row .tags-wrap { grid-column: 2; }
  .presta-go { grid-column: 2; justify-self: start; }
  .charte, .contact, .zone, .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .etapes { grid-template-columns: 1fr 1fr; }
  .etape:nth-child(3) { padding-left: 0; border-left: 0; }
  .etape { padding-bottom: 22px; }
  .ref-row { grid-template-columns: 44px minmax(0, 1fr); }
  .ref-row .ref-meta { grid-column: 2; }
  .ref-card { grid-template-columns: minmax(0, 1fr); }
  .ref-card aside { border-right: 0; border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: minmax(0, 1fr); }
  .related a + a { padding-left: 0; border-left: 0; }
}
@media (max-width: 680px) {
  .sec { padding: 64px 0; }
  .hero { padding-top: 36px; }
  .brand img { height: 40px; }
  .brand-txt b { font-size: 1.05rem; }
  .brand-txt span { font-size: 0.58rem; letter-spacing: 0.26em; }
  .fiche { grid-template-columns: 1fr 1fr; }
  .fiche > div, .fiche > div + div { padding: 14px 12px 16px 0; border-right: 0; border-top: 1px solid var(--line-2); }
  .fiche > div:nth-child(odd) { border-right: 1px solid var(--line-2); }
  .fiche > div:nth-child(even) { padding-left: 14px; }
  .planches-tabs button { min-width: 50%; flex-basis: 50%; }
  .planche-notes { grid-template-columns: minmax(0, 1fr); }
  .scope { grid-template-columns: minmax(0, 1fr); }
  .scope-item:nth-child(even) { padding-left: 0; border-left: 0; }
  .calques ul { grid-template-columns: minmax(0, 1fr); }
  .calques li:nth-child(odd) { border-right: 0; }
  .fait { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .etapes { grid-template-columns: minmax(0, 1fr); }
  .etape + .etape { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .sec:not(.sec-dark) .etape + .etape { border-top-color: var(--line); }
  .form { padding: 20px 16px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .faq details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* titres des pages intérieures, plus longs que celui de l'accueil */
.page-hero h1.h-xl { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.06; }
.split > .planche, .split > .ndc { position: sticky; top: 96px; }
@media (max-width: 1060px) { .split > .planche, .split > .ndc { position: static; } }

/* ------------------------------------------------------------------ fiches références avec visuels */
.fiche-ref { border-top: 2px solid var(--ink); padding-top: 28px; }
.fiche-ref + .fiche-ref { margin-top: 72px; }
.fiche-ref-head { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; margin-bottom: 26px; }
.fiche-ref-head .n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.fiche-ref-head .statut { font-family: var(--font-mono); font-size: 0.74rem; padding: 4px 10px; border: 1px solid var(--line); background: #fff; white-space: nowrap; }
.fiche-ref-head .statut::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--n-air-neuf); margin-right: 8px; vertical-align: 1px; }
.fiche-ref-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.visuels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.visuels figure { margin: 0; background: #fff; border: 1px solid var(--line); }
.visuels figure.large { grid-column: 1 / -1; }
.visuels img { width: 100%; height: 100%; object-fit: cover; }
.visuels figure.large img { aspect-ratio: auto; object-fit: contain; }
.visuels figcaption { padding: 8px 12px; font-size: 0.8rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.visuels figcaption .cr { display: block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--faint); margin-top: 2px; }
.visuels .sombre { background: #222834; }
.carac { border-top: 1px solid var(--line); }
.carac > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 0.92rem; }
.carac dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.carac dd { color: var(--ink); }
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 22px 0; border: 1px solid var(--line); background: #fff; }
.chiffres div { padding: 14px 14px 16px; }
.chiffres div + div { border-left: 1px solid var(--line); }
.chiffres b { display: block; font-family: var(--font-cond); font-size: 1.9rem; line-height: 1; }
.chiffres span { display: block; font-size: 0.8rem; color: var(--ink-2); margin-top: 6px; line-height: 1.35; }

/* comparateur avant / après */
.compare { position: relative; overflow: hidden; background: #222834; border: 1px solid var(--line); }
.compare img { display: block; width: 100%; height: auto; }
.compare .apres { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .apres img { height: 100%; object-fit: cover; }
.compare .ligne { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare .ligne::after { content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 15px; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tag { position: absolute; top: 10px; font-family: var(--font-mono); font-size: 0.7rem; padding: 3px 8px; background: rgba(255,255,255,.92); color: var(--ink); pointer-events: none; }
.compare .tag.av { left: 10px; } .compare .tag.ap { right: 10px; }
.compare + figcaption, .compare-wrap figcaption { padding: 8px 12px; font-size: 0.8rem; color: var(--ink-2); border: 1px solid var(--line); border-top: 0; background: #fff; }

/* références sur l'accueil : cartes avec visuel */
.ref-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ref-card-v { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .15s; }
.ref-card-v:hover { border-color: var(--ink); }
.ref-card-v .vis { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); border-bottom: 1px solid var(--line); }
.ref-card-v .vis img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ref-card-v:hover .vis img { transform: scale(1.03); }
.ref-card-v .vis.plan { display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); background: var(--paper-2); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 16px 16px; }
.ref-card-v .corps { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ref-card-v .k { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.ref-card-v h3 { font-family: var(--font-cond); font-size: 1.3rem; line-height: 1.15; }
.ref-card-v p { font-size: 0.88rem; color: var(--ink-2); }
.ref-card-v .go { margin-top: auto; padding-top: 8px; font-family: var(--font-mono); font-size: 0.76rem; }

/* qui intervient */
.equipe { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.portrait { margin: 0; background: #fff; border: 1px solid var(--line); }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.portrait figcaption { padding: 10px 14px; border-top: 1px solid var(--line); }
.portrait figcaption b { display: block; font-family: var(--font-cond); font-size: 1.25rem; }
.portrait figcaption span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.engagements { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 28px; border-top: 2px solid var(--ink); }
.engagements div { padding: 16px 20px 18px 0; border-bottom: 1px solid var(--line); }
.engagements div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.engagements b { display: block; font-size: 0.98rem; margin-bottom: 4px; }
.engagements p { font-size: 0.9rem; color: var(--ink-2); }

/* illustrations 3D (axonométries) */
.axo { margin: 0; background: #fff; border: 1px solid var(--line); }
.axo a { display: block; cursor: zoom-in; }
.axo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--ink-2); }
.axo figcaption a { font-family: var(--font-mono); font-size: 0.76rem; text-decoration: none; color: var(--ink); }

@media (max-width: 1060px) {
  .fiche-ref-grid, .equipe { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ref-cards { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 320px; }
}
@media (max-width: 680px) {
  .fiche-ref-head { grid-template-columns: minmax(0, 1fr); }
  .chiffres { grid-template-columns: minmax(0, 1fr); }
  .chiffres div + div { border-left: 0; border-top: 1px solid var(--line); }
  .carac > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .engagements { grid-template-columns: minmax(0, 1fr); }
  .engagements div:nth-child(even) { padding-left: 0; border-left: 0; }
  .visuels { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ note de calcul, format des notes PFI (grille) */
.ndcv { background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(26, 35, 64, 0.35); padding: 18px; font-family: Calibri, Carlito, 'Segoe UI', Arial, sans-serif; color: #111; }
.ndcv-scroll { overflow-x: auto; }
.ndcv table { width: 100%; border-collapse: collapse; font-size: 0.8rem; min-width: 820px; }
.ndcv td, .ndcv th { border: 1px solid #222; padding: 4px 7px; vertical-align: middle; }
.ndcv .titre td { background: #f3f0bf; font-weight: 700; font-size: 1.02rem; text-align: center; padding: 7px; border-width: 1.5px; }
.ndcv .parcours td { text-align: right; font-style: italic; }
.ndcv .entree td { text-align: left; }
.ndcv .entree td.v { text-align: center; font-weight: 700; }
.ndcv th { background: #f3f0bf; font-weight: 700; text-align: center; font-size: 0.76rem; }
.ndcv .sec td { background: #fbfae6; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.ndcv .el td.rep { text-align: center; font-weight: 700; }
.ndcv .el td.des { font-weight: 700; text-decoration: underline; }
.ndcv .sub td.des { padding-left: 14px; }
.ndcv td.n { text-align: right; font-variant-numeric: tabular-nums; }
.ndcv td.c { text-align: center; }
.ndcv .in { background: #b9f5b9; }
.ndcv .fx { background: #bff3f5; }
.ndcv .tot td { background: #f3f0bf; font-weight: 700; }
.ndcv .lim { background: #f8cccc; }
.ndcv .sep td { border: 0; height: 10px; padding: 0; }
.ndcv-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 0.76rem; color: #666; }
.ndcv-leg span::before { content: ''; display: inline-block; width: 22px; height: 11px; border: 1px solid #999; margin-right: 6px; vertical-align: -1px; background: var(--c, #fff); }
.ndcv-pied { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 6px; border-top: 1px solid #ccc; font-size: 0.72rem; color: #777; }
