/* GOLAY ÉLECTRICITÉ — la feuille de la maquette.
   Direction : le tableau électrique. La tôle grise du coffret, le blanc des modules, l'encre
   des schémas, le cuivre des conducteurs ; le brun, le bleu et le vert-jaune ne servent qu'aux
   câbles et à la terre, l'ambre qu'au soleil, le rouge qu'au danger. L'interrupteur principal
   coupe le courant : la page passe en mode nuit (html[data-courant="coupe"]).
   Hors du parc : couleurs écrites, JS autorisé (CLAUDE.md §9). */

@font-face { font-family: 'Mona Sans'; src: url(../fonts/mona-sans.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(../fonts/geist-mono.woff2) format('woff2'); font-weight: 400 500; font-display: swap; }

:root {
  --fond: #f6f5f1;
  --surface: #ffffff;
  --tole: #ebeae4;
  --tole-2: #dfddd5;
  --filet: #d3d1c8;
  --encre: #16181b;
  --encre-2: #474d55;
  --encre-3: #5f656c;
  --cuivre: #9c4a16;
  --cuivre-vif: #d2702f;
  --soleil: #e9a300;
  --soleil-texte: #7f5600;
  --bleu: #2a64ad;
  --brun: #6e4424;
  --vert: #1f8a4c;
  --jaune: #f2c30f;
  --rouge: #d23a2c;
  --rouge-texte: #b02a1e;
  --nuit: #121417;
  --nuit-2: #1c1f23;
  --nuit-filet: #30353b;
  --nuit-encre: #eeede8;
  --nuit-encre-2: #b3b8be;
  --lcd: #c8f2d0;
  --niche: #2b2f34;
  --manette: #f3f2ed;

  --panneau: #16181b;
  --panneau-texte: #f6f5f1;
  --panneau-doux: #aeaeab;
  --panneau-filet: #3a3d41;
  --rayon: 14px;
  --rayon-petit: 8px;
  --cadre: 76rem;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --sans: 'Mona Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ressort: cubic-bezier(0.3, 1.45, 0.45, 1);
  color-scheme: light;
}

/* Le courant coupé : la page entière passe en nuit. */
:root[data-courant='coupe'] {
  --fond: #0f1114;
  --surface: #181b1f;
  --tole: #1a1d21;
  --tole-2: #22262b;
  --filet: #2f343a;
  --encre: #ecebe6;
  --encre-2: #b4b9bf;
  --encre-3: #9aa0a7;
  --cuivre: #eb9a63;
  --cuivre-vif: #e0803f;
  --soleil-texte: #f0bf4c;
  --bleu: #6f9fe0;
  --rouge-texte: #ff7b6e;
  --nuit: #0a0b0d;
  --nuit-2: #15181b;
  --manette: #cfcdc6;
  --niche: #0c0d0f;
  --panneau: #1d2126;
  --panneau-texte: #ecebe6;
  --panneau-doux: #a9afb6;
  --panneau-filet: #353a40;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.6s ease, color 0.6s ease;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
sup { font-size: 0.68em; line-height: 0; vertical-align: 0.42em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono, .sur { font-family: var(--mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 1rem; top: -3rem; background: var(--encre); color: var(--fond); padding: 0.6rem 1rem; border-radius: var(--rayon-petit); z-index: 50; }
.evitement:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--cuivre-vif); outline-offset: 3px; }
[tabindex='-1']:focus { outline: none; }
.cadre { width: min(100% - 2 * var(--gouttiere), var(--cadre)); margin-inline: auto; }
.cadre > *, [class*='-grille'] > * { min-width: 0; }

/* ---- Le bandeau de la maquette ---- */
.maquette { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: center; justify-content: center; padding: 0.55rem var(--gouttiere); background: #16181b; color: #f6f5f1; font-size: 0.85rem; text-align: center; border-bottom: 1px solid #30353b; }
.maquette span { font-weight: 600; }
.maquette a { color: inherit; text-underline-offset: 3px; }

/* ---- L'en-tête ---- */
.entete {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.75rem var(--gouttiere);
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--filet);
  transition: background-color 0.6s ease;
}
.marque { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; }
.marque-signe .marque-corps { fill: var(--encre); }
.marque-signe .marque-fente { fill: color-mix(in srgb, var(--fond) 22%, var(--encre)); }
.marque-signe .marque-manette { fill: var(--fond); }
.marque-signe .marque-temoin { fill: var(--cuivre-vif); }
.marque-nom { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; }
.marque-metier { font-size: 1.2rem; font-weight: 400; color: var(--encre-2); letter-spacing: -0.02em; margin-left: -0.3rem; }
.entete-nav { display: none; gap: 1.4rem; }
.entete-nav a { text-decoration: none; font-size: 0.95rem; color: var(--encre-2); padding-block: 0.3rem; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.entete-nav a:hover, .entete-nav a[aria-current='true'] { color: var(--encre); border-bottom-color: var(--cuivre-vif); }
.entete-menu { display: grid; gap: 6px; place-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--filet); border-radius: 50%; background: var(--surface); cursor: pointer; }
.entete-menu span { display: block; width: 18px; height: 2px; background: var(--encre); border-radius: 2px; }
@media (min-width: 64rem) { .entete-nav { display: flex; } .entete-menu { display: none; } }

.menu-mobile { inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 5rem var(--gouttiere) 2rem; background: var(--fond); color: var(--encre); }
.menu-mobile nav { display: grid; gap: 0.25rem; }
.menu-mobile a { font-size: 1.8rem; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; padding: 0.5rem 0; border-bottom: 1px solid var(--filet); }
.menu-fermer { position: absolute; top: 1rem; right: var(--gouttiere); width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--filet); background: var(--surface); cursor: pointer; }
.menu-fermer::before, .menu-fermer::after { content: ''; position: absolute; inset: 50% 25%; height: 2px; background: var(--encre); transform: rotate(45deg); }
.menu-fermer::after { transform: rotate(-45deg); }

/* ---- Les boutons ---- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.7rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform 0.15s ease, background-color 0.2s, color 0.2s, border-color 0.2s;
}
.bouton:active { transform: translateY(1px); }
.bouton-plein { background: var(--encre); color: var(--fond); }
.bouton-plein:hover { background: color-mix(in srgb, var(--encre) 82%, var(--cuivre-vif)); }
.bouton-contour { border-color: var(--encre); color: var(--encre); background: transparent; }
.bouton-contour:hover { background: var(--encre); color: var(--fond); }
.bouton-urgence { background: var(--rouge); color: #fff; min-height: 2.5rem; padding: 0.45rem 1rem 0.45rem 0.85rem; font-size: 0.95rem; }
.bouton-urgence:hover { background: #b9301f; }
.bouton-large { width: 100%; min-height: 3.25rem; font-size: 1.05rem; }
.bouton-lien { background: none; border: 0; padding: 0.4rem 0; min-height: 0; color: inherit; text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
.bouton-clair { border-color: var(--nuit-encre); color: var(--nuit-encre); }
.bouton-clair:hover { background: var(--nuit-encre); color: var(--nuit); }
.bouton-rond { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--filet); background: var(--surface); cursor: pointer; font-size: 0.8rem; flex: none; }

.temoin { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor; flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
.bouton-urgence .temoin { background: #fff; }
.temoin-vert { color: var(--vert); }
@media (prefers-reduced-motion: no-preference) {
  .temoin { animation: respire 2.6s ease-in-out infinite; }
}
@keyframes respire { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 0%, transparent); } }

/* ---- Le héros ---- */
.heros { padding: clamp(2.5rem, 6vw, 5.5rem) 0 2.5rem; overflow: clip; }
.heros-grille { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 60rem) { .heros-grille { grid-template-columns: 1.08fr 0.92fr; } }
.sur { color: var(--cuivre); display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; }
.heros-titre { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 680; letter-spacing: -0.045em; line-height: 0.98; max-width: 11ch; }
.heros-chapo { margin-top: 1.5rem; font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--encre-2); max-width: 36rem; }
.heros-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.piquet { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.6rem; color: var(--encre-2); font-size: 0.95rem; }

