@font-face{font-family:"PPB Sans";src:url("fonts/heros-400.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"PPB Sans";src:url("fonts/heros-700.woff") format("woff");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"PPB Display";src:url("fonts/poppins-500.woff") format("woff");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"PPB Display";src:url("fonts/poppins-700.woff") format("woff");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"PPB Mono";src:url("fonts/mono-400.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"PPB Mono";src:url("fonts/mono-700.woff") format("woff");font-weight:700;font-style:normal;font-display:swap}
/* PPB Chemisage
   Site d'artisan spécialisé : fond blanc, bleu marine du logo, filets fins,
   schémas techniques sur papier millimétré, vue caméra d'inspection. */
:root {
  --bg: #ffffff;
  --alt: #f1f4f8;
  --ink: #101b2c;
  --muted: #4f5d70;
  --line: #d9e0e8;
  --grid: #e6ebf1;
  --accent: #22408e;
  --accent-hover: #1a3270;
  --on-accent: #ffffff;
  --link: #2459a8;
  --mark: #32c5f4;
  --band: #16295c;
  --on-band: #ffffff;
  --band-muted: #c2d0ea;
  --logo-1: #22408e; --logo-1o: .62;
  --logo-2: #6ba6da; --logo-2o: .62;
  --logo-3: #32c5f4; --logo-3o: .55;
  --logo-dot: #2d70b8;
  --wall: #b9c3ce;
  --wall-edge: #8c99a8;
  --liner: #2d70b8;
  --resin: #32c5f4;
  --hat: #32c5f4;
  --packer: #93a6b8;
  --defect: #c96a12;
  --cam-osd: #f5d547;
  --cam-rec: #e5484d;
  --font-display: "PPB Display", "Avenir Next", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --font-body: "PPB Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "PPB Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-sm: .9rem;
  --fs-base: 1.0625rem;
  --head-h: 72px;
  --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1422; --alt: #121d2f; --ink: #e5ebf3; --muted: #9ba9bb; --line: #243349; --grid: #18253a;
    --accent: #6ba6da; --accent-hover: #8ec0ea; --on-accent: #0c1422; --link: #8ec0ea; --mark: #32c5f4;
    --band: #142a52; --on-band: #ffffff; --band-muted: #b8c8e6;
    --logo-1: #5d83d6; --logo-1o: .8; --logo-2: #6ba6da; --logo-2o: .7; --logo-3: #32c5f4; --logo-3o: .55; --logo-dot: #6ba6da;
    --wall: #3a4a5e; --wall-edge: #58697e; --liner: #6ba6da; --resin: #32c5f4; --hat: #32c5f4; --packer: #5f758b; --defect: #ec9a4b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1422; --alt: #121d2f; --ink: #e5ebf3; --muted: #9ba9bb; --line: #243349; --grid: #18253a;
  --accent: #6ba6da; --accent-hover: #8ec0ea; --on-accent: #0c1422; --link: #8ec0ea; --mark: #32c5f4;
  --band: #142a52; --on-band: #ffffff; --band-muted: #b8c8e6;
  --logo-1: #5d83d6; --logo-1o: .8; --logo-2: #6ba6da; --logo-2o: .7; --logo-3: #32c5f4; --logo-3o: .55; --logo-dot: #6ba6da;
  --wall: #3a4a5e; --wall-edge: #58697e; --liner: #6ba6da; --resin: #32c5f4; --hat: #32c5f4; --packer: #5f758b; --defect: #ec9a4b;
  color-scheme: dark;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.6;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 2.85rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
.small { font-size: var(--fs-sm); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--bg); padding: 10px 14px; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.wrap {
  max-width: 1160px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) {
  .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }
}
.page { min-height: 100%; display: flex; flex-direction: column; }
main { flex: 1; }

/* ------------------------------------------------------------ boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius);
  font: 500 .98rem/1.2 var(--font-display); text-decoration: none; text-align: center;
  border: 1.5px solid transparent; cursor: pointer; font-variant-numeric: tabular-nums;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--alt); color: var(--accent-hover); }
.btn-light { background: var(--on-band); color: var(--band); }
.btn-light:hover { background: var(--band-muted); color: var(--band); }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ------------------------------------------------------------ en-tête */
.topbar { background: var(--band); color: var(--band-muted); font-size: .84rem; }
.topbar-row { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.topbar a { color: var(--on-band); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 760px) { .topbar { display: none; } }
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 20px; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; color: var(--ink); flex: none; text-decoration: none; }
.brand:hover { color: var(--ink); }
.lockup { display: inline-flex; align-items: center; gap: 12px; }
.mark { height: 40px; width: auto; display: block; flex: none; }
.mark .m1 { fill: var(--logo-1); fill-opacity: var(--logo-1o); }
.mark .m2 { fill: var(--logo-2); fill-opacity: var(--logo-2o); }
.mark .m3 { fill: var(--logo-3); fill-opacity: var(--logo-3o); }
.lock-txt { display: flex; align-items: center; gap: 12px; }
.lock-name { font: 700 1.6rem/1 var(--font-display); letter-spacing: -.03em; }
.lock-dot { color: var(--logo-dot); }
.lock-tag { font: 500 .78rem/1.25 var(--font-display); color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li > a, .sub-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px;
  font: 500 .97rem/1 var(--font-display); color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav-list > li > a:hover, .sub-btn:hover { color: var(--link); }
.nav-list a[aria-current="page"], .has-sub.is-current > .sub-btn { box-shadow: inset 0 -3px 0 var(--mark); }
.sub-btn::after { content: ""; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.has-sub { position: relative; }
.sub {
  list-style: none; margin: 0; padding: 6px 0; display: none;
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 270px;
  background: var(--bg); border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(16, 27, 44, .12);
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .sub-btn[aria-expanded="true"] + .sub { display: block; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 6px; }
.sub a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 16px; color: var(--ink); text-decoration: none; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--alt); color: var(--link); }
.code { font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-cta .btn { min-height: 44px; padding: 0 16px; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 0 14px;
    font: 500 1rem/1 var(--font-display); color: var(--ink); background: var(--bg);
    border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .menu-ico, .menu-ico::before, .menu-ico::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; }
  .menu-ico::before { top: -6px; } .menu-ico::after { top: 6px; }
  .js .nav { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 4px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
    max-height: calc(100dvh - var(--head-h)); overflow-y: auto;
  }
  .js .site-head.is-open .nav { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a, .sub-btn { width: 100%; min-height: 52px; padding: 0 2px; font-size: 1.06rem; }
  .sub-btn { pointer-events: none; color: var(--muted); font-size: .9rem; min-height: 40px; }
  .sub-btn::after { display: none; }
  .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 8px; min-width: 0; }
  .sub a { padding: 11px 2px; font-size: 1.02rem; }
  .nav-list a[aria-current="page"], .has-sub.is-current > .sub-btn { box-shadow: none; color: var(--link); }
  .nav-cta { margin-top: 16px; }
  .nav-cta .btn { width: 100%; min-height: 52px; }
  .has-sub::after { display: none; }
}
@media (max-width: 420px) { .mark { height: 34px; } .lock-name { font-size: 1.4rem; } .lock-tag { font-size: .7rem; } }

/* ------------------------------------------------------------ sections */
.lede { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 60ch; margin-top: 16px; line-height: 1.55; }
.section { padding-block: clamp(52px, 6.5vw, 92px); }
.section-alt { background: var(--alt); }
.sec-head { max-width: 60ch; margin-bottom: clamp(24px, 3.5vw, 40px); display: grid; gap: 12px; }
.sec-head p { color: var(--muted); }
.note { margin-top: 6px; padding-left: 12px; border-left: 3px solid var(--mark); color: var(--muted); font-size: var(--fs-sm); }
.split { display: grid; gap: clamp(24px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } .split .sec-head { margin-bottom: 0; } }

/* ------------------------------------------------------------ hero */
.hero { padding-block: clamp(32px, 5vw, 72px) clamp(44px, 6vw, 84px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 60px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.hero h1 { max-width: 19ch; }
.hero-note { margin-top: 18px; font-size: var(--fs-sm); color: var(--muted); }

/* Vue caméra */
.cam { margin: 0; }
.cam-screen {
  position: relative; border-radius: 6px; overflow: hidden; background: #0a0f16;
  aspect-ratio: 4 / 3; max-width: 100%;
  box-shadow: 0 0 0 1px rgba(16, 27, 44, .3), 0 22px 50px -26px rgba(16, 27, 44, .6);
}
.cam-svg { display: block; width: 100%; height: 100%; }
.cam figcaption { margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); }
.cam-wide { max-width: 760px; margin: 0 0 clamp(32px, 4vw, 48px); }
.osd text { font-family: var(--font-mono); font-size: 19px; fill: var(--cam-osd); paint-order: stroke; stroke: rgba(0, 0, 0, .75); stroke-width: 3px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.osd .osd-tag { font-size: 15px; }
.osd .osd-box { fill: none; stroke: var(--cam-osd); stroke-width: 2.5; }
.osd .osd-rec { fill: var(--cam-rec); animation: rec 1.4s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: .15; } }

/* ------------------------------------------------------------ techniques (accueil) */
.tech-index { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.ti { display: grid; gap: 6px 32px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; grid-template-columns: minmax(0, 1fr); }
.ti-name { font: 700 clamp(1.15rem, 1.05rem + .5vw, 1.4rem)/1.2 var(--font-display); letter-spacing: -.01em; color: var(--accent); }
.ti-desc { color: var(--ink); max-width: 62ch; }
.ti-meta { font-size: var(--fs-sm); color: var(--muted); }
.ti:hover .ti-name { text-decoration: underline; text-underline-offset: .2em; }
@media (min-width: 900px) {
  .ti { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) minmax(0, 12rem); align-items: baseline; padding: 24px 0; }
  .ti-meta { text-align: right; }
}

/* ------------------------------------------------------------ cas fréquents */
.cases { margin: 0; display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.cases > div { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.cases dt { font-weight: 700; line-height: 1.35; }
.cases dd { margin: 6px 0 0; color: var(--muted); }

/* ------------------------------------------------------------ tableaux */
.table-wrap { overflow-x: auto; }
table.compare, table.equip { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.compare { min-width: 540px; }
.compare th, .compare td, table.equip th, table.equip td { text-align: left; vertical-align: top; padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); }
.compare thead th { font: 700 .95rem/1.3 var(--font-display); color: var(--muted); border-bottom: 2px solid var(--ink); }
.compare thead th:last-child { color: var(--accent); }
.compare tbody th { font-weight: 700; width: 28%; }
.compare td:nth-child(2) { color: var(--muted); }
.compare td:last-child { font-weight: 700; }
table.equip { border-top: 2px solid var(--ink); }
table.equip th { font-weight: 700; width: 42%; }
table.equip td { color: var(--muted); }

/* ------------------------------------------------------------ étapes */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 0; }
.steps li { counter-increment: st; position: relative; padding: 16px 0 16px 52px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 13px; font: 700 1.6rem/1 var(--font-display); color: var(--accent); }
.steps strong { font-family: var(--font-display); font-weight: 700; }

/* ------------------------------------------------------------ secteurs */
.zones { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.zone { border-top: 2px solid var(--accent); padding-top: 14px; }
.zone h3 a { color: var(--ink); text-decoration: none; }
.zone h3 a:hover { color: var(--link); }
.zone-code { color: var(--accent); margin-right: 6px; font-variant-numeric: tabular-nums; }
.zone p { margin-top: 8px; color: var(--muted); font-size: var(--fs-sm); }
.facts { margin: 6px 0 0; display: grid; font-size: var(--fs-sm); }
.facts > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }

/* ------------------------------------------------------------ texte courant */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin-top: 1.9em; }
.prose h2:first-child { margin-top: 0; }
.prose h2 + * { margin-top: .7em; }
.list { padding-left: 1.2em; margin: 0; }
.steps-list { padding-left: 1.8em; margin: 0; }
.list li, .steps-list li { padding-left: .25em; }
.list li + li, .steps-list li + li { margin-top: .4em; }
.list li::marker { color: var(--accent); }
.steps-list li::marker { font-family: var(--font-display); color: var(--accent); font-weight: 700; }
.towns { font-size: var(--fs-sm); color: var(--muted); font-style: italic; }
.link-list a { font-weight: 700; }

/* ------------------------------------------------------------ pages intérieures */
.page-head { padding-block: clamp(24px, 3.5vw, 44px) clamp(28px, 4vw, 44px); }
.page-head h1 { max-width: 24ch; }
.page-short { padding-block: clamp(48px, 8vw, 110px); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0 0 22px; padding: 0; font-size: var(--fs-sm); color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 9px; }
.crumbs a { color: var(--muted); }
.doc { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(52px, 6.5vw, 88px); }
@media (min-width: 980px) {
  .doc { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
  .doc-aside { position: sticky; top: calc(var(--head-h) + 24px + env(safe-area-inset-top, 0px)); }
  .doc-single { grid-template-columns: minmax(0, 1fr); }
}
.doc-main { min-width: 0; }
.doc-aside { display: grid; gap: 16px; min-width: 0; }
.aside-box { background: var(--alt); padding: 20px; border-radius: var(--radius); }
.aside-h { font: 700 1rem/1.3 var(--font-display); margin-bottom: 10px; }
.aside-box p + p, .aside-box .btn { margin-top: 12px; }
.aside-box .aside-h:not(:first-child) { margin-top: 22px; }
.spec dl { margin: 0; display: grid; }
.spec dl > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.spec dt { font-size: var(--fs-sm); color: var(--muted); }
.spec dd { margin: 0; font-size: var(--fs-sm); font-weight: 700; }
.call-num a { font: 700 1.45rem/1.1 var(--font-display); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.call-num a:hover { color: var(--link); }
.mail a { font-weight: 700; font-size: .95rem; overflow-wrap: anywhere; }
.see-also { margin-top: 2.6em; padding-top: 18px; border-top: 1px solid var(--line); }
.see-also h2 { font-size: 1.05rem; margin: 0 0 8px; }
.see-also ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.see-also a { font-weight: 700; }

/* ------------------------------------------------------------ schémas (papier millimétré) */
.plan { margin: 0 0 clamp(32px, 4.5vw, 52px); }
.plan-sheet {
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
  border: 1px solid var(--line); padding: clamp(10px, 2.5vw, 26px);
}
.plan-tall .plan-sheet { max-width: 760px; }
.plan figcaption { display: grid; gap: 12px; margin-top: 14px; }
.plan-cap { font-size: var(--fs-sm); font-weight: 700; }
.nomen { margin: 0; display: grid; gap: 8px 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.nomen > div { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: var(--fs-sm); }
.nomen dt { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 700 .74rem/1 var(--font-display); transform: translateY(4px); }
.nomen dd { margin: 0; }
.dg { display: block; width: 100%; height: auto; }
.dg .wall { fill: var(--wall); stroke: var(--wall-edge); stroke-width: 1; }
.dg .liner { fill: var(--liner); }
.dg .liner-flat { fill: var(--liner); opacity: .5; }
.dg .resin { fill: var(--resin); }
.dg .hat { fill: var(--hat); stroke: var(--liner); stroke-width: 1; }
.dg .packer { fill: var(--packer); }
.dg .mist { fill: var(--resin); }
.dg .crack { fill: none; stroke: var(--defect); stroke-width: 3; stroke-linejoin: round; }
.dg .equip { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }
.dg .equip-line { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.dg .shaft { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.dg .bristle { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.dg .cable { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 5; }
.dg .flow { stroke: var(--link); stroke-width: 2.5; fill: none; }
.dg .flow-head { fill: var(--link); }
.dg .dim { stroke: var(--muted); stroke-width: 1.2; }
.dg .dim-t { fill: var(--muted); font: 14px var(--font-body); }
.dg .lead { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; }
.dg .tick { fill: var(--ink); }
.dg .rep circle { fill: var(--ink); }
.dg .rep text { fill: var(--bg); font: 700 15px var(--font-display); }
.dg .building { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }
.dg .floor { stroke: var(--line); stroke-width: 1.5; }
.dg .window { fill: var(--alt); stroke: var(--line); stroke-width: 1.5; }
.dg .gaine { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 5 4; }
.dg .basement { fill: var(--alt); stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 4; }
.dg .ground { stroke: var(--ink); stroke-width: 2; }

/* ------------------------------------------------------------ FAQ, matériel */
.toc { border-left: 3px solid var(--mark); padding: 2px 0 2px 16px; }
.toc ol, .toc ul { margin: 0; padding-left: 1.3em; columns: 2 17rem; column-gap: 32px; font-size: var(--fs-sm); }
.toc ul { list-style: none; padding-left: 0; }
.toc li { break-inside: avoid; padding: 3px 0; }
.qa { padding-top: 24px; border-top: 1px solid var(--line); margin-top: 24px; }
.qa h2 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); margin: 0 0 8px; }
.mat { padding-top: 26px; border-top: 1px solid var(--line); margin-top: 26px; }
.mat h2 { margin: 0 0 10px; }
.mat p + p { margin-top: .8em; }
.mat-use { font-size: var(--fs-sm); color: var(--muted); }

/* ------------------------------------------------------------ formulaire */
.form { display: grid; gap: 18px; background: var(--alt); padding: clamp(18px, 3vw, 30px); border-radius: var(--radius); }
.f-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.f { display: grid; gap: 6px; min-width: 0; margin: 0; border: 0; padding: 0; }
.f label, .f legend { font-weight: 700; font-size: var(--fs-sm); padding: 0; }
.f input:not([type="radio"]), .f select, .f textarea {
  width: 100%; min-height: 48px; padding: 11px 12px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.f textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--link); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 22%, transparent); }
.f [aria-invalid="true"] { border-color: var(--defect) !important; }
.f-help { font-size: var(--fs-sm); color: var(--muted); margin-top: -8px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; width: max-content; margin-top: 4px; background: var(--bg); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 10px 22px; cursor: pointer; font-weight: 700; min-width: 84px; text-align: center; }
.seg input:checked + label { background: var(--accent); color: var(--on-accent); }
.seg input:focus-visible + label { outline: 3px solid var(--link); outline-offset: -3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 13px 15px; background: var(--bg); border-left: 3px solid var(--link); font-weight: 700; }
.form-msg.is-error { border-left-color: var(--defect); }
.todo { font-size: .76rem; font-weight: 700; text-transform: uppercase; background: var(--defect); color: #fff; padding: 2px 6px; border-radius: 3px; }
.kv { margin: 0; display: grid; }
.kv > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 4px 20px; padding: 10px 0; border-top: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: var(--fs-sm); }
.kv dd { margin: 0; }
@media (max-width: 600px) { .kv > div { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ bandeau d'appel */
.band { background: var(--band); color: var(--on-band); }
.band-row { display: grid; gap: 24px; padding-block: clamp(40px, 5.5vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .band-row { grid-template-columns: minmax(0, 1fr) auto; } }
.band-h { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); max-width: 28ch; }
.band p { color: var(--band-muted); margin-top: 10px; }
.band-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.band-tel { font: 700 1.5rem/1 var(--font-display); color: var(--on-band); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.band-tel:hover { color: var(--band-muted); }

/* ------------------------------------------------------------ pied de page */
.site-foot { background: var(--alt); font-size: var(--fs-sm); }
.foot-grid { display: grid; gap: 32px; padding-block: 48px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.foot-brand { display: grid; gap: 10px; align-content: start; }
.foot-brand p { color: var(--muted); max-width: 34ch; }
.foot-tel a { font: 700 1.2rem/1 var(--font-display); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.logo-foot .mark { height: 34px; }
.foot-h { font: 700 .98rem/1.3 var(--font-display); margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { color: var(--link); text-decoration: underline; }
.foot-brand a[href^="mailto"] { overflow-wrap: anywhere; }
.foot-legal { padding-block: 16px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* Barre d'appel mobile */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--bg); border-top: 1px solid var(--line);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
  .callbar .btn { min-height: 48px; }
  .site-foot { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .osd .osd-rec { animation: none; }
}
