/* Clé de 12 — site de démonstration La Balise.
   Aucune règle inline dans la page : la CSP du domaine (style-src 'self') les bloquerait. */

@font-face { font-family: "Bricolage"; src: url("/exemples/plombier/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/exemples/plombier/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

/* Contrastes (WCAG) : ink/paper 15.2 · muted/paper 5.9 · blanc/copper 7.5 · amber/navy 6.0 ·
   mist/navy 8.4 · danger/paper 6.4 · water/paper 4.8 */
:root {
  --paper: #F3F1EC;
  --card: #FCFBF8;
  --chalk: #E6E2D8;
  --ink: #10222E;
  --muted: #56636B;
  --navy: #10222E;
  --navy-2: #1A3343;
  --navy-3: #234355;
  --mist: #AFC0CA;
  --copper: #A9521E;
  --copper-text: #9B4B1C;    /* cuivre lisible en petit texte : 4,7:1 sur le fond du devis */
  --copper-2: #BF5F26;
  --copper-dark: #77380F;
  --amber: #E08A3C;
  --water: #2A6F8F;
  --danger: #A8231B;
  --ok: #2E7A4C;
  --line: rgba(16, 34, 46, .13);
  --line-navy: rgba(243, 241, 236, .14);
  --radius: 18px;
  --shadow: 0 1px 0 rgba(16, 34, 46, .05), 0 22px 44px -28px rgba(16, 34, 46, .5);
  --lift: translateY(-5px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Bricolage", system-ui, sans-serif;
  --font: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.6 var(--font); }
main, .foot { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -0.025em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 6px; }
.aids :focus-visible, .foot :focus-visible { outline-color: var(--amber); }
.muted { color: var(--muted); }
small { font-size: .82em; }

/* Accent : un trait de joint de silicone, tiré d'un geste */
.h-accent { position: relative; z-index: 0; color: var(--copper); white-space: nowrap; }
.h-accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .02em;
  height: .2em;
  border-radius: 999px;
  background: var(--amber);
  opacity: .35;
  z-index: -1;
  transform-origin: left;
  animation: bead 1s .35s var(--ease) both;
}
@keyframes bead { from { transform: scaleX(0); } }
.aids .h-accent { color: var(--amber); }

/* ---------- Bandeau démo ---------- */
.demo-bar { position: relative; z-index: 60; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 16px; padding: 8px 16px; background: var(--navy); color: var(--mist); font-size: 13px; text-align: center; }
.demo-bar strong { color: var(--paper); font-weight: 700; }
.demo-bar a { color: var(--amber); font-weight: 700; text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 22px; border: 0; border-radius: 12px; font: 700 16px/1.1 var(--font); text-decoration: none; text-align: center; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s ease, color .2s ease; }
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-copper { background: var(--copper); color: #fff; box-shadow: 0 4px 0 var(--copper-dark), 0 14px 24px -14px rgba(169, 82, 30, .9); }
.btn-copper:hover { background: var(--copper-2); transform: translateY(-2px); box-shadow: 0 6px 0 var(--copper-dark), 0 18px 28px -14px rgba(169, 82, 30, .9); }
.btn-copper:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--copper-dark); }
.btn-line { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--navy); color: var(--paper); }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(243, 241, 236, .88); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.top.is-scrolled { border-color: var(--line); }
.top-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.04); }
.brand-text { display: grid; }
.brand-name { font: 800 23px/1 var(--display); letter-spacing: -0.03em; }
.brand-sub { margin-top: 3px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { position: relative; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; transition: color .2s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.top-call { display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: 10px; padding: 9px 16px 9px 14px; border-radius: 12px; background: var(--navy); color: var(--paper); text-decoration: none; transition: background-color .2s ease, transform .25s var(--ease); }
.top-call:hover { background: var(--navy-3); transform: translateY(-1px); }
.top-call .dot { grid-row: 1 / 3; }
.top-call-num { font: 800 17px/1.1 var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.top-call-state { font-size: 12px; color: var(--mist); }

/* Pastille d'état (ouvert, astreinte, urgences) */
.dot { position: relative; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--mist); flex: none; }
[data-state="open"] .dot { background: #3FBF74; }
[data-state="astreinte"] .dot { background: var(--amber); }
[data-state="nuit"] .dot { background: #E5544A; }
[data-state] .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s ease-out infinite; }
@keyframes ping { 70%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Hero ---------- */
.hero { padding: 52px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 700; }
.hero h1 { margin-top: 22px; font-size: clamp(42px, 5.6vw, 80px); }
.hero-lead { margin-top: 22px; max-width: 32em; font-size: 19px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 38px 0 0; padding: 20px 0 0; list-style: none; border-top: 2px solid var(--ink); font-size: 14px; color: var(--muted); line-height: 1.35; }
.hero-facts strong { display: block; margin-bottom: 4px; color: var(--ink); font: 800 19px/1.1 var(--display); }

/* tri des urgences */
.triage { padding: 28px; border-radius: 24px; background: var(--navy); color: var(--paper); box-shadow: 0 40px 70px -40px rgba(16, 34, 46, .8); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-text); }
.kicker::before { content: ""; width: 9px; height: 12px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: currentColor; clip-path: polygon(50% 0, 100% 60%, 100% 100%, 0 100%, 0 60%); }
.kicker-light, .triage .kicker { color: var(--amber); }
.triage h2 { margin-top: 10px; font-size: 32px; }
.triage-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.tchoice { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 12px; border: 0; border-radius: 14px; background: var(--navy-2); color: var(--paper); box-shadow: inset 0 0 0 1px var(--line-navy); font: 700 14px/1.2 var(--font); text-align: left; cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease, transform .25s var(--ease); }
.tchoice svg { width: 26px; height: 26px; fill: none; stroke: var(--amber); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.tchoice:hover { background: var(--navy-3); transform: translateY(-2px); }
.tchoice:hover svg { transform: rotate(-8deg) scale(1.1); }
.tchoice[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: none; }
.tchoice[aria-pressed="true"] svg { stroke: var(--copper); }
.tchoice-gas svg { stroke: #F07A6E; }
.triage-out { margin-top: 16px; min-height: 230px; padding: 20px; border-radius: 16px; background: var(--navy-2); }
.triage-empty { color: var(--mist); font-size: 15px; }
.t-level { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 8px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.t-level.lv-danger { background: #E5544A; color: #fff; }
.t-level.lv-urgent { background: var(--amber); color: var(--navy); }
.t-level.lv-today { background: #F3D9A8; color: var(--navy); }
.t-level.lv-wait { background: #BFD9C9; color: #123322; }
.t-title { margin-top: 12px; font: 800 22px/1.15 var(--display); letter-spacing: -0.01em; }
.t-steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.t-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 15px; color: #DCE4E9; counter-increment: s; animation: rise .4s var(--ease) both; }
.t-steps li:nth-child(2) { animation-delay: .06s; } .t-steps li:nth-child(3) { animation-delay: .12s; }
.t-steps li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy-3); color: var(--amber); font-size: 13px; font-weight: 800; }
.t-price { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-navy); font-size: 14px; color: var(--mist); }
.t-price strong { color: var(--paper); }
.t-now { margin-top: 6px; font-size: 14px; color: var(--amber); font-weight: 700; }
.t-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.t-cta .btn { padding: 12px 16px; font-size: 15px; }
.t-cta .btn-line { color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }
.t-cta .btn-line:hover { background: var(--paper); color: var(--navy); }
.t-gas { background: #E5544A; color: #fff; box-shadow: 0 4px 0 #8E1F18; }
.t-gas:hover { background: #EF6359; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Métiers ---------- */
.services { padding: 6px 0 90px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.service { padding: 26px 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.service svg { width: 44px; height: 44px; fill: none; stroke: var(--copper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.service:hover { transform: var(--lift); }
.service:hover svg { transform: rotate(-10deg) scale(1.08); }
.service h2 { margin-top: 18px; font-size: 26px; }
.service p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Titres de section ---------- */
.section-head { max-width: 780px; }
.section-head h2, .works h2, .quote h2 { margin-top: 14px; font-size: clamp(34px, 4.4vw, 58px); }
.section-lead { margin-top: 18px; max-width: 36em; font-size: 18px; color: var(--muted); }

/* ---------- Réalisations ---------- */
.works { padding: 90px 0 100px; border-top: 2px solid var(--ink); }
.works-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { padding: 10px 16px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font: 700 15px/1 var(--font); cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip.is-on { background: var(--navy); color: var(--paper); box-shadow: none; }
.project { margin-top: 24px; animation: rise .45s var(--ease) both; }
.project[hidden] { display: none; }
.project-town { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--copper-text); }
.project h3 { margin-top: 8px; font-size: 28px; }
.project > p:not(.project-town) { margin-top: 10px; color: var(--muted); }
.project-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 0; }
.project-facts div { padding: 10px 12px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.project-facts dt { font-size: 12px; color: var(--muted); }
.project-facts dd { margin: 2px 0 0; font-weight: 800; }

.ba-card { margin: 0; }
.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 800 / 520;
  border-radius: 22px;
  overflow: hidden;
  background: var(--chalk);
  box-shadow: 0 0 0 1px rgba(16, 34, 46, .12), 0 40px 70px -40px rgba(16, 34, 46, .6);
  user-select: none;
  touch-action: pan-y;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-img[hidden] { display: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before .ba-img { filter: saturate(.85) sepia(.12); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(16, 34, 46, .2); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--paper); font-size: 22px; transform: translate(-50%, -50%); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .55); transition: transform .25s var(--ease); }
.ba:hover .ba-handle span, .ba.is-drag .ba-handle span { transform: translate(-50%, -50%) scale(1.1); }
.ba-tag { position: absolute; top: 16px; padding: 6px 12px; border-radius: 8px; background: rgba(16, 34, 46, .82); color: var(--paper); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.ba-tag-before { left: 16px; }
.ba-tag-after { right: 16px; background: var(--copper); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--copper); outline-offset: 4px; }
.ba-card figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }
.ba.is-swap .ba-img { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lcd { font: 700 18px var(--display); fill: #8FE3FF; }
.tank-label { font: 800 30px var(--display); fill: #4E5C40; letter-spacing: .1em; }
.drops path { animation: drop 1s linear infinite; }
.drops path:nth-child(2n) { animation-delay: -.35s; }
.drops path:nth-child(3n) { animation-delay: -.7s; }
@keyframes drop { from { transform: translateY(0); opacity: 1; } to { transform: translateY(300px); opacity: 0; } }
.fan { transform-box: fill-box; transform-origin: 50% 50%; animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Aides ---------- */
.aids { padding: 100px 0; background: var(--navy); color: var(--paper); }
.aids .section-lead { color: var(--mist); }
.aid-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; margin-top: 36px; align-items: start; }
.aid-form { display: grid; gap: 12px; }
.aid-block { margin: 0; padding: 20px; border: 0; border-radius: 16px; background: var(--navy-2); box-shadow: inset 0 0 0 1px var(--line-navy); }
.aid-block legend, .aid-label { float: left; width: 100%; margin-bottom: 12px; padding: 0; font: 800 18px/1.2 var(--display); }
.aid-label small { font-family: var(--font); font-weight: 600; color: var(--mist); }
.works-pick { clear: both; display: grid; gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: block; padding: 14px 16px 14px 46px; border-radius: 12px; background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1.5px transparent; font-size: 14px; color: var(--mist); transition: box-shadow .2s ease, background-color .2s ease; }
.pick span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--mist); transition: box-shadow .2s ease; }
.pick strong { display: block; color: var(--paper); font-size: 16px; }
.pick input:checked + span { background: rgba(224, 138, 60, .12); box-shadow: inset 0 0 0 1.5px var(--amber); }
.pick input:checked + span::before { box-shadow: inset 0 0 0 6px var(--amber); }
.pick input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.stepper { clear: both; display: inline-flex; align-items: center; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .2); }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 9px; background: var(--navy-3); color: var(--paper); font: 700 22px/1 var(--font); cursor: pointer; transition: background-color .2s ease; }
.stepper button:hover { background: #2E5468; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 44px; text-align: center; font: 800 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.rfr-row { clear: both; display: flex; align-items: center; gap: 16px; }
.rfr-row input { flex: 1; height: 28px; accent-color: var(--amber); }
.rfr-row output { min-width: 96px; text-align: right; font: 800 20px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--amber); }

.aid-result { position: sticky; top: 96px; padding: 26px; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.res-label { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-text); }
.cat { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--chalk); font-size: 14px; font-weight: 800; }
.cat-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--mist); transition: background-color .3s ease; }
.cat[data-color="bleu"] .cat-dot { background: #2D5BD0; }
.cat[data-color="jaune"] .cat-dot { background: #E9C11E; }
.cat[data-color="violet"] .cat-dot { background: #8A4FC4; }
.cat[data-color="rose"] .cat-dot { background: #E07AA6; }
.aid-lines { margin: 14px 0 0; }
.aid-lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.aid-lines dt { color: var(--muted); }
.aid-lines dt small { display: block; }
.aid-lines dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.aid-minus dd { color: var(--ok); }
.res-big { margin-top: 16px; font: 800 46px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.res-big small { font: 700 16px var(--font); letter-spacing: 0; color: var(--muted); }
.aid-bar { display: flex; height: 14px; margin: 16px 0 10px; border-radius: 999px; overflow: hidden; background: var(--chalk); }
.aid-bar span { height: 100%; transition: flex-grow .5s var(--ease); }
.aid-bar-you { background: var(--copper); }
.aid-bar-mpr { background: #3E8F5E; }
.aid-bar-cee { background: #9BCBA9; }
.res-sub { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.fine { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.fine-left { text-align: left; }

/* ---------- Zone & tarifs ---------- */
.zone { padding: 100px 0; }
.zone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; align-items: start; }
.map-card { padding: 18px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.map { width: 100%; height: auto; }
.map .sea { fill: #CFE2E8; }
.map .land { fill: #F1EEE6; }
.map .river { fill: none; stroke: #9CC6D4; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.map .river-wide { stroke-width: 13; }
.map .ring { fill: none; stroke-dasharray: 4 6; stroke-width: 1.5; }
.map .ring-1 { stroke: var(--ok); fill: rgba(46, 122, 76, .07); }
.map .ring-2 { stroke: #C79A2E; }
.map .ring-3 { stroke: var(--copper); }
.map .town { cursor: pointer; }
.map .town circle { stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; transition: transform .25s var(--ease); }
.map .town.z1 circle { fill: var(--ok); }
.map .town.z2 circle { fill: #C79A2E; }
.map .town.z3 circle { fill: var(--copper); }
.map .town.z0 circle { fill: #9AA3A8; }
.map .town text { font: 700 10.5px var(--font); fill: var(--muted); paint-order: stroke; stroke: #F1EEE6; stroke-width: 3px; }
.map .town.is-on circle { transform: scale(1.6); }
.map .town.is-on text { fill: var(--ink); font-size: 13px; }
.map .base circle { fill: var(--navy); }
.map .base text { fill: var(--navy); font-weight: 800; }
.map .van { transition: transform .9s var(--ease); }
.map .sea-label { font: italic 600 12px var(--font); fill: #5E8A99; letter-spacing: .08em; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 4px 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; }
.map-legend .z1 { background: var(--ok); } .map-legend .z2 { background: #C79A2E; } .map-legend .z3 { background: var(--copper); }

.field { display: block; }
.field > span { display: block; margin: 0 0 6px 2px; font-size: 13px; font-weight: 800; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 0; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1.5px rgba(16, 34, 46, .3); color: var(--ink); font: 600 16px var(--font); transition: box-shadow .2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--copper), 0 0 0 4px rgba(169, 82, 30, .15); }
.field textarea { resize: vertical; min-height: 110px; }
.zone-answer { margin-top: 14px; padding: 20px; border-radius: 16px; background: var(--navy); color: var(--paper); }
.zone-answer h3 { font-size: 26px; animation: rise .4s var(--ease) both; }
.zone-answer p { margin-top: 6px; color: var(--mist); }
.zone-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 0; }
.zone-facts div { padding: 10px 12px; border-radius: 10px; background: var(--navy-2); }
.zone-facts dt { font-size: 12px; color: var(--mist); }
.zone-facts dd { margin: 2px 0 0; font: 800 20px/1.1 var(--display); color: var(--amber); }
.rates { width: 100%; margin-top: 22px; border-collapse: collapse; font-size: 15px; }
.rates caption { padding-bottom: 8px; text-align: left; font: 800 20px/1.2 var(--display); }
.rates th, .rates td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rates th { font-weight: 600; text-align: left; padding-right: 12px; }
.rates th small { color: var(--muted); }
.rates td { font-weight: 800; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rates tr.is-now th::after { content: "en ce moment"; display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 6px; background: var(--amber); color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }

/* ---------- Devis par photos ---------- */
.quote { padding: 100px 0; background: var(--chalk); }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.howto { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: h; display: grid; gap: 12px; }
.howto li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; counter-increment: h; }
.howto li::before { content: counter(h); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--navy); color: var(--amber); font: 800 16px var(--display); }
.howto strong { font-weight: 800; }
.trust { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.trust li { display: flex; gap: 10px; font-size: 15px; }
.trust li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.trust small { color: var(--muted); }
.quote-form, .quote-done { padding: 28px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-wide { grid-column: 1 / -1; }
.field > span small { font-weight: 600; }
.drop { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 2px rgba(16, 34, 46, .25); outline-offset: 2px; cursor: pointer; transition: box-shadow .2s ease, background-color .2s ease; }
.drop:hover, .drop.is-over { background: #FFF6EC; box-shadow: inset 0 0 0 2px var(--copper); }
.drop:has(input:focus-visible) { outline: 3px solid var(--copper); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop svg { width: 44px; height: 44px; flex: none; fill: none; stroke: var(--copper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.drop span { font-size: 14px; color: var(--muted); }
.drop strong { color: var(--ink); font-size: 16px; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--chalk); animation: pop .35s var(--ease) both; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(16, 34, 46, .85); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
@keyframes pop { from { opacity: 0; transform: scale(.8); } }
.form-error { min-height: 1.4em; margin: 12px 0 8px; color: var(--danger); font-weight: 800; font-size: 15px; }
.quote-done { text-align: center; }
.quote-done[hidden] { display: none; }
.quote-done:focus { outline: none; }
.quote-done h3 { margin-top: 8px; font-size: 30px; }
.quote-done p { margin-top: 10px; color: var(--muted); }
.quote-done .btn { margin-top: 18px; }
.done-drop { width: 110px; margin: 0 auto; }
.done-shape { fill: var(--water); transform-box: fill-box; transform-origin: 50% 0; animation: fall .7s var(--ease) both; }
.done-check { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: tick .5s .55s var(--ease) forwards; }
@keyframes fall { from { transform: translateY(-30px) scale(.6); opacity: 0; } }
@keyframes tick { to { stroke-dashoffset: 0; } }

/* ---------- Pied de page ---------- */
.foot { padding: 56px 0; background: var(--navy); color: var(--mist); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; }
.brand-name-foot { margin-bottom: 12px; color: var(--paper); font-size: 26px; }
.foot a { color: var(--paper); }
.foot-small { margin-top: 6px; font-size: 13px; }
.foot-credit a { color: var(--amber); font-weight: 700; text-decoration: none; }
.foot-credit a:hover { text-decoration: underline; }

/* ---------- Apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .4s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.is-visible:hover { transform: var(--lift); }

.sticky-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .top-call { margin-left: auto; }
  .hero-grid, .works-grid, .aid-grid, .zone-grid, .quote-grid { grid-template-columns: 1fr; }
  .hero-grid > *, .works-grid > *, .aid-grid > *, .zone-grid > *, .quote-grid > * { min-width: 0; } /* sinon une colonne 1fr s'élargit au contenu et dépasse de l'écran */
  .service-grid { grid-template-columns: 1fr 1fr; }
  .aid-result { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .h-accent { white-space: normal; } /* « quelques jours plus tard. » dépassait de l'écran à 390 px */
  .demo-long { display: none; }
  .top-inner { min-height: 62px; gap: 12px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 19px; }
  .brand-sub { display: none; }
  .top-call { padding: 8px 12px; }
  .top-call-num { font-size: 15px; }
  .hero { padding: 28px 0 56px; }
  .hero-lead { font-size: 17px; }
  .hero-cta .btn { width: 100%; }
  .hero-facts { gap: 10px; font-size: 13px; }
  .hero-facts strong { font-size: 16px; }
  .triage { padding: 22px 16px; border-radius: 20px; }
  .triage h2 { font-size: 26px; }
  .triage-choices { grid-template-columns: 1fr 1fr; }
  .triage-out { padding: 16px; }
  .services { padding-bottom: 70px; }
  .service-grid { grid-template-columns: 1fr; }
  .service { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
  .service svg { grid-row: 1 / 3; }
  .service h2 { margin-top: 0; font-size: 22px; }
  .works, .aids, .zone, .quote { padding: 72px 0; }
  .ba { border-radius: 16px; }
  .ba-handle span { width: 44px; height: 44px; font-size: 19px; }
  .aid-block { padding: 16px; }
  .res-big { font-size: 38px; }
  .map-card { padding: 10px; }
  .zone-facts dd { font-size: 17px; }
  .q-grid { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .quote-form, .quote-done { padding: 22px 18px; }
  .foot { padding-bottom: 110px; }
  .foot-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; transition: transform .35s var(--ease), opacity .3s ease; }
  .sticky-cta .btn { box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .5); }
  .sticky-cta.is-away { transform: translateY(150%); opacity: 0; pointer-events: none; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .drops { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

.reviews { --rv-star: #B8631A; --rv-tag-bg: rgba(16, 34, 46, .07); --rv-display: var(--display); }

/* ---------- Avis des clients (avis de démonstration) ---------- */
.reviews { padding: clamp(56px, 8vw, 100px) 0; }
.reviews .section-head { margin-bottom: 32px; }
.rv-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.rv-summary { position: sticky; top: 96px; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rv-score { display: flex; align-items: baseline; gap: 4px; font-size: 18px; color: var(--muted); }
.rv-score strong { font-size: 56px; line-height: 1; color: var(--ink); font-family: var(--rv-display, inherit); }
.rv-star-row { display: block; width: 100px; height: 18px; }
.rv-star-row.rv-big { width: 140px; height: 25px; margin: 6px 0; }
.rv-on { fill: var(--rv-star); }
.rv-off { fill: none; stroke: var(--rv-star); stroke-width: 1.4; }
.rv-half { fill: var(--rv-star); opacity: .55; }
.rv-count { font-weight: 700; margin-bottom: 14px; }
.rv-bars { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.rv-bars li { display: grid; grid-template-columns: 34px 1fr 24px; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.rv-bar { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.rv-fill { display: block; height: 100%; background: var(--rv-star); }
.rv-n { text-align: right; }
.rv-source { margin-bottom: 18px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.rv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--card); font: 700 16px/1.2 inherit; font-family: inherit; cursor: pointer; }
.rv-btn:hover { opacity: .9; }
.rv-btn-line { background: transparent; color: var(--ink); margin-top: 16px; }
.rv-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rv-chip { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 600 15px/1.2 inherit; font-family: inherit; cursor: pointer; }
.rv-chip:hover:not(:disabled) { border-color: var(--ink); }
.rv-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--card); }
.rv-chip:disabled { opacity: .45; cursor: not-allowed; }
.rv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rv-item { padding: 20px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.rv-head strong { font-size: 17px; }
.rv-meta { font-size: 14px; color: var(--muted); }
.rv-tag { display: inline-block; margin: 8px 0 0; padding: 3px 10px; border-radius: 999px; background: var(--rv-tag-bg, rgba(0, 0, 0, .06)); font-size: 13px; font-weight: 700; color: var(--ink); }
.rv-text { margin: 10px 0 0; }
.rv-reply { margin-top: 14px; padding: 12px 16px; border-radius: 12px; border-left: 4px solid var(--rv-star); background: var(--rv-tag-bg, rgba(0, 0, 0, .05)); font-size: 15.5px; }
.rv-reply-head { margin: 0 0 4px; font-weight: 800; font-size: 14px; color: var(--muted); }
.rv-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.rv-dialog { width: min(520px, 100vw - 24px); padding: 28px; border: 0; border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.rv-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.rv-dialog h3 { margin: 0 0 10px; font-size: 26px; }
.rv-dialog p { margin: 0 0 12px; }
.rv-dlg-sub { color: var(--muted); }
.rv-sms { margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: var(--rv-tag-bg, #eee); }
.rv-sms p { margin: 0 0 6px; font-weight: 600; }
.rv-sms small { color: var(--muted); font-size: 13px; }
.rv-rules { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 6px; font-size: 15.5px; }
.reviews :focus-visible { outline: 3px solid var(--rv-star); outline-offset: 3px; }
@media (max-width: 900px) { .rv-grid { grid-template-columns: 1fr; } .rv-summary { position: static; } }
