/* ============================================================
   Hedra Access — direction "Lierre"
   Hedra -> Hedera -> le lierre : la plante qui grimpe les
   façades sans échafaudage. Vert profond + orange corde.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var.woff2") format("woff2-variations"),
       url("assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs — OKLCH, stratégie "Committed" : le vert profond porte réellement la
     surface (hero, déroulé, pied de page), il n'est pas cantonné aux titres. */
  --bg: oklch(1 0 0);
  --surface: oklch(0.96 0.008 160);
  --primary: oklch(0.34 0.075 160);
  --primary-dark: oklch(0.24 0.06 160);
  --accent: oklch(0.56 0.165 42);
  --accent-dark: oklch(0.46 0.16 42);
  --ink: oklch(0.19 0.012 160);
  --muted: oklch(0.44 0.01 160);
  --line: oklch(0.88 0.008 160);
  --white: oklch(1 0 0);

  /* Fonds sombres "drenchés" et leurs encres. --accent-light est la seule variante
     d'orange lisible sur ces fonds : l'--accent nominal y passe sous les 4,5:1. */
  --deep: oklch(0.26 0.055 160);
  --deep-ink: oklch(0.96 0.012 160);
  --deep-muted: oklch(0.79 0.022 160);
  --accent-light: oklch(0.76 0.135 55);

  --danger: oklch(0.52 0.19 25);

  /* Typo */
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-0: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.75rem + 4vw, 5.5rem);

  /* Rythme */
  --space-s: clamp(0.75rem, 0.6rem + 0.6vw, 1.25rem);
  --space-m: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  --space-l: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  --space-xl: clamp(4rem, 3rem + 4.5vw, 7rem);

  --radius: 0.5rem;
  --max-width: 72rem;

  /* z-index */
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-header: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-toast: 60;
  --z-tooltip: 70;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p { max-width: 65ch; }

/* ---------- Utilitaires ---------- */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-s);
}

.text-balance { text-wrap: balance; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: var(--z-toast);
  background: var(--primary);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--step-0);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.btn--lg { padding: 0.9rem 1.7rem; }

.btn--accent {
  background: var(--accent);
  color: var(--white);
}
.btn--accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.btn--accent:active { transform: scale(0.97); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--white);
}
.btn--ghost:hover { background: rgb(255 255 255 / 0.12); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
}
.site-header__brand img {
  height: 52px;
  width: auto;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease-out), opacity 0.2s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed;
  inset: 4.2rem 0 auto 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: var(--space-s);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
}
.site-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-weight: 600;
}

/* Le survol tire un trait, comme une corde qu'on tend : le même geste que la section
   « déroulé ». Un site cohérent réutilise son vocabulaire au lieu d'en inventer un autre. */
.site-nav ul a {
  position: relative;
  white-space: nowrap; /* un intitulé de menu ne se coupe pas en deux lignes */
  transition: color 0.2s var(--ease-out);
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  scale: 0 1;
  transform-origin: left center;
  transition: scale 0.22s var(--ease-out);
}
.site-nav ul a:hover { color: var(--primary); }
.site-nav ul a:hover::after,
.site-nav ul a:focus-visible::after { scale: 1 1; }

@media (prefers-reduced-motion: reduce) {
  .site-nav ul a::after { transition: none; }
}
.site-nav__cta { margin-top: var(--space-s); width: 100%; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .site-nav { transition: none; }
}

@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    inset: auto;
    border: none;
    padding: 0;
    background: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: flex;
    align-items: center;
    gap: var(--space-m);
  }
  .site-nav ul { flex-direction: row; gap: var(--space-m); }
  .site-nav__cta { margin-top: 0; width: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Le cordiste est dans le tiers gauche de la photo. Sur un écran étroit, le cadrage
     « cover » rogne fortement les côtés : sans ce décalage, il sort du champ et il ne
     reste que la ville. */
  object-position: 32% center;
}
@media (min-width: 50rem) {
  .hero__media img { object-position: center; }
}

