:root {
  /* DA piste B « Le plan de calepinage » : voir projets/erdik-ceramique/DA.md */
  --ink: #111111;          /* encre : 17,5:1 sur papier */
  --blue: #343f72;         /* bleu du logo = trait de plan. 9,3:1 sur papier */
  --blue-on-ink: #aab3e6;  /* bleu lisible sur fond encre. 9,3:1 */
  --paper: #f7f6f3;
  --stone: #e7e4de;
  --white: #ffffff;
  --muted: #5c5a55;        /* texte secondaire. 6,4:1 sur papier */
  --muted-on-ink: #c9c6bf; /* texte secondaire sur encre. 11:1 */
  --joint: #c9c6bf;        /* filets décoratifs uniquement */
  --trait: #7f7b73;        /* contours de champs et boutons secondaires. 3,9:1 */
  --ink-2: #1d1d1d;        /* couches du schéma sur encre */
  --ink-3: #3a3a3a;        /* filets sur encre */
  --todo-bg: #fff4cc;
  --todo-line: #b38f00;

  --title: "Archivo", "Arial Black", Arial, sans-serif;
  --text: "Figtree", Arial, sans-serif;
  --title-width: 112%;
  --h1: clamp(2.25rem, 1.7rem + 2.4vw, 4rem);
  --h2: clamp(1.75rem, 1.45rem + 1.4vw, 2.625rem);
  --cote: .875rem;

  --space-section: clamp(4rem, 2.8rem + 5vw, 7rem);
  --d-short: 150ms;
  --d: 250ms;
  --d-trace: 600ms;
  --ease: cubic-bezier(.2, 0, 0, 1);
}
@media (min-width: 820px) { :root { --title-width: 125%; } }
@media (prefers-reduced-motion: reduce) { :root { --d-short: 0ms; --d: 0ms; --d-trace: 0ms; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--title); line-height: 1.05; margin: 0; letter-spacing: -0.025em; }
h1, h2 { font-stretch: var(--title-width); }
h1 { font-size: var(--h1); font-weight: 800; }
h2 { font-size: var(--h2); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--white); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.tech :focus-visible, .final :focus-visible, .foot :focus-visible, .callbar :focus-visible, .lb :focus-visible { outline-color: var(--white); }
.callbar :focus-visible { outline-offset: -4px; }

.eyebrow { font: 700 .82rem/1 var(--title); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 20px; }

.btn { display: inline-block; padding: 14px 22px; background: var(--ink); color: var(--white); border: 1px solid var(--ink); text-decoration: none; font-weight: 600; transition: background .2s, color .2s; }
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn.light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn.light:hover { background: var(--stone); border-color: var(--stone); }
.btn.outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn.outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--joint); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo img { width: 150px; height: auto; }
.top nav { display: flex; gap: 28px; }
.top nav a { text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--blue); }
.top-cta { display: flex; align-items: center; gap: 20px; }
.tel { font-weight: 600; text-decoration: none; white-space: nowrap; }
.top .btn { padding: 11px 16px; white-space: nowrap; }

.ico { width: 18px; height: 18px; flex: none; }

/* Héros : clair, angles droits, joints */
.hero { padding: 64px 0 0; }
.hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.hero-text { padding-top: 24px; }
.lead { margin: 26px 0 0; font-size: 1.15rem; color: var(--muted); max-width: 32em; }
.lead strong { color: var(--ink); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin: 34px 0; border-block: 1px solid var(--joint); }
.facts li { padding: 16px 26px; border-left: 1px solid var(--joint); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts strong { display: block; font: 700 1.05rem/1.2 var(--title); }
.facts span { font-size: .9rem; color: var(--muted); }
.call { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.call .btn { display: inline-flex; align-items: center; gap: 10px; font-size: 1.1rem; padding: 16px 22px; }
.call a.link { font-weight: 600; text-underline-offset: 5px; }
.call .btn.call-quote { display: none; }
.facts a { display: block; text-decoration: none; }
.facts a strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Panneau photo + formulaire, assemblés comme deux carreaux */
.panel { border: 1px solid var(--ink); background: var(--white); }
.panel-photo { position: relative; }
.panel-photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 80%; }
.panel-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--white); padding: 6px 12px; font-size: .82rem; color: var(--muted); }

