/* Kerlann Énergies · site de démonstration AGB WEB (version 3, novembre 2026)
   Concept : une maquette d'architecte posée sur une table claire. Ciel breton gris-bleu,
   texte couleur ardoise, et deux couleurs qui ont un sens : le cuivre pour le chaud,
   le bleu pour l'eau froide, comme sur les tuyaux. */

@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/barlow-semi-condensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/barlow-semi-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/barlow-semi-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --brume: #E9EDF0;     /* fond : le ciel gris-bleu de la côte */
  --papier: #F8F9FA;    /* surfaces posées dessus, comme la maquette */
  --ardoise: #17222B;   /* texte, et les toits */
  --schiste: #55636E;   /* texte secondaire */
  --cuivre: #C2582A;    /* le chaud : chauffage, urgence, action principale */
  --eau: #2A6FB5;       /* le froid : eau, climatisation */
  --vert: #2C9A5C;      /* voyant « disponible » */
  --trait: rgba(23, 34, 43, .12);
  --trait-fort: rgba(23, 34, 43, .26);

  --titre: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --texte: "Barlow", "Segoe UI", Roboto, system-ui, sans-serif;

  --gouttiere: max(20px, min(4vw, 48px));
  --entete: 66px;
  --rayon: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--brume); color: var(--ardoise); font: 400 1.0625rem/1.6 var(--texte); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
h1, h2, h3 { font-family: var(--titre); text-wrap: balance; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--cuivre); color: #fff; }
:focus-visible { outline: 2px solid var(--eau); outline-offset: 3px; border-radius: 3px; }