/* Deux voiles superposés : l'un remonte du bas pour asseoir le texte, l'autre vient de
   la gauche — l'asymétrie creuse le côté où la colonne de texte se pose. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to top,
      oklch(0.15 0.04 160 / 0.97) 8%,
      oklch(0.2 0.05 160 / 0.84) 42%,
      oklch(0.3 0.055 160 / 0.4) 100%),
    linear-gradient(to right,
      oklch(0.14 0.04 160 / 0.88),
      oklch(0.14 0.04 160 / 0) 72%);
}

/* Grain : un bruit fractal SVG en data-URI. Casse le lissé de la photo et rapproche
   le rendu du tirage imprimé. Aucune requête réseau, aucune dépendance. */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__badge {
  position: absolute;
  z-index: 1;
  top: var(--space-m);
  right: var(--space-m);
  width: 92px;
  height: auto;
  padding: 0.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px oklch(0 0 0 / 0.35);
}
/* En dessous de 50rem, le titre du hero occupe presque toute la largeur : sur les écrans
   à la fois étroits et bas (petits téléphones), rien ne sépare plus le badge du texte. On le
   masque plutôt que de le réduire jusqu'à l'illisible — il reste décoratif (alt=""). */
@media (max-width: 49.99rem) and (max-height: 749px) {
  .hero__badge { display: none; }
}
@media (min-width: 50rem) {
  .hero__badge {
    top: var(--space-l);
    right: var(--space-l);
    width: 190px;
  }
}

