/* ============================================================
   marquize. · styles
   Jaune #DFFF00 · Noir #111111 · Gris clair #F2F2F2 · Inter 400 à 600
   Mobile d'abord (390 px), puis iPad portrait (768), iPad paysage (1024)
   et desktop (1200+, contenu max 1440 px).
   ============================================================ */

:root {
  --lime: #DFFF00;
  --lime-press: #CCEA00;
  --ink: #111111;
  --ink-2: #4D4D4D;
  --ink-3: #767676;
  --grey: #F2F2F2;
  --grey-2: #E4E4E4;
  --line: #E6E6E6;
  --white: #FFFFFF;
  --error: #B42318;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 28px;

  --gutter: 20px;
  --page-max: 1440px;
  --header-h: 60px;
  --bar-h: 76px;
  --tap: 48px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-ctl: 0 2px 10px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .04);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: 26px; }
p { margin: 0; }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 10px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 24px; height: 24px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn-lime:focus-visible, .hero :focus-visible { outline-color: var(--lime); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 0 20px;
  border: 0; border-radius: var(--r-sm);
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, transform .25s var(--ease-out), box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-press); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2a; }
.btn-ghost { background: var(--grey); color: var(--ink); }
.btn-ghost:hover { background: var(--grey-2); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-pill { border-radius: 999px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn .ic { transition: transform .3s var(--ease-out); }
@media (hover: hover) {
  .btn-lime:hover, .btn-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45); }
  .btn:hover .btn-arrow, .btn-sm:hover .ic, .topbar-cta:hover .ic, .link-arrow:hover .ic:last-child { transform: translate(2px, -2px); }
}

.icon-btn {
  display: inline-grid; place-items: center;
  width: var(--tap); height: var(--tap); flex: none;
  background: #fff; border: 1px solid #D6D6D6; border-radius: var(--r-sm);
  cursor: pointer; color: var(--ink);
  transition: background-color .2s ease, transform .2s var(--ease-out), border-color .2s ease;
}
.icon-btn:hover { background: var(--grey); }
.icon-btn:active { transform: scale(.94); }
.icon-btn-plain { border-color: transparent; }

/* ---------- En-tête ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(0, 0, 0, .5); }
.topbar-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--header-h); padding: 0 var(--gutter);
  max-width: var(--page-max); margin: 0 auto;
}
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: clamp(15px, calc(10vw - 17px), 26px); font-weight: 600; letter-spacing: -0.045em; line-height: 1;
  text-decoration: none; color: var(--ink); flex: none;
}
.wordmark .dot { display: inline-block; color: var(--lime); -webkit-text-stroke: 0.4px #B8D400; transition: transform .4s var(--ease-spring); }
.wordmark:hover .dot { transform: translateY(-3px) scale(1.2); }
.menu-btn {
  display: grid; place-content: center; gap: 7px;
  width: var(--tap); height: var(--tap); margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.menu-btn span { display: block; width: 28px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease-out); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.topnav { display: none; }
.topbar-cta { display: none; }

/* Sélecteur de langue */
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 3px; background: var(--grey); border-radius: 999px;
}
.lang-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  background: var(--ink); border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  transition: transform .45s var(--ease-spring);
}
.lang[data-active="en"] .lang-thumb { transform: translateX(100%); }
.lang button {
  position: relative; z-index: 1;
  min-width: 38px; height: 30px; padding: 0 10px;
  background: none; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2);
  transition: color .3s ease;
}
/* Zone tactile de 44 px autour des boutons compacts */
.lang button::after { content: ""; position: absolute; inset: -7px -2px; }
.lang button[aria-pressed="true"] { color: #fff; }
.lang button:focus-visible { outline-offset: 0; }

.menu {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; flex-direction: column;
  padding: 6px var(--gutter) 18px;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px -18px rgba(0, 0, 0, .25);
  transform-origin: top center;
  animation: menuIn .35s var(--ease-out) both;
}
.menu a {
  display: flex; align-items: center; gap: 8px;
  min-height: 52px; font-size: 18px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--line);
  animation: fadeUp .4s var(--ease-out) both;
}
.menu a:nth-child(2) { animation-delay: 30ms; }
.menu a:nth-child(3) { animation-delay: 60ms; }
.menu a:nth-child(4) { animation-delay: 90ms; }
.menu a:nth-child(5) { animation-delay: 120ms; }
.menu a:nth-child(6) { animation-delay: 150ms; }
.menu a:last-child { border-bottom: 0; }

/* ---------- Hero (mobile : photo plein cadre, titre et CTA par-dessus) ---------- */
.hero {
  position: relative; overflow: hidden;
  aspect-ratio: 390 / 490;
  min-height: 340px; max-height: 80vh;
  background: #2a2a2a;
  color: #fff;
}
.hero-media, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 50% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.62) 100%);
}
.hero-panel {
  position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: 18px;
  display: grid; gap: 14px;
}
.hero-video, .hero-sub, .hero-link, .hero-pin { display: none; }
.hero-title { font-size: 38px; letter-spacing: -0.035em; text-shadow: 0 1px 14px rgba(0,0,0,.3); }
.hero-title span { display: block; }
.btn-hero { min-height: 56px; width: 100%; padding: 0 16px; font-size: 17px; gap: 12px; white-space: nowrap; }
.btn-hero > span:not(.btn-sep) { flex: 1; text-align: left; }
.btn-sep { width: 1px; height: 24px; background: rgba(17,17,17,.35); }

