/* D+B SANITAIRES — la feuille de la maquette.
   Hors du parc : couleurs en dur, une seule feuille. Direction : le plan
   d'installateur. Le papier, l'encre, le laiton des raccords ; le rouge et
   le bleu ne servent qu'à ce qu'ils disent sur un chantier — l'eau chaude,
   l'eau froide — et le rouge, en plus, à l'urgence. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 400 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --papier: #f3efe5;
  --papier-2: #ebe5d7;
  --carte: #fbf9f4;
  --encre: #1d2127;
  --encre-2: #4b5058;
  --filet: #cbc2b0;
  --laiton: #b0822f;
  --laiton-texte: #7a5512;
  --laiton-clair: #d9ad5e;
  --chaud: #b8352a;
  --chaud-fonce: #962a21;
  --froid: #2366a6;
  --usee: #7c8088;
  --nuit: #1b1f25;
  --nuit-2: #252a32;
  --nuit-filet: #3a404a;
  --nuit-texte: #ece6d8;
  --nuit-doux: #b6b0a3;
  --texte: "Archivo", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, monospace;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --large: 76rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 1.0625rem/1.6 var(--texte); font-stretch: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; font-stretch: 78%; font-weight: 760; line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--laiton); outline-offset: 3px; }

.mono { font-family: var(--mono); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }
.cadre { width: min(100% - 2 * var(--gouttiere), var(--large)); margin-inline: auto; }
.discret { color: var(--encre-2); font-size: 0.875rem; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--encre); color: var(--papier); }
.evitement:focus { top: 1rem; }
.sans-js [data-js] { display: none !important; }

/* Le surtitre : un bout de conduite et son raccord, avant le mot. */
.sur { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; color: var(--laiton-texte); }
.sur::before { content: ""; width: 1.75rem; height: 0.5rem; border-block: 2px solid currentColor; border-right: 6px solid currentColor; }
.section-nuit .sur { color: var(--laiton-clair); }

/* ---- Le bandeau de la maquette ---- */
.maquette { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1rem; padding: 0.5rem var(--gouttiere); background: var(--nuit); color: var(--nuit-texte); font-size: 0.8125rem; text-align: center; }
.maquette span { font-weight: 700; }
.maquette a { color: var(--laiton-clair); }