.hero__content {
  padding-block: var(--space-xl) var(--space-l);
}
.hero__title {
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero__title-accent { color: var(--accent-light); }
.hero__subtitle {
  margin-top: var(--space-m);
  font-size: var(--step-1);
  max-width: 44ch;
  line-height: 1.65;
  color: oklch(0.93 0.014 160);
}
.hero__actions {
  margin-top: var(--space-m);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Repères de confiance ---------- */
.proof {
  background: var(--primary-dark);
  color: var(--deep-ink);
  border-top: 1px solid oklch(1 0 0 / 0.12);
}
.proof__list {
  display: grid;
}
.proof__list li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding-block: var(--space-s);
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
}
.proof__list li:last-child { border-bottom: 0; }
.proof__list strong {
  color: var(--accent-light);
  font-size: var(--step-2);
  line-height: 1.1;
}
.proof__list span {
  max-width: 32ch;
  color: var(--deep-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (min-width: 48rem) {
  .proof__list { grid-template-columns: repeat(3, 1fr); }
  .proof__list li {
    padding: var(--space-m);
    border-right: 1px solid oklch(1 0 0 / 0.12);
    border-bottom: 0;
  }
  .proof__list li:first-child { padding-left: 0; }
  .proof__list li:last-child {
    padding-right: 0;
    border-right: 0;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--space-xl);
}
.section--tint { background: var(--surface); }

/* Section drenchée : le vert profond prend toute la surface. C'est le pivot sombre au
   milieu du parcours — il rompt l'enfilade de sections claires et fait respirer. */
.section--deep {
  background: var(--deep);
  color: var(--deep-ink);
}
.section--deep .section__title { color: var(--white); }
.section--deep .section__lead { color: var(--deep-muted); }

.cta-banner { padding-block: var(--space-l); }
.cta-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
  text-align: center;
}
.cta-banner__text {
  font-size: var(--step-1);
  font-weight: 600;
}

.section__title {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.028em;
  color: var(--primary-dark);
  max-width: 20ch;
}
.section__lead {
  margin-top: var(--space-s);
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ---------- Comparaison échafaudage / Hedra ---------- */
.compare {
  margin-top: var(--space-l);
  display: grid;
  gap: 0.75rem;
}
.compare__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding-block: var(--space-s);
  border-top: 1px solid var(--line);
}
.compare__row--head { display: none; }
.compare__cell--label {
  font-weight: 700;
  color: var(--primary-dark);
}
.compare__cell:not(.compare__cell--label):not(.compare__cell--hedra) {
  color: var(--muted);
}
/* La colonne Hedra est l'argument de vente : elle doit gagner à l'œil. Le gris quasi
   blanc d'origine ne la distinguait pas de la colonne « échafaudage ». */
.compare__cell--hedra {
  color: var(--primary-dark);
  font-weight: 600;
  background: oklch(0.94 0.032 160);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
}

@media (min-width: 48rem) {
  .compare__row {
    grid-template-columns: 10rem 1fr 1fr;
    align-items: center;
    gap: var(--space-s);
  }
  .compare__row--head {
    display: grid;
    border-top: none;
    font-weight: 700;
    font-size: var(--step-1);
  }
  .compare__row--head .compare__cell--head { color: var(--muted); }
  .compare__row--head .compare__cell--hedra { color: var(--primary-dark); background: none; padding: 0; }
  .compare__cell--hedra { padding: 0.75rem 1rem; }
}

/* ---------- Services ---------- */
.service-family {
  margin-top: var(--space-l);
}
.service-family:first-of-type { margin-top: var(--space-m); }
.service-family__title {
  font-size: var(--step-2);
  color: var(--primary-dark);
  margin-bottom: var(--space-m);
}
/* Des lignes réglées plutôt que des cartes flottantes : la prestation se lit comme une
   fiche technique, et le filet supérieur tient l'alignement quel que soit le nombre de
   colonnes — là où la grille de cartes laissait des orphelines en fin de rangée. */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  column-gap: var(--space-m);
}
.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.8rem;
  padding-block: var(--space-s);
  border-top: 1px solid var(--line);
}
.service-item__icon {
  grid-row: 1;
  width: 26px;
  height: 26px;
  margin-top: 0.1rem;
  color: var(--primary);
  transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.service-item h4 {
  grid-row: 1;
  align-self: center;
  font-size: 1.02rem;
}
.service-item p {
  grid-column: 2;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-wrap: pretty;
}
.service-item:hover .service-item__icon,
.service-item:focus-within .service-item__icon {
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Déroulé d'une intervention ----------
   L'élément signature du site. Une seule ligne verticale relie les quatre étapes : c'est
   la corde qui se déroule vers le bas à mesure qu'on descend la page — comme le cordiste
   descend en rappel — et c'est en même temps la tige de lierre (Hedra = Hedera) d'où
   s'ouvre une feuille à chaque étape. La corde et le lierre sont le même trait ; c'est
   toute l'identité de la marque en un geste.
   ------------------------------------------------------------------------------------ */
.steps {
  --marker: 2.8rem;                                  /* diamètre du médaillon */
  --rope-x: calc(var(--marker) / 2);                 /* axe de la corde = centre du médaillon */
  --steps-pad: calc(var(--marker) + var(--space-m)); /* retrait du texte, à droite de la corde */
  position: relative;
  margin-top: var(--space-l);
  padding-left: var(--steps-pad);
  display: grid;
  gap: var(--space-l);
}

.steps::before {
  content: "";
  position: absolute;
  left: var(--rope-x);
  top: 0.5rem;
  bottom: 0.5rem;
  width: 6px;
  transform: translateX(-50%);
  border-radius: 3px;
  /* Une corde, pas un pointillé : l'orange plein fait le brin, les stries obliques
     translucides posent le toron par-dessus sans jamais interrompre le trait. */
  background:
    repeating-linear-gradient(
      -40deg,
      oklch(0 0 0 / 0) 0 2.5px,
      oklch(0 0 0 / 0.3) 2.5px 5px
    ),
    var(--accent);
  transform-origin: top center;
  /* Défaut : corde entièrement déployée. Le scroll ne fait que la révéler ; si rien ne
     s'exécute (pas de JS, moteur sans scroll-timeline), elle est simplement là. */
  scale: 1 var(--rope-progress, 1);
}

.step {
  position: relative;
  min-height: 2.8rem;
}

/* Le médaillon vient se poser sur la corde : décalé à gauche du texte de tout le retrait,
   il retombe exactement sur l'axe --rope-x et masque le trait derrière lui. */
.step__marker {
  position: absolute;
  left: calc(var(--steps-pad) * -1);
  top: 0;
  display: grid;
  place-items: center;
  width: var(--marker);
  height: var(--marker);
  border-radius: 50%;
  background: var(--deep);
  border: 2px solid var(--accent);
  color: var(--accent-light);
}
.step__leaf {
  fill: currentColor;
  stroke: none;
  rotate: -10deg;
}

.step__title {
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--white);
}
.step__body p {
  margin-top: 0.6rem;
  color: var(--deep-muted);
  max-width: 56ch;
  text-wrap: pretty;
}

/* Le déroulement au scroll, en natif : la corde se dessine pendant que la section
   traverse le viewport, chaque feuille s'ouvre en arrivant. Décoratif — sous @supports,
   donc les moteurs sans scroll-timeline affichent tout, immobile, et ne perdent rien. */
@supports (animation-timeline: view()) {
  .steps::before {
    scale: 1 0;
    animation: rope-unfurl linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 60%;
  }
  .step__marker {
    animation: leaf-open linear both;
    animation-timeline: view();
    animation-range: entry 25% entry 95%;
  }
}

@keyframes rope-unfurl {
  to { scale: 1 1; }
}
@keyframes leaf-open {
  from { scale: 0.5; rotate: -35deg; opacity: 0; }
  to   { scale: 1; rotate: 0deg; opacity: 1; }
}

/* Mouvement réduit — et impression, où aucune scroll-timeline ne se déclenche jamais :
   sans ça la corde et les feuilles sortiraient blanches sur le papier. */
@media (prefers-reduced-motion: reduce), print {
  .steps::before,
  .step__marker {
    animation: none;
    scale: 1;
    rotate: none;
    opacity: 1;
  }
}

/* ---------- Photos de chantier ----------------------------------------------------
   Un seul objet, .shot, pour toutes les photos du site : galerie, points de vue,
   camionnette. Toutes les vignettes sont fabriquées au même format 4/5 (voir
   scripts/build-photos.py) : portraits et paysages y cohabitent sans déformation.
   ------------------------------------------------------------------------------- */
.shot {
  position: relative;
  margin: 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface); /* le temps que la photo arrive */
}
.shot figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* La pastille « Avant » / « Après » se pose sur la photo : les deux vignettes du même
   pignon se lisent alors comme une paire, sans qu'on ait à le dire dans la légende. */