/* ---------- Sections ---------- */
.sec { padding: 30px var(--gutter) 0; }
.sec h2 { margin-bottom: 14px; }
.caption { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.note { font-size: 13px; color: var(--ink-3); }
.badge {
  display: inline-flex; align-items: center; flex: none;
  padding: 4px 10px; border-radius: 999px;
  background: var(--lime); color: var(--ink);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.badge-ok { background: var(--ink); color: #fff; }
.badge-out { background: var(--grey-2); color: var(--ink); }

/* ---------- Services : tuiles cliquables vers la soumission ---------- */
.services h2 { margin-bottom: 14px; }
.service-list { display: grid; gap: 10px; margin: 0 0 10px; padding: 0; list-style: none; }
.service {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px;
  min-height: 72px; padding: 12px 14px 12px 12px;
  background: var(--grey); border-radius: var(--r-lg);
  text-decoration: none; color: var(--ink);
  transition: background-color .25s ease, transform .3s var(--ease-spring), box-shadow .3s ease;
}
.service-ic {
  display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--lime); border-radius: 14px; color: var(--ink);
  transition: transform .35s var(--ease-spring), background-color .25s ease, color .25s ease;
}
.service-name { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.service-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.service-go span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.service-go .ic { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.service:hover { background: var(--grey-2); }
.service:hover .service-ic { transform: rotate(-6deg) scale(1.06); }
.service:hover .service-go .ic { transform: translate(2px, -2px); }
.service:active { transform: scale(.98); }

/* ---------- Recherche ---------- */
.search-row { display: flex; gap: 12px; margin-bottom: 12px; }
.search {
  flex: 1; display: flex; align-items: center; gap: 10px;
  height: var(--tap); padding: 0 14px;
  background: var(--grey); border-radius: var(--r-sm);
  color: var(--ink-2);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.search:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.search input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: transparent; outline: none;
  font-size: 16px; color: var(--ink);
}
.search input::placeholder { color: #7A7A7A; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.status-line { font-size: 13px; color: var(--ink-2); }
.status-line:not(:empty) { margin: -4px 0 10px; animation: fadeUp .3s var(--ease-out) both; }

/* ---------- Filtres : contrôle segmenté ---------- */
.seg {
  position: relative; display: flex; gap: 2px;
  padding: 4px; margin-bottom: 14px;
  background: var(--grey); border-radius: 14px;
}
.seg-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0;
  background: var(--ink); border-radius: 10px;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.45);
  opacity: 0; transform: translateX(4px) scale(.9);
  transition: transform .45s var(--ease-spring), width .45s var(--ease-spring), opacity .25s ease;
}
.seg.is-ready .seg-thumb { opacity: 1; transform: none; }
.seg-btn {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 4px;
  background: none; border: 0; border-radius: 10px; cursor: pointer;
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap;
  transition: color .3s ease, background-color .2s ease;
}
.seg-btn:hover { background: rgba(0,0,0,.04); }
.seg-btn[aria-pressed="true"] { color: #fff; background: none; }
.seg.is-filtered .seg-btn:not([aria-pressed="true"]) { color: var(--ink-3); }
.seg.is-filtered .seg-btn:not([aria-pressed="true"]) .mini-pin { opacity: .45; }
.seg-btn-all { flex: 0 0 auto; padding: 0 10px; }
.seg-label { overflow: hidden; text-overflow: ellipsis; }
.seg-count {
  display: none; place-items: center; flex: none;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--lime);
  font-size: 11.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums;
}
.seg-btn[aria-pressed="true"] .seg-count { display: inline-grid; animation: countPop .45s var(--ease-spring) both; }
.seg-btn:active { transform: scale(.96); }
@media (max-width: 379px) {
  .seg-btn { font-size: 13px; gap: 4px; padding: 0 3px; }
  .seg-btn-all { padding: 0 8px; }
}
.mini-pin {
  width: 12px; height: 16px; flex: none;
  stroke: #111; stroke-width: 1.6; overflow: visible;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.18));
  transition: opacity .3s ease, transform .35s var(--ease-spring);
}
.mini-pin-signale { fill: var(--lime); }
.mini-pin-signale circle { fill: var(--ink); stroke: none; }
.mini-pin-en_cours { fill: #8C8C8C; }
.mini-pin-en_cours circle { fill: #fff; stroke: none; }
.mini-pin-repare { fill: var(--ink); }
.mini-pin-repare circle { fill: #fff; stroke: none; }
.seg-btn[aria-pressed="true"] .mini-pin { transform: translateY(-1px) scale(1.12); }
.seg-btn[aria-pressed="true"] .mini-pin-repare { stroke: #fff; }

/* ---------- Carte ---------- */
.map-frame { position: relative; border-radius: var(--r); overflow: hidden; background: #E9E9E9; box-shadow: 0 0 0 1px var(--line); }
.map { height: 320px; z-index: 0; }
.leaflet-container { font-family: inherit; background: #E9E9E9; }
.tiles-muted { filter: grayscale(1) brightness(1.06) contrast(.88); }
.tiles-night { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.35); }
.leaflet-tile { transition: opacity .35s ease !important; }
.leaflet-control-attribution { font-size: 10.5px; background: rgba(255,255,255,.82) !important; border-radius: 6px 0 0 0; backdrop-filter: blur(4px); }
.leaflet-touch .leaflet-bar, .leaflet-bar { border: 0 !important; box-shadow: var(--shadow-ctl) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-bar a { width: 44px !important; height: 44px !important; line-height: 43px !important; font-size: 20px !important; color: var(--ink) !important; font-weight: 400; border-bottom-color: var(--line) !important; transition: background-color .2s ease; }
.leaflet-bar a:hover { background: var(--grey) !important; }

.mz-ctl { position: relative; z-index: 1; }
.mz-layers.is-open { z-index: 10; }
.leaflet-top.leaflet-right:has(.mz-layers.is-open) { z-index: 1001; }
.leaflet-top.leaflet-right .mz-ctl { margin-top: 10px; margin-right: 10px; }
.mz-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  background: #fff; color: var(--ink);
  border: 0; border-radius: 12px; box-shadow: var(--shadow-ctl);
  cursor: pointer;
  transition: transform .25s var(--ease-spring), background-color .2s ease;
}
.mz-btn:hover { background: var(--grey); }
.mz-btn:active { transform: scale(.92); }
.mz-layers.is-open .mz-btn { background: var(--ink); color: #fff; }

.mz-layer-panel {
  position: absolute; top: 52px; right: 0; z-index: 1000;
  display: grid; grid-template-columns: repeat(3, 76px); gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, .98); border-radius: 16px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .05);
  transform-origin: top right;
  animation: popIn .32s var(--ease-out) both;
}
.mz-layer-panel button {
  display: grid; gap: 6px; justify-items: center;
  padding: 0; background: none; border: 0; cursor: pointer;
  font-size: 12px; font-weight: 500; color: var(--ink-2);
  animation: fadeUp .35s var(--ease-out) both;
}
.mz-layer-panel button:nth-child(2) { animation-delay: 30ms; }
.mz-layer-panel button:nth-child(3) { animation-delay: 60ms; }
.mz-layer-panel button:nth-child(4) { animation-delay: 90ms; }
.mz-layer-panel button:nth-child(5) { animation-delay: 120ms; }
.mz-layer-panel button:nth-child(6) { animation-delay: 150ms; }
.mz-thumb {
  position: relative; display: block; width: 76px; height: 56px;
  border-radius: 10px; overflow: hidden; background: var(--grey);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  transition: box-shadow .2s ease, transform .25s var(--ease-spring);
}
.mz-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mz-layer-panel button:hover .mz-thumb { transform: translateY(-2px); }
.mz-layer-panel button[aria-checked="true"] { color: var(--ink); font-weight: 600; }
.mz-layer-panel button[aria-checked="true"] .mz-thumb { box-shadow: 0 0 0 3px var(--lime), 0 0 0 4px var(--ink); }
.mz-layer-panel button:focus-visible { outline: none; }
.mz-layer-panel button:focus-visible .mz-thumb { box-shadow: 0 0 0 3px var(--ink); }

.map-frame.is-fullscreen, .map-frame:fullscreen {
  position: fixed; inset: 0; z-index: 3000;
  border-radius: 0; box-shadow: none;
  animation: fsIn .35s var(--ease-out) both;
}
.map-frame.is-fullscreen .map, .map-frame.is-fullscreen .form-map,
.map-frame:fullscreen .map, .map-frame:fullscreen .form-map { height: 100% !important; border-radius: 0; border: 0; }
.map-frame:fullscreen { width: 100vw; height: 100vh; }
body.map-fullscreen { overflow: hidden; }
body.map-fullscreen .bottombar { transform: translateY(110%); }

.mz-pin { background: none; border: 0; }
.mz-pin svg {
  display: block; transform-origin: 50% 100%;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.28));
  animation: pinDrop .55s var(--ease-spring) both;
  transition: transform .25s var(--ease-spring);
}
.mz-pin:hover svg { transform: translateY(-3px) scale(1.12); }
[data-basemap="nuit"] .mz-pin path, [data-basemap="satellite"] .mz-pin path, [data-basemap="hybride"] .mz-pin path { stroke: #fff; stroke-width: 1.6; }
.mz-user span {
  display: block; width: 18px; height: 18px; border-radius: 50%;
  background: #1a73e8; border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.2);
  position: relative;
}
.mz-user span::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: rgba(26,115,232,.35);
  animation: pulse 1.8s ease-out infinite;
}

.leaflet-popup-content-wrapper { border-radius: var(--r); padding: 0; box-shadow: 0 14px 34px -8px rgba(0,0,0,.3); animation: popIn .3s var(--ease-out) both; transform-origin: 50% 100%; }
.leaflet-popup-tip { box-shadow: none; }
.leaflet-popup-content { margin: 10px; }
.pop { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 14px; }
.pop-img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--grey); }
.pop-title { font-weight: 600; line-height: 1.2; }
.pop-place { margin-top: 2px; color: var(--ink-2); font-size: 13px; line-height: 1.3; }
.pop-status { margin-top: 4px; font-size: 13px; color: var(--ink-2); }

/* Fiche de la zone de service (mobile : photo à gauche, bouton pleine largeur) */
.map-grid { display: grid; gap: 12px; }
.zone-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; align-items: start;
  padding: 12px; background: var(--grey); border-radius: var(--r);
}
.zone-body { display: contents; }
.zone-photo { grid-column: 1; grid-row: 1 / span 3; width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-sm); }
.zone-top, .zone-addr, .zone-text { grid-column: 2; }
.zone-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.zone-top h3 { font-size: 17px; }
.zone-addr { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.zone-text { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.zone-card .btn { grid-column: 1 / -1; min-height: 48px; margin-top: 4px; font-size: 16px; white-space: nowrap; }
.zone-card.is-flash { animation: bump .5s var(--ease-spring); }

/* ---------- Avant / après ---------- */
.compare {
  position: relative; overflow: hidden;
  aspect-ratio: 2 / 1;
  border-radius: var(--r);
  background: #555;
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
/* Les deux images occupent exactement le même cadre : seule la découpe de « Avant » change. */
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; pointer-events: none; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none;
  box-shadow: 0 0 10px rgba(0,0,0,.25);
}
.compare-knob {
  position: absolute; top: 50%; left: 50%;
  display: grid; place-items: center;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
  background: #fff; color: var(--ink); border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  transition: transform .25s var(--ease-spring), background-color .2s ease;
}
.compare:hover .compare-knob, .compare.is-dragging .compare-knob { transform: translate(-50%, -50%) scale(1.12); }
.compare.is-dragging .compare-knob { background: var(--lime); }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
  -webkit-appearance: none; appearance: none;
}
.compare:focus-within .compare-knob { outline: 3px solid var(--lime); outline-offset: 2px; }
.tag {
  position: absolute; top: 12px; z-index: 1;
  padding: 5px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; pointer-events: none;
}
.tag-dark { left: 12px; background: rgba(17,17,17,.82); color: #fff; }
.tag-lime { right: 12px; background: var(--lime); color: var(--ink); }

/* ---------- Sur le terrain (mobile : comparateur, puis photos) ---------- */
.terrain { display: flex; flex-direction: column; padding: 30px var(--gutter) 0; }
.field-grid { display: contents; }
.field-compare { order: 1; }
.field-head { order: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.photos { order: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-sub { margin-bottom: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 16px; font-weight: 500; text-underline-offset: 4px; white-space: nowrap; }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.link-arrow .ig-ic { display: none; }
.photo { position: relative; display: block; overflow: hidden; border-radius: 6px; background: var(--grey); }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 3.2; object-fit: cover; object-position: 50% 62%; transition: transform .8s var(--ease-out); }
.photo:first-child img { object-position: 50% 88%; }
.photo:last-child img { object-position: 50% 60%; }
@media (hover: hover) { .photo:hover img { transform: scale(1.06); } }

/* ---------- Carte de suivi ---------- */
.cards { display: grid; gap: 16px; }

.follow { padding: 16px; background: var(--grey); border-radius: var(--r); }
.follow-head { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.follow-icon { display: grid; place-items: center; width: 52px; height: 52px; background: #fff; border-radius: 12px; }
.follow-icon .ic { transform-origin: 50% 10%; }
.follow:has(.switch[aria-checked="true"]) .follow-icon .ic { animation: ring .9s var(--ease-out); }
.follow h2 { font-size: 21px; margin: 4px 0 8px; }
.follow-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; }

.switch {
  position: relative; flex: none;
  width: 56px; height: 32px; padding: 0;
  border: 0; border-radius: 999px; background: #CFCFCF; cursor: pointer;
  transition: background-color .3s ease;
}
.switch::after { content: ""; position: absolute; inset: -6px -2px; }
.switch span { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .4s var(--ease-spring); }
.switch:active span { width: 30px; }
.switch[aria-checked="true"] { background: var(--lime); }
.switch[aria-checked="true"] span { transform: translateX(24px); }
.switch[aria-checked="true"]:active span { transform: translateX(20px); }

.stepper {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 18px 0 4px; padding: 0; list-style: none;
  font-size: 14px; color: var(--ink-3); text-align: center;
}
.stepper li { position: relative; padding-top: 26px; }
.stepper li::before {
  content: ""; position: absolute; top: 2px; left: 50%; z-index: 1;
  width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: #BDBDBD; border: 3px solid var(--grey);
}
.stepper li::after {
  content: ""; position: absolute; top: 9px; left: 50%; width: 100%; height: 2px; background: #CFCFCF;
  transform-origin: left center;
}
.stepper li:last-child::after { display: none; }
.stepper li.is-done::before { background: var(--ink); }
.stepper li.is-done::after { background: var(--ink); }
.stepper li.is-current { color: var(--ink); font-weight: 600; }
.stepper li.is-current::before {
  width: 22px; height: 22px; margin-left: -11px; top: -1px;
  background: var(--ink); border: 6px solid var(--lime);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.js .stepper li { opacity: 0; transform: translateY(6px); }
.js .stepper li::after { transform: scaleX(0); }
.stepper.is-animated li { animation: fadeUp .5s var(--ease-out) both; animation-delay: calc(var(--i) * 140ms); }
.stepper.is-animated li::after { animation: grow .5s var(--ease-out) both; animation-delay: calc(var(--i) * 140ms + 120ms); }
.stepper.is-animated li.is-current::before { animation: pulseLime 2.2s ease-out 1s infinite; }

/* Formulaire privé, ouvert par l'interrupteur */
.track-form { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--grey-2); animation: fadeUp .35s var(--ease-out) both; }
.follow .track-form .field input:not([type="checkbox"]):not([type="radio"]) { background: #fff; border-color: #D6D6D6; }
.follow .track-form .field input:focus { border-color: var(--ink); }
.track-submit { justify-self: start; min-height: 48px; padding: 0 22px; font-size: 15.5px; }
.track-msg { font-size: 14px; font-weight: 500; }
.track-msg:empty { display: none; }
.track-msg:not(:empty) { margin-top: 12px; padding: 10px 12px; background: #fff; border-radius: var(--r-sm); animation: fadeUp .3s var(--ease-out) both; }
.track-result { display: grid; gap: 10px; margin-top: 12px; padding: 14px; background: #fff; border-radius: var(--r-sm); font-size: 15px; }

/* Un coup de main (mobile : bloc noir avec l'illustration du matériel) */
.help {
  position: relative; overflow: hidden;
  display: grid; gap: 14px 12px;
  grid-template-columns: 1fr 124px;
  grid-template-areas: "title art" "actions actions";
  padding: 16px; background: var(--ink); color: #fff; border-radius: var(--r);
}
.help-title { grid-area: title; display: flex; align-items: center; gap: 12px; align-self: center; min-width: 0; }
.help-art {
  grid-area: art; align-self: center; justify-self: end;
  width: 124px; height: auto;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.45));
  transition: transform .5s var(--ease-spring);
}
.js .help .help-art { opacity: 0; transform: translateX(16px) rotate(3deg); }
.js .help.is-visible .help-art { animation: artIn .9s var(--ease-out) .25s both; }
@media (hover: hover) { .help:hover .help-art { transform: translateY(-4px) rotate(-2deg); } }
.help-icon { width: 36px; height: 36px; flex: none; color: var(--lime); stroke-width: 1.6; overflow: visible; }
.help-hand { transform-origin: 60% 90%; transform-box: fill-box; }
.help.is-visible .help-hand { animation: wave 1.4s ease-in-out .5s 2; }
.help h2 { font-size: 23px; }
.help-actions { grid-area: actions; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 6px 8px;
  background: transparent; color: #fff;
  border: 1.5px solid #fff; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; line-height: 1.2; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease-spring);
}
.btn-outline .ic { display: none; width: 18px; height: 18px; }
.btn-outline:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn-outline:active { transform: scale(.96); }
.btn-outline:focus-visible { outline-color: var(--lime); }

/* ---------- Pied de page ---------- */
.footer { padding: 28px var(--gutter) 24px; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  max-width: var(--page-max); margin: 0 auto; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer .wordmark { font-size: 24px; }
.footer-note { order: 3; flex-basis: 100%; font-size: 12px; color: var(--ink-3); }
.icon-link { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); margin-right: -12px; color: var(--ink); transition: transform .3s var(--ease-spring); }
.icon-link:hover { transform: rotate(-8deg) scale(1.1); }

/* ---------- Barre inférieure (téléphone) ---------- */
.has-bottombar { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  transition: transform .35s var(--ease-out);
}
.js .bottombar { transform: translateY(110%); }
.js body.is-loaded .bottombar { transform: none; transition-delay: .5s; }
.bottombar .btn { min-height: 54px; font-size: 18px; }
.js body.is-typing .bottombar, .js body.menu-open .bottombar { transform: translateY(110%); transition-delay: 0s; }

/* ---------- Dialogues (feuilles) ---------- */
.sheet {
  width: 100%; max-width: 520px; max-height: 92vh;
  margin: auto auto 0; padding: 0;
  border: 0; border-radius: var(--r-lg) var(--r-lg) 0 0;
  color: var(--ink);
}
.sheet[open] { animation: sheetUp .4s var(--ease-out) both; }
.sheet[open]::backdrop { background: rgba(17,17,17,.5); animation: fadeIn .3s ease both; }
.sheet.is-closing { animation: sheetDown .22s ease-in both; }
.sheet.is-closing::backdrop { animation: fadeOut .22s ease-in both; }
.sheet-form { display: grid; gap: 14px; padding: 18px var(--gutter) calc(20px + env(safe-area-inset-bottom)); }
.sheet-form.is-shake { animation: shake .4s ease; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { font-size: 22px; }
.sheet-head .icon-btn { margin-right: -10px; }
.sheet-fields { display: grid; gap: 12px; }
.sheet-done { display: grid; gap: 12px; padding: 14px; background: var(--grey); border-radius: var(--r-sm); font-size: 15px; animation: popIn .35s var(--ease-out) both; }
.demo-note { font-size: 13px; color: var(--ink-3); }

/* ---------- Champs ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
fieldset.field { margin: 0; padding: 0; border: 0; }
.label { font-size: 15px; font-weight: 500; padding: 0; }
.opt { font-weight: 400; color: var(--ink-3); }
.hint { font-size: 13px; color: var(--ink-3); }
.error { font-size: 13px; font-weight: 500; color: var(--error); animation: fadeUp .25s var(--ease-out) both; }
.error:empty { display: none; }
.field input:not([type="checkbox"]):not([type="file"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: var(--tap); padding: 10px 14px;
  background: var(--grey); border: 1.5px solid transparent; border-radius: var(--r-sm);
  font-size: 16px; color: var(--ink);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(223,255,0,.45); }
.field [aria-invalid="true"] { border-color: var(--error) !important; background: #fff; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.field-row { display: grid; gap: 16px; }

/* ============================================================
   Page Soumission
   ============================================================ */
.page { max-width: 640px; margin: 0 auto; padding: 22px var(--gutter) 8px; }
.page-head h1 { font-size: 32px; letter-spacing: -0.03em; }
.page-head p { margin-top: 8px; color: var(--ink-2); font-size: 17px; }
.notice { margin-top: 14px; padding: 12px 14px; background: var(--grey); border-radius: var(--r-sm); font-size: 14px; color: var(--ink-2); }
.notice strong { color: var(--ink); font-weight: 600; }
.form-foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-sub { font-size: 14px; color: var(--ink-3); }
.form-foot .notice { margin-top: 10px; }
.price-note { font-size: 14px; font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 22px 0 18px; padding: 0; list-style: none; }
.steps li { position: relative; padding-top: 10px; font-size: 13px; color: var(--ink-3); transition: color .3s ease; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--grey-2); }
.steps li::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px;
  background: var(--ink); transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease-out);
}
.steps li.is-active, .steps li.is-done { color: var(--ink); }
.steps li.is-active { font-weight: 600; }
.steps li.is-active::after, .steps li.is-done::after { transform: scaleX(1); }

.panel { display: none; gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.panel.is-active { display: grid; animation: panelIn .45s var(--ease-out) both; }
.panel h2 { font-size: 22px; }
.panel h2:focus { outline: none; }
.field .search input:not([type="checkbox"]):not([type="file"]) { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.form-map { height: 240px; z-index: 0; }
.locate-btn { justify-self: start; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-card {
  position: relative; display: grid; gap: 8px; align-content: start;
  min-height: 84px; padding: 12px;
  background: var(--grey); border: 1.5px solid transparent; border-radius: var(--r);
  font-size: 14.5px; font-weight: 500; line-height: 1.25; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .25s var(--ease-spring);
}
.choice-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-card:hover { background: var(--grey-2); }
.choice-card:has(input:checked) { background: var(--lime); border-color: var(--ink); }
.choice-card:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.choice-card:active { transform: scale(.97); }

.photo-drop {
  position: relative; display: grid; place-items: center; gap: 6px;
  min-height: 140px; padding: 18px;
  background: var(--grey); border: 1.5px dashed #BDBDBD; border-radius: var(--r);
  text-align: center; cursor: pointer; color: var(--ink-2);
  transition: border-color .2s ease, background-color .2s ease;
}
.photo-drop:hover { border-color: var(--ink); background: #fff; }
.photo-drop:hover .ic { animation: bump .45s var(--ease-spring); }
.photo-drop:focus-within { border-color: var(--ink); }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.photo-drop strong { color: var(--ink); font-weight: 600; }
.photo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.photo-list li { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--grey); animation: popIn .35s var(--ease-out) both; }
.photo-list img { width: 100%; height: 100%; object-fit: cover; }
.photo-x {
  position: absolute; top: 4px; right: 4px;
  display: grid; place-items: center; width: 32px; height: 32px;
  background: rgba(17,17,17,.78); color: #fff; border: 0; border-radius: 50%; cursor: pointer;
}
.photo-x::after { content: ""; position: absolute; inset: -6px; }
.photo-x .ic { width: 16px; height: 16px; }

.actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 4px; }
.actions .btn:only-child { grid-column: 1 / -1; }

.summary { display: grid; gap: 0; margin: 0; padding: 4px 14px; background: var(--grey); border-radius: var(--r-sm); font-size: 14px; }
.summary div { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--grey-2); }
.summary div:last-child { border-bottom: 0; }
.summary dt { color: var(--ink-3); }
.summary dd { margin: 0; overflow-wrap: anywhere; }

.result { display: grid; gap: 14px; padding: 20px; border-radius: var(--r); background: var(--grey); }
.result:not([hidden]) { animation: popIn .45s var(--ease-out) both; }
.result-badge { justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--lime); font-size: 13px; font-weight: 600; }
.result h2 { font-size: 24px; }
.result-actions { display: grid; gap: 10px; }

/* ============================================================
   Animations
   ============================================================ */
.js .hero-img { transform: scale(1.08); opacity: 0; transition: transform 1.8s var(--ease-out), opacity .9s ease; }
.js body.is-loaded .hero-img { transform: scale(1); opacity: 1; }
.js .hero-video, .js .hero-title, .js .hero-card { opacity: 0; transform: translateY(18px); }
.js body.is-loaded .hero-video { animation: fadeUp .8s var(--ease-out) .15s both; }
.js body.is-loaded .hero-title { animation: fadeUp .8s var(--ease-out) .25s both; }
.js body.is-loaded .hero-card { animation: fadeUp .8s var(--ease-out) .42s both; }
.js .hero-pin { opacity: 0; }
.js body.is-loaded .hero-pin { animation: pinPop .7s var(--ease-spring) .7s both; }

.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scaleY(.96); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(6px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes sheetDown { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(40px); } }
@keyframes fsIn { from { opacity: .4; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pinDrop {
  0% { opacity: 0; transform: translateY(-26px) scale(.7); }
  60% { opacity: 1; transform: translateY(2px) scale(1.04, .94); }
  100% { opacity: 1; transform: none; }
}
@keyframes pinPop { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes pulseLime { 0% { box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 0 0 rgba(223,255,0,.9); } 70% { box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 0 10px rgba(223,255,0,0); } 100% { box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 0 0 rgba(223,255,0,0); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes countPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes artIn { from { opacity: 0; transform: translateX(16px) rotate(3deg); } to { opacity: 1; transform: none; } }

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .choice-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   iPad portrait et plus (≥ 768 px) : composition de la maquette
   ============================================================ */
@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 64px; }
  h2 { font-size: 32px; }

  .has-bottombar { padding-bottom: 0; }
  .bottombar { display: none; }

  /* Barre de navigation claire et arrondie, posée sur le hero */
  .topbar { background: rgba(255,255,255,.9); border: 0; padding: 12px var(--gutter); backdrop-filter: saturate(160%) blur(10px); }
  .topbar.is-scrolled { box-shadow: none; }
  .topbar-inner {
    max-width: calc(var(--page-max) - 2 * var(--gutter));
    height: var(--header-h); padding: 0 8px 0 24px;
    background: rgba(255,255,255,.95); border-radius: 999px;
    box-shadow: 0 10px 30px -18px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.04);
    backdrop-filter: saturate(160%) blur(10px);
  }
  .wordmark { font-size: 28px; }
  .topbar-cta { display: inline-flex; min-height: 48px; padding: 0 20px; font-size: 15.5px; gap: 8px; white-space: nowrap; }
  .menu-btn { margin-right: 0; }
  .menu {
    left: var(--gutter); right: var(--gutter); top: calc(100% - 4px);
    max-width: 520px; margin-left: auto; padding: 8px 20px 14px;
    border: 0; border-radius: 22px;
    box-shadow: 0 24px 50px -20px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.05);
  }

  main { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
  .page-home main { padding-top: 16px; }
  .page { max-width: 720px; padding-top: 56px; }

  /* Hero : panneau jaune à gauche, grande photo à droite */
  .hero {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    aspect-ratio: auto; max-height: none; min-height: 600px; overflow: visible;
    background: none; color: var(--ink);
  }
  .hero::after { display: none; }
  .hero-media { position: relative; inset: auto; order: 2; height: 100%; border-radius: var(--r-xl); overflow: hidden; background: var(--grey); }
  .hero-img { object-position: 50% 25%; }
  .hero-panel {
    position: relative; inset: auto; order: 1;
    display: flex; flex-direction: column; gap: 22px;
    padding: 24px;
    background: var(--lime); border-radius: var(--r-xl);
  }
  .hero-panel :focus-visible { outline-color: var(--ink); }
  .hero-video {
    position: relative; display: block; width: 100%; max-width: 380px;
    border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9;
    box-shadow: 0 12px 30px -16px rgba(0,0,0,.5);
  }
  .hero-video img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
  .hero-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
    background: rgba(17,17,17,.55); border: 2px solid #fff; color: #fff;
    backdrop-filter: blur(4px);
    transition: transform .35s var(--ease-spring), background-color .2s ease;
  }
  .hero-play .ic { width: 24px; height: 24px; fill: currentColor; stroke: none; margin-left: 3px; }
  .hero-video:hover img { transform: scale(1.05); }
  .hero-video:hover .hero-play { transform: translate(-50%, -50%) scale(1.1); background: var(--ink); }
  .hero-title { font-size: clamp(32px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -0.04em; text-shadow: none; margin-top: auto; }
  .hero-card { display: grid; gap: 16px; padding: 20px; background: #fff; border-radius: 22px; }
  .hero-sub { display: block; font-size: 17px; }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
  .btn-hero { width: auto; min-height: 50px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 16px; gap: 10px; }
  .btn-hero:hover { background: #2a2a2a; }
  .btn-hero > span:not(.btn-sep) { flex: none; }
  .hero-cam, .btn-hero .btn-sep { display: none; }
  .hero-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15.5px; font-weight: 500; text-underline-offset: 4px; }
  .hero-pin {
    display: grid; place-items: center;
    position: absolute; z-index: 2; left: 50%; top: 46%; transform: translate(-50%, -50%);
    width: 86px; height: 86px; border-radius: 50%;
    background: var(--lime); color: var(--ink); box-shadow: 0 0 0 8px #fff, 0 16px 34px -12px rgba(0,0,0,.45);
  }
  .hero-pin .ic { width: 38px; height: 38px; stroke-width: 2; fill: var(--ink); stroke: var(--lime); }

  /* Sections */
  .sec { padding: 56px 0 0; }
  .sec h2 { margin-bottom: 0; }


  .follow h2, .help h2 { font-size: 24px; }
  .services { display: grid; gap: 16px; }
  .service-list { grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
  .service { grid-template-columns: 1fr auto; grid-template-areas: "ic go" "name name"; align-items: start; gap: 22px 12px; min-height: 0; padding: 18px; border-radius: 22px; }
  .service-ic { grid-area: ic; width: 56px; height: 56px; border-radius: 16px; }
  .service-go { grid-area: go; }
  .service-name { grid-area: name; font-size: 19px; }

  /* Filtres posés sur la carte, comme sur la maquette */
  .map-main { position: relative; }
  .seg { position: absolute; top: 14px; left: 14px; z-index: 500; margin: 0; background: rgba(255,255,255,.96); box-shadow: var(--shadow-ctl); }
  .seg-btn { flex: none; padding: 0 12px; }
  .seg-btn-all { padding: 0 14px; }

  /* Carte : titre et recherche au-dessus, carte et fiche */
  .map-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
  .map-head h2 { font-size: clamp(30px, 3.4vw, 50px); }
  .map-head .search-row { flex: 0 1 380px; margin: 0; }
  .map-head .search { background: #fff; border: 1.5px solid #D6D6D6; border-radius: 999px; }
  .map-head .icon-btn { border-radius: 50%; border-width: 1.5px; }
  .map-frame { border-radius: 22px; }
  .map { height: 420px; }
  .mz-layer-panel { grid-template-columns: repeat(3, 84px); }
  .mz-thumb { width: 84px; height: 62px; }

  .zone-card { grid-template-columns: minmax(200px, 38%) 1fr; gap: 18px; padding: 14px; background: #fff; border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 16px 40px -28px rgba(0,0,0,.35); }
  .zone-photo { grid-row: auto; width: 100%; height: 100%; min-height: 170px; border-radius: 14px; }
  .zone-body { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 4px 4px 4px 0; }
  .zone-top, .zone-addr, .zone-text { grid-column: auto; }
  .zone-top h3 { font-size: 20px; }
  .zone-text { font-size: 15px; }
  .zone-card .btn { grid-column: auto; align-self: end; margin-top: 0; padding: 0 16px; border-radius: 999px; font-size: 15px; }

  /* Sur le terrain : bloc noir, comparateur à gauche, photos empilées à droite */
  .terrain {
    display: block; margin-top: 64px; padding: 32px;
    background: var(--ink); color: #fff; border-radius: var(--r-xl);
  }
  .field-head { margin: 0 0 22px; align-items: center; }
  .field-head h2 { font-size: clamp(32px, 3.6vw, 52px); }
  .link-arrow { gap: 8px; font-size: 17px; text-decoration: none; }
  .link-arrow .ig-ic { display: inline; width: 22px; height: 22px; }
  .link-arrow:hover { text-decoration: underline; }
  .field-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: stretch; }
  .field-sub { display: none; }
  .compare { aspect-ratio: 16 / 9; border-radius: 18px; }
  .tag { top: auto; bottom: 14px; padding: 6px 14px; border-radius: 999px; font-size: 14px; background: rgba(17,17,17,.6); color: #fff; backdrop-filter: blur(6px); }
  .tag-lime { background: rgba(17,17,17,.6); color: #fff; }
  .terrain .caption { color: #B5B5B5; margin-top: 10px; }
  .photos { display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: 16px; padding-bottom: 28px; }
  .photo { border-radius: 18px; min-height: 0; }
  .photo img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .photo:first-child img { object-position: 50% 68%; }
  .photo:last-child img { object-position: 50% 62%; }

  /* Suivi sur gris clair */
  .cards { grid-template-columns: 1fr; gap: 16px; align-items: stretch; padding-top: 24px; }
  .follow, .help { padding: 24px; border-radius: 24px; }
  .help { background: var(--grey); color: var(--ink); grid-template-columns: 1fr 132px; grid-template-areas: "title art" "actions actions"; align-content: start; }
  .help-icon { color: var(--ink); width: 34px; height: 34px; }
  .help-art { width: 132px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.18)); }
  .help-actions { grid-template-columns: 1fr; gap: 10px; align-self: end; }
  .btn-outline { justify-content: flex-start; padding: 8px 18px; border-radius: 999px; color: var(--ink); border-color: var(--ink); background: #fff; font-size: 15px; }
  .btn-outline .ic { display: inline-block; }
  .btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
  .btn-outline:focus-visible { outline-color: var(--ink); }

  /* Pied de page horizontal */
  .footer { max-width: var(--page-max); margin: 0 auto; padding: 48px var(--gutter) 32px; }
  .footer-inner { flex-wrap: nowrap; padding-top: 24px; }
  .footer-note { order: 0; flex-basis: auto; flex: 1; text-align: center; font-size: 14px; color: var(--ink-2); }

  .sheet { margin: auto; border-radius: var(--r-lg); }
  .form-map { height: 300px; }
}

/* iPad portrait : la fiche passe sous la carte en pleine largeur */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero { min-height: 640px; }
  .hero-panel { gap: 18px; }
  .hero-card { padding: 18px; }
  .hero-sub { font-size: 16px; }
  .btn-hero { padding: 0 18px; font-size: 15px; }
  .help-actions { grid-column: 1 / -1; }
}

/* ============================================================
   iPad paysage et desktop (≥ 1024 px)
   ============================================================ */
@media (min-width: 1024px) {
  :root { --gutter: clamp(24px, 2.6vw, 40px); --header-h: 68px; }
  h2 { font-size: clamp(30px, 3vw, 44px); }

  .hero { min-height: clamp(560px, calc(100vh - 120px), 720px); gap: 14px; }
  .hero-panel { padding: clamp(28px, 3vw, 44px); gap: 26px; }
  .hero-video { max-width: 440px; }
  .hero-card { padding: 22px 26px; }
  .hero-sub { font-size: clamp(17px, 1.4vw, 20px); }
  .btn-hero { min-height: 54px; font-size: 16.5px; padding: 0 26px; }
  .hero-pin { width: 96px; height: 96px; }
  .hero-pin .ic { width: 42px; height: 42px; }

  .sec { padding-top: 72px; }
  .services { grid-template-columns: minmax(240px, 1fr) 2.6fr; align-items: center; column-gap: 32px; }
  .services .note { grid-column: 2; }

  .map-grid { grid-template-columns: minmax(0, 1fr) clamp(280px, 26vw, 360px); gap: 16px; align-items: stretch; }
  .map { height: clamp(420px, 36vw, 520px); }
  .zone-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 14px; }
  .zone-photo { height: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .zone-body { padding: 0 4px 4px; grid-template-rows: auto auto 1fr auto; height: 100%; }
  .zone-card .btn { align-self: end; }

  .terrain { margin-top: 80px; padding: clamp(28px, 2.8vw, 40px); }
  .field-grid { gap: 18px; }
  .photos { gap: 18px; }

  .cards { gap: 18px; padding-top: 32px; }
  .follow, .help { padding: clamp(24px, 2.4vw, 34px); }
  .help { grid-template-columns: 1fr 170px; }
  .help-art { width: 170px; }
  .help-actions { grid-template-columns: 1fr 1fr; grid-column: 1 / -1; }
  .btn-outline { justify-content: center; }

  .mz-layer-panel { grid-template-columns: repeat(3, 88px); }
  .mz-thumb { width: 88px; height: 64px; }
  .form-map { height: 320px; }
}

/* Navigation complète dès que les liens tiennent sans se chevaucher */
@media (min-width: 1200px) {
  .menu-btn, .menu { display: none !important; }
  .topnav { display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); margin: 0 auto; font-size: 15.5px; font-weight: 500; }
  .topnav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); white-space: nowrap; }
  .topnav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px;
    background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--ease-out);
  }
  .topnav a:hover::after { transform: scaleX(1); }
  .topbar-actions { gap: 12px; }
}

/* Mouvement réduit : tout est affiché immédiatement, sans animation. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .hero-img, .js .hero-title, .js .hero-video, .js .hero-card, .js .stepper li, .js .help .help-art { opacity: 1 !important; transform: none !important; }
  .js .hero-pin { opacity: 1 !important; }
  .js .stepper li::after { transform: none !important; }
  .js .bottombar { transform: none; }
}

/* ============================================================
   Pages de contenu (services, zones, villes, FAQ, contact)
   Réutilisent les tuiles, couleurs et arrondis de l'accueil.
   ============================================================ */
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0 18px;
  max-width: var(--page-max); margin: 4px auto 0;
  font-size: 14px;
}
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; text-underline-offset: 4px; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.footer-areas { margin-top: 0; font-size: 13px; }
.footer-areas a { color: var(--ink-3); }
.menu a:nth-child(7) { animation-delay: 180ms; }
.menu a:nth-child(8) { animation-delay: 210ms; }

.page-seo { max-width: 1040px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 6px; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #BDBDBD; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

.seo-hero {
  display: grid; gap: 14px; justify-items: start;
  padding: 24px 20px; background: var(--lime); border-radius: var(--r-xl);
}
.seo-hero h1 { font-size: clamp(32px, 7vw, 60px); line-height: 1.02; letter-spacing: -0.04em; }
.seo-hero p { font-size: 17px; max-width: 56ch; }
.seo-hero .btn { min-height: 50px; padding: 0 22px; font-size: 16px; }
.seo-hero :focus-visible { outline-color: var(--ink); }

.seo-sec { margin-top: 36px; }
.seo-sec h2 { margin-bottom: 14px; }
.seo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.seo-head h2 { margin-bottom: 0; }
.seo-text p { max-width: 68ch; color: var(--ink-2); font-size: 17px; }
.seo-text p + p { margin-top: 12px; }
.seo-text a:not(.link-arrow) { color: var(--ink); text-underline-offset: 3px; }
.seo-text .link-arrow { margin-top: 10px; }
.service-name small { display: block; margin-top: 3px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }

.seo-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.seo-steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 14px; background: var(--grey); border-radius: var(--r-lg);
}
.seo-steps li::before {
  content: counter(step); grid-row: 1 / 3;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--lime); font-weight: 600;
}
.seo-steps strong { font-weight: 600; font-size: 16.5px; }
.seo-steps span { color: var(--ink-2); font-size: 15px; }

.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.check-list .ic { width: 28px; height: 28px; padding: 5px; flex: none; border-radius: 50%; background: var(--lime); stroke-width: 2.4; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--grey); border-radius: var(--r-lg); transition: background-color .25s ease; }
.faq details[open] { background: var(--grey-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 18px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; font-size: 22px; font-weight: 400; line-height: 1; transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 18px; max-width: 70ch; color: var(--ink-2); font-size: 16px; }

.contact-list .service-ic .ic { stroke-width: 1.75; }
.contact-info { display: grid; gap: 10px; margin: 16px 0 0; }
.contact-info > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 56px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.contact-info dt { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.contact-info dd { margin: 0; font-weight: 600; }
.contact-info a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: 3px; }

.cta-band {
  display: grid; gap: 16px; justify-items: start; margin-top: 44px;
  padding: 26px 22px; background: var(--ink); color: #fff; border-radius: var(--r-xl);
}
.cta-band p { margin-top: 6px; color: #C9C9C9; }
.cta-band .btn { min-height: 50px; padding: 0 22px; font-size: 16px; }
.cta-band :focus-visible { outline-color: var(--lime); }
.seo-404-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

@media (min-width: 768px) {
  .footer-links { padding: 0 2px; }
  .page-seo { padding-top: 32px; }
  .seo-hero { padding: 40px; gap: 18px; }
  .seo-hero p { font-size: 19px; }
  .seo-sec { margin-top: 56px; }
  .seo-steps { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .seo-steps li { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; row-gap: 8px; align-items: start; padding: 18px; border-radius: 22px; }
  .seo-steps li::before { grid-row: auto; margin-bottom: 6px; }
  .city-list, .contact-list { grid-template-columns: repeat(2, 1fr); }
  .contact-info { grid-template-columns: repeat(3, 1fr); }
  .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 34px 40px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .seo-steps { grid-template-columns: repeat(2, 1fr); }
  .seo-steps li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .city-list, .contact-list { grid-template-columns: repeat(4, 1fr); }
  .seo-hero { padding: 56px; }
}
