/* Arlocap : la carte routière du Sud-Luxembourg vue depuis Arlon.
   Ardoise = champ principal, ivoire = lecture, sable = routes et bornes, terre cuite = « ici »
   (réservée à la position et à la destination), vert pétrole = action (réservé aux boutons). */

@font-face { font-family: "Atkinson Next"; src: url("/fonts/atkinson-next-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ardoise: #173842;
  --ardoise-2: #1f4752;     /* plans secondaires sur fond ardoise */
  --ardoise-3: #0f2a32;     /* pied de page, ombres */
  --petrole: #245a5d;
  --petrole-fonce: #1b4749;
  --ivoire: #faf7f0;
  --ivoire-2: #f1ece0;      /* bandes alternées */
  --sable: #d8ae6d;
  --sable-fonce: #7f6130;   /* sable lisible sur ivoire (5,4:1) et sur le fond alterné #f1ece0 (4,9:1) */
  --terre: #a64d30;
  --encre: #18262b;         /* texte courant sur ivoire (14:1) */
  --encre-2: #45555b;       /* texte secondaire sur ivoire (7,4:1) */
  --brume: #c8d6d9;         /* texte secondaire sur ardoise (8,9:1) */
  --filet: #d9d1bf;
  --affiche: "Barlow Condensed", "Arial Narrow", sans-serif;
  --texte: "Atkinson Next", "Segoe UI", system-ui, sans-serif;
  --r: 6px;
  --ombre: 0 1px 2px rgb(15 42 50 / .10), 0 8px 24px -8px rgb(15 42 50 / .28);
  --large: min(1180px, 100% - 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--ivoire); color: var(--encre);
  font: 400 1.0625rem/1.65 var(--texte); font-variant-numeric: tabular-nums;
  caret-color: var(--terre);
}
::selection { background: var(--sable); color: var(--ardoise-3); }
:focus-visible { outline: 3px solid var(--sable); outline-offset: 3px; border-radius: 3px; }
html { scrollbar-color: var(--petrole) var(--ivoire-2); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--petrole); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ardoise); }
.heros a:not(.btn):not(.plaque), .carte-svg a { color: var(--ivoire); }
h1, h2, h3 { font-family: var(--affiche); font-weight: 700; line-height: 1.05; letter-spacing: -.005em; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-top: 0; }
h3 { font-size: 1.45rem; font-weight: 600; }
p, ul, ol { margin: 0 0 1em; }
.petit { font-size: .9rem; color: var(--encre-2); }
.saut { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--sable); color: var(--ardoise-3); padding: .6rem 1rem; }
.saut:focus { left: 1rem; }
.cadre { width: var(--large); margin-inline: auto; }
.lecture { max-width: 68ch; }
[hidden] { display: none !important; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 3rem; padding: .7rem 1.35rem;
  font: 700 1.15rem/1 var(--affiche); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  border-radius: var(--r); border: 0; cursor: pointer; transition: background-color .18s, color .18s, transform .18s;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-action { background: var(--petrole); color: var(--ivoire); box-shadow: inset 0 0 0 2px rgb(250 247 240 / .22), var(--ombre); }
.btn-action:hover { background: var(--petrole-fonce); color: var(--ivoire); }
.btn-action:active { transform: translateY(1px); }
.btn-contour { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-contour:hover { color: var(--sable); }
.btn:disabled { opacity: .55; cursor: progress; }

/* ---------- En-tête ---------- */
.entete { background: var(--ardoise); color: var(--ivoire); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgb(216 174 109 / .25); }
.entete .cadre { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.marque { display: flex; align-items: center; gap: .65rem; color: var(--ivoire); text-decoration: none; margin-right: auto; }
.marque svg { width: 2.4rem; height: 2.4rem; }
.marque b { font: 700 1.65rem/1 var(--affiche); letter-spacing: .06em; }
.marque small { display: block; font: 400 .78rem/1.2 var(--texte); color: var(--brume); letter-spacing: .01em; }
.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a { color: var(--ivoire); text-decoration: none; font-weight: 700; font-size: .98rem; padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: var(--sable); color: var(--ivoire); }
.tel { font: 700 1.2rem/1 var(--affiche); letter-spacing: .03em; color: var(--sable) !important; white-space: nowrap; }
.menu-bouton { display: none; background: none; border: 0; color: var(--ivoire); padding: .4rem; cursor: pointer; }
.menu-bouton svg { width: 1.9rem; height: 1.9rem; }
@media (max-width: 900px) {
  .menu-bouton { display: block; }
  .nav { display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--ardoise); padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid rgb(216 174 109 / .3); }
  .nav.ouvert { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid rgb(200 214 217 / .15); }
}

/* ---------- Plaques (signalisation) ---------- */
.plaque {
  display: inline-flex; align-items: baseline; gap: .7rem; padding: .35rem .75rem .3rem;
  background: var(--ivoire); color: var(--ardoise); border-radius: var(--r);
  box-shadow: inset 0 0 0 2px var(--ivoire), inset 0 0 0 3.5px var(--ardoise);
  font: 700 1.15rem/1.1 var(--affiche); letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
}
.plaque .km { color: var(--sable-fonce); font-weight: 600; }
.plaque.cp { font-size: .95rem; padding: .2rem .5rem; }
a.plaque:hover { background: var(--sable); box-shadow: inset 0 0 0 2px var(--sable), inset 0 0 0 3.5px var(--ardoise); color: var(--ardoise-3); }

/* ---------- Héros : champ ardoise + carte ---------- */
.heros { background: var(--ardoise); color: var(--ivoire); position: relative; overflow: hidden; }
.heros::before { /* courbes de niveau très discrètes, l'Ardenne */
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background: repeating-radial-gradient(circle at 78% 40%, transparent 0 34px, var(--brume) 34px 35px);
}
.heros .cadre { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.heros h1 { color: var(--ivoire); }
.heros h1 em { font-style: normal; color: var(--sable); }
.heros .chapo { font-size: 1.2rem; max-width: 38ch; color: var(--brume); }
.heros .chapo strong { color: var(--ivoire); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.2rem; }
.garanties { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding: 0; margin: 0; list-style: none; color: var(--brume); font-size: .95rem; }
.garanties li { display: flex; gap: .45rem; align-items: center; }
.garanties svg { width: 1.1rem; height: 1.1rem; color: var(--sable); flex: none; }
.heros-court .cadre { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); padding-block: clamp(2rem, 4.5vw, 3.6rem); }
.heros-court h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.fil { font-size: .88rem; color: var(--brume); margin-bottom: 1rem; }
.fil a { color: var(--brume); }
.fil a:hover { color: var(--sable); }
@media (max-width: 860px) {
  .heros .cadre, .heros-court .cadre { grid-template-columns: 1fr; }
  .heros .carte-svg { max-width: 440px; margin-inline: auto; }
}

/* ---------- Carte SVG ---------- */
.carte-svg { width: 100%; }
.carte-svg .route { stroke: var(--sable); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.carte-svg .route-faible { stroke: rgb(216 174 109 / .35); stroke-width: 1.4; fill: none; stroke-dasharray: 1 5; stroke-linecap: round; }
.carte-svg .frontiere { stroke: var(--brume); stroke-width: 1; fill: none; stroke-dasharray: 6 4 1 4; opacity: .55; }
.carte-svg .pays { fill: var(--brume); font: 600 11px var(--affiche); letter-spacing: .25em; text-transform: uppercase; opacity: .6; }
.carte-svg .ville circle { fill: var(--ivoire); stroke: var(--ardoise); stroke-width: 2; }
.carte-svg .ville.secondaire circle { fill: var(--brume); stroke: none; }
.carte-svg .ville text { fill: var(--ivoire); font: 700 21px var(--affiche); letter-spacing: .04em; text-transform: uppercase; paint-order: stroke; stroke: var(--ardoise); stroke-width: 5px; stroke-linejoin: round; }
.carte-svg .ville.secondaire text { fill: var(--brume); font-weight: 600; font-size: 15px; }
.carte-svg .ville .dist { fill: var(--sable); font-weight: 600; font-size: 17px; }
.carte-svg a:hover text, .carte-svg a:focus text { fill: var(--sable); }
.carte-svg a:hover circle { fill: var(--sable); }
.carte-svg .base circle { fill: var(--terre); stroke: var(--ivoire); stroke-width: 3; }
.carte-svg .base text { font-size: 25px; }
.carte-svg .pays { font-size: 14px; }
.carte-svg .trace { stroke: var(--terre); stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--long, 1000); stroke-dashoffset: var(--long, 1000); transition: stroke-dashoffset .9s cubic-bezier(.16, 1, .3, 1); }
.carte-svg .trace.trace-visible { stroke-dashoffset: 0; }
.carte-svg .destination circle { fill: var(--terre); stroke: var(--ivoire); stroke-width: 2.5; }
@media (prefers-reduced-motion: reduce) { .carte-svg .trace { transition: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section.alt { background: var(--ivoire-2); }
.section.sombre { background: var(--ardoise); color: var(--ivoire); }
.section.sombre h2 { color: var(--ivoire); }
.section.sombre a:not(.btn):not(.plaque) { color: var(--sable); }
.intro { max-width: 60ch; margin-bottom: 2.2rem; font-size: 1.12rem; }
.colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.colonnes-inegales { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 820px) { .colonnes, .colonnes-inegales { grid-template-columns: 1fr; } }
.contenu h2 { margin-top: 2.2em; }
.contenu h2:first-child { margin-top: 0; }
.contenu ul li { margin-bottom: .35em; }

/* ---------- Itinéraire : étapes le long d'une route (remplace les grilles de cartes) ---------- */
.itineraire { list-style: none; padding: 0; margin: 0; position: relative; }
.itineraire::before { content: ""; position: absolute; left: 1.15rem; top: .6rem; bottom: .6rem; width: 3px; background: repeating-linear-gradient(var(--sable) 0 14px, transparent 14px 22px); }
.itineraire > li { position: relative; padding: 0 0 2rem 3.6rem; }
.itineraire > li:last-child { padding-bottom: 0; }
.itineraire .borne { position: absolute; left: 0; top: 0; width: 2.35rem; height: 2.6rem; display: grid; place-items: center;
  background: var(--ivoire); color: var(--ardoise); border-radius: 1.2rem 1.2rem var(--r) var(--r);
  box-shadow: inset 0 0 0 2.5px var(--ardoise); font: 700 1.05rem/1 var(--affiche); }
.section.sombre .itineraire .borne { box-shadow: inset 0 0 0 2.5px var(--sable); }
.itineraire h3 { margin-bottom: .25em; }
.itineraire p { margin: 0; color: var(--encre-2); max-width: 60ch; }
.section.sombre .itineraire p { color: var(--brume); }

/* ---------- Deux métiers : deux panneaux, pas une grille de cartes ---------- */
.metiers { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre); }
.metier { padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-direction: column; gap: .4rem; }
.metier:first-child { background: var(--ardoise); color: var(--ivoire); }
.metier:first-child h3 { color: var(--ivoire); }
.metier:first-child p, .metier:first-child li { color: var(--brume); }
.metier:last-child { background: #fff; }
.metier h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); text-transform: uppercase; }
.metier ul { padding-left: 1.1rem; }
.metier .liens { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 760px) { .metiers { grid-template-columns: 1fr; } }

/* ---------- Tableau des distances (index des communes) ---------- */
.distances { list-style: none; padding: 0; margin: 0; columns: 3 15rem; column-gap: 2.5rem; }
.distances li { break-inside: avoid; display: grid; grid-template-columns: 4.2rem 1fr auto; gap: .6rem; align-items: baseline;
  padding: .45rem 0; border-bottom: 1px dashed var(--filet); }
.distances .code { font: 600 .95rem/1 var(--affiche); color: var(--encre-2); letter-spacing: .04em; }
.distances .nom { font-weight: 700; }
.distances .km { font: 600 1.05rem/1 var(--affiche); color: var(--sable-fonce); }
.section.sombre .distances li { border-color: rgb(200 214 217 / .2); }
.section.sombre .distances .code { color: var(--brume); }
.section.sombre .distances .km { color: var(--sable); }

/* ---------- Relevé de prix (traçabilité ligne par ligne) ---------- */
.releve { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 1rem 0 1.5rem; }
.releve caption { text-align: left; font: 700 1.25rem/1.2 var(--affiche); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .6rem; }
.releve th, .releve td { padding: .6rem .5rem; border-bottom: 1px solid var(--filet); text-align: left; vertical-align: top; }
.releve th { font-weight: 700; }
.releve td:last-child, .releve th:last-child { text-align: right; white-space: nowrap; }
.releve tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ardoise); }
.note { background: #fff; border-radius: var(--r); padding: 1.1rem 1.3rem; box-shadow: inset 0 0 0 1px var(--filet); font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 2.5rem 1.05rem 0; position: relative; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: .7rem; height: .7rem; border-right: 2.5px solid var(--petrole); border-bottom: 2.5px solid var(--petrole); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 1.2rem; max-width: 70ch; color: var(--encre-2); }

/* ---------- Formulaires ---------- */
label, legend { font-weight: 700; }
.champ { display: grid; gap: .35rem; margin-bottom: 1rem; }
.champ small { font-weight: 400; color: var(--encre-2); font-size: .88rem; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], select, textarea {
  font: inherit; color: var(--encre); background: #fff; border: 1.5px solid #9fb0b4; border-radius: var(--r);
  padding: .7rem .8rem; min-height: 3rem; width: 100%;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--petrole); outline: 3px solid rgb(36 90 93 / .25); outline-offset: 0; }