/* ---- Boutons ---- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.7rem 1.35rem; border: 2px solid transparent; border-radius: 3px;
  font: 700 1rem/1.1 var(--texte); font-stretch: 90%; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.bouton-plein { background: var(--encre); color: var(--papier); }
.bouton-plein:hover { background: #000; }
.bouton-contour { background: transparent; color: var(--encre); border-color: var(--encre); }
.bouton-contour:hover { background: var(--encre); color: var(--papier); }
.bouton-urgence { background: var(--chaud); color: #fff; }
.bouton-urgence:hover { background: var(--chaud-fonce); }
.bouton-large { width: 100%; }
.point { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .bouton-urgence .point { animation: battre 1.6s ease-in-out infinite; }
}
@keyframes battre { 50% { opacity: 0.25; } }

/* ---- En-tête ---- */
.entete {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.25rem; padding: 0.6rem var(--gouttiere);
  background: rgb(243 239 229 / 0.94); border-bottom: 1px solid var(--filet);
  backdrop-filter: blur(6px);
}
.marque { display: flex; align-items: center; gap: 0.6rem; margin-right: auto; text-decoration: none; }
.marque-coude { color: var(--laiton); flex: none; }
.marque-nom { font-weight: 800; font-stretch: 75%; font-size: 1.6rem; letter-spacing: 0.01em; line-height: 1; }
.marque-metier { display: none; padding-left: 0.6rem; border-left: 1px solid var(--filet); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--encre-2); }
.entete-nav { display: none; gap: 1.6rem; }
.entete-nav a { font-weight: 600; font-stretch: 90%; text-decoration: none; white-space: nowrap; }
.entete-nav a:hover { text-decoration: underline; }
.entete .bouton-urgence { min-height: 2.6rem; padding: 0.5rem 1rem; }
.entete-menu { display: grid; gap: 6px; place-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.entete-menu span { display: block; width: 1.5rem; height: 2px; background: currentColor; }
/* « D+B Sanitaires » ne tient pas sur une ligne à côté d'« Urgence » et du
   menu : sous 44 rem, le nom se pose sur deux lignes, serré, comme un bloc. */
@media (max-width: 43.99rem) {
  .entete { gap: 0.9rem; }
  .marque-nom { font-size: 1.3rem; line-height: 0.95; }
}
@media (min-width: 44rem) { .marque-metier { display: block; } .marque-nom { white-space: nowrap; } }
@media (min-width: 64rem) and (max-width: 79.99rem) { .marque-metier { display: none; } .entete-nav { gap: 1.2rem; } }
@media (min-width: 64rem) {
  .entete-nav { display: flex; }
  .entete-menu { display: none; }
}
.menu-mobile { inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 5.5rem var(--gouttiere) 2rem; border: 0; background: var(--papier); color: var(--encre); }
.menu-mobile nav { display: grid; gap: 0.25rem; }
.menu-mobile nav a { padding-block: 0.55rem; border-bottom: 1px solid var(--filet); font-size: 2rem; font-weight: 760; font-stretch: 78%; text-decoration: none; }
.menu-fermer { position: absolute; top: 0.75rem; right: var(--gouttiere); width: 2.75rem; height: 2.75rem; border: 0; background: none; cursor: pointer; }
.menu-fermer::before, .menu-fermer::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.5rem; height: 2px; background: var(--encre); }
.menu-fermer::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu-fermer::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---- Héros ---- */
.heros { padding-top: clamp(2rem, 5vw, 4.5rem); }
.heros-grille { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.heros-titre { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.4rem); font-stretch: 75%; font-weight: 780; }
.heros-chapo { max-width: 34rem; margin-top: 1.4rem; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); color: var(--encre-2); }
.heros-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.heros-actions .bouton-plein { background: var(--chaud); }
.heros-actions .bouton-plein:hover { background: var(--chaud-fonce); }
.piquet { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.4rem; font-size: 0.95rem; color: var(--encre-2); }
.piquet .point { color: var(--usee); }
.piquet[data-ouvert] .point { color: #2f8a4c; box-shadow: 0 0 0 4px rgb(47 138 76 / 0.16); }

.planche { margin: 0; border: 1px solid var(--encre); background: #f8f5ee; }
.planche .coupe { width: 100%; height: auto; padding: 0.75rem 0.75rem 0; }
.cartouche { border-top: 1px solid var(--encre); }
.cartouche dl { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.cartouche dl > div { padding: 0.5rem 0.75rem; border-right: 1px solid var(--encre); border-bottom: 1px solid var(--encre); }
.cartouche dl > div:nth-child(2n) { border-right: 0; }
.cartouche dl > div:nth-last-child(-n + 2) { border-bottom: 0; }
.cartouche dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-2); }
.cartouche dd { margin: 0; font-size: 0.88rem; font-weight: 600; font-stretch: 90%; }
.legende-reseaux { display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; }
.legende-reseaux button { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 1.75rem; padding: 0 0.3rem 0 0; border: 0; background: none; color: inherit; font: 500 0.88rem var(--texte); font-stretch: 90%; cursor: pointer; }
.legende-reseaux button::before { content: ""; width: 1.1rem; height: 3px; background: var(--c); transition: height 0.2s; }
.legende-reseaux button:hover, .legende-reseaux button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 0.2em; }
.legende-reseaux button[aria-pressed="true"]::before { height: 6px; }
.sans-js .legende-reseaux button { cursor: default; text-decoration: none; }
.coupe .tube, .coupe .flux { transition: opacity 0.25s; }
.coupe[data-seul="froide"] :is(.tube, .flux):not(.tube-froide, .flux-froide),
.coupe[data-seul="chaude"] :is(.tube, .flux):not(.tube-chaude, .flux-chaude),
.coupe[data-seul="chauffage"] :is(.tube, .flux):not(.tube-chauffage, .flux-chauffage),
.coupe[data-seul="usee"] :is(.tube, .flux):not(.tube-usee, .flux-usee) { opacity: 0.1; }
.r-froide { --c: var(--froid); } .r-chaude { --c: var(--chaud); } .r-chauffage { --c: var(--laiton); } .r-usee { --c: var(--usee); }
@media (min-width: 64rem) {
  .heros-grille { grid-template-columns: 1fr 1.3fr; }
  .cartouche dl { grid-template-columns: 1.5fr 1fr 2.3fr 1.4fr; }
  .cartouche dl > div { border-bottom: 0; }
  .cartouche dl > div:nth-child(2n) { border-right: 1px solid var(--encre); }
  .cartouche dl > div:last-child { border-right: 0; }
}
/* En téléphone, le plan garde une taille lisible et se fait glisser. */
.glisser { display: none; }
@media (max-width: 43.99rem) {
  .planche { overflow-x: auto; overscroll-behavior-x: contain; }
  .planche .coupe { width: 46rem; max-width: none; }
  .cartouche, .glisser { position: sticky; left: 0; width: calc(100vw - 2 * var(--gouttiere) - 2px); }
  .glisser { display: block; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--filet); color: var(--encre-2); text-align: center; }
  .atelier-carte .defile { overflow-x: auto; overscroll-behavior-x: contain; }
  .atelier-carte .carte { width: 38rem; max-width: none; }
}

