/* Domevia – feuille de style du site
   Couleurs, typographie et espacements repris de la charte graphique (marque/charte/project/tokens.json). */

:root {
  --surface: #f6f8f7;
  --surface-raised: #ffffff;
  --ink: #142b33;
  --muted: #4f5f65;
  --nuit: #142b33;
  --on-nuit: #ffffff;
  --laiton: #b38b4d;
  --laiton-texte: #80602c;
  --on-laiton: #142b33;
  --brume: #dde5e3;
  --glacier: #9cc3c9;
  --trait: #c9d3d1;
  --focus: #80602c;
  --succes: #2b6a7c;
  --alerte: #a1471f;

  --font-display: "Marcellus", "Times New Roman", Georgia, serif;
  --font-sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px;
  --space-5: 32px; --space-6: 48px; --space-7: 64px; --space-8: 96px;
  --radius-s: 2px; --radius-m: 4px;
  --wrap: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0e1d23;
    --surface-raised: #16292f;
    --ink: #e8eeec;
    --muted: #a3b2b5;
    --nuit: #1e3b45;
    --laiton: #c9a267;
    --laiton-texte: #d4b07a;
    --brume: #2a4048;
    --glacier: #6e9ea5;
    --trait: #2f464d;
    --focus: #d4b07a;
    --succes: #8fc9d8;
    --alerte: #f0a37f;
    color-scheme: dark;
  }
  .brand img { filter: none; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/26px var(--font-sans);
}
img { max-width: 100%; height: auto; }
a { color: var(--laiton-texte); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1.07; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.2vw, 40px); line-height: 1.15; max-width: 22ch; }
h3 { font-size: 24px; line-height: 30px; }
p { margin: 0; }
.num { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.label {
  font: 600 12px/16px var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--laiton-texte);
}
.lead { font-size: 20px; line-height: 30px; font-weight: 500; color: var(--muted); max-width: 34em; }
.small { font-size: 14px; line-height: 22px; color: var(--muted); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--space-3), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space-3), env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: var(--space-5); padding-right: var(--space-5); } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-3); top: var(--space-3); z-index: 20; background: var(--surface-raised); padding: var(--space-2) var(--space-3); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--space-4);
  border-radius: var(--radius-s); border: 1px solid transparent;
  font: 600 16px/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--laiton); color: var(--on-laiton); }
.btn-primary:hover { background: var(--ink); color: var(--surface); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--surface); }
.btn-small { min-height: 40px; padding: 0 var(--space-3); font-size: 15px; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--trait);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 72px; }
.header-inner > .btn { margin-left: auto; }
.brand { display: inline-flex; }
.brand img { display: block; width: 168px; }
.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav a { white-space: nowrap; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--laiton-texte); }
.nav-toggle { display: none; }
.lang { display: flex; gap: var(--space-1); order: 3; }
.header-inner > .nav { margin-left: auto; }
@media (max-width: 1080px) { .lang { order: 0; margin-left: auto; } }
.lang a {
  min-width: 32px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center;
  font: 600 12px/1 var(--font-sans); letter-spacing: .08em; color: var(--muted); text-decoration: none;
  border-radius: var(--radius-s);
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--laiton); }
@media (prefers-color-scheme: dark) {
  .brand img { content: url("../img/domevia-horizontal-blanc.svg"); }
}
@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-3);
    background: none; border: 1px solid var(--ink); border-radius: var(--radius-s);
    color: var(--ink); font: 600 15px/1 var(--font-sans); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--trait);
    padding: var(--space-2) max(var(--space-3), env(safe-area-inset-right, 0px)) var(--space-4) max(var(--space-3), env(safe-area-inset-left, 0px));
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: var(--space-3) 0; border-bottom: 1px solid var(--trait); }
  .nav .btn { margin-top: var(--space-4); }
}