input:user-invalid, select:user-invalid { border-color: var(--terre); }
input::placeholder, textarea::placeholder { color: #66767b; }
.ligne-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0 1rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
fieldset > legend { margin-bottom: .55rem; padding: 0; }
.choix { display: flex; flex-wrap: wrap; gap: .5rem; }
.choix label { position: relative; font-weight: 400; }
.choix input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choix span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1rem; border-radius: var(--r);
  background: #fff; box-shadow: inset 0 0 0 1.5px #9fb0b4; cursor: pointer; transition: box-shadow .15s, background .15s; }
.choix input:checked + span { background: var(--ardoise); color: var(--ivoire); box-shadow: inset 0 0 0 2px var(--ardoise); font-weight: 700; }
.choix input:focus-visible + span { outline: 3px solid var(--sable); outline-offset: 2px; }
.choix input:hover + span { box-shadow: inset 0 0 0 2px var(--petrole); }
.form-erreur { color: var(--terre); font-weight: 700; }

/* Cartes de service du calculateur : plaques sélectionnables */
.services-choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .7rem; }
.services-choix label { position: relative; display: block; cursor: pointer; }
.services-choix input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.services-choix .carte-service { display: flex; gap: .85rem; align-items: flex-start; height: 100%; padding: 1rem 1.1rem; border-radius: var(--r);
  background: #fff; box-shadow: inset 0 0 0 1.5px #9fb0b4; transition: box-shadow .15s, background .15s; }
.services-choix svg { width: 2rem; height: 2rem; flex: none; color: var(--petrole); }
.services-choix strong { display: block; font: 700 1.3rem/1.05 var(--affiche); text-transform: uppercase; letter-spacing: .02em; }
.services-choix .carte-note { display: block; font-weight: 400; font-size: .9rem; color: var(--encre-2); margin-top: .2rem; }
.services-choix input:checked + .carte-service { background: var(--ardoise); box-shadow: inset 0 0 0 2px var(--ardoise); }
.services-choix input:checked + .carte-service strong { color: var(--ivoire); }
.services-choix input:checked + .carte-service .carte-note { color: var(--brume); }
.services-choix input:checked + .carte-service svg { color: var(--sable); }
.services-choix input:focus-visible + .carte-service { outline: 3px solid var(--sable); outline-offset: 2px; }
.services-choix input:hover:not(:checked) + .carte-service { box-shadow: inset 0 0 0 2px var(--petrole); }

/* ---------- Calculateur ---------- */
.devis-zone { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: 2.5rem; align-items: start; }
@media (max-width: 980px) { .devis-zone { grid-template-columns: 1fr; } }
.devis-entete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
#etape-num { font: 600 1rem/1 var(--affiche); letter-spacing: .06em; text-transform: uppercase; color: var(--encre-2); }
.devis-progression { height: 6px; background: var(--ivoire-2); border-radius: 3px; overflow: hidden; margin-bottom: 1.8rem; box-shadow: inset 0 0 0 1px var(--filet); }
.devis-progression span { display: block; height: 100%; width: 100%; background: var(--sable); transform-origin: left; transform: scaleX(.2); transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.etape > legend, .etape > h2 { font: 700 clamp(1.7rem, 3vw, 2.2rem)/1.05 var(--affiche); text-transform: uppercase; margin-bottom: 1.2rem; }
.etape > legend:focus { outline: none; }
.sous-bloc { background: #fff; border-radius: var(--r); padding: 1.2rem 1.25rem .4rem; box-shadow: inset 0 0 0 1px var(--filet); margin-bottom: 1.2rem; }
.sous-bloc h2, .sous-bloc h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .8rem; }
.devis-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--filet); }
.devis-nav .btn { white-space: nowrap; }
@media (max-width: 420px) { .devis-nav .btn { padding-inline: .9rem; font-size: 1.02rem; } }
.devis-nav .btn-contour { color: var(--ardoise); }
.devis-nav .btn-contour:hover { color: var(--petrole); }