.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: clamp(2.5rem, 5vw, 4rem); padding: 0; list-style: none; border-top: 1px solid var(--encre); }
.chiffres li { display: grid; gap: 0.2rem; padding: 1.1rem 1rem 1.3rem 0; border-bottom: 1px solid var(--filet); }
.chiffres strong { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); font-weight: 800; font-stretch: 75%; line-height: 1; }
.chiffres span { color: var(--encre-2); font-size: 0.95rem; }
@media (min-width: 52rem) { .chiffres { grid-template-columns: repeat(4, 1fr); } .chiffres li { border-bottom: 0; } }

/* ---- La coupe (le dessin) ---- */
.coupe { font-family: var(--mono); }
.terre { fill: url(#terre); }
.terre-grain { fill: #a3967b; }
.sol { fill: none; stroke: var(--encre); stroke-width: 1.6; }
rect.mur, polygon.mur { fill: url(#hachure); stroke: var(--encre); stroke-width: 1.2; }
rect.beton { fill: url(#hachure-dense); }
.hachure-trait { stroke: #958b7b; stroke-width: 1; }
.vitre { fill: #dbe7ec; stroke: var(--encre); stroke-width: 0.8; }
.trait { fill: none; stroke: var(--encre); stroke-width: 1; }
.trait-fort { fill: none; stroke: var(--encre); stroke-width: 1.6; }
.trait-fin { fill: none; stroke: var(--encre-2); stroke-width: 0.8; }
.cloison { fill: #d8d0bf; }
.cote { stroke: var(--encre-2); stroke-width: 0.8; stroke-dasharray: 3 3; }
.cote-fleche { fill: var(--encre-2); }
.cote-texte { font-size: 13px; fill: var(--encre-2); }
.niveau { font-family: var(--texte); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; fill: #665e50; }
.appareil { fill: var(--carte); stroke: var(--encre); stroke-width: 1.3; }
.cadran { fill: none; stroke: var(--encre); stroke-width: 1; }
.meuble { fill: #e6dfd0; stroke: var(--encre); stroke-width: 1.2; }
.plan { fill: var(--encre); }
.miroir { fill: #e1eaee; stroke: var(--encre); stroke-width: 1; }
.robinet { fill: none; stroke: var(--encre); stroke-width: 2.4; stroke-linecap: round; }
.caniveau { fill: var(--encre); }
.paroi { fill: none; stroke: #8fb3c9; stroke-width: 3; }
.plaque { fill: #cfc7b6; stroke: var(--encre); }
.vanne-corps { fill: var(--laiton); stroke: var(--encre); stroke-width: 1; }
.vanne-tige, .vanne-volant { fill: none; stroke: var(--laiton); stroke-width: 3; }
.socle { fill: #bdb4a3; }
.helice { fill: none; stroke: var(--encre); stroke-width: 1.3; }
.moyeu { fill: var(--encre); }
.radiateur { fill: var(--carte); stroke: var(--encre); stroke-width: 1.2; }
.tube { fill: none; stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; }
.tube-froide { stroke: var(--froid); }
.tube-chaude { stroke: var(--chaud); }
.tube-chauffage { stroke: var(--laiton); }
.tube-usee { stroke: var(--usee); stroke-width: 5; }
.flux { fill: none; stroke: rgb(255 255 255 / 0.8); stroke-width: 1.3; stroke-dasharray: 4 14; }
@media (prefers-reduced-motion: no-preference) {
  .flux { animation: couler 1.4s linear infinite; }
  .flux-chauffage { animation-duration: 2.2s; }
}
@keyframes couler { to { stroke-dashoffset: -36; } }
.rappel { fill: none; stroke: var(--encre); stroke-width: 0.9; }
.rappel-point { fill: var(--encre); }
.legende { font-size: 14px; fill: var(--encre); }
.cible { fill: transparent; }
.etiquette-lien .legende { fill: var(--laiton-texte); text-decoration: underline; }
.etiquette-lien:hover .legende, .etiquette-lien:focus-visible .legende { fill: var(--chaud); }
.etiquette-lien:hover .rappel-point { fill: var(--chaud); }
.etiquette-lien:focus-visible { outline: none; }
.etiquette-lien:focus-visible .cible { stroke: var(--laiton); stroke-width: 3; }

/* ---- Sections ---- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section h2 { font-size: clamp(2.1rem, 1.35rem + 2.8vw, 3.6rem); max-width: 22ch; }
.chapo { max-width: 40rem; margin-top: 1.2rem; font-size: clamp(1.05rem, 1rem + 0.25vw, 1.18rem); color: var(--encre-2); }
.section-papier { background: var(--papier-2); }
.section-nuit { background: var(--nuit); color: var(--nuit-texte); }
.section-nuit .chapo { color: var(--nuit-doux); }

/* L'ouverture d'un département : son nom en très grand, à côté de sa pièce de la coupe.
   Le titre de la section, dessous, reste un argument ; c'est ce nom qui dit où l'on est
   (le papier et le papier foncé ne se distinguent presque pas). */
.departement { display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 1.75rem); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.departement-nom { margin: 0; font-size: clamp(3.2rem, 11vw, 9.5rem); font-weight: 800; font-stretch: 75%; letter-spacing: -0.02em; line-height: 0.86; text-wrap: balance; }
.piece { height: clamp(4.4rem, 10.5vw, 8.6rem); width: auto; flex: none; overflow: visible; }
.p-fond { fill: var(--carte); }
.section-nuit .p-fond { fill: var(--nuit-2); }
.p-trait { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.p-trait-fin { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.p-laiton { fill: var(--laiton); stroke: currentColor; stroke-width: 1.6; }
.p-chrome { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.p-tube { fill: none; stroke: var(--laiton); stroke-width: 6; }
.p-eau { fill: none; stroke: var(--froid); stroke-width: 2; stroke-dasharray: 4 5; stroke-linecap: round; }
.p-fleche { fill: currentColor; }
.p-zone { fill: none; stroke-width: 5; }
.p-zone-ok { stroke: var(--laiton); }
.p-zone-danger { stroke: var(--chaud); }
.p-graduation { font-family: var(--mono); font-size: 9px; fill: currentColor; }
.p-unite { font-family: var(--mono); font-size: 8px; fill: currentColor; }
.p-aiguille { fill: none; stroke: var(--chaud); stroke-width: 2.6; stroke-linecap: round; }

/* ---- Dépannage ---- */
.depannage { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.tuiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.tuile {
  display: flex; align-items: center; gap: 0.75rem; min-height: 4rem; padding: 0.8rem 0.9rem;
  border: 1px solid var(--nuit-filet); border-radius: 3px; background: var(--nuit-2);
  font-weight: 650; font-stretch: 88%; line-height: 1.15; text-decoration: none;
}
.tuile:hover { border-color: var(--nuit-doux); }
.tuile[aria-selected="true"] { border-color: var(--laiton-clair); background: #2f3540; box-shadow: inset 4px 0 0 var(--laiton-clair); }
.tuile[data-urgence="maintenant"] .icone { stroke: #ef8b7f; }
.icone { width: 1.9rem; height: 1.9rem; flex: none; fill: none; stroke: var(--laiton-clair); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.symptomes { display: grid; gap: 1rem; }
.symptome { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--nuit-filet); border-radius: 3px; background: var(--nuit-2); }
.symptome-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--nuit-filet); }
.symptome h3 { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 2rem); }
.urgence { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.7rem; border-radius: 2px; font-weight: 700; font-stretch: 90%; }
.urgence .mono { font-size: 0.68rem; opacity: 0.85; }
.urgence-maintenant { background: var(--chaud); color: #fff; }
.urgence-aujourdhui { background: var(--laiton-clair); color: var(--nuit); }
.urgence-semaine { background: #d9d3c6; color: var(--nuit); }
.symptome-corps { display: grid; gap: 1.5rem; margin-top: 1.25rem; }
.symptome-etiquette { margin-bottom: 0.6rem; color: var(--laiton-clair); }
.symptome-cote p + .symptome-etiquette { margin-top: 1.2rem; }
.symptome-cote p { color: var(--nuit-texte); }
.gestes { display: grid; gap: 0.9rem; margin: 0; padding: 0; list-style: none; counter-reset: geste; }
.gestes li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.6rem; counter-increment: geste; font-size: 1.08rem; }
.gestes li::before { content: counter(geste, decimal-leading-zero); padding-top: 0.15rem; font-family: var(--mono); font-size: 0.85rem; color: var(--laiton-clair); }
@media (min-width: 44rem) { .tuiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) {
  .depannage { grid-template-columns: 19rem 1fr; align-items: start; }
  .tuiles { grid-template-columns: 1fr; }
  .symptome-corps { grid-template-columns: 1.3fr 1fr; gap: 2.5rem; }
}
.js .symptome[hidden] { display: none; }

.delai { display: grid; gap: 1rem; align-items: end; margin-top: 1.25rem; padding: 1.25rem clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--nuit-filet); border-radius: 3px; }
.delai-choix { display: grid; gap: 0.4rem; }
.delai-choix label { color: var(--laiton-clair); }
.delai select { min-height: 3rem; padding: 0.5rem 0.8rem; border: 1px solid var(--nuit-doux); border-radius: 3px; background: var(--nuit-2); color: var(--nuit-texte); font: 600 1.05rem var(--texte); }
.delai-resultat { font-size: 1.12rem; }
.delai-resultat strong { color: var(--laiton-clair); font-size: 1.35rem; font-stretch: 80%; }
@media (min-width: 64rem) { .delai { grid-template-columns: 16rem 1fr auto; align-items: center; } .delai .bouton-large { width: auto; } }

/* ---- Salle de bain ---- */
.sdb { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
.avant-apres { margin: 0; padding: 1rem; border: 1px solid var(--encre); background: #f8f5ee; }
.plans { width: 100%; height: auto; }
.plan-apres { clip-path: inset(0 0 0 var(--part, 50%)); }
.avant-apres figcaption { display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem; align-items: center; margin-top: 0.8rem; }
.sans-js .avant-apres figcaption { display: none; }
.sans-js .plan-apres { clip-path: none; transform: translateY(0); }
.curseur input { width: 100%; accent-color: var(--laiton-texte); }
.plan-mur { fill: var(--encre); }
.plan-sol { fill: #f8f5ee; }
.plan-porte { fill: none; stroke: var(--encre); stroke-width: 1; stroke-dasharray: 3 3; }
.plan-cote { font-family: var(--mono); font-size: 10px; fill: var(--encre-2); }
.plan-appareil { fill: var(--carte); stroke: var(--encre); stroke-width: 1.2; }
.plan-creux { fill: none; stroke: var(--encre); stroke-width: 1; }
.plan-trait { fill: var(--encre); }
.plan-douche { fill: #dbe7ee; stroke: var(--froid); stroke-width: 1.2; }
.plan-caniveau { fill: var(--encre); }
.plan-paroi { stroke: var(--froid); stroke-width: 3; }
.plan-meuble { fill: #e6dfd0; stroke: var(--encre); stroke-width: 1.2; }
.plan-nom { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; fill: var(--encre-2); }
.plan-coupure { stroke: var(--laiton); stroke-width: 3; }
.sans-js .plan-coupure { display: none; }
.jours { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--encre); }
.jour { display: grid; grid-template-columns: 5.2rem 1fr; gap: 0.2rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--filet); }
.jour-numero { grid-row: span 2; padding-top: 0.2rem; color: var(--laiton-texte); }
.jour-titre { font-size: 1.25rem; font-stretch: 85%; }
.jour p:not(.jour-numero) { color: var(--encre-2); }
.jour-repos { background: repeating-linear-gradient(-45deg, transparent 0 9px, rgb(176 130 47 / 0.12) 9px 10px); }
@media (min-width: 64rem) {
  .sdb { grid-template-columns: 1fr 1.1fr; align-items: start; gap: 4rem; }
  .avant-apres { position: sticky; top: 6rem; }
}

/* ---- Chauffage et subvention ---- */
.estimateur { display: grid; gap: 1.25rem; margin-top: 2.5rem; scroll-margin-top: 5.5rem; }
.estimateur-form { display: grid; gap: 1rem; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: 0.6rem; padding: 0; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--laiton-texte); }
.estimateur-form fieldset { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1.1rem; border: 1px solid var(--filet); border-radius: 3px; background: var(--carte); }
.estimateur-form legend { float: left; width: 100%; }
.choix { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.45rem 0.85rem 0.45rem 0.65rem; border: 1px solid var(--filet); border-radius: 3px; background: var(--papier); font-weight: 550; cursor: pointer; }
.choix:has(input:checked) { border-color: var(--encre); background: #fff; box-shadow: inset 3px 0 0 var(--laiton); }
.choix input { margin: 0; accent-color: var(--encre); width: 1.05rem; height: 1.05rem; }
.estimateur-puissance { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; width: 100%; }
.estimateur-puissance[hidden] { display: none; }
.estimateur-puissance label { display: grid; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; }
.unite { font-family: var(--mono); font-size: 0.75rem; color: var(--encre-2); }
input[type="number"], input[type="text"], input[type="tel"], select, textarea {
  width: 100%; min-height: 2.9rem; padding: 0.55rem 0.75rem; border: 1px solid var(--encre-2); border-radius: 3px; background: #fff; color: var(--encre); font: 500 1rem var(--texte);
}
textarea { min-height: 7rem; resize: vertical; }
.estimateur-resultat { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 3px; background: var(--nuit); color: var(--nuit-texte); }
.resultat-etiquette { color: var(--laiton-clair); }
.resultat-montant { margin-top: 0.4rem; font-size: clamp(2.8rem, 2rem + 3vw, 4.6rem); font-weight: 800; font-stretch: 75%; line-height: 1; color: #fff; }
.resultat-montant[data-refus] { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); color: var(--nuit-texte); }
.resultat-mesure { margin-top: 0.6rem; color: var(--nuit-doux); }
.conditions { display: grid; gap: 0.55rem; margin: 1.4rem 0 0; padding: 1.2rem 0 0; list-style: none; border-top: 1px solid var(--nuit-filet); }
.conditions li { display: grid; grid-template-columns: 1.3rem 1fr; gap: 0.4rem; font-size: 0.97rem; }
.conditions li::before { content: ""; width: 0.7rem; height: 0.38rem; margin-top: 0.45rem; border-left: 2px solid var(--laiton-clair); border-bottom: 2px solid var(--laiton-clair); transform: rotate(-45deg); }
.resultat-note { margin-top: 1.2rem; font-size: 0.9rem; color: var(--nuit-doux); }
@media (min-width: 64rem) {
  .estimateur { grid-template-columns: 1.25fr 1fr; align-items: start; }
  .estimateur-resultat { position: sticky; top: 6rem; }
}

.bareme { width: 100%; margin-top: 2.5rem; border-collapse: collapse; font-size: 0.95rem; }
.bareme caption { padding-bottom: 0.75rem; text-align: left; color: var(--encre-2); font-size: 0.88rem; }
.bareme th, .bareme td { padding: 0.75rem 0.75rem 0.75rem 0; border-top: 1px solid var(--filet); text-align: left; vertical-align: top; }
.bareme thead th { font-family: var(--mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--encre-2); border-top: 1px solid var(--encre); }
.bareme tbody th { font-weight: 650; font-stretch: 90%; }
@media (max-width: 43.99rem) {
  .bareme thead { display: none; }
  .bareme tr { display: grid; padding: 0.7rem 0; border-top: 1px solid var(--filet); }
  .bareme th, .bareme td { padding: 0.1rem 0; border: 0; }
}

.etapes { display: grid; gap: 1.25rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.etapes li { position: relative; padding-top: 1.4rem; border-top: 3px solid var(--laiton); }
.etapes li::before { content: ""; position: absolute; top: -0.55rem; left: 0; width: 0.8rem; height: 0.8rem; border: 3px solid var(--laiton); border-radius: 50%; background: var(--papier-2); }
.etapes .mono { margin-bottom: 0.4rem; color: var(--laiton-texte); }
@media (min-width: 52rem) { .etapes { grid-template-columns: repeat(4, 1fr); gap: 0; } .etapes li { padding-right: 1.5rem; } }

/* ---- Entretien ---- */
.contrats { display: grid; gap: 1rem; margin-top: 2.5rem; }
.contrat { padding: 1.6rem; border: 1px solid var(--encre); border-radius: 3px; background: var(--carte); }
.contrat h3 { font-size: 1.45rem; }
.contrat-prix { margin: 0.8rem 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--filet); font-size: 2.2rem; font-weight: 800; font-stretch: 75%; line-height: 1; }
.contrat-prix .mono { font-size: 0.8rem; }
.contrat-an { font-size: 0.95rem; font-weight: 500; font-stretch: 100%; color: var(--encre-2); }
.contrat ul { display: grid; gap: 0.5rem; margin: 0; padding-left: 1.1rem; }
.contrat li::marker { color: var(--laiton); }
@media (min-width: 52rem) { .contrats { grid-template-columns: repeat(3, 1fr); } }

/* ---- L'atelier ---- */
.atelier { display: grid; gap: 2.5rem; }
.atelier > *, .heros-grille > *, .sdb > *, .estimateur > *, .contact > * { min-width: 0; }
.atelier-texte > p { max-width: 36rem; margin-top: 1.1rem; color: var(--encre-2); }
.atelier-texte h2 { margin-bottom: 0.4rem; }
.toutes-communes { margin-top: 1.6rem; border-top: 1px solid var(--encre); }
.toutes-communes summary { padding: 0.9rem 0; font-weight: 700; cursor: pointer; }
.toutes-communes ul { columns: 2; column-gap: 1.5rem; margin: 0; padding: 0 0 1rem; list-style: none; }
.toutes-communes li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px dotted var(--filet); break-inside: avoid; font-size: 0.95rem; }
.atelier-carte { margin: 0; }
.atelier-carte figcaption { margin-top: 0.6rem; color: var(--encre-2); }
.carte { width: 100%; height: auto; border: 1px solid var(--encre); background: #f8f5ee; font-family: var(--mono); }
.anneau { fill: none; stroke: var(--laiton); stroke-width: 1; stroke-dasharray: 4 5; }
.anneau-texte { font-size: 11px; fill: var(--laiton-texte); }
.commune circle { fill: var(--encre); }
.commune text { font-family: var(--texte); font-size: 11.5px; font-weight: 600; font-stretch: 85%; fill: var(--encre); paint-order: stroke; stroke: #f8f5ee; stroke-width: 3px; }
.commune-atelier circle { fill: var(--chaud); }
.commune-atelier text { font-size: 13px; font-weight: 800; }
.commune[data-choisie] circle { fill: var(--chaud); r: 5.5px; }
.commune[data-choisie] text { fill: var(--chaud); }
@media (min-width: 64rem) { .atelier { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 4rem; } }

/* ---- Contact ---- */
.contact { display: grid; gap: 2.5rem; }
.contact-texte > p { max-width: 30rem; margin-top: 1.1rem; color: var(--encre-2); }
.coordonnees { display: grid; gap: 0.75rem; margin: 2rem 0; }
.coordonnees div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--filet); }
.coordonnees dt { padding-top: 0.2rem; color: var(--laiton-texte); }
.coordonnees dd { margin: 0; }
.devis { display: grid; gap: 1rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--encre); border-radius: 3px; background: var(--carte); }
.devis > label, .devis .fichier { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.devis .large { grid-column: 1 / -1; }
.moments { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.moments legend { float: left; width: 100%; }
.fichier input { padding: 0.5rem 0; font: inherit; font-weight: 400; }
.erreur { color: var(--chaud-fonce); font-weight: 600; }
.erreur:empty { display: none; }
.confirmation { padding: 1rem; border-left: 4px solid var(--laiton); background: var(--papier); }
.confirmation .mono { color: var(--laiton-texte); margin-bottom: 0.3rem; }
@media (min-width: 44rem) { .devis { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .contact { grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; } }

/* ---- La fenêtre « appeler » ---- */
.appel { max-width: 26rem; padding: 1.6rem; border: 1px solid var(--encre); border-radius: 3px; background: var(--papier); color: var(--encre); }
.appel::backdrop { background: rgb(27 31 37 / 0.6); }
.appel .mono { color: var(--laiton-texte); margin-bottom: 0.5rem; }
.appel form { margin-top: 1.2rem; }

/* ---- Pied ---- */
.pied { padding-top: 4rem; background: var(--nuit); color: var(--nuit-texte); }
.pied a { color: var(--nuit-texte); }
.pied-grille { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.pied-nom { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; font-size: 1.6rem; font-weight: 800; font-stretch: 75%; }
.pied-nom .marque-coude { color: var(--laiton-clair); }
.pied-marque p:not(.pied-nom) { color: var(--nuit-doux); }
.pied-liens { display: grid; gap: 0.5rem; align-content: start; }
.pied-liens a { text-decoration: none; }
.pied-liens a:hover { text-decoration: underline; }
.pied-credits { color: var(--nuit-doux); font-size: 0.92rem; }
.pied-credits b { color: var(--nuit-texte); }
.pied-credits details { margin-top: 1rem; }
.pied-credits summary { cursor: pointer; color: var(--nuit-texte); }
.pied-credits ul { margin: 0.6rem 0 0; padding-left: 1.1rem; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.2rem 1.6rem; border-top: 1px solid var(--nuit-filet); color: var(--nuit-doux); font-size: 0.88rem; }
.pied-bas a { color: var(--laiton-clair); }
@media (min-width: 52rem) { .pied-grille { grid-template-columns: 1fr 0.8fr 1.6fr; } }