/* Accueil */
.hero { padding-block: var(--space-7) var(--space-6); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-6); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.hero-visual { margin: 0; aspect-ratio: 6 / 5; max-width: 100%; }
.hero-visual svg { display: block; width: 100%; height: 100%; }
.f-nuit { fill: var(--nuit); } .f-laiton { fill: var(--laiton); } .f-brume { fill: var(--brume); }
.f-glacier { fill: var(--glacier); } .f-sol { fill: var(--surface); }
.proofs {
  list-style: none; margin: var(--space-7) 0 0; padding: var(--space-5) 0 0;
  border-top: 1px solid var(--trait);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
}
.proofs li { display: flex; flex-direction: column; gap: var(--space-1); }
.proofs strong { font-weight: 600; }
.proofs span { color: var(--muted); }
@media (max-width: 860px) {
  .hero { padding-block: var(--space-6) var(--space-5); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16 / 9; order: -1; }
  .proofs { grid-template-columns: 1fr; gap: var(--space-4); margin-top: var(--space-6); }
}

/* Sections */
.section { padding-block: var(--space-8); }
.section .wrap > .label + h2 { margin-top: var(--space-3); }
.section-tint { background: var(--brume); }
.section-tint .label { color: var(--ink); }
.section-dark { background: var(--nuit); color: var(--on-nuit); }
.section-dark h2, .section-dark h3 { color: var(--on-nuit); }
.section-dark .label { color: var(--laiton); }
.section-dark p { color: #d5dfdd; }
@media (max-width: 720px) { .section { padding-block: var(--space-7); } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-6); }
.service {
  display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--surface-raised); border: 1px solid var(--trait); border-radius: var(--radius-m);
  padding: var(--space-5) var(--space-4) var(--space-4);
}
.service > p:first-of-type { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.checks li { position: relative; padding-left: 22px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 2px; background: var(--laiton);
}
.checks li.promo { color: var(--succes); }
.checks li.promo strong { font-weight: 600; }
.price {
  margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--trait);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2);
}
.price-label { font: 600 12px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price .num { font-size: 20px; color: var(--ink); }
.price-note { color: var(--muted); font-size: 14px; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } }

/* Étapes */
.steps { list-style: none; counter-reset: etape; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.steps li { counter-increment: etape; display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-4); border-top: 2px solid var(--ink); }
.steps li::before { content: "Étape " counter(etape); font: 600 12px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
:lang(de) .steps li::before { content: "Schritt " counter(etape); }
:lang(it) .steps li::before { content: "Fase " counter(etape); }
.steps h3 { font-size: 22px; line-height: 28px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.section-intro { margin-top: var(--space-3); max-width: 40em; color: var(--muted); }
.section-tint .section-intro { color: var(--ink); }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .steps-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .steps-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps-5 { grid-template-columns: 1fr; } }

/* Bloc texte + illustration */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-7); align-items: center; }
.split > * { min-width: 0; }
.split-text { display: flex; flex-direction: column; gap: var(--space-3); }
.split-text > p:not(.label):not(.small) { color: var(--muted); max-width: 36em; }
.section-tint .split-text > p:not(.label):not(.small) { color: var(--ink); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--space-5); } }

/* Téléphone (visite à distance) */
.phone {
  margin: 0 auto; width: 100%; max-width: 320px;
  background: var(--surface-raised); color: var(--ink);
  border: 10px solid var(--nuit); border-radius: 28px;
  padding: var(--space-4) var(--space-4) var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.phone-bar { display: flex; justify-content: space-between; font: 600 12px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.phone-title { font-family: var(--font-display); font-size: 20px; line-height: 26px; }
.phone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.phone-list li { display: flex; justify-content: space-between; gap: var(--space-2); padding: 10px 12px; border: 1px solid var(--trait); border-radius: var(--radius-m); font-size: 15px; }
.phone-list li span:last-child { color: var(--muted); }
.phone-list li.done { background: var(--brume); border-color: var(--brume); }
.phone-list li.done span:last-child { color: var(--ink); }
.phone-list li.done span:last-child::before { content: "✓ "; color: var(--laiton-texte); font-weight: 600; }
.phone-note { font-size: 14px; line-height: 20px; color: var(--muted); }
.phone-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--radius-s); background: var(--laiton); color: var(--on-laiton); font-weight: 600; }