.cadre { max-width: 1280px; margin-inline: auto; padding-left: max(var(--gouttiere), env(safe-area-inset-left, 0px)); padding-right: max(var(--gouttiere), env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(72px, 9vw, 128px); }
h2 { font-size: clamp(2rem, 3.6vw, 3.125rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.008em; }
h3 { font-weight: 600; }

.evitement { position: absolute; left: 16px; top: -80px; z-index: 200; padding: 12px 16px; background: var(--ardoise); color: #fff; border-radius: var(--rayon); }
.evitement:focus { top: 16px; }

.voyant { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 3px rgba(44, 154, 92, .18); flex: none; }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--rayon);
  font: 600 1rem/1 var(--titre); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color .2s, border-color .2s, transform .1s ease-out;
}
.btn:active { transform: scale(.97); }
.btn-cuivre { background: var(--cuivre); color: #fff; }
.btn-cuivre:hover { background: #A9481F; }
.btn-trait { border-color: var(--trait-fort); background: transparent; }
.btn-trait:hover { border-color: var(--ardoise); }
.btn-petit { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.lien { display: inline-block; margin-top: 20px; font-weight: 600; color: var(--cuivre); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.lien:hover { color: #A9481F; }

/* ---------- Bandeau de démonstration ---------- */
.demo { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; padding: 9px var(--gouttiere); background: var(--ardoise); color: #C5CED5; font-size: .8125rem; line-height: 1.4; text-align: center; }
.demo strong { color: #fff; font-weight: 600; }
.demo a { color: #fff; text-underline-offset: 3px; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(233, 237, 240, .84); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--trait); }
.entete-in { display: flex; align-items: center; gap: 28px; height: var(--entete); max-width: 1440px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.375rem/1 var(--titre); letter-spacing: -0.005em; white-space: nowrap; }
.logo b { font-weight: 500; color: var(--schiste); }
.logo-maison { width: 34px; height: 26px; flex: none; }
.logo-trait { fill: none; stroke: var(--ardoise); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.logo-flamme { fill: var(--cuivre); }
.logo-goutte { fill: var(--eau); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--schiste); transition: color .2s; }
.nav a:hover { color: var(--ardoise); }
.tel-entete { display: inline-flex; align-items: center; gap: 10px; font: 600 1.0625rem/1 var(--titre); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 1080px) { .nav { display: none; } .tel-entete { margin-left: auto; } }
@media (max-width: 620px) { .tel-entete { display: none; } .entete .btn { margin-left: auto; } .logo { font-size: 1.25rem; } }

/* ---------- La maquette et le tour de la maison ---------- */
.maquette-zone { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); max-width: 1440px; margin-inline: auto; }
.maquette { grid-column: 2; grid-row: 1 / span 2; position: relative; }
.maquette-collant { position: sticky; top: var(--entete); height: calc(100svh - var(--entete) - 37px); min-height: 520px; }
.maquette-affiche, #maquette-3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.maquette-affiche { object-fit: contain; transition: opacity .6s ease; }
.maquette-affiche.cachee, .avec-3d .maquette-affiche { opacity: 0; }
#maquette-3d { display: block; touch-action: pan-y; cursor: grab; outline: none; }
#maquette-3d:active { cursor: grabbing; }
.etiquettes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.etiquette {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px;
  opacity: 0; transition: opacity .35s ease; will-change: transform; white-space: nowrap;
}
.etiquette.visible { opacity: 1; }
.etiquette-point { width: 10px; height: 10px; border-radius: 50%; background: var(--cuivre); box-shadow: 0 0 0 4px rgba(194, 88, 42, .2); flex: none; }
.etiquette.froid .etiquette-point { background: var(--eau); box-shadow: 0 0 0 4px rgba(42, 111, 181, .2); }
.etiquette-trait { width: 22px; height: 1px; background: var(--ardoise); opacity: .5; }
.etiquette-txt { padding: 6px 10px; background: rgba(248, 249, 250, .94); border: 1px solid var(--trait); border-radius: 4px; box-shadow: 0 6px 18px -8px rgba(23, 34, 43, .35); font: 600 .875rem/1.2 var(--titre); }
.etiquette-txt small { display: block; font: 500 .75rem/1.2 var(--texte); color: var(--schiste); }
.etiquette.gauche { flex-direction: row-reverse; }
.maquette-indice { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(248, 249, 250, .9); border: 1px solid var(--trait); font-size: .8125rem; color: var(--schiste); transition: opacity .5s; white-space: nowrap; }
.maquette-indice svg { width: 20px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.maquette-indice.parti { opacity: 0; }
.parcours { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; margin: 0; list-style: none; background: rgba(248, 249, 250, .92); border: 1px solid var(--trait); border-radius: 999px; counter-reset: piece; }
.parcours a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; text-decoration: none; font: 600 .875rem/1 var(--titre); color: var(--schiste); counter-increment: piece; transition: background-color .25s, color .25s; white-space: nowrap; }
.parcours a::before { content: counter(piece); font-variant-numeric: tabular-nums; opacity: .6; }
.parcours a:hover { color: var(--ardoise); }
.parcours a.actif { background: var(--ardoise); color: #fff; }

.heros, .tour { grid-column: 1; min-width: 0; padding-left: max(var(--gouttiere), env(safe-area-inset-left, 0px)); padding-right: 32px; }
.heros { grid-row: 1; display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - var(--entete) - 37px); padding-block: 48px; }
.tour { grid-row: 2; }
.dispo { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--papier); border: 1px solid var(--trait); font-size: .9375rem; font-weight: 500; }
.heros h1 { margin-top: 24px; font-size: clamp(2.75rem, 5.1vw, 4.75rem); font-weight: 700; line-height: .98; letter-spacing: -0.012em; }
.chapo { max-width: 34rem; margin-top: 20px; font-size: 1.125rem; color: var(--schiste); }
.portes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; max-width: 40rem; }
.porte { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 10px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.porte:active { transform: scale(.98); }
.porte-titre { font: 700 1.375rem/1.1 var(--titre); }
.porte-texte { font-size: .9375rem; line-height: 1.45; }
.porte-action { align-self: flex-start; margin-top: auto; padding-top: 14px; font: 600 1rem/1 var(--titre); }
.porte-action::after { content: ""; display: block; height: 2px; margin-top: 6px; background: currentColor; transform-origin: left; transition: transform .25s ease; }
.porte:hover .porte-action::after { transform: scaleX(1.08); }
.porte-urgence { background: var(--ardoise); color: #fff; box-shadow: 0 18px 40px -22px rgba(23, 34, 43, .7); }
.porte-urgence .porte-texte { color: #C5CED5; }
.porte-urgence .porte-action { color: #F2A27C; }
.porte-projet { background: var(--papier); border: 1px solid var(--trait); }
.porte-projet .porte-texte { color: var(--schiste); }
.porte-projet .porte-action { color: var(--cuivre); }
.certifs-heros { margin-top: 20px; font-size: .875rem; color: var(--schiste); }

.tour-tete { padding-top: 24px; padding-bottom: 8px; }
.tour-tete p { max-width: 32rem; margin-top: 16px; color: var(--schiste); }
.piece { display: flex; flex-direction: column; justify-content: center; min-height: 82svh; padding-block: 48px; }
.piece-lieu { font: 600 1rem/1 var(--titre); color: var(--cuivre); }
.piece h3 { margin-top: 10px; font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 700; line-height: 1.02; }
.piece > p:not(.piece-lieu) { max-width: 31rem; margin-top: 16px; color: var(--schiste); }
.fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; max-width: 31rem; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--trait); }
.fiche dt { font-size: .8125rem; color: var(--schiste); }
.fiche dd { margin-top: 2px; font: 600 1.125rem/1.25 var(--titre); }

/* ---------- Dépannage ---------- */
.depannage { background: var(--papier); border-top: 1px solid var(--trait); }
.depannage-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "tete tete" "form tarifs"; gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.depannage-tete { grid-area: tete; max-width: 46rem; }
.depannage-tete p { margin-top: 16px; color: var(--schiste); }
.passage { grid-area: form; display: grid; gap: 32px; }
.bloc { border: 0; padding: 0; margin: 0; min-width: 0; }
.bloc > legend, .legende { display: block; padding: 0; margin-bottom: 12px; font: 600 1.25rem/1.2 var(--titre); }
.pannes, .besoins { display: flex; flex-wrap: wrap; gap: 8px; }
.pannes label, .besoins label, .jours label, .plages label, .segment label { position: relative; }
.pannes input, .besoins input, .jours input, .plages input, .segment input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pannes span, .besoins span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--trait-fort); border-radius: var(--rayon);
  background: #fff; font-weight: 500; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
.pannes span:hover, .besoins span:hover { border-color: var(--ardoise); }
.pannes input:checked + span, .besoins input:checked + span { background: var(--ardoise); border-color: var(--ardoise); color: #fff; }
input:focus-visible + span { outline: 2px solid var(--eau); outline-offset: 3px; }
.jours { display: inline-flex; padding: 3px; margin-bottom: 12px; border-radius: var(--rayon); background: var(--brume); }
.jours span { display: block; padding: 9px 16px; border-radius: 4px; font: 600 .9375rem/1 var(--titre); color: var(--schiste); cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.jours input:checked + span { background: #fff; color: var(--ardoise); box-shadow: 0 1px 3px rgba(23, 34, 43, .18); }
.plages { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.plages span { display: block; padding: 11px 0; border: 1px solid var(--trait-fort); border-radius: var(--rayon); background: #fff; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .2s, background-color .2s; }
.plages span:hover { border-color: var(--ardoise); }
.plages input:checked + span { border-color: var(--cuivre); background: rgba(194, 88, 42, .08); color: #8E3A16; box-shadow: inset 0 0 0 1px var(--cuivre); }
.plages input:disabled + span { color: rgba(85, 99, 110, .5); text-decoration: line-through; background: transparent; border-style: dashed; cursor: not-allowed; }
.coord { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr); gap: 16px; }
.champ { display: grid; gap: 6px; font-size: .875rem; font-weight: 500; color: var(--schiste); }
.champ input, .champ textarea, .select select {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--trait-fort); border-radius: var(--rayon);
  background: #fff; font-size: 1rem; color: var(--ardoise); transition: border-color .2s, box-shadow .2s;
}
.champ textarea { resize: vertical; line-height: 1.5; }
.champ input:focus, .champ textarea:focus, .select select:focus { outline: none; border-color: var(--eau); box-shadow: 0 0 0 3px rgba(42, 111, 181, .18); }
.select { position: relative; display: block; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--schiste); border-bottom: 1.5px solid var(--schiste); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; }
.cp-resultat { min-height: 1.3em; font-size: .8125rem; font-weight: 500; }
.cp-resultat.oui { color: var(--vert); }
.cp-resultat.non { color: #A9481F; }
.erreur { font-size: .9375rem; font-weight: 500; color: #A9481F; }
.erreur:empty { display: none; }
.passage-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.passage-pied p { font-size: .9375rem; color: var(--schiste); }
.passage-pied a { font-weight: 600; color: var(--ardoise); }
.succes { padding: 24px; border-radius: 10px; background: var(--brume); outline: none; }
.succes-titre { font: 700 1.75rem/1.1 var(--titre); }
.succes p:not(.succes-titre) { margin-top: 10px; }
.succes-demo { font-size: .9375rem; color: var(--schiste); }

.tarifs { grid-area: tarifs; padding: clamp(20px, 2.6vw, 32px); border: 1px solid var(--trait); border-radius: 10px; background: #fff; }
.tarifs h3 { font-size: 1.5rem; }
.tarifs dl { margin-top: 16px; }
.tarifs dl div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--trait); }
.tarifs dt { font-weight: 500; }
.tarifs dd { font: 700 1.25rem/1.2 var(--titre); text-align: right; font-variant-numeric: tabular-nums; }
.tarifs dd.tarif-note { grid-column: 1 / -1; font: 400 .8125rem/1.4 var(--texte); text-align: left; color: var(--schiste); }
.tarifs > p { margin-top: 12px; font-size: .9375rem; color: var(--schiste); }
.zone { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--trait); }
.zone figcaption { font: 600 1.0625rem/1.3 var(--titre); }
.zone svg { display: block; width: 100%; height: auto; margin-top: 8px; }
.carte-mer { fill: rgba(42, 111, 181, .1); }
.carte-riviere { fill: none; stroke: rgba(42, 111, 181, .45); stroke-width: 2; stroke-linecap: round; }
.carte-rayon { fill: rgba(194, 88, 42, .05); stroke: rgba(194, 88, 42, .45); stroke-width: 1.2; stroke-dasharray: 4 5; }
.carte-rayon-fin { fill: none; stroke-opacity: .25; }
.carte-communes circle { fill: var(--ardoise); transition: fill .3s, r .3s; }
.carte-communes text { font: 500 12px var(--texte); fill: var(--schiste); transition: fill .3s; }
.carte-communes .trouve circle { fill: var(--cuivre); r: 6px; }
.carte-communes .trouve text { fill: var(--ardoise); font-weight: 600; }
.carte-base circle { fill: var(--cuivre); }
.carte-base text { font: 700 14px var(--titre); fill: var(--ardoise); }
.carte-base .carte-base-sous { font: 500 11px var(--texte); fill: var(--schiste); }
.carte-echelle path { fill: none; stroke: var(--schiste); stroke-width: 1.2; }
.carte-echelle text { font: 500 11px var(--texte); fill: var(--schiste); }

/* ---------- Aides ---------- */
.aides { border-top: 1px solid var(--trait); }
.aides-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
.aides-texte p { margin-top: 16px; color: var(--schiste); max-width: 32rem; }
.coches { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 10px; }
.coches li { display: flex; gap: 12px; align-items: baseline; }
.coches li::before { content: ""; flex: none; width: 12px; height: 7px; border-left: 2px solid var(--vert); border-bottom: 2px solid var(--vert); transform: translateY(-3px) rotate(-45deg); }
.calc { display: grid; gap: 24px; padding: clamp(20px, 3vw, 36px); border-radius: 10px; background: var(--papier); border: 1px solid var(--trait); box-shadow: 0 30px 60px -40px rgba(23, 34, 43, .45); justify-items: start; }
.calc > * { width: 100%; }
.calc > .btn { width: auto; }
.segment { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: var(--rayon); background: var(--brume); }
.segment span { display: block; padding: 10px 6px; border-radius: 4px; text-align: center; font: 600 .9375rem/1.15 var(--titre); color: var(--schiste); cursor: pointer; transition: background-color .2s, color .2s; }
.segment input:checked + span { background: #fff; color: var(--ardoise); box-shadow: 0 1px 3px rgba(23, 34, 43, .18); }
.calc-ligne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compteur { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: var(--rayon); background: var(--brume); }
.compteur button { width: 40px; height: 40px; border: 0; border-radius: 4px; background: #fff; font-size: 1.25rem; cursor: pointer; box-shadow: 0 1px 2px rgba(23, 34, 43, .15); }
.compteur button:active { transform: scale(.94); }
.compteur output { min-width: 44px; text-align: center; font: 700 1.375rem/1 var(--titre); font-variant-numeric: tabular-nums; }
.profil { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font: 600 .9375rem/1 var(--titre); background: var(--brume); }
.profil::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, #7a5cb8); }
.profil[data-p="bleu"] { --c: #2A6FB5; } .profil[data-p="jaune"] { --c: #D9A514; } .profil[data-p="violet"] { --c: #7A5CB8; } .profil[data-p="rose"] { --c: #D1557B; }
.calc legend { display: flex; justify-content: space-between; width: 100%; gap: 12px; }
.calc legend output { font-variant-numeric: tabular-nums; color: var(--ardoise); }
input[type=range] { width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --p: 31%; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--cuivre) var(--p), var(--trait-fort) var(--p)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--cuivre) var(--p), var(--trait-fort) var(--p)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 1px solid var(--trait-fort); box-shadow: 0 2px 6px rgba(23, 34, 43, .25); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--trait-fort); box-shadow: 0 2px 6px rgba(23, 34, 43, .25); }
.regle { display: flex; justify-content: space-between; margin-top: 4px; font-size: .75rem; color: var(--schiste); font-variant-numeric: tabular-nums; }
.calc-resultat { padding: 20px; border-radius: var(--rayon); background: var(--ardoise); color: #fff; }
.calc-resultat p { font-size: .875rem; color: #C5CED5; }
.calc-resultat strong { display: block; margin-top: 2px; font: 700 clamp(2rem, 4vw, 2.75rem)/1.05 var(--titre); font-variant-numeric: tabular-nums; }
.calc-resultat > span { display: block; margin-top: 6px; font-size: .875rem; color: #C5CED5; }
.mention { font-size: .8125rem; color: var(--schiste); }

/* ---------- Méthode ---------- */
.methode { background: var(--papier); border-top: 1px solid var(--trait); }
.etapes { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.etapes li { padding-top: 20px; border-top: 2px solid var(--ardoise); }
.etape-quand { font: 600 .9375rem/1 var(--titre); color: var(--cuivre); }
.etapes h3 { margin-top: 10px; font-size: 1.5rem; line-height: 1.1; }
.etapes li > p:last-child { margin-top: 8px; font-size: .9375rem; color: var(--schiste); }

/* ---------- Devis ---------- */
.devis { background: var(--ardoise); color: #fff; }
.devis-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
.devis-texte p { margin-top: 16px; color: #C5CED5; max-width: 30rem; }
.devis-texte a { color: #fff; font-weight: 600; }
.devis .coches li::before { border-color: #7FD3A2; }
.formulaire { display: grid; gap: 24px; padding: clamp(20px, 3vw, 36px); border-radius: 10px; background: var(--papier); color: var(--ardoise); }
.formulaire-tete p { font-size: .875rem; font-weight: 500; color: var(--schiste); }
.progres { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--brume); overflow: hidden; }
.progres span { display: block; height: 100%; width: 33.33%; background: var(--cuivre); transition: width .45s cubic-bezier(.25, .8, .25, 1); }
.etape { border: 0; padding: 0; margin: 0; min-width: 0; }
.etape legend { padding: 0; margin-bottom: 14px; font: 700 1.5rem/1.15 var(--titre); }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.champs .pleine { grid-column: 1 / -1; }
.formulaire-nav { display: flex; justify-content: space-between; gap: 12px; }
.formulaire-nav #suiv { margin-left: auto; }

/* ---------- Questions ---------- */
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.questions { border-top: 1px solid var(--trait-fort); }
.questions details { border-bottom: 1px solid var(--trait-fort); }
.questions summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; list-style: none; cursor: pointer; font: 600 1.1875rem/1.3 var(--titre); }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px; border-right: 2px solid var(--schiste); border-bottom: 2px solid var(--schiste); transform: rotate(45deg); transition: transform .25s ease; }
.questions details[open] summary::after { transform: rotate(-135deg); }
.questions details p { padding-bottom: 20px; max-width: 42rem; color: var(--schiste); }

/* ---------- Pied de page ---------- */
.pied { background: var(--ardoise); color: #C5CED5; padding-block: 56px 32px; border-top: 1px solid rgba(255, 255, 255, .08); }
.pied-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.pied-logo { font: 700 1.625rem/1 var(--titre); color: #fff; }
.pied-logo b { font-weight: 500; color: #C5CED5; }
.pied-marque p:not(.pied-logo) { margin-top: 12px; max-width: 18rem; font-size: .9375rem; }
.pied h3 { font-size: 1rem; color: #fff; margin-bottom: 10px; }
.pied address, .pied p { font-style: normal; font-size: .9375rem; line-height: 1.7; }
.pied a { color: #fff; }
.certifs { display: flex; flex-wrap: wrap; gap: 6px; }
.certifs span { padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px; font: 600 .8125rem/1.3 var(--titre); color: #fff; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8125rem; }
.pied-bas a { text-decoration: none; }

/* ---------- Barre d'action sur téléphone ---------- */
.barre-mobile { display: none; }

/* ---------- Message de démonstration ---------- */
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); z-index: 120; max-width: min(92vw, 420px); padding: 14px 18px; border-radius: var(--rayon); background: var(--ardoise); color: #fff; font-size: .9375rem; line-height: 1.45; box-shadow: 0 20px 50px -10px rgba(23, 34, 43, .5); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .3s, transform .3s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 1080px) {
  .depannage-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tete" "form" "tarifs"; }
  .tarifs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; }
  .tarifs > h3, .tarifs > dl, .tarifs > p { grid-column: 1; }
  .zone { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; padding-top: 0; border-top: 0; }
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .maquette-zone { grid-template-columns: minmax(0, 1fr); }
  .maquette { display: contents; }
  .maquette-collant { grid-row: 1; z-index: 5; height: 50svh; min-height: 320px; background: var(--brume); border-bottom: 1px solid var(--trait); }
  .heros, .tour { padding-right: max(var(--gouttiere), env(safe-area-inset-right, 0px)); }
  .heros { grid-row: 2; min-height: 0; padding-block: 32px 48px; }
  .tour { grid-row: 3; }
  .piece { min-height: 58svh; padding-block: 32px; }
  .parcours { bottom: 12px; }
  .parcours a { padding: 6px 10px; font-size: .8125rem; }
  .maquette-indice { top: 12px; }
  .etiquette-txt { padding: 4px 8px; font-size: .8125rem; }
  .etiquette-txt small { display: none; }
  .etiquette-trait { width: 12px; }
  .aides-in, .devis-in, .faq-in { grid-template-columns: minmax(0, 1fr); }
  .barre-mobile {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px max(var(--gouttiere), env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(var(--gouttiere), env(safe-area-inset-left, 0px));
    background: rgba(248, 249, 250, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--trait);
  }
  .barre-mobile a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 1rem/1 var(--titre); text-decoration: none; }
  .barre-mobile svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
  .barre-passage { padding: 0 18px; border-radius: var(--rayon); background: var(--cuivre); color: #fff; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .pied-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .portes { grid-template-columns: minmax(0, 1fr); }
  .coord, .champs, .calc-ligne { grid-template-columns: minmax(0, 1fr); }
  .tarifs { display: block; }
  .zone { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--trait); }
  .etapes { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .segment { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parcours a::before { display: none; }
  .pied-in { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-transparency: reduce) {
  .entete { background: var(--brume); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