.inventaire { display: grid; gap: .1rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.inventaire h4 { grid-column: 1 / -1; font: 700 1.05rem/1 var(--affiche); text-transform: uppercase; letter-spacing: .05em; color: var(--encre-2); margin: 1rem 0 .3rem; }
.objet { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .3rem 0; border-bottom: 1px dashed var(--filet); font-weight: 400; }
.objet small { color: var(--encre-2); }
.compteur { display: flex; align-items: center; }
.compteur button { width: 2.4rem; height: 2.4rem; border: 0; background: var(--ivoire-2); color: var(--ardoise); font: 700 1.3rem/1 var(--affiche); cursor: pointer; border-radius: var(--r); }
.compteur button:hover { background: var(--sable); }
.compteur input { width: 3.2rem !important; min-height: 2.4rem !important; text-align: center; padding: .2rem !important; border: 0 !important; background: transparent !important; font-weight: 700; }

.champ .label { font-weight: 700; }
.fichier-cache { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.depot-photos { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 4rem; padding: .8rem 1rem;
  border: 2px dashed #9fb0b4; border-radius: var(--r); background: #fff; color: var(--petrole); cursor: pointer; font-weight: 700; }
.depot-photos:hover { border-color: var(--petrole); background: var(--ivoire-2); }
.fichier-cache:focus-visible + .photos-apercu, .depot-photos:focus-within { outline: 3px solid var(--sable); outline-offset: 2px; }
.icone-champ { width: 1.6rem; height: 1.6rem; flex: none; }

/* Récapitulatif du prix juste avant l'envoi */
.recap-final { background: var(--ardoise); color: var(--ivoire); border-radius: var(--r); padding: 1.2rem 1.3rem; margin: 1.2rem 0;
  box-shadow: inset 0 0 0 3px var(--ardoise), inset 0 0 0 4.5px rgb(250 247 240 / .55); }
.recap-final:empty { display: none; }
.recap-final h3 { font-size: 1.15rem; letter-spacing: .05em; text-transform: uppercase; color: var(--sable); margin-bottom: .4rem; }
.recap-final .estimation-prix { margin-bottom: .2rem; }
.recap-final p { margin: 0 0 .4rem; color: var(--brume); }
.recap-final ul { margin: .3rem 0 .5rem; padding-left: 1.1rem; }
.merci-ref { font-size: 1.1rem; }
.merci-ref strong { font: 700 1.4rem/1 var(--affiche); letter-spacing: .04em; color: var(--ardoise); }
.photos-apercu { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.photos-apercu figure { margin: 0; position: relative; width: 6rem; height: 6rem; }
.photos-apercu img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.photos-apercu button { position: absolute; top: -.5rem; right: -.5rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 0; background: var(--terre); color: #fff; font-weight: 700; cursor: pointer; }

/* Panneau d'estimation : un panneau routier qui suit le visiteur */
.estimation { position: sticky; top: 5.5rem; background: var(--ardoise); color: var(--ivoire); border-radius: var(--r); padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: inset 0 0 0 3px var(--ardoise), inset 0 0 0 4.5px rgb(250 247 240 / .55); }
.estimation h2 { font-size: 1.35rem; letter-spacing: .05em; text-transform: uppercase; color: var(--sable); margin-bottom: .8rem; }
.estimation .carte-svg { margin: -.2rem 0 .8rem; }
.estimation-prix { font: 700 clamp(2rem, 3.4vw, 2.5rem)/1.05 var(--affiche); margin: 0 0 .3rem; color: var(--ivoire); }
.estimation-prix span { font-weight: 600; font-size: .6em; color: var(--brume); }
.estimation-titre { font: 700 1.7rem/1.1 var(--affiche); text-transform: uppercase; margin: 0 0 .4rem; }
.estimation .petit, .estimation-attente { color: var(--brume); }
.estimation-raisons { padding-left: 1.1rem; color: var(--ivoire); }
.estimation-detail { margin-top: .8rem; border-top: 1px solid rgb(200 214 217 / .25); padding-top: .6rem; }
.estimation-detail summary { cursor: pointer; font-weight: 700; color: var(--sable); }
.estimation-detail ul { list-style: none; padding: 0; margin: .6rem 0; font-size: .92rem; }
.estimation-detail li { display: flex; justify-content: space-between; gap: .8rem; padding: .3rem 0; border-bottom: 1px dashed rgb(200 214 217 / .2); }
.estimation-detail li span:last-child { white-space: nowrap; color: var(--sable); }
.borne-km { display: inline-flex; gap: .4rem; align-items: baseline; font: 700 1rem/1 var(--affiche); color: var(--sable); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 980px) { .estimation { position: static; } }

.estimation-mini { display: none; }
@media (max-width: 980px) {
  .estimation-mini:not([hidden]) { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; position: fixed; inset: auto 0 0; z-index: 31;
    background: var(--ardoise); color: var(--brume); text-decoration: none; padding: .8rem 1.25rem max(.8rem, env(safe-area-inset-bottom));
    border-top: 3px solid var(--sable); font-size: .9rem; }
  .estimation-mini span { font: 700 1.45rem/1 var(--affiche); color: var(--ivoire); }
  body:has(.estimation-mini:not([hidden])) .barre-mobile { display: none; }
  body:has(.estimation-mini) { padding-bottom: 4.5rem; }
}
@media (max-width: 420px) { .marque small { display: none; } }

/* Rappel en 20 secondes */
.rappel { background: #fff; color: var(--encre); border-radius: var(--r); padding: 1.5rem; box-shadow: var(--ombre); }
.rappel h2, .rappel h3 { font-size: 1.7rem; text-transform: uppercase; }
.heros .rappel { box-shadow: inset 0 0 0 4px var(--sable); }

/* ---------- Bandeau final ---------- */
.bandeau { background: var(--petrole); color: var(--ivoire); }
.bandeau .cadre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding-block: 2.4rem; }
.bandeau h2 { color: var(--ivoire); margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.bandeau p { margin: .3rem 0 0; color: #d6e6e4; }
.bandeau .btn-action { background: var(--ivoire); color: var(--ardoise); }
.bandeau .btn-action:hover { background: var(--sable); color: var(--ardoise-3); }

/* ---------- Pied de page ---------- */
.pied { background: var(--ardoise-3); color: var(--brume); font-size: .95rem; padding-block: 3rem 2rem; }
.pied .cadre { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.pied h2 { font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sable); margin-bottom: .8rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .4rem; }
.pied a { color: var(--ivoire); text-decoration: none; }
.pied a:hover { color: var(--sable); text-decoration: underline; }
.pied .bas span a { text-decoration: underline; text-underline-offset: .2em; } /* lien dans une phrase : pas seulement la couleur */
.pied .bas { grid-column: 1 / -1; border-top: 1px solid rgb(200 214 217 / .15); padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .85rem; }
@media (max-width: 820px) { .pied .cadre { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pied .cadre { grid-template-columns: 1fr; } }

/* À compléter avant mise en ligne (repéré au build) */
.a-completer { background: #fff3cd; color: #5c4400; padding: 0 .3em; border-radius: 3px; }

/* Barre d'appel mobile */
.barre-mobile { display: none; }
@media (max-width: 700px) {
  .barre-mobile { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0; z-index: 30; background: var(--ardoise-3); padding: .5rem; gap: .5rem; padding-bottom: max(.5rem, env(safe-area-inset-bottom)); }
  .barre-mobile .btn { justify-content: center; font-size: 1.05rem; min-height: 2.9rem; }
  .barre-mobile .btn-contour { color: var(--ivoire); }
  body { padding-bottom: 4.2rem; }
}

@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- Espacements ponctuels (la CSP interdit les attributs style="...") ---------- */
.mt-1 { margin-top: .6rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