/* Offre en ligne */
.offer {
  display: grid; gap: var(--space-3);
  background: var(--surface-raised); border: 1px solid var(--trait); border-radius: var(--radius-m);
  padding: var(--space-5);
}
.offer-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); font-size: 14px; color: var(--muted); }
.offer-line {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: start;
  padding: var(--space-3) 0; border-top: 1px solid var(--trait); cursor: pointer;
}
.offer-line input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--laiton-texte); }
.offer-line strong { display: block; font-weight: 600; }
.offer-line small { display: block; color: var(--muted); font-size: 14px; line-height: 20px; }
.offer-line .num { white-space: nowrap; }
.offer-total { margin: 0; display: grid; gap: 2px; padding-top: var(--space-3); border-top: 2px solid var(--ink); }
.offer-total div { display: flex; justify-content: space-between; gap: var(--space-3); }
.offer-total dt { color: var(--muted); font-size: 14px; }
.offer-total dd { margin: 0; color: var(--muted); font-size: 14px; }
.offer-total .total dt { color: var(--ink); font-weight: 600; font-size: 16px; }
.offer-total .total dd { color: var(--ink); font-size: 20px; }
.offer-pay { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.offer-pay legend { width: 100%; }
.offer-refus { display: grid; gap: var(--space-2); }
.offer-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-end; }
@media (max-width: 600px) { .offer { padding: var(--space-4); } .offer-actions { justify-content: stretch; } .offer-actions .btn { flex: 1 1 100%; } }

/* Documents du jour J */
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-top: var(--space-6); }
.doc { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; padding: var(--space-5); background: var(--surface-raised); border: 1px solid var(--trait); border-radius: var(--radius-m); }
.doc > p { color: var(--muted); }
.doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.doc-head .num { font-size: 14px; color: var(--muted); }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; justify-content: space-between; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--trait); }
.doc-list li span:last-child { text-align: right; white-space: nowrap; }
.doc-list li.strong { font-weight: 600; border-bottom: 2px solid var(--ink); }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; } .doc { padding: var(--space-4); } }

/* Demande en étapes */
.step-block { border: 0; margin: 0; padding: 0 0 var(--space-4); display: grid; gap: var(--space-3); border-bottom: 1px solid var(--trait); min-width: 0; }
.step-block legend { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 26px; margin-bottom: var(--space-3); padding: 0; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--nuit); color: var(--on-nuit); font: 600 14px/1 var(--font-sans); flex: none; }
.step-block[disabled] { opacity: .45; }
.npa-row { display: flex; align-items: flex-end; gap: var(--space-3); }
.npa-row .field { max-width: 160px; }
.npa-msg { min-height: 22px; font-size: 15px; }
.npa-msg.ok { color: var(--succes); font-weight: 600; }
.npa-msg.ko { color: var(--alerte); font-weight: 600; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-2); }
.choice { position: relative; display: flex; cursor: pointer; font-weight: 400; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { flex: 1; display: block; padding: 12px 14px; border: 1px solid var(--muted); border-radius: var(--radius-s); background: var(--surface-raised); font-size: 15px; line-height: 21px; }
.choice small { display: block; color: var(--muted); font-size: 13px; line-height: 18px; margin-top: 2px; }
.choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--brume); }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Formulaires */
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; border: 0; margin: 0; padding: 0; }
label, legend { font-weight: 600; font-size: 15px; }
legend { padding: 0; margin-bottom: var(--space-2); }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--surface-raised); color: var(--ink);
  border: 1px solid var(--muted); border-radius: var(--radius-s);
  font: 400 16px/24px var(--font-sans);
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.check { display: flex; gap: var(--space-2); align-items: flex-start; font-weight: 400; font-size: 16px; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--laiton-texte); flex: none; }
.options { gap: var(--space-2); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }

/* Estimateur */
.estimate { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--space-7); align-items: start; }
.estimate > *, .quote > *, .zone > * { min-width: 0; }
:lang(de) h1, :lang(de) h2, :lang(de) h3, :lang(de) .result-table th { hyphens: auto; }
:lang(de) h1, :lang(de) h2, :lang(de) h3, .result-table th { overflow-wrap: break-word; }
.estimate-intro { display: flex; flex-direction: column; gap: var(--space-3); position: sticky; top: 104px; }
.estimate-intro p:last-child { color: var(--muted); }
.estimator {
  display: grid; gap: var(--space-4);
  background: var(--surface-raised); border: 1px solid var(--trait); border-radius: var(--radius-m);
  padding: var(--space-5);
}
.field.inline { margin-top: var(--space-2); max-width: 240px; }
.sub-option { padding-left: 26px; }
.result { display: grid; gap: var(--space-3); padding-top: var(--space-4); border-top: 2px solid var(--ink); }
.result-volume { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.result-volume span { font-weight: 600; }
.result-volume strong { font-size: 28px; }
.result-truck { color: var(--muted); }
.result-table { width: 100%; border-collapse: collapse; }
.result-table th { text-align: left; font-weight: 400; padding: 10px 12px; }
.result-table td { text-align: right; padding: 10px 12px; white-space: nowrap; }
.result-table tbody tr:nth-child(odd) { background: var(--brume); }
.result-table .total th, .result-table .total td { border-top: 2px solid var(--ink); }
.result-table .total th { font-weight: 600; }
.result-table .total td { font-size: 20px; }
.result-table tr.remise th, .result-table tr.remise td, .offer-remise, .doc-list li.remise { color: var(--succes); font-weight: 600; }
.offer-remise { display: flex; justify-content: space-between; gap: var(--space-3); margin: 0; padding-top: var(--space-3); border-top: 1px solid var(--trait); }
.result-table .sub th, .result-table .sub td { padding-block: 4px; font-size: 14px; color: var(--muted); }
.result .btn { justify-self: start; }
@media (max-width: 960px) {
  .estimate { grid-template-columns: 1fr; gap: var(--space-5); }
  .estimate-intro { position: static; }
  .estimator { padding: var(--space-4); }
}

/* Garanties */
.guarantees { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-top: var(--space-6); }
.guarantees > div { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-4); border-top: 2px solid var(--laiton); }
.guarantees h3 { font-size: 22px; line-height: 28px; }
@media (max-width: 960px) { .guarantees { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guarantees { grid-template-columns: 1fr; } }

/* Zone */
.zone { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-7); align-items: end; }
.zone > div { display: flex; flex-direction: column; gap: var(--space-3); }
.zone > div > p:last-child { color: var(--muted); max-width: 34em; }
.regions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.regions li { padding: var(--space-3) 0; border-bottom: 1px solid var(--trait); font-family: var(--font-display); font-size: 20px; }
@media (max-width: 860px) { .zone { grid-template-columns: 1fr; gap: var(--space-5); } }
@media (max-width: 420px) { .regions { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; }
.faq h2 { margin-bottom: var(--space-5); }
details { border-bottom: 1px solid var(--ink); }
details:first-of-type { border-top: 1px solid var(--ink); }
summary {
  list-style: none; cursor: pointer; padding: var(--space-4) 40px var(--space-4) 0; position: relative;
  font-family: var(--font-display); font-size: 21px; line-height: 28px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--font-sans); color: var(--laiton-texte); }
details[open] summary::after { content: "–"; }
details p { padding-bottom: var(--space-4); color: var(--ink); max-width: 44em; }