.heros-tableau { margin: 0; justify-self: center; width: min(100%, 27rem); }
.heros-tableau figcaption { margin-top: 0.9rem; font-size: 0.88rem; color: var(--encre-3); text-align: center; text-wrap: balance; }
.compteur-note { display: block; margin-top: 0.3rem; }

.chiffres { list-style: none; padding: 0; margin-top: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--filet); border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; }
@media (min-width: 52rem) { .chiffres { grid-template-columns: repeat(4, 1fr); } }
.chiffres li { background: var(--fond); padding: 1.2rem 1.25rem; display: grid; gap: 0.25rem; }
.chiffres strong { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 650; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1; }
.chiffres span { color: var(--encre-2); font-size: 0.92rem; line-height: 1.35; }

/* ---- Le tableau électrique (SVG) ---- */
.tableau { width: 100%; height: auto; overflow: visible; }
.tableau text { font-family: var(--mono); }
.t-coffret { fill: var(--tole); stroke: var(--filet); stroke-width: 1.5; }
.t-fond { fill: var(--tole-2); }
.t-module { fill: url(#modele); stroke: color-mix(in srgb, var(--encre) 14%, transparent); stroke-width: 1; filter: drop-shadow(0 1px 0.6px rgb(0 0 0 / 0.12)); }
.t-modele-haut { stop-color: var(--surface); }
.t-modele-bas { stop-color: color-mix(in srgb, var(--surface) 92%, var(--encre)); }
.t-obturateur { fill: color-mix(in srgb, var(--surface) 55%, var(--tole-2)); stroke: color-mix(in srgb, var(--encre) 10%, transparent); stroke-dasharray: 3 3; }
.t-rail { stroke: color-mix(in srgb, var(--encre) 30%, var(--tole-2)); stroke-width: 7; stroke-linecap: round; opacity: 0.5; }
.t-niche { fill: var(--niche); }
.t-vis { fill: color-mix(in srgb, var(--encre) 10%, var(--surface)); stroke: color-mix(in srgb, var(--encre) 30%, transparent); }
.t-vis-fente { stroke: color-mix(in srgb, var(--encre) 45%, transparent); stroke-width: 1.2; }
.t-manette rect, .t-manette-fixe rect { fill: var(--manette); stroke: color-mix(in srgb, var(--encre) 25%, transparent); }
.t-strie { stroke: color-mix(in srgb, var(--encre) 30%, transparent); stroke-width: 1.2; stroke-linecap: round; }
.t-manette { transition: transform 0.45s var(--ressort); transform: translateY(20px); }
.t-manette-large { transform: translateY(0); }
.t-fenetre { fill: var(--vert); transition: fill 0.3s; }
.t-fenetre-verte { fill: var(--vert); }
.t-calibre { font-size: 9.5px; fill: var(--encre-2); letter-spacing: 0.03em; }
.t-etiquette { fill: var(--surface); stroke: color-mix(in srgb, var(--encre) 12%, transparent); transition: fill 0.25s; }
.t-etiquette-texte { font-size: 9.4px; font-weight: 500; fill: var(--encre); letter-spacing: 0.02em; }
.t-legende { font-size: 8.6px; fill: var(--encre-2); letter-spacing: 0.02em; }
.t-legende-claire { fill: var(--encre-2); }
.t-test { fill: color-mix(in srgb, var(--encre) 8%, var(--surface)); stroke: color-mix(in srgb, var(--encre) 30%, transparent); }
.t-test-texte { font-size: 9px; fill: var(--encre-2); font-weight: 500; }
.t-petit { font-size: 7.5px; fill: var(--encre-3); letter-spacing: 0.02em; }
.t-lcd-haut { stop-color: #1f3326; }
.t-lcd-bas { stop-color: #142219; }
.t-lcd { stroke: #0b140e; }
.t-lcd-texte { font-size: 10px; fill: var(--lcd); letter-spacing: 0.1em; opacity: 0.85; }
.t-lcd-chiffre { font-size: 22px; font-weight: 500; fill: var(--lcd); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.t-impulsion { fill: #ff5141; opacity: 0.25; }
.t-impulsion.allume { opacity: 1; }
.t-passage { fill: var(--niche); opacity: 0.85; }
.t-cable { fill: none; stroke-width: 9; stroke-linecap: round; }
.t-cable-brun { stroke: var(--brun); }
.t-cable-bleu { stroke: var(--bleu); }
.t-cable-terre { stroke: url(#terre); }
.t-terre-vert { fill: var(--vert); }
.t-terre-jaune { fill: var(--jaune); }
.t-cible { fill: transparent; stroke: transparent; stroke-width: 2.5; }
/* La mise sous tension : au chargement, les disjoncteurs s'enclenchent l'un après l'autre.
   Survolé, un disjoncteur se déclenche à moitié ; cliqué, il retombe puis se réarme. */
.t-disj { cursor: pointer; outline: none; }
.t-disj .t-manette { transition-delay: calc(0.35s + var(--rang) * 0.09s); }
.t-disj .t-fenetre { transition-delay: calc(0.45s + var(--rang) * 0.09s); }
.sous-tension .t-disj .t-manette { transform: translateY(0); }
.sous-tension .t-disj .t-fenetre { fill: var(--rouge); }
.sous-tension .t-disj:hover .t-manette { transform: translateY(9px); transition-delay: 0s; }
.t-disj:hover .t-etiquette, .t-disj:focus-visible .t-etiquette { fill: color-mix(in srgb, var(--cuivre-vif) 22%, var(--surface)); }
.t-disj:focus-visible .t-cible, .t-principal:focus-visible .t-cible { stroke: var(--cuivre-vif); }
.sous-tension .t-disj.declenche .t-manette { transform: translateY(20px); transition-delay: 0s; transition-duration: 0.12s; }
.sous-tension .t-disj.declenche .t-fenetre { fill: var(--vert); transition-delay: 0s; }
.t-principal { cursor: pointer; outline: none; }
.t-principal:hover .t-manette-large { transform: translateY(6px); }
:root[data-courant='coupe'] .t-principal .t-manette-large { transform: translateY(23px); }
:root[data-courant='coupe'] .t-lcd-texte, :root[data-courant='coupe'] .t-lcd-chiffre { opacity: 0.12; }
:root[data-courant='coupe'] .t-impulsion { opacity: 0.08 !important; }
@media (prefers-reduced-motion: reduce) { .t-manette, .t-fenetre { transition: none !important; } }

/* ---- Les sections ---- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; border-top: 1px solid var(--filet); }
.section h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 22ch; }
.chapo { margin-top: 1.2rem; font-size: clamp(1.05rem, 1.45vw, 1.2rem); color: var(--encre-2); max-width: 44rem; }
.section-nuit { background: var(--nuit); color: var(--nuit-encre); border-top: 0; --encre: var(--nuit-encre); --encre-2: var(--nuit-encre-2); --encre-3: var(--nuit-encre-2); --filet: var(--nuit-filet); --surface: var(--nuit-2); --fond: var(--nuit); --cuivre: #eb9a63; --manette: #cfcdc6; color-scheme: dark; }
.section-tole { background: var(--tole); }

/* L'ouverture d'un département : son nom en très grand, à côté de son disjoncteur du héros.
   Le titre de la section, dessous, reste un argument ; c'est ce nom qui dit où l'on est. */
.departement { grid-column: 1 / -1; display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 1.75rem); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.departement-nom { font-size: clamp(3.4rem, 12vw, 9.5rem); font-weight: 700; letter-spacing: -0.055em; line-height: 0.86; color: var(--encre); }
.disjoncteur { height: clamp(4.4rem, 10.5vw, 8.6rem); width: auto; flex: none; overflow: visible; }
.d-module { fill: var(--surface); stroke: color-mix(in srgb, var(--encre) 16%, transparent); stroke-width: 1; filter: drop-shadow(0 1px 0.6px rgb(0 0 0 / 0.12)); }
.d-vis { fill: color-mix(in srgb, var(--encre) 10%, var(--surface)); stroke: color-mix(in srgb, var(--encre) 30%, transparent); }
.d-vis-fente { stroke: color-mix(in srgb, var(--encre) 45%, transparent); stroke-width: 1.2; }
.d-niche { fill: var(--niche); }
.d-manette { fill: var(--manette); stroke: color-mix(in srgb, var(--encre) 25%, transparent); }
.d-strie { stroke: color-mix(in srgb, var(--encre) 30%, transparent); stroke-width: 1.2; stroke-linecap: round; }
.d-fenetre { fill: var(--rouge); }
.d-calibre { font-family: var(--mono); font-size: 9.5px; fill: var(--encre-2); letter-spacing: 0.03em; }
.source { margin-top: 0.75rem; font-size: 0.8rem; color: var(--encre-3); }
.nuance { margin-top: 1.25rem; padding-left: 1rem; border-left: 2px solid var(--cuivre-vif); color: var(--encre-2); font-size: 0.97rem; }

/* ---- Le dépannage ---- */
.depannage-grille { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 60rem) { .depannage-grille { grid-template-columns: 1.4fr 0.8fr; gap: 3.5rem; } }
.fil { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fil:empty { display: none; }
.fil li { font-size: 0.85rem; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--nuit-2); color: var(--nuit-encre-2); border: 1px solid var(--nuit-filet); }
.etape { border: 0; padding: 0; margin: 0; min-width: 0; }
.etape legend { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 620; letter-spacing: -0.02em; margin-bottom: 1rem; padding: 0; text-wrap: balance; }
.etape-aide { color: var(--nuit-encre-2); margin: -0.4rem 0 1rem; }
.choix { display: grid; gap: 0.6rem; }
.choix-bouton {
  text-align: left; padding: 1rem 1.2rem 1rem 3rem; border-radius: var(--rayon); cursor: pointer;
  background: var(--nuit-2); border: 1px solid var(--nuit-filet); color: var(--nuit-encre); font-size: 1.02rem; position: relative;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.choix-bouton::before { content: ''; position: absolute; left: 1.15rem; top: 50%; width: 0.85rem; height: 0.85rem; margin-top: -0.43rem; border-radius: 50%; border: 2px solid var(--nuit-encre-2); }
.choix-bouton:hover { border-color: var(--cuivre-vif); background: color-mix(in srgb, var(--cuivre-vif) 10%, var(--nuit-2)); }
.choix-bouton:hover::before { border-color: var(--cuivre-vif); background: var(--cuivre-vif); }
.feuilles { display: grid; }
.js .feuille { display: none; }
.js .feuille.visible { display: block; animation: monte 0.45s var(--ressort); }
.sans-js .feuille { margin-top: 2rem; }
@keyframes monte { from { opacity: 0; transform: translateY(12px); } }
.feuille { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--rayon); background: var(--nuit-2); border: 1px solid var(--nuit-filet); }
.feuille h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0.75rem 0 1.25rem; }
.urgence { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid currentColor; }
.urgence-danger { color: #ff8174; }
.urgence-appeler { color: #f0bf4c; }
.urgence-vous-meme { color: #7fd6a2; }
.urgence-attendre { color: var(--nuit-encre-2); }
.gestes { margin: 0; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 0.85rem; }
.gestes li { counter-increment: g; display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; }
.gestes li::before { content: counter(g); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-content: center; font-family: var(--mono); font-size: 0.85rem; background: var(--nuit-encre); color: var(--nuit); }
.feuille-nous { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--nuit-filet); color: var(--nuit-encre-2); }
.feuille-nous .mono { display: block; color: var(--cuivre); margin-bottom: 0.35rem; }
.depannage-cote { display: grid; gap: 1.5rem; align-content: start; }
.reperes { width: 100%; height: auto; }
.reperes text { font-family: var(--mono); font-size: 10px; fill: var(--nuit-encre-2); }
.r-coffret { fill: var(--nuit-2); stroke: var(--nuit-filet); }
.r-fi rect, .r-ligne rect { fill: #2a2e33; stroke: #454b52; transition: fill 0.3s, stroke 0.3s; }
.r-fi circle { fill: #3a3f45; }
.reperes .r-manette { fill: #cfcdc6; stroke: none; }
.r-legende { font-size: 11px; }
.reperes[data-montre='fi'] .r-fi rect:first-child, .reperes[data-montre='ligne'] .r-ligne rect:first-child { stroke: var(--cuivre-vif); stroke-width: 2.5; fill: color-mix(in srgb, var(--cuivre-vif) 18%, #2a2e33); }
.carte-piquet { padding: 1.5rem; border-radius: var(--rayon); background: var(--nuit-2); border: 1px solid var(--nuit-filet); display: grid; gap: 0.75rem; }
.carte-piquet .mono { color: var(--cuivre); }
.carte-piquet-titre { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.carte-piquet p:not(.mono):not(.carte-piquet-titre) { color: var(--nuit-encre-2); font-size: 0.95rem; }

/* ---- Les champs ---- */
.champ { display: grid; gap: 0.45rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.champ > span, .champ > legend { font-size: 0.92rem; font-weight: 550; color: var(--encre); display: flex; justify-content: space-between; gap: 1rem; padding: 0; }
.champ small { font-weight: 400; color: var(--encre-3); font-size: 0.85rem; }
.champ output { font-family: var(--mono); font-weight: 500; color: var(--cuivre); font-size: 0.9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
select, input[type='number'], input[type='text'], textarea {
  width: 100%; padding: 0.75rem 0.9rem; border-radius: var(--rayon-petit); border: 1px solid var(--filet); background: var(--surface);
  min-height: 3rem;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--encre-2) 50%), linear-gradient(135deg, var(--encre-2) 50%, transparent 50%); background-position: calc(100% - 1.2rem) 50%, calc(100% - 0.85rem) 50%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
textarea { resize: vertical; }
input[type='range'] { width: 100%; accent-color: var(--cuivre-vif); height: 1.75rem; margin: 0; }
.pastilles { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pastille { position: relative; }
.pastille input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pastille > span { display: inline-block; line-height: 1.5rem; min-height: 2.5rem; padding: 0.5rem 0.9rem; border-radius: 999px; border: 1px solid var(--filet); background: var(--surface); font-size: 0.92rem; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.pastille input:checked + span { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.pastille input:focus-visible + span { outline: 3px solid var(--cuivre-vif); outline-offset: 2px; }
.pastille:hover span { border-color: var(--encre-2); }
.case { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; color: var(--encre-2); cursor: pointer; }
.case input { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; accent-color: var(--cuivre-vif); flex: none; }

/* ---- L'estimateur solaire ---- */
.estimateur { display: grid; gap: 1.5rem; margin-top: 2.75rem; }
@media (min-width: 64rem) { .estimateur { grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: start; } }
.reglages { display: grid; gap: 1.25rem; }
.groupe { border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1.25rem 1.25rem 1.4rem; margin: 0; display: grid; gap: 1.1rem; background: var(--surface); min-width: 0; }
.groupe legend { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cuivre); padding: 0 0.4rem; margin-left: -0.4rem; }
.champ-voiture { display: grid; gap: 0.9rem; padding: 1rem; border-radius: var(--rayon-petit); background: var(--tole); }
.resultats { position: sticky; top: 5.5rem; background: var(--panneau); color: var(--panneau-texte); border: 1px solid var(--panneau-filet); border-radius: calc(var(--rayon) + 4px); padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: 1.5rem; }
.resultats .mono { color: var(--panneau-doux); }
.grand-chiffre { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 650; letter-spacing: -0.045em; line-height: 1; margin-top: 0.4rem; font-variant-numeric: tabular-nums; }
.grand-chiffre .unite { font-size: 1rem; letter-spacing: 0; font-weight: 500; color: var(--panneau-doux); }
.resume { margin-top: 0.85rem; color: var(--panneau-texte); opacity: 0.86; font-size: 0.98rem; }
.mesures { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--panneau-filet); border-radius: var(--rayon-petit); overflow: hidden; }
.mesures div { background: var(--panneau); padding: 0.9rem 0.95rem; display: grid; gap: 0.3rem; align-content: start; }
.mesures dt { font-size: 0.8rem; color: var(--panneau-doux); }
.mesures dd { margin: 0; font-size: 1.35rem; font-weight: 620; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.jauge { height: 4px; border-radius: 4px; background: var(--panneau-filet); overflow: hidden; }
.jauge span { display: block; height: 100%; width: 0; background: var(--soleil); border-radius: 4px; transition: width 0.5s var(--ressort); }
.batterie-verdict { padding: 0.9rem 1rem; border-radius: var(--rayon-petit); background: color-mix(in srgb, var(--soleil) 16%, var(--panneau)); color: var(--panneau-texte); font-size: 0.95rem; }
.resultat-note { font-size: 0.82rem; color: var(--panneau-doux); }
.resume-mobile {
  position: fixed; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom)); z-index: 15;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0.8rem 0.7rem 1.1rem; border-radius: 999px; text-decoration: none;
  background: var(--panneau); color: var(--panneau-texte); border: 1px solid var(--panneau-filet);
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.25); animation: monte 0.35s var(--ressort);
}
.resume-mobile-chiffres { display: grid; line-height: 1.25; min-width: 0; }
.resume-mobile-chiffres b { font-weight: 650; font-variant-numeric: tabular-nums; }
.resume-mobile-chiffres span { font-size: 0.8rem; color: var(--panneau-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-mobile-lien { flex: none; font-size: 0.85rem; font-weight: 600; padding: 0.5rem 0.85rem; border-radius: 999px; background: var(--panneau-texte); color: var(--panneau); }
@media (min-width: 64rem) { .resume-mobile { display: none !important; } }

/* ---- La journée ---- */
.journee { margin-top: clamp(3rem, 6vw, 5rem); }
.journee-tete, .mois-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
.journee-tete h3, .mois-tete h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); max-width: 30ch; }
.journee-scene { display: grid; border-radius: calc(var(--rayon) + 4px); overflow: hidden; border: 1px solid var(--filet); background: var(--surface); }
@media (min-width: 60rem) { .journee-scene { grid-template-columns: 1.15fr 0.85fr; } .journee-commandes { grid-column: 1 / -1; } .journee-courbe { border-left: 1px solid var(--filet); } }
.journee-schema { padding: 0.5rem 0.75rem 0; background: linear-gradient(to bottom, var(--ciel, transparent), transparent 58%); }
.flux-schema { width: 100%; height: auto; max-height: 27rem; margin-inline: auto; }
.flux-schema text { font-family: var(--mono); }
.course { fill: none; stroke: var(--filet); stroke-dasharray: 2 6; }
.soleil { fill: var(--soleil); transition: opacity 0.4s; }
.lien { fill: none; stroke: var(--filet); stroke-width: 3; stroke-linecap: round; }
.flux { fill: none; stroke-linecap: round; stroke-dasharray: 0.1 11; opacity: 0; transition: opacity 0.3s, stroke-width 0.3s; }
.flux-toit { stroke: var(--soleil); }
.flux-maison { stroke: var(--encre); }
.flux-batterie { stroke: var(--vert); }
.flux-voiture { stroke: var(--bleu); }
.flux-reseau { stroke: var(--cuivre-vif); }
.noeud-fond { fill: var(--surface); stroke: var(--filet); stroke-width: 1.5; transition: stroke 0.3s, opacity 0.3s; }
.noeud-tableau .noeud-fond { fill: var(--encre); stroke: var(--encre); }
.noeud-tableau .noeud-icone { stroke: var(--fond); }
.noeud-tableau .noeud-valeur { fill: var(--fond); }
.noeud-icone { fill: none; stroke: var(--encre); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.noeud-valeur { font-size: 12px; font-weight: 500; fill: var(--encre); font-variant-numeric: tabular-nums; }
.noeud-nom { font-size: 11px; fill: var(--encre-3); letter-spacing: 0.06em; text-transform: uppercase; }
.noeud-jauge { fill: none; stroke: var(--vert); stroke-width: 4; stroke-dasharray: 0 100; stroke-linecap: round; transition: stroke-dasharray 0.3s; }
.noeud.eteint .noeud-jauge { visibility: hidden; }
.noeud.actif-toit .noeud-fond { stroke: var(--soleil); }
.noeud.eteint { opacity: 0.35; }
.journee-courbe { padding: 1.25rem 1.25rem 1rem; display: grid; gap: 0.75rem; align-content: start; border-top: 1px solid var(--filet); }
@media (min-width: 60rem) { .journee-courbe { border-top: 0; } }
.journee-horloge { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.journee-horloge output { font-size: 2.2rem; font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.journee-horloge span { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--encre-3); text-align: right; }
.courbe svg { width: 100%; height: auto; display: block; cursor: pointer; touch-action: none; }
.courbe text { font-family: var(--mono); font-size: 10px; fill: var(--encre-3); }
.c-aire { fill: color-mix(in srgb, var(--soleil) 55%, transparent); }
.c-trait { fill: none; stroke: var(--encre); stroke-width: 2; stroke-linejoin: round; }
.c-grille { stroke: var(--filet); }
.c-tete { stroke: var(--cuivre-vif); stroke-width: 2; }
.c-tete-point { fill: var(--cuivre-vif); }
.legende-petite { font-size: 0.82rem; }
.puce-trait { height: 2px; background: var(--encre); border-radius: 2px; }
.journee-totaux { margin: 0.25rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; }
.journee-totaux div { display: grid; gap: 0.1rem; padding-top: 0.6rem; border-top: 1px solid var(--filet); }
.journee-totaux dt { font-size: 0.8rem; color: var(--encre-3); }
.journee-totaux dd { margin: 0; font-weight: 620; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.journee-commandes { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; border-top: 1px solid var(--filet); }
.journee-heure { display: flex; align-items: center; gap: 1rem; flex: 1; }
.journee-legende { margin-top: 0.9rem; color: var(--encre-2); font-size: 0.95rem; max-width: 52rem; }

/* ---- Le graphique mensuel ---- */
.mois { margin-top: clamp(3rem, 6vw, 5rem); }
.legende { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.9rem; color: var(--encre-2); }
.legende li { display: inline-flex; align-items: center; gap: 0.5rem; }
.puce { width: 0.85rem; height: 0.85rem; border-radius: 3px; }
.puce-production { background: var(--soleil); }
.puce-conso { background: var(--bleu); }
.graphique { position: relative; }
.graphique svg { width: 100%; height: auto; overflow: visible; }
.graphique text { font-family: var(--mono); font-size: 11.5px; fill: var(--encre-3); }
.g-grille { stroke: var(--filet); stroke-width: 1; }
.g-axe { stroke: var(--encre-3); stroke-width: 1; }
.g-production { fill: var(--soleil); }
.g-conso { fill: var(--bleu); }
.g-colonne { fill: transparent; cursor: default; }
.g-colonne:hover + g rect, .g-survol rect { filter: brightness(1.08); }
.infobulle { position: absolute; pointer-events: none; background: var(--encre); color: var(--fond); padding: 0.6rem 0.75rem; border-radius: var(--rayon-petit); font-size: 0.85rem; line-height: 1.45; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity 0.15s; z-index: 3; }
.infobulle.visible { opacity: 1; }
.infobulle b { font-weight: 600; }
.tableau-donnees { margin-top: 1rem; font-size: 0.92rem; overflow-x: auto; }
.tableau-donnees summary { cursor: pointer; color: var(--encre-2); text-decoration: underline; text-underline-offset: 4px; }
.tableau-donnees table { width: 100%; min-width: 30rem; border-collapse: collapse; margin-top: 0.75rem; font-variant-numeric: tabular-nums; }
.tableau-donnees th, .tableau-donnees td { text-align: right; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--filet); }
.tableau-donnees th:first-child, .tableau-donnees td:first-child { text-align: left; }

.solaire-faits { display: grid; gap: 1.25rem; margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 60rem) { .solaire-faits { grid-template-columns: repeat(3, 1fr); } }
.solaire-faits article { padding: 1.5rem; border-radius: var(--rayon); border: 1px solid var(--filet); display: grid; gap: 0.75rem; align-content: start; }
.solaire-faits h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.solaire-faits p { color: var(--encre-2); font-size: 0.98rem; }

/* ---- La recharge ---- */
.recharge-grille { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 60rem) { .recharge-grille { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.calcul-recharge { display: grid; gap: 1.5rem; }
.puissances { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.puissances li { padding: 1.1rem 1.2rem; border-radius: var(--rayon); background: var(--surface); border: 1px solid var(--filet); display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; align-items: baseline; }
.puissance-nom { font-weight: 600; }
.puissance-kw { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; color: var(--encre-3); margin-left: 0.4rem; white-space: nowrap; }
.puissance-duree { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.puissances .barre { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--tole); overflow: hidden; }
.puissances .barre span { display: block; height: 100%; background: var(--bleu); border-radius: 6px; transition: width 0.4s var(--ressort); }
.puissance-note { grid-column: 1 / -1; font-size: 0.88rem; color: var(--encre-3); }
.onglets { display: flex; gap: 0.25rem; padding: 0.3rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--filet); width: fit-content; max-width: 100%; }
.onglets button { border: 0; background: none; padding: 0.55rem 1.1rem; border-radius: 999px; cursor: pointer; font-weight: 550; color: var(--encre-2); min-height: 2.5rem; }
.onglets button[aria-selected='true'] { background: var(--encre); color: var(--fond); }
.cas { margin-top: 1.5rem; }
.etapes-courtes { margin: 0; padding: 0; list-style: none; counter-reset: e; display: grid; gap: 1rem; }
.etapes-courtes li { counter-increment: e; display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.8rem; color: var(--encre-2); }
.etapes-courtes li::before { content: counter(e, decimal-leading-zero); font-family: var(--mono); font-size: 0.85rem; color: var(--cuivre); padding-top: 0.2rem; }
.prix-indicatif { margin-top: 1.25rem; font-weight: 600; }

/* ---- Le contrôle périodique ---- */
.controle-grille { display: grid; gap: 2.5rem; margin-top: 2.75rem; }
@media (min-width: 64rem) { .controle-grille { grid-template-columns: 1.25fr 0.75fr; gap: 3.5rem; } }
.frise { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
.frise-etape { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; padding-bottom: 1.75rem; position: relative; align-items: start; }
.frise-etape::after { content: ''; position: absolute; left: 1.45rem; top: 2.6rem; bottom: 0.4rem; width: 2px; background: var(--filet); }
.frise-etape:last-child::after { display: none; }
.frise-numero { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-content: center; border: 1.5px solid var(--encre); font-size: 0.85rem; }
.frise-etape h3 { font-size: 1.2rem; letter-spacing: -0.015em; padding-top: 0.7rem; }
.frise-etape div p { color: var(--encre-2); margin-top: 0.35rem; }
.frise-nous .frise-numero { background: var(--encre); color: var(--fond); }
.frise-nous h3::after { content: 'Nous'; margin-left: 0.6rem; font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 999px; background: #9c4a16; color: #fff; vertical-align: 0.2em; }
.controle-cote { display: grid; gap: 1.25rem; align-content: start; }
.echeance, .defauts { padding: 1.5rem; border-radius: var(--rayon); border: 1px solid var(--filet); background: var(--surface); display: grid; gap: 1rem; }
.echeance h3, .defauts h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
.echeance-reponse { padding: 1rem; border-radius: var(--rayon-petit); background: var(--tole); font-weight: 550; line-height: 1.45; }
.echeance-reponse[data-etat='depassee'] { background: color-mix(in srgb, var(--rouge) 14%, var(--surface)); }
.defauts { background: var(--tole); border-color: transparent; }
.defauts p { color: var(--encre-2); }
.defauts .bouton { justify-self: start; }

/* ---- La rénovation ---- */
.renovation-grille { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .renovation-grille { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.liste-points { margin: 1.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.9rem; }
.liste-points li { padding-left: 1.6rem; position: relative; color: var(--encre-2); }
.liste-points li::before { content: ''; position: absolute; left: 0; top: 0.62rem; width: 0.7rem; height: 2px; background: var(--cuivre-vif); }
.liste-points b { color: var(--encre); font-weight: 600; }
.avant-apres { margin: 0; }
.avant-apres-cadre { position: relative; aspect-ratio: 1; border-radius: calc(var(--rayon) + 4px); overflow: hidden; background: var(--surface); border: 1px solid var(--filet); }
.avant-apres-plan { position: absolute; inset: 0; }
.avant-apres-plan svg { width: 100%; height: 100%; }
.avant-apres-apres { clip-path: inset(0 0 0 var(--part)); }
.avant-apres-trait { position: absolute; top: 0; bottom: 0; left: var(--part); width: 2px; background: var(--cuivre-vif); transform: translateX(-1px); }
.avant-apres-trait::after { content: ''; position: absolute; top: 50%; left: 50%; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--cuivre-vif); transform: translate(-50%, -50%); box-shadow: 0 2px 10px rgb(0 0 0 / 0.25); }
.avant-apres-curseur input { width: 100%; margin-top: 0.75rem; }
.avant-apres figcaption { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--encre-3); margin-top: 0.25rem; }
.avant-apres-svg text { font-family: var(--mono); font-size: 11px; }
.a-planche { fill: #d8cbb2; stroke: #9e8f74; }
.a-compteur { fill: #3b3a37; }
.a-disque { fill: #b9b2a3; }
.a-fusible rect { fill: #efe9dc; stroke: #8c8576; }
.a-fusible circle { fill: #ffffff; stroke: #8c8576; }
.a-fusible .a-fusible-oeil { fill: #c93b2a; stroke: none; }
.a-fusible text { fill: #4a463e; }
.a-fil { fill: none; stroke: #2b2b2b; stroke-width: 3; }
.a-note { fill: #4a463e; font-size: 12px !important; }
.n-coffret { fill: #e6e5df; stroke: #c9c7bf; }
.n-compteur { fill: #ffffff; stroke: #c9c7bf; }
.n-lcd { fill: #1c2e22; }
.n-module, .n-disj rect:first-child { fill: #ffffff; stroke: #c9c7bf; }
.n-manette { fill: #2b2f34; }
.n-fenetre { fill: #d23a2c; }
.n-test { fill: #eceae4; stroke: #a9a79f; }
.n-vert { fill: #1f8a4c; }
.n-reserve { fill: #f1f0eb; stroke: #c9c7bf; stroke-dasharray: 4 4; }
.n-etiquettes { fill: #fbfaf6; stroke: #d6d4cc; }
.n-texte { fill: #3d4248; font-size: 10px !important; }

/* ---- L'entreprise ---- */
.entreprise-grille { display: grid; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 64rem) { .entreprise-grille { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; } }
.equipe { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1px; background: var(--filet); border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; }
@media (min-width: 40rem) { .equipe { grid-template-columns: 1fr 1fr; } }
.equipe li { background: var(--fond); padding: 1.1rem 1.2rem; display: grid; gap: 0.2rem; align-content: start; }
.equipe-nom { font-weight: 620; font-size: 1.08rem; }
.equipe-role { color: var(--cuivre); font-size: 0.9rem; }
.equipe-titre { color: var(--encre-3); font-size: 0.86rem; line-height: 1.4; }
.zone { margin: 0; }
.zone-carte { overflow-x: auto; border-radius: var(--rayon); scrollbar-width: thin; }
.zone-carte .carte { min-width: 36rem; }
.glisser { display: none; margin-top: 0.5rem; color: var(--encre-3); text-align: center; }
@media (max-width: 40rem) { .glisser { display: block; } }
.carte { width: 100%; height: auto; border-radius: var(--rayon); background: var(--tole); }
.carte .lac { fill: color-mix(in srgb, var(--bleu) 22%, var(--tole)); stroke: color-mix(in srgb, var(--bleu) 45%, var(--tole)); stroke-width: 1; }
.carte .lac-nom { font-family: var(--sans); font-style: italic; font-size: 15px; fill: color-mix(in srgb, var(--bleu) 70%, var(--encre)); letter-spacing: 0.08em; }
.carte text { font-family: var(--sans); font-size: 11px; fill: var(--encre-2); }
.commune circle { stroke: var(--tole); stroke-width: 1.5; }
.commune-sefa circle { fill: var(--cuivre-vif); }
.commune-re circle { fill: var(--encre); }
.commune-deux circle { fill: var(--soleil); }
.commune-ici text { font-weight: 650; fill: var(--encre); font-size: 13px; }
.commune:hover circle { stroke: var(--encre); }
.echelle path { stroke: var(--encre-2); stroke-width: 1.5; fill: none; }
.echelle text { font-family: var(--mono); font-size: 10px; }
.zone figcaption { margin-top: 1rem; display: grid; gap: 0.6rem; font-size: 0.92rem; color: var(--encre-2); }
.puce-sefa { background: var(--cuivre-vif); border-radius: 50%; }
.puce-re { background: var(--encre); border-radius: 50%; }
.puce-deux { background: var(--soleil); border-radius: 50%; }
.apprentissage { margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: calc(var(--rayon) + 4px); background: var(--tole); display: grid; gap: 1.25rem; }
.apprentissage h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.cfc { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 52rem) { .cfc { grid-template-columns: repeat(3, 1fr); } }
.cfc li { background: var(--surface); border-radius: var(--rayon); padding: 1.2rem; display: grid; gap: 0.4rem; align-content: start; }
.cfc-duree { color: var(--cuivre); }
.cfc-titre { font-weight: 620; font-size: 1.05rem; }
.cfc li p:last-child { color: var(--encre-2); font-size: 0.95rem; }
.apprentissage > p { color: var(--encre-2); }

/* ---- Le contact ---- */
.contact-grille { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .contact-grille { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; } }
.adresse { margin: 1.75rem 0 1.25rem; color: var(--nuit-encre-2); line-height: 1.5; }
.devis { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: calc(var(--rayon) + 4px); background: var(--nuit-2); border: 1px solid var(--nuit-filet); }
.devis select, .devis input[type='text'], .devis textarea { background: var(--nuit); border-color: var(--nuit-filet); }
.devis .pastille span { background: var(--nuit); border-color: var(--nuit-filet); }
.devis .pastille input:checked + span { background: var(--nuit-encre); color: var(--nuit); }
.champs-deux { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .champs-deux { grid-template-columns: 1fr 1fr; } }
.fichier { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; cursor: pointer; }
.fichier .bouton { min-height: 2.6rem; padding-block: 0.45rem; pointer-events: none; }
.fichier input:focus-visible + .bouton { outline: 3px solid var(--cuivre-vif); outline-offset: 2px; }
.fichier-nom { font-size: 0.9rem; color: var(--nuit-encre-2); overflow-wrap: anywhere; }
.devis .bouton-plein { background: var(--nuit-encre); color: var(--nuit); justify-self: start; }
.devis-retour:empty { display: none; }
.devis-retour { padding: 0.9rem 1rem; border-radius: var(--rayon-petit); background: color-mix(in srgb, var(--cuivre-vif) 18%, var(--nuit-2)); }

/* ---- Le pied ---- */
.pied { padding: 3.5rem 0 2.5rem; background: var(--tole); border-top: 1px solid var(--filet); font-size: 0.92rem; color: var(--encre-2); }
.pied-grille { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .pied-grille { grid-template-columns: 0.8fr 1.2fr 1fr; gap: 3rem; } }
.pied-nom { display: flex; align-items: center; gap: 0.6rem; font-weight: 650; color: var(--encre); font-size: 1.05rem; margin-bottom: 0.5rem; }
.pied-sources ul { margin: 0.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.pied-sources .mono { color: var(--cuivre); }
.pied-credits { display: grid; gap: 0.75rem; align-content: start; }
.pied-credits b { color: var(--encre); }