/* Formulaire guidé */
.quote { padding: 28px; border-top: 1px solid var(--ink); }
.quote-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.quote-head h2 { font-size: 1.35rem; }
.dots { display: flex; gap: 10px; }
.dots li { width: 10px; height: 10px; border: 1px solid var(--ink); transform: rotate(45deg); transition: background .2s; }
.dots li.on { background: var(--blue); border-color: var(--blue); }
.step-label { font-size: .85rem; color: var(--muted); margin: 4px 0 20px; }
.quote fieldset { border: 0; margin: 0; padding: 0; }
.quote legend { font-weight: 600; font-size: 1.05rem; margin-bottom: 12px; padding: 0; }
.quote [data-step] { display: none; }
.quote [data-step].on { display: block; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--joint); border: 1px solid var(--joint); }
.opt { display: flex; align-items: center; gap: 12px; padding: 16px; border: 0; background: var(--paper); font: 500 1rem var(--text); color: var(--ink); text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.opt:hover { background: var(--stone); }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.opt svg { color: var(--blue); }
.opt[aria-pressed="true"] svg { color: var(--white); }
.opt.full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 500; }
.field input, .field select, .field textarea { font: 400 1rem var(--text); padding: 12px 14px; border: 1px solid var(--trait); border-radius: 0; background: var(--paper); color: var(--ink); }
.field [aria-invalid="true"] { border: 2px solid var(--ink); }
.form-error { background: var(--stone); border-left: 3px solid var(--blue); padding: 10px 14px; margin-bottom: 14px; font-size: .95rem; }
.form-error[hidden] { display: none; }
.done p + p, .done .more { display: inline-block; margin-top: 12px; }
.field textarea { min-height: 80px; resize: vertical; }
.quote-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 12px; }
.back { background: none; border: 0; color: var(--muted); font: 500 .95rem var(--text); cursor: pointer; padding: 4px 0; }
.back[hidden] { visibility: hidden; display: block; }
.legal { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.quote-foot { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.quote-foot a { color: var(--ink); font-weight: 600; }
.done { padding: 24px 0; }
.done h3 { font-size: 1.3rem; margin-bottom: 8px; }

/* Blocs */
.block { padding: var(--space-section) 0; }
.block.alt { background: var(--stone); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.more { font-weight: 600; white-space: nowrap; }
.more.plain { color: var(--muted); }

/* Réalisations */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.work .ph { aspect-ratio: 4 / 5; }
.work { overflow: hidden; }
.work div { padding-top: 14px; }
.work p { color: var(--muted); font-size: .95rem; }

/* Technique */
.tech { background: var(--ink); color: var(--white); padding: var(--space-section) 0; }
.tech .eyebrow { color: var(--blue-on-ink); }
.tech-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.tech-sub { margin: 18px 0 24px; color: var(--muted-on-ink); }
.layers { display: flex; flex-direction: column; }
.layers button { background: none; border: 0; border-top: 1px solid var(--ink-3); color: var(--muted-on-ink); padding: 13px 0; font: 600 1rem var(--text); text-align: left; cursor: pointer; }
.layers button:last-child { border-bottom: 1px solid var(--ink-3); }
.layers button:hover { color: var(--white); }
.layers button[aria-pressed="true"] { color: var(--white); padding-left: 14px; border-left: 3px solid var(--blue-on-ink); }
.section { width: 100%; height: auto; }
.section polygon { fill: var(--ink-2); stroke: var(--trait); stroke-width: 1; transition: fill var(--d) var(--ease); }
.section polygon.on { fill: var(--blue); stroke: var(--blue-on-ink); }
.section .joints path { stroke: var(--ink); stroke-width: 2; }
.section .drain { fill: var(--ink); stroke: var(--trait); }
.section .flow { stroke: var(--blue-on-ink); stroke-width: 1.5; stroke-dasharray: 6 6; fill: none; }
.section text { fill: var(--muted-on-ink); font: 500 15px var(--text); }
.layer-text { margin-top: 18px; min-height: 5.2em; font-size: 1.08rem; }

/* Prestations en visuels */
.head-note { color: var(--muted); max-width: 26em; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--joint); border: 1px solid var(--joint); }
.services a { display: flex; flex-direction: column; height: 100%; background: var(--paper); padding: 0 0 22px; text-decoration: none; transition: background .2s; }
.services a:hover { background: var(--white); }
.services img, .services .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 18px; }
.services strong { font: 700 1.15rem/1.25 var(--title); padding: 0 22px; }
.services span:not(.ph) { color: var(--muted); padding: 4px 22px 0; }
.services a:hover strong { color: var(--blue); }
.ph { display: grid; place-items: center; color: var(--muted); font-size: .9rem; background:
  repeating-linear-gradient(45deg, var(--joint) 0 1px, transparent 1px 40px),
  repeating-linear-gradient(-45deg, var(--joint) 0 1px, transparent 1px 40px), var(--stone); }

/* Prestations */
.two { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.rows li { border-top: 1px solid var(--joint); }
.rows li:last-child { border-bottom: 1px solid var(--joint); }
.rows a { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; text-decoration: none; transition: padding .2s, color .2s; }
.rows a:hover { padding-left: 10px; color: var(--blue); }
.rows strong { font: 700 1.15rem/1.3 var(--title); }
.rows span { color: var(--muted); text-align: right; }

/* Méthode */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; padding: 22px 22px 0 0; }
.steps li::before { content: "0" counter(s); display: block; font: 700 .9rem var(--title); color: var(--blue); margin-bottom: 14px; }
.steps p { color: var(--muted); margin-top: 6px; }

/* Avis */
.rv-score { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rv-score strong { font: 800 2.4rem/1 var(--title); }
.rv-score span:last-child { color: var(--muted); font-size: .95rem; }
.stars { color: var(--blue); letter-spacing: 2px; font-size: 1rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; padding: 4px 0; animation: defile var(--dur, 50s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.paused .marquee-track { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(calc(-50% - 10px)); } }
.rv { width: 360px; flex: none; display: flex; flex-direction: column; gap: 16px; padding: 26px; background: var(--white); border: 1px solid var(--joint); transition: border-color var(--d-short); }
.rv:hover { border-color: var(--ink); }
.rv p { font: 500 1.08rem/1.45 var(--title); letter-spacing: -0.005em; flex: 1; }
.rv footer { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; padding-top: 16px; border-top: 1px solid var(--joint); }
.rv footer strong { display: block; color: var(--ink); font-weight: 600; }
.av { width: 38px; height: 38px; flex: none; display: grid; place-items: center; background: var(--stone); color: var(--blue); font: 700 1rem var(--title); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.block.alt .av { background: var(--paper); }
.rv-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.rv-foot .more { white-space: normal; }
.rv-pause { background: none; border: 1px solid var(--ink); padding: 8px 14px; font: 500 .9rem var(--text); color: var(--ink); cursor: pointer; }
.rv-pause:hover { background: var(--ink); color: var(--white); }

/* Matériaux */
.mat { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.mat-list { border-top: 1px solid var(--ink); }
.mat-list li { border-bottom: 1px solid var(--joint); }
.mat-list button { width: 100%; display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 15px 0; font: 700 1.15rem/1.2 var(--title); color: var(--muted); text-align: left; cursor: pointer; transition: color .2s, padding .2s; }
.mat-list button::before { content: ""; width: 9px; height: 9px; flex: none; border: 1px solid currentColor; transform: rotate(45deg); transition: background .2s; }
.mat-list button:hover, .mat-list button[aria-pressed="true"] { color: var(--ink); padding-left: 10px; }
.mat-list button[aria-pressed="true"]::before { background: var(--blue); border-color: var(--blue); }
.mat-view { margin: 0; position: sticky; top: 100px; }
.mat-frame { position: relative; aspect-ratio: 4 / 3; background: var(--stone); overflow: hidden; }
.mat-frame img, .mat-frame .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.mat-frame .ph[hidden] { display: none; }
.mat-frame img.fade { opacity: 0; }
.mat-view figcaption { display: grid; gap: 6px; padding: 18px 0 0; }
.mat-view figcaption strong { font: 700 1.3rem var(--title); }
.mat-view figcaption span { color: var(--muted); }
.mat-view .more[hidden] { display: none; }
.steps.five { grid-template-columns: repeat(5, 1fr); }

/* Chemins */
.paths-in { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--joint); }
.paths a { padding: 48px 40px 48px 0; text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.paths a + a { padding-left: 40px; border-left: 1px solid var(--joint); }
.paths span { color: var(--blue); font: 700 .82rem var(--title); letter-spacing: .08em; text-transform: uppercase; }
.paths strong { font: 700 1.6rem/1.15 var(--title); letter-spacing: -0.01em; }
.paths em { font-style: normal; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.paths a:hover strong { color: var(--blue); }

/* Fin */
.final { margin-top: 96px; background: var(--blue); color: var(--white); padding: 72px 0; }
.final-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.final p { margin-top: 10px; }
.foot { background: var(--ink); color: var(--muted-on-ink); padding: 40px 0; font-size: .95rem; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.callbar { display: none; }

/* Pages intérieures */
.top nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }
.page-head { padding: 72px 0 48px; border-bottom: 1px solid var(--joint); }
.page-head h1 { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem); max-width: 16em; }
.page-head .lead { margin-top: 20px; }
.todo { background: var(--todo-bg); border-bottom: 1px dashed var(--todo-line); padding: 0 4px; }
.draft { background: var(--todo-bg); border: 1px dashed var(--todo-line); padding: 12px 16px; font-size: .95rem; margin-bottom: 32px; }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--joint); width: fit-content; max-width: 100%; margin-bottom: 36px; }
.filters button { background: var(--paper); border: 0; border-left: 1px solid var(--joint); padding: 11px 18px; font: 500 .95rem var(--text); color: var(--ink); cursor: pointer; }
.filters button:first-child { border-left: 0; }
.filters button:hover { background: var(--stone); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 20px; }
.card img, .card .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card a { text-decoration: none; display: block; }
.card .tag, .featured .tag { display: inline-block; margin: 14px 0 6px; font: 700 .75rem var(--title); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.card a:hover h3 { color: var(--blue); }
.card[hidden] { display: none; }

/* Conseils */
.featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin-bottom: 64px; text-decoration: none; }
.featured img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.featured h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 6px 0 14px; }
.featured p { color: var(--muted); }
.featured .more { display: inline-block; margin-top: 18px; text-decoration: underline; text-underline-offset: 5px; }
.featured:hover h2 { color: var(--blue); }
.soon { font-size: .82rem; color: var(--muted); border: 1px solid var(--joint); padding: 2px 8px; margin-left: 6px; }

/* Article */
.article-in { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: start; }
.article-body { max-width: 42em; font-size: 1.08rem; }
.article-body h2 { font-size: 1.7rem; margin: 48px 0 14px; }
.article-body p, .article-body ul { margin-bottom: 16px; }
.article-body ul { list-style: none; padding: 0; }
.article-body li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.article-body li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border: 1px solid var(--blue); transform: rotate(45deg); }
.article-hero { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; margin: 40px 0 0; }
.article-side { position: sticky; top: 100px; border: 1px solid var(--joint); padding: 22px; background: var(--white); }
.article-side h2 { font-size: 1rem; margin-bottom: 12px; }
.article-side ol { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.article-side a { text-decoration: none; color: var(--muted); }
.article-side a:hover { color: var(--blue); }
.article-side .btn { width: 100%; text-align: center; }

/* À propos */
.about-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; padding: 64px 0; }
.about-in .ph { aspect-ratio: 4 / 5; }
.about-in .about-photo { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; box-shadow: 0 18px 40px rgb(0 0 0 / .35); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); margin-top: 40px; }
.timeline li { padding: 22px 24px 0 0; }
.timeline strong { display: block; font: 800 2rem/1 var(--title); color: var(--blue); margin-bottom: 10px; }
.timeline p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--joint); width: fit-content; max-width: 100%; margin-top: 28px; }
.chips li { padding: 10px 16px; border-right: 1px solid var(--joint); background: var(--white); }
.chips li:last-child { border-right: 0; }