/* Devis */
.quote { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--space-7); align-items: start; }
.quote-intro { display: flex; flex-direction: column; gap: var(--space-3); }
.quote-intro > p { color: var(--muted); }
.contact { margin: var(--space-4) 0 0; display: grid; gap: var(--space-3); }
.contact div { display: grid; gap: 2px; padding-bottom: var(--space-3); border-bottom: 1px solid var(--trait); }
.contact dt { font: 600 12px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact dd { margin: 0; font-size: 18px; }
.quote-form {
  display: grid; gap: var(--space-4);
  background: var(--surface-raised); border: 1px solid var(--trait); border-radius: var(--radius-m);
  padding: var(--space-5);
}
.consent { font-size: 14px; line-height: 22px; color: var(--muted); }
.quote-form .btn { justify-self: start; }
.form-error { color: var(--alerte); font-weight: 600; }
.form-ok { color: var(--succes); font-weight: 600; }
@media (max-width: 960px) {
  .quote { grid-template-columns: 1fr; gap: var(--space-5); }
  .quote-form { padding: var(--space-4); }
}

/* Pied de page */
.site-footer { background: var(--nuit); color: #d5dfdd; padding-block: var(--space-7) var(--space-5); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-5) var(--space-7); }
.footer-inner img { width: 168px; display: block; margin-bottom: var(--space-3); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); align-content: start; }
.site-footer nav a { color: var(--on-nuit); text-decoration: none; }
.site-footer nav a:hover { color: var(--laiton); }
.copyright { grid-column: 1 / -1; padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }

/* Pages de texte (mentions légales, confidentialité) */
.legal { padding-block: var(--space-7) var(--space-8); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 44px); margin-bottom: var(--space-5); }
.legal h2 { font-size: 26px; line-height: 32px; margin: var(--space-6) 0 var(--space-3); max-width: none; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: var(--space-3); }
.legal .todo { background: var(--brume); padding: 0 4px; }

/* ==========================================================================
   Refonte « moderne et dynamique » (octobre 2026)
   Même logo et mêmes couleurs de marque ; accent ambre plus vif pour les actions,
   titres en Hanken Grotesk très gras, cartes arrondies, icônes, emplacements photo.
   ========================================================================== */
:root {
  --accent: #f2a93b;          /* ambre : boutons d'action, chiffres clés */
  --accent-strong: #e08e1b;
  --on-accent: #142b33;
  --accent-soft: #fdf0dc;
  --radius-l: 16px;
  --radius-btn: 10px;
  --shadow: 0 1px 2px rgba(20, 43, 51, .06), 0 10px 30px rgba(20, 43, 51, .08);
  --font-display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --accent-soft: #3a2d17; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); }
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; }
h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; }
h3 { font-weight: 700; letter-spacing: -0.015em; }
.label {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--ink);
  font-size: 12px; letter-spacing: .1em;
}
.section-tint .label { color: var(--ink); background: var(--surface-raised); }
.section-dark .label, .hero-dark .label { background: rgba(242, 169, 59, .16); color: var(--accent); }
.section .wrap > .label + h2 { margin-top: var(--space-3); }

.btn { border-radius: var(--radius-btn); font-weight: 700; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); transform: translateY(-1px); }
.btn-ghost { border-width: 2px; }
.btn-light { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.btn-light:hover { background: #fff; color: var(--nuit); }
@media (prefers-reduced-motion: reduce) { .btn-primary:hover, .card-link:hover { transform: none; } }

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-badge { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); }
.ico-badge.dark { background: var(--nuit); color: var(--accent); }

/* En-tête */
.site-header { box-shadow: 0 1px 0 var(--trait); border-bottom: 0; }
.nav { gap: var(--space-4); }
.nav a:not(.btn) { font-weight: 600; font-size: 15px; }
.nav a[aria-current="page"] { color: var(--laiton-texte); box-shadow: inset 0 -2px 0 var(--accent); }
.header-phone { display: none; }

/* Bandeau sombre (accueil et pages de service) */
.hero-dark { background: var(--nuit); color: var(--on-nuit); padding-block: var(--space-7) var(--space-8); position: relative; overflow: hidden; }
.hero-dark h1 { color: #fff; }
.hero-dark .lead { color: #d5dfdd; }
.hero-dark::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 64px solid rgba(242, 169, 59, .10); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-6); align-items: center; position: relative; z-index: 1; }
.hero-grid > * { min-width: 0; }
.hero-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: var(--space-2) 0 0; padding: 0; list-style: none; color: #d5dfdd; font-size: 15px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .ico { width: 18px; height: 18px; color: var(--accent); }
.breadcrumb { font-size: 14px; color: #b9c7c5; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-dark { padding-block: var(--space-6) var(--space-7); } }

/* Emplacements photo à remplacer */
.photo {
  margin: 0; position: relative; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-l); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(156, 195, 201, .22) 0 14px, rgba(156, 195, 201, .08) 14px 28px),
    var(--brume);
  border: 2px dashed var(--glacier);
  display: flex; align-items: flex-end;
}
.photo.ratio-45 { aspect-ratio: 4 / 5; }
.photo.ratio-169 { aspect-ratio: 16 / 9; }
.hero-dark .photo { background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 14px, rgba(255,255,255,.02) 14px 28px), #1b3a45; border-color: rgba(156,195,201,.5); }
.photo figcaption { margin: var(--space-3); padding: 10px 12px; border-radius: 10px; background: var(--surface-raised); color: var(--ink); font-size: 13px; line-height: 19px; box-shadow: var(--shadow); max-width: 34em; }
.photo-tag { display: block; font: 700 11px/16px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--laiton-texte); }
.photo .float-card {
  position: absolute; top: var(--space-4); left: var(--space-4);
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow); font-weight: 700; font-size: 15px;
}
.photo .float-card .ico { color: var(--laiton-texte); }