.shot__tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: oklch(0.15 0.02 160 / 0.72);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.shot__tag--after {
  background: var(--accent);
  color: var(--white);
}

.gallery,
.views {
  margin-top: var(--space-l);
  display: grid;
  gap: var(--space-m);
  list-style: none;
}
/* 280px de plancher : sur un écran large la galerie tient en trois colonnes, donc les
   deux vignettes du pignon (« Avant », « Après ») restent voisines sur la même ligne. */
.gallery { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.views   { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.section--tint .shot figcaption { color: var(--ink); }
.section--tint .shot img { background: var(--bg); }

/* ---------- Déroulé : la photo tient compagnie à la corde ---------- */
.deroule { display: grid; gap: var(--space-l); }

.deroule__photo figcaption {
  color: var(--deep-muted);
  max-width: 34ch;
}
.deroule__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--primary-dark);
}

@media (min-width: 62rem) {
  .deroule { grid-template-columns: 1fr minmax(240px, 20rem); }
  /* La photo reste en vue pendant qu'on descend les quatre étapes — même mouvement que
     la corde qui se déroule à côté. Le décalage haut évite le header collant. */
  .deroule__photo {
    position: sticky;
    top: 6.5rem;
    align-self: start;
  }
}

/* ---------- Zone d'intervention ---------- */
.zone {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}
.zone__chips {
  margin-top: var(--space-m);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.zone__chips li {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.zone__radar {
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
}
.zone__ring {
  fill: none;
  stroke: var(--primary);
}
.zone__ring--1 { stroke-opacity: 0.55; }
.zone__ring--2 { stroke-opacity: 0.35; }
.zone__ring--3 { stroke-opacity: 0.18; }
.zone__dot { fill: var(--accent); }
.zone__label {
  font-size: 0.85rem;
  font-weight: 700;
  fill: var(--primary-dark);
}
.zone__label--center { fill: var(--ink); }

@media (min-width: 56rem) {
  .zone { grid-template-columns: 1.1fr 1fr; }
}

/* ---------- Avis clients (prêt, non affiché) ---------- */
.testimonials {
  margin-top: var(--space-l);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-m);
}
.testimonial blockquote {
  font-size: var(--step-1);
  color: var(--ink);
}
.testimonial cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  gap: var(--space-l);
}
/* Sur large écran, les coordonnées et la camionnette tiennent la colonne de gauche,
   le formulaire prend le reste : sans ça la photo laisse un grand vide à sa droite. */
@media (min-width: 62rem) {
  .contact { grid-template-columns: minmax(0, 22rem) 1fr; align-items: start; }
}
/* La camionnette accompagne les coordonnées, elle ne les écrase pas : format contenu,
   c'est une preuve d'existence, pas une affiche. */
.contact__photo {
  margin-top: var(--space-m);
  max-width: 20rem;
}
.contact__phone {
  margin-top: var(--space-m);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--primary-dark);
}