.top nav .nav-quote { display: none; }
@media (max-width: 560px) {
  .top-cta { display: none; }
  .top nav .nav-quote { display: block; font-weight: 600; color: var(--blue); }
}
.menu-btn { display: none; min-height: 44px; min-width: 44px; background: none; border: 1px solid var(--ink); padding: 9px 12px; font: 600 .95rem var(--text); color: var(--ink); cursor: pointer; }

@media (max-width: 1040px) {
  .top-in { position: relative; }
  .menu-btn { display: block; order: 3; }
  .top nav { display: none; position: absolute; top: 100%; left: -24px; right: -24px; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--joint); }
  .top nav.open { display: flex; }
  .top nav a { padding: 16px 24px; border-top: 1px solid var(--joint); }
  .services, .grid-cards { grid-template-columns: 1fr 1fr; }
  .steps.five { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
}

@media (max-width: 820px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .wrap { width: calc(100% - 32px); }
  .top nav { left: -16px; right: -16px; }
  .call .btn.call-quote { display: inline-flex; justify-content: center; width: 100%; }
  .top-in { min-height: 64px; }
  .logo img { width: 120px; }
  .tel { display: none; }
  .hero { padding-top: 32px; }
  .hero-text { padding-top: 0; }
  .hero-in, .tech-in, .two { grid-template-columns: 1fr; gap: 36px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li { padding: 14px 10px; }
  .call .btn { display: none; }
  .quote { padding: 22px 18px; }
  .quote-head h2 { font-size: 1.2rem; }
  .block, .tech { padding: 64px 0; }
  .head { flex-direction: column; align-items: start; gap: 10px; margin-bottom: 28px; }
  .works, .steps, .steps.five, .paths-in, .services, .grid-cards, .about-in, .article-in, .timeline, .mat { grid-template-columns: 1fr; }
  .mat { gap: 20px; }
  .mat-view { position: static; order: -1; }
  .mat-list { display: flex; flex-wrap: wrap; border: 0; gap: 8px; }
  .mat-list li { border: 0; }
  .mat-list button { width: auto; padding: 9px 12px; font-size: .95rem; border: 1px solid var(--joint); background: var(--white); }
  .mat-list button::before { display: none; }
  .mat-list button:hover, .mat-list button[aria-pressed="true"] { padding-left: 12px; }
  .mat-list button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
  .rv { width: 290px; padding: 22px; }
  .page-head { padding: 40px 0 32px; }
  .featured { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .rows a { flex-direction: column; gap: 2px; }
  .rows span { text-align: left; }
  .paths a, .paths a + a { padding: 32px 0; border-left: 0; }
  .paths a + a { border-top: 1px solid var(--joint); }
  .final { margin-top: 64px; }
  .callbar { position: fixed; inset: auto 0 0 0; z-index: 12; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 12px; color: var(--white); text-decoration: none; font-weight: 600; text-align: center; }
  .callbar a + a { background: var(--blue); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; padding-inline: 24px; }
  .marquee-track [aria-hidden="true"].rv, .rv-pause { display: none; }
  .rv { scroll-snap-align: start; }
}

/* Finitions UX */
.rv-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rv-date { font-size: .82rem; color: var(--muted); }
.rv mark { background: none; color: inherit; font-weight: 700; }
.rv-score a { color: var(--muted); font-size: .95rem; }
.rv-score a:hover { color: var(--blue); }
.filters .count { display: inline-block; min-width: 1.5em; margin-left: 4px; font-size: .8rem; color: var(--muted); }
.filters button[aria-pressed="true"] .count { color: var(--muted-on-ink); }
.work img { cursor: zoom-in; }
[data-lightbox] .card img { cursor: zoom-in; transition: filter .25s; }
[data-lightbox] .card a:hover img { filter: brightness(.92); }
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(17, 17, 17, .97); color: var(--white); }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: transparent; }
.lb figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: min(92vw, 1100px); }
.lb img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.lb figcaption { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; justify-content: center; text-align: center; }
.lb figcaption strong { font: 700 1.1rem var(--title); }
.lb figcaption span { color: var(--muted-on-ink); }
.lb figcaption em { font-style: normal; color: var(--muted-on-ink); font-size: .85rem; }
.lb button { position: fixed; background: none; border: 1px solid var(--trait); color: var(--white); width: 48px; height: 48px; font-size: 1.3rem; cursor: pointer; }
.lb button:hover { background: var(--white); color: var(--ink); }
.lb-x { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; }
.lb-next { right: 20px; top: 50%; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); z-index: 30; }
@media (max-width: 820px) {
  .lb-prev, .lb-next { top: auto; bottom: 20px; }
  .lb img { max-height: 70vh; }
}