/* Choix rapide du service (accueil) */
.picker { margin-top: calc(-1 * var(--space-7)); position: relative; z-index: 2; }
.picker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.card-link {
  display: flex; flex-direction: column; gap: var(--space-2); text-decoration: none; color: var(--ink);
  background: var(--surface-raised); border: 1px solid var(--trait); border-radius: var(--radius-l); padding: var(--space-4);
  box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
}
.card-link:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-link strong { font-size: 18px; line-height: 24px; letter-spacing: -0.01em; }
.card-link span { color: var(--muted); font-size: 14px; line-height: 20px; }
.card-link .more { margin-top: auto; color: var(--laiton-texte); font-weight: 700; font-size: 14px; }
@media (max-width: 960px) { .picker-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .picker-grid { grid-template-columns: 1fr; } .picker { margin-top: calc(-1 * var(--space-6)); } }

/* Chiffres clés */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; gap: 4px; padding: var(--space-4); border-radius: var(--radius-l); background: var(--surface-raised); border: 1px solid var(--trait); }
.facts strong { font: 800 30px/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.facts span { color: var(--muted); font-size: 14px; line-height: 20px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Grandes cartes de service (accueil) */
.services { gap: var(--space-4); }
.services-4 { grid-template-columns: repeat(2, 1fr); }
.service { border-radius: var(--radius-l); box-shadow: var(--shadow); padding: var(--space-5); }
.service .photo { aspect-ratio: 16 / 9; margin-bottom: var(--space-2); }
.service-head { display: flex; align-items: center; gap: var(--space-3); }
.service-head h3 { font-size: 26px; line-height: 30px; }
.service .btn { align-self: flex-start; }
@media (max-width: 860px) { .services-4 { grid-template-columns: 1fr; } }

/* Grilles de points forts (pages de service) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-6); }
.feature { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5) var(--space-4); border-radius: var(--radius-l); background: var(--surface-raised); border: 1px solid var(--trait); }
.feature h3 { font-size: 20px; line-height: 26px; margin-top: var(--space-2); }
.feature p { color: var(--muted); }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Tableaux de prix */
.price-table-wrap { margin-top: var(--space-5); overflow-x: auto; border-radius: var(--radius-l); border: 1px solid var(--trait); background: var(--surface-raised); }
.price-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--trait); }
.price-table thead th { font: 700 12px/16px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--brume); }
.price-table td.num, .price-table th.num { text-align: right; white-space: nowrap; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table .highlight td { background: var(--accent-soft); font-weight: 700; }
.price-note-block { margin-top: var(--space-3); color: var(--muted); font-size: 14px; }

/* Bandeau d'appel à l'action */
.cta-band { background: var(--nuit); color: var(--on-nuit); border-radius: var(--radius-l); padding: var(--space-6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); max-width: 20ch; }
.cta-band p { color: #d5dfdd; margin-top: var(--space-2); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 600px) { .cta-band { padding: var(--space-5) var(--space-4); } }

/* Retouches des sections existantes */
.steps li { border-top: 0; padding: var(--space-4); border-radius: var(--radius-l); background: var(--surface-raised); }
.section-tint .steps li { background: var(--surface-raised); }
.steps li::before { color: var(--laiton-texte); font-weight: 700; }
.guarantees > div { border-top: 0; padding: var(--space-4); border-radius: var(--radius-l); background: rgba(255,255,255,.05); }
.guarantees > div .ico { color: var(--accent); width: 28px; height: 28px; }
.estimator, .quote-form, .offer, .doc { border-radius: var(--radius-l); box-shadow: var(--shadow); }
.phone { box-shadow: var(--shadow); }
details { border-color: var(--trait); }
details:first-of-type { border-top-color: var(--trait); }
summary { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.regions li { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.step-block legend { font-family: var(--font-display); font-weight: 700; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea { border-radius: 10px; }
.choice span { border-radius: 10px; }
.choice input:checked + span { border-color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--accent-strong); background: var(--accent-soft); }

/* Pied de page */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-5); }
.footer-grid h4 { margin: 0 0 var(--space-3); font: 700 12px/16px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-grid a { color: var(--on-nuit); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { margin-top: var(--space-3); max-width: 28em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; }
.footer-bottom nav { display: flex; gap: var(--space-4); }
.footer-bottom a { color: var(--on-nuit); text-decoration: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.section-facts { padding-block: var(--space-6) var(--space-7); }
.table-title { margin-top: var(--space-6); font-size: 22px; }
.checks-2 { margin-top: var(--space-5); grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-5); }
@media (max-width: 700px) { .checks-2 { grid-template-columns: 1fr; } }
.steps li { border: 1px solid var(--trait); }
.section-tint .steps li { border-color: transparent; }

/* Vraie photo à la place du cadre hachuré */
.photo.has-img { border: 0; background: var(--brume); }
.photo.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo.has-img .float-card { z-index: 1; }

/* Demande de devis Titanor intégrée */
.quote-embed { min-width: 0; background: var(--surface-raised); border: 1px solid var(--trait); border-radius: var(--radius-l); box-shadow: var(--shadow); overflow: hidden; }
.quote-embed iframe { display: block; }

/* Masque l'en-tête (logo, langues, slogan) du formulaire Titanor intégré.
   Titanor n'offre pas d'option pour le retirer : on décale le cadre vers le haut de la hauteur
   de cet en-tête, mesurée le 25.10.2026 selon la largeur du cadre (146, 166 ou 186 px).
   À revérifier si Titanor modifie la mise en page de ses formulaires. */
.quote-embed { container-type: inline-size; }
.quote-embed iframe {
  --crop: 146px;
  margin-top: calc(-1 * var(--crop));
  /* Fermé : juste la hauteur de l'étape 1 (291 px de contenu + marge), coupé sous « Propulsé par Titanor ».
     Ouvert (dès que le visiteur clique dans le formulaire) : la hauteur de l'étape la plus longue (920 px mesurés). */
  height: calc(var(--crop) + 324px);
  transition: height .3s ease;
}
.quote-embed.is-open iframe { height: calc(var(--crop) + 960px); }
@container (max-width: 477px) { .quote-embed iframe { --crop: 166px; } }
@container (max-width: 349px) { .quote-embed iframe { --crop: 186px; } }
@media (prefers-reduced-motion: reduce) { .quote-embed iframe { transition: none; } }
.quote:has(.quote-embed) { align-items: center; }

/* Très petits écrans (320 px) : les cartes et les chiffres clés ne débordent plus */
.services > *, .facts li, .picker-grid > * { min-width: 0; }
.service, .card-link, .facts li { overflow-wrap: break-word; }
:lang(de) .service, :lang(de) .facts li, :lang(de) .card-link { hyphens: auto; }
@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; }
  .service { padding: var(--space-4) var(--space-3); }
}

/* Ligne de remise de l'estimateur : couleur du bouton d'action (ambre).
   En thème sombre, l'ambre du bouton lui-même (7.5:1). En thème clair, l'ambre du bouton
   est trop pâle pour du texte (2:1) : on prend un ambre foncé de la même teinte (6:1 sur blanc). */
:root { --accent-texte: #8f5600; }
@media (prefers-color-scheme: dark) { :root { --accent-texte: #f2a93b; } }
.result-table tr.remise th, .result-table tr.remise td { color: var(--accent-texte); }

/* Avis Google (widget Titanor) */
.avis-carrousel { margin-top: var(--space-5); }
.avis-piste { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: var(--radius-l); }
.avis-piste::-webkit-scrollbar { display: none; }
.avis-piste:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.avis-widget { min-height: 120px; }
.avis-nav { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-3); }
.avis-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: transparent;
  color: var(--ink); font: 700 18px/1 var(--font-sans); cursor: pointer;
}
.avis-btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.avis-btn:disabled { opacity: .35; cursor: default; }

/* Badge « note Google » fixé sur le bord droit (créé par main.js) */
.avis-badge {
  position: fixed; top: 50%; right: 0; z-index: 9;
  display: flex; align-items: center;
  transform: translateY(-50%);
  color: var(--ink); text-decoration: none; text-align: center;
  transition: opacity .25s ease, transform .25s ease;
}
.avis-badge.is-cache { opacity: 0; pointer-events: none; transform: translate(100%, -50%); }
.avis-badge__carte {
  display: block; width: 92px; padding: 18px 10px 14px;
  background: var(--surface-raised); border-radius: var(--radius-m) 0 0 var(--radius-m);
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.avis-badge__barre { align-self: stretch; width: 10px; margin: -110px 0; background: var(--nuit); border-radius: var(--radius-m) 0 0 var(--radius-m); }
@media (prefers-color-scheme: dark) { .avis-badge__barre { background: var(--glacier); } }
.avis-badge__note { display: block; font-size: 22px; font-weight: 700; line-height: 1; }
.avis-badge__note small { font-size: 14px; font-weight: 400; color: var(--muted); }
.avis-badge__etoile { display: block; width: 30px; height: 30px; margin: 10px auto 12px; fill: #fbc02d; stroke: #fbc02d; stroke-width: 1.5; stroke-linejoin: round; }
.avis-badge__trait { display: block; height: 1px; margin: 0 6px 12px; background: var(--trait); }
.avis-badge__g { display: block; width: 40px; height: 40px; margin: 0 auto; }
.avis-badge__voir { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 12px; line-height: 16px; color: var(--muted); transition: max-height .25s ease, opacity .25s ease, margin .25s ease; }
.avis-badge:hover .avis-badge__carte, .avis-badge:focus-visible .avis-badge__carte { transform: translateX(-6px); }
.avis-badge:hover .avis-badge__voir, .avis-badge:focus-visible .avis-badge__voir { max-height: 40px; opacity: 1; margin-top: 10px; }
.avis-badge:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Mobile : plus petit et en bas à droite, pour ne pas couvrir le texte */
@media (max-width: 720px) {
  .avis-badge { top: auto; bottom: 88px; transform: none; }
  .avis-badge.is-cache { transform: translateX(100%); }
  .avis-badge__carte { width: 64px; padding: 10px 6px 8px; }
  .avis-badge__barre { width: 6px; margin: -24px 0; }
  .avis-badge__note { font-size: 16px; }
  .avis-badge__note small { font-size: 11px; }
  .avis-badge__etoile { width: 20px; height: 20px; margin: 6px auto 8px; }
  .avis-badge__trait { margin-bottom: 8px; }
  .avis-badge__g { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) { .avis-badge, .avis-badge__carte, .avis-badge__voir { transition: none; } }