.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-s);
}
.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form__field label {
  font-weight: 600;
  font-size: 0.9rem;
}
.form__field input,
.form__field select,
.form__field textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.form__field input:invalid[data-touched],
.form__field select:invalid[data-touched],
.form__field textarea:invalid[data-touched] {
  border-color: var(--danger);
}
.form__error {
  min-height: 1.1em;
  font-size: 0.85rem;
  color: var(--danger);
}
.form__field--checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.6rem;
}
.form__field--checkbox input { margin-top: 0.2rem; }
.form__field--checkbox label { font-weight: 400; }

.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__privacy {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 50ch;
}
.form__status {
  display: none;
  grid-column: 1 / -1;
  position: relative;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1rem 1rem 3.8rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  line-height: 1.45;
}
.form__status[data-state] { display: flex; }
.form__status::before {
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
}
.form__status strong {
  font-size: var(--step-1);
  line-height: 1.2;
}
.form__status span { max-width: 48ch; }
.form__status[data-state="pending"] {
  color: var(--primary-dark);
  background: oklch(0.94 0.032 160);
  border-color: oklch(0.8 0.04 160);
}
.form__status[data-state="pending"]::before {
  content: "…";
  background: var(--primary);
  color: var(--white);
}
.form__status[data-state="success"] {
  min-height: 12rem;
  justify-content: center;
  padding: var(--space-m) var(--space-m) var(--space-m) 5.5rem;
  color: var(--primary-dark);
  background: oklch(0.93 0.055 155);
  border-color: var(--primary);
  box-shadow: 0 10px 30px oklch(0.24 0.06 160 / 0.12);
}
.form__status[data-state="success"]::before {
  content: "✓";
  left: var(--space-m);
  top: 50%;
  width: 3rem;
  height: 3rem;
  translate: 0 -50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.7rem;
}
.form__status[data-state="error"] {
  color: var(--danger);
  background: oklch(0.96 0.025 25);
  border-color: var(--danger);
}
.form__status[data-state="error"]::before {
  content: "!";
  background: var(--danger);
  color: var(--white);
}

/* Après un envoi réussi, la confirmation reste au centre du viewport. Un simple défilement
   n'est pas fiable ici : la disparition des champs raccourcit instantanément la page. */
.form--sent::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop);
  background: oklch(0.12 0.025 160 / 0.72);
  backdrop-filter: blur(2px);
}
.form--sent .form__status[data-state="success"] {
  position: fixed;
  z-index: var(--z-modal);
  top: 50%;
  left: 50%;
  width: min(calc(100% - 2rem), 36rem);
  translate: -50% -50%;
}
.form--sent .form__field,
.form--sent .form__honeypot {
  display: none;
}
.form__status-close {
  align-self: flex-start;
  margin-top: var(--space-s);
}

@media (min-width: 40rem) {
  .form {
    grid-template-columns: 1fr 1fr;
  }
  .form__field--full { grid-column: 1 / -1; }
  /* Le champ est en colonne flex : sans ça, le bouton s'étire sur toute la largeur du
     formulaire. Pleine largeur reste le bon réflexe sur mobile, d'où le breakpoint. */
  .form__field--full .btn { align-self: start; }
}

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--primary-dark);
  color: oklch(0.95 0.01 160);
  padding-block: var(--space-l) var(--space-m);
}
.site-footer a:hover { color: var(--white); }
.site-footer__inner {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: 1fr;
}
.site-footer__brand {
  display: flex;
  align-items: center;
}
.site-footer__brand img {
  height: 46px;
  width: auto;
}
.site-footer__col h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: oklch(0.75 0.03 160);
  margin-bottom: 0.6rem;
}
.site-footer__col p { margin-top: 0.3rem; font-size: 0.9rem; }
.site-footer__bottom {
  margin-top: var(--space-m);
  padding-top: var(--space-s);
  border-top: 1px solid oklch(1 0 0 / 0.12);
  font-size: 0.8rem;
  color: oklch(0.7 0.02 160);
}

@media (min-width: 48rem) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* ---------- Pages légales ---------- */
.prose h2 {
  font-size: var(--step-2);
  color: var(--primary-dark);
  margin-top: var(--space-l);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li {
  margin-top: 0.75rem;
  max-width: 70ch;
  color: var(--ink);
}
.prose ul { list-style: disc; padding-left: 1.4rem; }
.prose a { color: var(--primary-dark); text-decoration: underline; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: var(--space-m);
  font-weight: 600;
  color: var(--primary-dark);
}