/* Piste B : le bleu devient le trait de plan */
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; flex: none; border: 1px solid currentColor; transform: rotate(45deg); }
.eyebrow::after { content: ""; width: 48px; height: 1px; flex: none; background: currentColor; }

/* Ligne de cote : fiche chantier (lieu, format, joint, surface, durée). Jamais de valeur inventée. */
.data { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--blue); font: 500 var(--cote)/1.3 var(--text); letter-spacing: .04em; color: var(--blue); }
.data::before, .data::after { content: ""; position: absolute; top: -5px; width: 1px; height: 9px; background: var(--blue); }
.data::before { left: 0; }
.data::after { right: 0; }
.data span { text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }
.data em { font-style: normal; color: var(--ink); font-size: .8rem; letter-spacing: 0; }
.card p.data, .work p.data { color: var(--blue); font-size: var(--cote); margin-top: 12px; }
/* Héros : colonne étroite à côté du formulaire, titre élargi un peu plus petit pour garder 3 lignes nettes */
.hero h1 { font-size: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); }

/* Zone d'intervention : la carte posée comme un calepinage, un carreau par département */
.zone-head { max-width: 40em; margin-bottom: 40px; }
.zone-head .head-note { margin-top: 14px; max-width: 34em; }
.zone-in { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
.zone-fig { margin: 0; }
.zone-map { width: 100%; height: auto; display: block; background: var(--paper); }
.zone-map .dep { stroke: var(--paper); stroke-width: 1.6; stroke-linejoin: round; }
.zone-map .dep.ctx { fill: var(--stone); }
.zone-map .dep.on { fill: url(#calepinage); }
.zone-map .dep.base { fill: var(--ink); }
.zone-map .pat-bg { fill: var(--blue); }
.zone-map .pat-joint { stroke: #5b6699; stroke-width: 1; fill: none; } /* joint du calepinage, décoratif */
.zone-map text { font-family: var(--title); }
.zone-map .num { font-size: 15px; font-weight: 800; font-stretch: 112%; text-anchor: middle; fill: var(--muted); }
.zone-map .num.on, .zone-map .num.base { fill: var(--white); }
.zone-map .cote line { stroke: var(--white); stroke-width: 1.5; }
.zone-map .city rect { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
.zone-map .city text, .zone-map .vienne text { font-size: 16px; font-weight: 800; fill: var(--white); paint-order: stroke; stroke: var(--ink); stroke-width: 4px; stroke-linejoin: round; }
.zone-map .km { font: 600 13px var(--text); fill: var(--white); paint-order: stroke; stroke: var(--blue); stroke-width: 4px; }
.zone-map .vienne rect { fill: var(--blue-on-ink); stroke: var(--ink); stroke-width: 2; }
.zone-fig figcaption { margin-top: 12px; font-size: var(--cote); color: var(--muted); }
.zone-base { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.zone-pin { width: 12px; height: 12px; flex: none; background: var(--ink); outline: 3px solid var(--blue-on-ink); outline-offset: -6px; transform: rotate(45deg); }
.zone-sub { font: 600 var(--cote)/1.3 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 24px 0 10px; }
.km li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 0; }
.km span { font: 700 1.1rem/1.2 var(--title); }
.km i { position: relative; height: 1px; background: var(--blue); }
.km i::before, .km i::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--blue); }
.km i::before { left: 0; }
.km i::after { right: 0; }
.km strong { font: 600 var(--cote)/1 var(--text); letter-spacing: .04em; color: var(--blue); }
.zone-chips { margin-top: 0; }
.zone-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: var(--cote); color: var(--muted); }
.zone-legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; display: inline-block; }
.sw-base { background: var(--ink); }
.sw-on { background: var(--blue); background-image: repeating-linear-gradient(45deg, #5b6699 0 1px, transparent 1px 5px), repeating-linear-gradient(-45deg, #5b6699 0 1px, transparent 1px 5px); }
.sw-ctx { background: var(--stone); border: 1px solid var(--joint); }

/* Chiffres clés : chaque chiffre posé sur sa ligne de cote */
.stats-title { max-width: 18em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 40px; }
.stats li { position: relative; padding-top: 18px; border-top: 1px solid var(--blue); }
.stats li::before, .stats li::after { content: ""; position: absolute; top: -5px; width: 1px; height: 9px; background: var(--blue); }
.stats li::before { left: 0; }
.stats li::after { right: 0; }
.stats strong { display: block; font: 800 clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem)/1 var(--title); font-stretch: var(--title-width); letter-spacing: -0.03em; }
.stats span { display: block; margin-top: 10px; color: var(--muted); }
.stats a { color: inherit; text-underline-offset: 4px; }

@media (max-width: 820px) {
  .zone-in { grid-template-columns: 1fr; gap: 32px; }
  .zone-map .num { font-size: 19px; }
  .zone-map .city text, .zone-map .vienne text { font-size: 22px; }
  .zone-map .km { font-size: 18px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}
/* Chantiers plus lointains : grille de carreaux qui se replie proprement */
.zone-chips { display: grid; grid-template-columns: repeat(4, auto); gap: 1px; width: fit-content; background: var(--joint); border: 1px solid var(--joint); }
.zone-chips li { border: 0; }
@media (max-width: 420px) { .zone-chips { grid-template-columns: 1fr 1fr; width: 100%; } }

/* ===== Zone : carte interactive, secteur par secteur ===== */
.zone-in { grid-template-areas: "map card" "map sub" "map nav" "map aide" "map ."; grid-template-rows: auto auto auto auto 1fr; row-gap: 0; }
.zone-side { display: contents; }
.zone-fig { grid-area: map; }
.secteur { grid-area: card; }
.zone-in > .zone-side > .zone-sub { grid-area: sub; margin-top: 32px; }
.secteur-nav { grid-area: nav; }
.secteur-aide { grid-area: aide; margin-top: 14px; font-size: var(--cote); color: var(--muted); }

/* La fiche du secteur : un cartouche de plan */
.secteur { position: relative; z-index: 2; background: var(--white); border: 1px solid var(--ink); padding: 22px 24px 20px; }
.secteur-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.secteur-statut { font: 600 var(--cote)/1.3 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.secteur-num { font: 800 clamp(3rem, 2.2rem + 2.4vw, 4.4rem)/.85 var(--title); font-stretch: var(--title-width); letter-spacing: -0.04em; color: var(--ink); }
.secteur-nom { font: 800 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.05 var(--title); font-stretch: var(--title-width); margin: 6px 0 8px; }
.secteur-txt { color: var(--muted); max-width: 30em; }
.secteur-km { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 18px; }
.secteur-km > span { font: 700 1rem/1.2 var(--title); }
.secteur-km i { position: relative; height: 1px; background: var(--blue); }
.secteur-km i::before, .secteur-km i::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--blue); }
.secteur-km i::before { left: 0; } .secteur-km i::after { right: 0; }
.secteur-km strong { font: 600 var(--cote)/1 var(--text); letter-spacing: .04em; color: var(--blue); white-space: nowrap; }
.secteur-chantiers { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--joint); font-size: var(--cote); }
.secteur.swap > * { animation: secteur-in var(--d-short) var(--ease); }
@keyframes secteur-in { from { opacity: 0; transform: translateY(4px); } }

/* Les boutons : un carreau par département */
.secteur-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--joint); border: 1px solid var(--joint); }
.secteur-nav button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 10px 12px; background: var(--paper); cursor: pointer; transition: background var(--d-short) var(--ease), color var(--d-short) var(--ease); }
.secteur-nav b { font: 800 1.25rem/1 var(--title); font-stretch: var(--title-width); }
.secteur-nav span { font-size: .8rem; color: var(--muted); }
.secteur-nav button:hover, .secteur-nav button.is-hover { background: var(--white); }
.secteur-nav button[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.secteur-nav button[aria-pressed="true"] span { color: var(--blue-on-ink); }
.secteur-nav button[data-dep="38"] b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; vertical-align: middle; background: currentColor; transform: rotate(45deg); }
.secteur-nav button:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }

/* La carte : le département choisi s'éclaire, les autres s'effacent */
.zone-map .dep[data-dep] { cursor: pointer; transition: opacity var(--d) var(--ease), stroke-width var(--d-short) var(--ease); }
.zone-map .pat-bg-hi { fill: var(--blue-on-ink); }
.zone-map .pat-joint-hi { stroke: var(--white); stroke-width: 1.2; fill: none; }
.zone-map .num, .zone-map .cote, .zone-map .city, .zone-map .vienne { pointer-events: none; }
.zone-map .num { transition: opacity var(--d) var(--ease), fill var(--d-short) var(--ease); }
.zone-map.has-active .dep[data-dep]:not(.is-active) { opacity: .35; }
.zone-map.has-active .num[data-dep]:not(.is-active) { opacity: .5; }
.zone-map .dep.is-active { stroke: var(--ink); stroke-width: 3; }
.zone-map .dep.on.is-active { fill: url(#calepinage-hi); }
.zone-map .dep.base.is-active { fill: var(--ink); stroke: var(--blue-on-ink); }
.zone-map .num.on.is-active { fill: var(--ink); }
.zone-map .cote.opt, .zone-map .city.opt { opacity: 0; transition: opacity var(--d) var(--ease); }
.zone-map .cote.is-active, .zone-map .city.is-active { opacity: 1; }
.zone-map .cote.is-active line { stroke-width: 2.5; }
.zone-map .cote line { stroke-dasharray: none; }
.zone-map.has-active .cote.fixe:not(.is-active), .zone-map.has-active .city.fixe:not(.is-active) { opacity: .45; }

@media (max-width: 820px) {
  .zone-in { grid-template-columns: 1fr; grid-template-areas: "map" "sub" "nav" "aide"; grid-template-rows: auto; }
  /* sur téléphone, la fiche se pose sur la carte, en bas à gauche, pour rester visible au toucher */
  .secteur { grid-area: map; align-self: end; justify-self: start; width: min(70%, 300px); margin-bottom: 56px; padding: 14px 16px 12px; }
  .secteur-txt { display: none; }
  .secteur-num { font-size: 2.6rem; }
  .secteur-nom { font-size: 1.35rem; margin: 2px 0 0; }
  .secteur-km { margin-top: 10px; }
  .secteur-chantiers { margin-top: 10px; padding-top: 8px; }
  .zone-in > .zone-side > .zone-sub { margin-top: 0; }
}
@media (max-width: 420px) { .secteur-nav b { font-size: 1.1rem; } .secteur-nav button { padding: 10px 8px; } .secteur-nav span { font-size: .72rem; } }
@media (prefers-reduced-motion: reduce) { .secteur.swap > * { animation: none; } }
/* la base prend deux carreaux : 8 cases pleines, pas de trou dans la grille */
.secteur-nav li:first-child { grid-column: span 2; }
.secteur-nav li { display: flex; }
.secteur-nav button { width: 100%; }
@media (max-width: 820px) { .secteur { margin-bottom: calc(var(--legende, 80px) + 12px); } }

/* ===== Carte v3 : tirage sombre, cadre resserré, lignes depuis Vienne ===== */
.zone-fig { position: relative; background: var(--ink); color: var(--white); padding: 0 0 16px; }
.zone-map { background: var(--ink); }
.zone-map .dep { stroke: var(--ink); stroke-width: 1.4; }
.zone-map .dep.ctx { fill: var(--ink-2); stroke: var(--ink-3); stroke-width: 1; }
.zone-map .dep.base { fill: var(--stone); }
.zone-map .num { fill: var(--muted-on-ink); opacity: .55; font-size: 14px; }
.zone-map .num.on { fill: var(--white); opacity: 1; }
.zone-map .num.base { fill: var(--ink); opacity: 1; }
.zone-map .encart-fond { fill: var(--ink); }
.zone-map .encart-cadre { fill: none; stroke: var(--blue-on-ink); stroke-width: 1; }
.zone-map .encart-t { font: 600 12px var(--text); letter-spacing: .06em; text-transform: uppercase; fill: var(--blue-on-ink); }
/* lignes de cote */
.zone-map line.cote { stroke: var(--white); stroke-width: 1.5; stroke-linecap: round; opacity: .9; transition: opacity var(--d) var(--ease), stroke var(--d-short) var(--ease), stroke-width var(--d-short) var(--ease); }
.zone-map.will-draw line.cote { stroke-dasharray: calc(var(--len) * 1px); stroke-dashoffset: calc(var(--len) * 1px); }
.zone-map.will-draw.is-drawn line.cote { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease) calc(var(--i) * 110ms), opacity var(--d) var(--ease), stroke var(--d-short) var(--ease), stroke-width var(--d-short) var(--ease); }
.zone-map.will-draw .city { opacity: 0; }
.zone-map.will-draw.is-drawn .city { opacity: 1; transition: opacity 400ms var(--ease) calc(var(--i) * 110ms + 600ms); }
.zone-map .city rect { fill: var(--ink); stroke: var(--white); stroke-width: 2; }
.zone-map .city text, .zone-map .vienne text { font-size: 15px; font-weight: 800; fill: var(--white); paint-order: stroke; stroke: var(--ink); stroke-width: 4px; stroke-linejoin: round; }
.zone-map .city.big text { font-size: 19px; }
.zone-map .encart .city text { font-size: 13px; }
/* survol : la ligne du secteur passe en bleu clair, les autres s'effacent */
.zone-map.has-active line.cote:not(.is-active) { opacity: .3; }
.zone-map line.cote.is-active { stroke: var(--blue-on-ink); stroke-width: 3; opacity: 1; }
.zone-map .city.is-active rect { fill: var(--blue-on-ink); stroke: var(--ink); }
.zone-map .dep.is-active { stroke: var(--white); stroke-width: 2.5; }
.zone-map .dep.base.is-active { fill: var(--white); stroke: var(--blue-on-ink); }
.zone-map.has-active .dep[data-dep]:not(.is-active) { opacity: .55; }
.zone-map.has-active .num[data-dep]:not(.is-active) { opacity: .6; }
.zone-map .num.on.is-active { fill: var(--ink); }
/* Vienne : le carreau du logo, avec deux ondes */
.zone-map .vienne rect { fill: var(--blue-on-ink); stroke: var(--ink); stroke-width: 2.5; }
.zone-map .pulse { fill: none; stroke: var(--blue-on-ink); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: onde 2.8s var(--ease) infinite; }
.zone-map .pulse.p2 { animation-delay: 1.4s; }
@keyframes onde { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
/* légende posée sur la carte */
.zone-fig .zone-legend { position: absolute; top: 14px; left: 14px; margin: 0; display: grid; gap: 6px; padding: 10px 12px; background: rgba(17,17,17,.82); border: 1px solid var(--ink-3); color: var(--muted-on-ink); font-size: .78rem; }
.sw-base { background: var(--stone); }
.sw-line { height: 2px; width: 16px; background: var(--white); }
.zone-fig figcaption { margin: 10px 16px 0; color: var(--muted-on-ink); font-size: .78rem; }
@media (max-width: 820px) {
  .zone-in { grid-template-areas: "map" "card" "sub" "nav" "aide"; }
  .secteur { grid-area: card; align-self: auto; justify-self: stretch; width: auto; margin: 0; border-top: 0; }
  .secteur-txt { display: block; }
  .zone-fig .zone-legend { position: static; margin: 10px 16px 0; background: none; border: 0; padding: 0; grid-template-columns: 1fr; }
  .zone-map .num { font-size: 18px; }
  .zone-map .city text, .zone-map .vienne text { font-size: 21px; }
  .zone-map .city.big text { font-size: 24px; }
  .zone-map .encart .city text { font-size: 16px; }
  .zone-map .encart-t { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .zone-map .pulse { animation: none; opacity: 0; } }
/* la base en gris anthracite cerné de bleu clair : les lignes blanches restent lisibles dessus */
.zone-map .dep.base { fill: var(--ink-3); stroke: var(--blue-on-ink); stroke-width: 2; }
.zone-map .num.base { fill: var(--white); }
.zone-map .dep.base.is-active { fill: #4a4a4a; stroke: var(--white); }
.sw-base { background: var(--ink-3); outline: 2px solid var(--blue-on-ink); outline-offset: -2px; }

/* ===== Refonte du 15/11 : en-tête et haut de page sombres, plus sérieux ===== */
.top { background: #0e1014; border-bottom: 1px solid rgba(255,255,255,.08); color: var(--white); }
.top .logo img { filter: brightness(0) invert(1); }
.top nav a { color: rgba(255,255,255,.82); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--white); }
.top nav a[aria-current="page"] { text-decoration-color: var(--blue-on-ink); }
.top .tel { color: var(--white); }
.top .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.top .btn:hover { background: var(--blue-on-ink); border-color: var(--blue-on-ink); color: var(--ink); }
.top .menu-btn { color: var(--white); border-color: rgba(255,255,255,.5); }
@media (max-width: 1040px) {
  .top nav { background: #0e1014; border-bottom-color: rgba(255,255,255,.1); }
  .top nav a { border-top-color: rgba(255,255,255,.1); }
}

.hero { position: relative; isolation: isolate; color: var(--white); padding: 88px 0 80px;
  background: #0b0d11 url(images/hero-sol.jpg) center 40% / cover no-repeat; background-blend-mode: luminosity; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11,13,17,.94) 0%, rgba(11,13,17,.82) 48%, rgba(11,13,17,.55) 100%); }
.hero h1, .hero .lead strong, .hero .facts strong { color: var(--white); }
.hero .eyebrow { color: var(--blue-on-ink); }
.hero .eyebrow::after { background: var(--blue-on-ink); }
.hero .lead { color: rgba(255,255,255,.78); }
.hero .facts { border-color: rgba(255,255,255,.18); }
.hero .facts li { border-color: rgba(255,255,255,.18); }
.hero .facts span { color: rgba(255,255,255,.62); }
.hero .facts a { color: var(--white); }
.hero .call .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.hero .call .btn:hover { background: var(--blue-on-ink); border-color: var(--blue-on-ink); }
.hero .call .link { color: var(--white); }
.hero .panel { border: 0; background: var(--white); color: var(--ink); }
.hero .panel-photo { display: none; }
.hero .quote { border-top: 4px solid var(--blue); }
@media (max-width: 820px) {
  .hero { padding: 40px 0 0; background-position: center top; }
  .hero::before { background: linear-gradient(180deg, rgba(11,13,17,.9), rgba(11,13,17,.86)); }
  .hero .panel { margin: 0 -16px; }
}

/* ===== Refonte du 15/11 : carte d'intervention, une seule carte sombre ===== */
.zone-in { background: #111318; color: var(--white); padding: 28px; gap: 40px; border: 1px solid #1f232b;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px; }
.zone-map { background: transparent; }
.zone-map .dep { stroke: #2a2f39; stroke-width: 1; }
.zone-map .dep.ctx { fill: #171a20; stroke: #262a33; }
.zone-map .dep.on { fill: #232a3f; stroke: #3b4568; stroke-width: 1.2; }
.zone-map .dep.base { fill: #2f3a6b; stroke: var(--blue-on-ink); stroke-width: 1.6; }
.zone-map .dep[data-dep]:hover, .zone-map .dep.is-active { stroke: var(--white); stroke-width: 1.8; }
.zone-map .dep.on.is-active { fill: #33406e; }
.zone-map .dep.base.is-active { fill: #3a4885; stroke: var(--white); }
.zone-map.has-active .dep[data-dep]:not(.is-active) { opacity: .8; }
.zone-map .num { fill: #6f7686; opacity: 1; font-size: 13px; font-weight: 700; }
.zone-map .num.on, .zone-map .num.base { fill: #c9cee0; }
.zone-map .num.on.is-active { fill: var(--white); }
.zone-map path.cote { fill: none; stroke: var(--blue-on-ink); stroke-width: 1.6; stroke-linecap: round; opacity: .85; filter: url(#halo);
  transition: opacity var(--d) var(--ease), stroke-width var(--d-short) var(--ease); }
.zone-map.will-draw path.cote { stroke-dasharray: calc(var(--len) * 1px); stroke-dashoffset: calc(var(--len) * 1px); }
.zone-map.will-draw.is-drawn path.cote { stroke-dashoffset: 0; transition: stroke-dashoffset 1000ms var(--ease) calc(var(--i) * 120ms), opacity var(--d) var(--ease); }
.zone-map.has-active path.cote:not(.is-active) { opacity: .28; }
.zone-map path.cote.is-active { stroke: var(--white); stroke-width: 2.4; opacity: 1; }
.zone-map .city rect { fill: #111318; stroke: var(--white); stroke-width: 1.6; }
.zone-map .city.is-active rect { fill: var(--blue-on-ink); stroke: var(--white); }
.zone-map .city text, .zone-map .vienne text { font: 700 14px var(--text); fill: var(--white); paint-order: stroke; stroke: #111318; stroke-width: 3.5px; stroke-linejoin: round; letter-spacing: .01em; }
.zone-map .city.big text { font-size: 16px; }
.zone-map .vienne text { font-size: 16px; font-weight: 800; }
.zone-map .vienne rect { fill: var(--blue-on-ink); stroke: #111318; stroke-width: 2.5; }
.zone-map .var-fleche { fill: none; stroke: var(--blue-on-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zone-map .var .var-sous { font: 600 11px var(--text); fill: #8f96a8; letter-spacing: .06em; text-transform: uppercase; }
.zone-map .city.var.is-active text { fill: var(--blue-on-ink); }
.zone-fig figcaption, .zone-legend { color: #8f96a8; }
.zone-legend .sw-on { background: #232a3f; outline: 1px solid #3b4568; }
.zone-legend .sw-base { background: #2f3a6b; outline: 1px solid var(--blue-on-ink); }
.zone-legend .sw-line { background: var(--blue-on-ink); }
/* panneau de droite dans la même carte */
.secteur { background: transparent; border: 0; border-bottom: 1px solid #262a33; padding: 4px 0 22px; color: var(--white); }
.secteur-statut { color: var(--blue-on-ink); }
.secteur-num, .secteur-nom { color: var(--white); }
.secteur-txt { color: #b7bccb; }
.secteur-km i, .secteur-km i::before, .secteur-km i::after { background: var(--blue-on-ink); }
.secteur-km strong { color: var(--blue-on-ink); }
.secteur-chantiers { border-top-color: #262a33; color: #b7bccb; }
.zone-in > .zone-side > .zone-sub { color: #8f96a8; }
.secteur-nav { background: #262a33; border-color: #262a33; }
.secteur-nav button { background: #15181e; color: var(--white); }
.secteur-nav span { color: #8f96a8; }
.secteur-nav button:hover, .secteur-nav button.is-hover { background: #1d212a; }
.secteur-nav button[aria-pressed="true"] { background: var(--blue-on-ink); color: #111318; }
.secteur-nav button[aria-pressed="true"] span { color: #111318; }
.secteur-aide { color: #8f96a8; }
@media (max-width: 820px) {
  .zone-in { padding: 16px; margin: 0 -16px; }
  .zone-map .city text, .zone-map .vienne text { font-size: 19px; }
  .zone-map .num { font-size: 16px; }
}
.zone-fig { background: transparent; padding: 0; }
.zone-fig .zone-legend { background: rgba(17,19,24,.88); border-color: #262a33; color: #b7bccb; top: 8px; left: 8px; }
.zone-fig figcaption { margin: 10px 0 0; color: #6f7686; }
@media (max-width: 820px) { .zone-fig .zone-legend { background: none; margin: 10px 0 0; } }

/* ===== 15/11 : haut de page aux couleurs du logo (encre + bleu Erdik) ===== */
.top { background: #12152a; border-bottom-color: rgba(170,179,230,.14); }
@media (max-width: 1040px) { .top nav { background: #12152a; } }
.hero { background-color: #262f5c; background-blend-mode: luminosity; }
.hero::before { background:
  linear-gradient(90deg, rgba(14,16,32,.96) 0%, rgba(20,24,48,.88) 45%, rgba(34,42,84,.72) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--blue); z-index: -1; }
.hero .facts, .hero .facts li { border-color: rgba(170,179,230,.25); }
.hero .call .btn:hover { background: var(--blue-on-ink); }
@media (max-width: 820px) { .hero::before { background: linear-gradient(180deg, rgba(14,16,32,.94), rgba(20,24,48,.9)); } }

/* ===== 15/11 (v2) : DA nuit, réglée pour la lisibilité =====
   Règles : le sombre est réservé aux blocs courts et forts (hauts de page, chiffres, carte, appel, pied de page).
   Tout ce qui se lit longtemps (schéma, avis, listes) reste sur fond clair. Pas de motif derrière du texte. */
:root { --nuit: #12152a; --nuit-2: #191d38; --nuit-texte: #d4d8e6; }

/* Hauts de page intérieurs : la même photo en dégradé que l'accueil */
.page-head, section:has(> .about-in) {
  position: relative; isolation: isolate; color: var(--white); --muted: var(--nuit-texte);
  background: #262f5c url(images/hero-sol.jpg) center 40% / cover no-repeat; background-blend-mode: luminosity;
  border-bottom: 4px solid var(--blue); }
.page-head::before, section:has(> .about-in)::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(14,16,32,.95) 0%, rgba(20,24,48,.88) 50%, rgba(34,42,84,.74) 100%); }
:is(.page-head, section:has(> .about-in)) :is(h1, h2, h3) { color: var(--white); }
:is(.page-head, section:has(> .about-in)) .eyebrow, :is(.page-head, section:has(> .about-in)) .eyebrow a { color: var(--blue-on-ink); }
:is(.page-head, section:has(> .about-in)) .eyebrow::after { background: var(--blue-on-ink); }
:is(.page-head, section:has(> .about-in)) .lead { color: var(--nuit-texte); }
:is(.page-head, section:has(> .about-in)) .lead strong { color: var(--white); }
:is(.page-head, section:has(> .about-in)) :focus-visible { outline-color: var(--white); }
.page-head .todo, section:has(> .about-in) .todo { color: var(--ink); }
section:has(> .about-in) .ph { color: var(--nuit-texte); background-color: rgba(255,255,255,.06); }
@media (max-width: 820px) { .page-head::before, section:has(> .about-in)::before { background: rgba(14,16,32,.9); } }

/* Chiffres clés (À propos) : court et fort, donc en nuit, à plat */
.stats-block { background: var(--nuit); color: var(--white); --muted: var(--nuit-texte); }
.stats-block :is(h2, h3) { color: var(--white); }
.stats-block .eyebrow { color: var(--blue-on-ink); }
.stats-block .eyebrow::after { background: var(--blue-on-ink); }
.stats-block .stats li { border-color: var(--blue-on-ink); }
.stats-block .stats li::before, .stats-block .stats li::after { background: var(--blue-on-ink); }
.stats-block .stats strong { color: var(--white); }
.stats-block .stats span { color: var(--nuit-texte); }
.stats-block a { color: var(--white); }

/* Pied de page */
.foot { background: #0c0e1d; color: var(--nuit-texte); }
.foot a { color: var(--white); }

/* ===== 15/11 (v2) : coupe de douche lisible, sur fond clair ===== */
.tech { background: var(--stone); color: var(--ink); }
.tech .eyebrow { color: var(--blue); }
.tech h2 { color: var(--ink); }
.tech-sub { color: var(--muted); }
.tech :focus-visible { outline-color: var(--blue); }
.layers button { color: var(--muted); border-top-color: var(--joint); display: flex; align-items: center; gap: 12px; min-height: 48px; }
.layers button:last-child { border-bottom-color: var(--joint); }
.layers button:hover { color: var(--ink); }
.layers button[aria-pressed="true"] { color: var(--ink); border-left-color: var(--blue); background: var(--white); }
.lnum { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; font: 700 .8rem var(--text); }
.layers button[aria-pressed="true"] .lnum { background: var(--blue); border-color: var(--blue); color: var(--white); }
.section { overflow: visible; }
.section .couche { cursor: pointer; }
.section .couche polygon { stroke: #8a8375; stroke-width: 1; transition: stroke var(--d-short) var(--ease); }
.section .c-tile polygon { fill: #ffffff; stroke: var(--ink); }
.section .c-glue polygon { fill: #c4bba9; }
.section .c-seal polygon { fill: #7d89c9; stroke: var(--blue); }
.section .c-slope polygon { fill: #e6dfd2; }
.section .c-base polygon { fill: url(#beton); }
.section .couche.on polygon { stroke: var(--blue); stroke-width: 3; }
.section .lead { fill: none; stroke: #8a8375; stroke-width: 1; }
.section .pastille { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
.section .pnum { font: 700 12px var(--text); fill: var(--ink); text-anchor: middle; }
.section .plab { font: 600 17px var(--text); fill: var(--ink); }
.section .couche.on .lead { stroke: var(--blue); stroke-width: 2; }
.section .couche.on .pastille { fill: var(--blue); stroke: var(--blue); }
.section .couche.on .pnum { fill: var(--white); }
.section .couche.on .plab { fill: var(--blue); font-weight: 800; }
.section .joints path { stroke: var(--ink); stroke-width: 1.5; pointer-events: none; }
.section .drain { fill: #2a2d36; stroke: var(--ink); }
.section .grille { fill: #9aa0ad; stroke: var(--ink); }
.section .flow { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 7 6; fill: none; }
.section .flow-t { font: 600 15px var(--text); fill: var(--blue); }
.section .echelle { font: 500 12px var(--text); fill: var(--muted); }
.layer-text { color: var(--ink); background: var(--white); border-left: 3px solid var(--blue); padding: 14px 18px; }
@media (max-width: 820px) { .section .plab { font-size: 17px; } }
.article-side .btn, .article-side .btn:hover { color: var(--white); }

/* ===== 15/11 : formulaire, plusieurs projets possibles ===== */
legend .hint { display: block; font: 500 .85rem var(--text); color: var(--muted); margin-top: 2px; }
.opts.multi .opt { position: relative; }
.opts.multi .opt::after { content: ""; margin-left: auto; width: 18px; height: 18px; flex: none; border: 1.5px solid var(--joint-strong, #8a8375); background: var(--white); }
.opts.multi .opt[aria-pressed="true"]::after { content: "✓"; display: grid; place-items: center; font: 700 12px/1 var(--text); color: var(--ink); background: var(--white); border-color: var(--white); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.sel-count { font-size: .9rem; color: var(--muted); }

/* ===== 15/11 : bande des marques, en nuit ===== */
.marques { background: var(--nuit, #12152a); color: var(--white); padding: 72px 0 64px; }
.marques-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 36px; }
.marques h2 { color: var(--white); }
.marques .eyebrow { color: var(--blue-on-ink); }
.marques .eyebrow::after { background: var(--blue-on-ink); }
.marques .head-note { color: var(--nuit-texte, #d4d8e6); max-width: 30em; }
.marques-defile .marquee-track { gap: 0; padding: 0; border-top: 1px solid rgba(170,179,230,.22); border-bottom: 1px solid rgba(170,179,230,.22); }
.marque { flex: none; width: 260px; padding: 26px 28px; border-right: 1px solid rgba(170,179,230,.22); display: flex; flex-direction: column; gap: 8px; }
.marque b { font: 800 1.9rem/1 var(--title); font-stretch: var(--title-width, 125%); letter-spacing: -0.01em; color: var(--white); text-transform: uppercase; }
.marque span { font: 600 .78rem/1.3 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-on-ink); }
.marques-defile:hover .marque b { color: var(--white); }
@media (max-width: 820px) {
  .marques { padding: 56px 0 48px; }
  .marques-head { flex-direction: column; align-items: start; gap: 12px; }
  .marque { width: 200px; padding: 20px 22px; }
  .marque b { font-size: 1.5rem; }
}
.opts.multi .opt[aria-pressed="true"] { background: #e6e9f6; color: var(--ink); box-shadow: inset 3px 0 0 var(--blue); }
.opts.multi .opt[aria-pressed="true"] svg { color: var(--blue); }
.opts.multi .opt[aria-pressed="true"]::after { background: var(--blue); border-color: var(--blue); color: var(--white); }
.marque { width: auto; min-width: 230px; padding: 26px 40px; }
.marque b { white-space: nowrap; }
@media (max-width: 820px) { .marque { min-width: 180px; padding: 20px 26px; } }

/* 18/11 : retours d'Ergün */
/* Gros titres des sections claires dans le bleu du haut de page */
.block h2 { color: var(--blue); }
/* Prestations : léger zoom de la photo au survol */
.services a { overflow: hidden; }
.services img { transition: transform .6s cubic-bezier(.2,.7,.2,1); transform-origin: center; }
.services a:hover img, .services a:focus-visible img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .services img { transition: none; } .services a:hover img { transform: none; } }
/* À propos : photo un peu plus petite */
.about-in { grid-template-columns: .7fr 1.3fr; }
.about-in .about-photo { max-width: 400px; justify-self: center; }
@media (max-width: 900px) { .about-in { grid-template-columns: 1fr; } .about-in .about-photo { max-width: 320px; } }
/* Réalisations : nombre de photos du chantier */
[data-lightbox] .card a { position: relative; }
.card .nb { position: absolute; top: 12px; right: 12px; background: rgba(17,17,17,.78); color: var(--white); font: 600 .8rem/1 var(--title); padding: 6px 9px; }
/* Conseils : bande de photos de chantiers en haut de page */
.head-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 36px; }
.head-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.head-strip img:nth-child(even) { transform: translateY(18px); }
@media (max-width: 700px) { .head-strip { grid-template-columns: repeat(3, 1fr); } .head-strip img:nth-child(n+4) { display: none; } }
/* Cartes : même léger zoom au survol que les prestations */
.grid-cards .card a { overflow: hidden; display: block; }
.grid-cards .card img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.grid-cards .card a:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .grid-cards .card img { transition: none; } .grid-cards .card a:hover img { transform: none; } }
/* Accueil : préparation du support */
.support-lead { max-width: 62ch; margin: 0 0 36px; }
.support-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.support-steps li { counter-increment: s; }
.support-steps img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 16px; }
.support-steps h3 { font-size: 1.25rem; margin-bottom: 6px; }
.support-steps h3::before { content: counter(s) ". "; color: var(--blue); }
.support-steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .support-steps { grid-template-columns: 1fr; } }
