/* ==========================================================================
   NATUR'O GRIMPE : feuille de style (V3, charte graphique appliquée)
   Charte : vert #334d2b et crème #eeeae0 (principales), vert feuille #7da12d,
   ocre #ae8231 (complémentaire, réservé à l'altimètre et aux étoiles).
   Titres : Prompt en gras. Texte : Montserrat. Polices auto-hébergées (licence OFL).
   La page se lit comme une descente, de la cime au sol : l'altimètre suit le défilement.

   Sommaire : 1. Polices  2. Tokens  3. Base  4. Typographie & utilitaires
   5. Boutons & liens  6. En-tête  7. Menu mobile  8. Héros & en-têtes de page
   9. Sections  10. Fonds vidéo plein écran  11. Accueil  12. Interventions
   13. Pages intérieures  14. Questions fréquentes  15. Avis  16. Galeries & visionneuse
   17. Zone  18. Contact & formulaire  19. Pied de page  20. Altimètre & appel mobile
   21. Mouvement
   ========================================================================== */

/* 1. Polices --------------------------------------------------------------- */
@font-face { font-family: "Prompt"; src: url("/assets/fonts/prompt-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Prompt"; src: url("/assets/fonts/prompt-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Prompt"; src: url("/assets/fonts/prompt-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Prompt"; src: url("/assets/fonts/prompt-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Polices de secours calées sur les métriques réelles : pas de saut de mise en page au chargement */
@font-face { font-family: "Prompt Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); size-adjust: 104%; ascent-override: 105%; descent-override: 40%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 107%; ascent-override: 90%; descent-override: 23%; line-gap-override: 0%; }

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  /* Couleurs de la charte */
  --forest: #334d2b;
  --cream: #eeeae0;
  --leaf: #7da12d;
  --ochre: #ae8231;

  /* Surfaces sombres dérivées du vert principal */
  --night: #0b120a;
  --deep: #111a0f;
  --deep-2: #172314;
  --forest-2: #2a4024;
  --line: rgb(238 234 224 / 0.12);
  --line-strong: rgb(238 234 224 / 0.26);

  /* Texte */
  --text: var(--cream);
  --text-2: #c3c8b6;
  --text-3: #9aa58f;

  /* Accents éclaircis, lisibles sur fond sombre */
  --leaf-2: #a2c25a;
  --ochre-2: #d4a457;

  --display: "Prompt", "Prompt Fallback", system-ui, sans-serif;
  --sans: "Montserrat", "Montserrat Fallback", system-ui, sans-serif;

  /* Échelle typographique fluide */
  --fs-label: 0.74rem;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);
  --fs-h4: clamp(1.12rem, 1.04rem + 0.35vw, 1.32rem);
  --fs-h3: clamp(1.45rem, 1.2rem + 1vw, 2.1rem);
  --fs-h2: clamp(2.15rem, 1.45rem + 2.9vw, 4rem);
  --fs-h1: clamp(2.6rem, 1.45rem + 4.8vw, 5.6rem);

  --gutter: clamp(1.25rem, 0.5rem + 3.6vw, 4.5rem);
  --wrap: 1360px;
  --space-section: clamp(5.75rem, 3.25rem + 8.75vw, 11.5rem);
  --radius: 16px;
  --radius-sm: 10px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);

  /* Motif « lame de scie » de la charte (dent + talon), coloré via mask-image */
  --saw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M0 6h12v2H0zM0 6.2L9.2 1.6v4.6z'/%3E%3C/svg%3E");

  /* Superpositions */
  --z-altimeter: 20;
  --z-header: 40;
  --z-fab: 45;
  --z-menu: 60;
  --z-skip: 100;

  color-scheme: dark;
}
/* Sur grand écran, la gouttière droite laisse la place à l'altimètre */
@media (min-width: 1181px) { :root { --gutter: clamp(5.5rem, 6.2vw, 7.5rem); } }

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--deep);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}
body.menu-open { overflow: hidden; }
img, video, svg, picture { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--leaf); color: var(--night); }
:focus-visible { outline: 2px solid var(--leaf-2); outline-offset: 4px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 4. Typographie & utilitaires ------------------------------------------- */
h1, h2, .display { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.005em; line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.12; }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--text-2); max-width: 54ch; }
.text-muted { color: var(--text-2); }
.label { font-family: var(--display); font-weight: 600; font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.4; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden {
  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-link {
  position: fixed; left: 1rem; top: -4rem; z-index: var(--z-skip);
  background: var(--cream); color: var(--forest); padding: 0.75rem 1.2rem; border-radius: 999px;
  font-family: var(--display); font-weight: 600; text-decoration: none; transition: top 200ms var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* Marqueur d'altitude : la lame de scie de la charte, puis l'altitude et le nom de la section */
.marker {
  display: flex; align-items: center; gap: 0.85rem; margin-bottom: clamp(1.2rem, 0.9rem + 1vw, 1.9rem);
  font-family: var(--display); font-weight: 600; font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.3;
}
.marker::before {
  content: ""; flex: none; width: 3.3rem; height: 0.58rem; background: var(--leaf-2);
  -webkit-mask: var(--saw) 0 50% / auto 100% repeat-x; mask: var(--saw) 0 50% / auto 100% repeat-x;
}
.marker__alt { color: var(--ochre-2); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.marker__name { color: var(--text-3); }

/* Sceau de la charte : le grimpeur dans son cercle, sur pastille crème */
.seal { position: relative; display: inline-grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; background: var(--cream); flex: none; }
.seal::before {
  content: ""; width: 80%; height: 80%; background: var(--forest);
  -webkit-mask: url("/assets/brand/grimpeur.webp") center / contain no-repeat; mask: url("/assets/brand/grimpeur.webp") center / contain no-repeat;
}
.seal--sm { width: 3.6rem; height: 3.6rem; }
.seal--lg { width: clamp(5rem, 4rem + 3vw, 6.75rem); height: clamp(5rem, 4rem + 3vw, 6.75rem); }

/* Images : coins arrondis comme sur la charte, étalonnage commun léger */
.pic { display: block; overflow: hidden; background: var(--pic-color, var(--deep-2)); border-radius: var(--radius); }
.pic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.03); }

/* Puces d'information */
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tags li { padding: 0.3rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-2); font-size: 0.78rem; font-weight: 500; line-height: 1.5; }

/* 5. Boutons & liens ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.9rem;
  min-height: 3.5rem; padding: 0.45rem 1.75rem;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 0.84rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease, transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 450ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
/* Bouton principal : pilule crème à texte vert (maquette de la charte), icône dans une pastille verte */
.btn--solid { background: var(--cream); color: var(--forest); }
.btn--solid svg { box-sizing: content-box; padding: 0.8rem; border-radius: 50%; background: var(--forest); color: var(--cream); }
.btn--solid:has(> svg) { padding-right: 0.45rem; }
/* Icône placée avant le texte (boutons d'appel) */
.btn.btn--solid.btn--ic-start { padding-left: 0.45rem; padding-right: 1.75rem; }
.btn--line { border-color: var(--line-strong); color: var(--text); }
.btn--sm { min-height: 2.8rem; padding: 0.35rem 1.25rem; font-size: 0.74rem; }
.btn--sm.btn--solid svg { padding: 0.55rem; }
.btn--lg { min-height: 4.2rem; font-size: 1rem; letter-spacing: 0.04em; }
.btn--lg.btn--solid svg { padding: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: #fff; }
  .btn--line:hover { border-color: var(--cream); }
  .btn:hover svg { transform: translateX(3px); }
  .btn--ic-start:hover svg { transform: rotate(-12deg); }
}
.btn[disabled], .btn[aria-busy="true"] { cursor: progress; opacity: 0.7; }

/* Lien téléphone : pastille + numéro en Prompt */
.phone-link { display: inline-flex; align-items: center; gap: 0.9rem; text-decoration: none; }
.phone-link__ic {
  position: relative; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; flex: none;
  border: 1px solid var(--line-strong); color: var(--leaf-2);
  transition: border-color 300ms ease, background-color 300ms ease;
}
.phone-link__ic svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.phone-link > span:last-child { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.02em; line-height: 1.25; }
.phone-link small { display: block; font-family: var(--sans); color: var(--text-3); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .phone-link:hover .phone-link__ic { border-color: var(--leaf-2); background: rgb(162 194 90 / 0.12); } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.7rem; padding-block: 0.35rem;
  font-family: var(--display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 500ms var(--ease-out), color 300ms ease;
}
.link-arrow::after {
  content: ""; width: 1rem; height: 1rem; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { background-size: 35% 1px; color: var(--leaf-2); }
  .link-arrow:hover::after { transform: translateX(4px); }
}

.round-btn {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  transition: border-color 250ms ease, background-color 250ms ease, transform 160ms var(--ease-out);
}
.round-btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .round-btn:hover { border-color: var(--cream); background: rgb(238 234 224 / 0.06); } }

/* 6. En-tête -------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: transform 500ms var(--ease-drawer), background-color 400ms ease, border-color 400ms ease;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -2rem; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgb(11 18 10 / 0.55), rgb(11 18 10 / 0)); transition: opacity 400ms ease;
}
.site-header.is-scrolled {
  background: rgb(11 18 10 / 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%);
  border-bottom-color: var(--line);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header { z-index: calc(var(--z-menu) + 1); background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .site-header::before { opacity: 0; }
.bar {
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; gap: 2rem;
  height: 5.75rem; transition: height 400ms var(--ease-out);
}
.site-header.is-scrolled .bar { height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; flex: none; }
.brand__logo { width: 3rem; height: 3rem; border-radius: 50%; transition: transform 700ms var(--ease-out); }
.brand__text { display: grid; gap: 0.35rem; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.08rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.brand__tag { font-family: var(--sans); font-weight: 500; font-size: 0.5rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-2); line-height: 1; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .brand:hover .brand__logo { transform: rotate(-10deg); } }

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: 0.2rem; }
.nav__link {
  position: relative; display: block; padding: 0.6rem 0.8rem;
  font-family: var(--display); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  color: var(--text-2); transition: color 250ms ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.25rem; height: 2px; border-radius: 2px; background: var(--leaf-2);
  transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out);
}
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--text); }
  .nav__link:hover::after { transform: scaleX(1); }
}
.bar__actions { display: flex; align-items: center; gap: 1.2rem; flex: none; }
.bar__phone { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-family: var(--display); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.03em; color: var(--text); transition: color 250ms ease; }
.bar__phone svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: var(--leaf-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .bar__phone:hover { color: var(--leaf-2); } }
/* Mini-altimètre (mobile) : chiffre et unité dans le même ocre */
.alt-mini {
  display: none; align-items: baseline; gap: 0.1rem;
  font-family: var(--display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ochre-2); font-variant-numeric: tabular-nums;
}
.alt-mini::before { content: "↓"; margin-right: 0.3rem; }

.burger {
  display: none; position: relative; width: 2.9rem; height: 2.9rem; border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; color: var(--text);
}
.burger__lines { position: absolute; inset: 0; }
.burger__lines i {
  position: absolute; left: 50%; top: 50%; width: 1.05rem; height: 1.5px; margin-left: -0.525rem; background: currentColor; border-radius: 2px;
  transition: transform 450ms var(--ease-drawer);
}
.burger__lines i:first-child { transform: translateY(-3.5px); }
.burger__lines i:last-child { transform: translateY(3.5px); }
.burger[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: rotate(-45deg); }

/* Ordinateurs à écran étroit : l'en-tête se resserre pour tenir sur une ligne */
@media (min-width: 1181px) and (max-width: 1400px) {
  .bar { gap: 1.5rem; }
  .brand__tag { display: none; }
  .nav__link { padding-inline: 0.6rem; }
  .nav__link::after { left: 0.6rem; right: 0.6rem; }
}
@media (min-width: 1181px) and (max-width: 1320px) {
  .bar__phone span { display: none; }
  .bar__phone { justify-content: center; width: 2.9rem; height: 2.9rem; border: 1px solid var(--line-strong); border-radius: 50%; }
}
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .bar__actions { margin-left: auto; }
  .alt-mini { display: inline-flex; }
}
@media (max-width: 640px) {
  .bar { height: 4.6rem; gap: 0.8rem; }
  .brand__logo { width: 2.55rem; height: 2.55rem; }
  .brand__name { font-size: 0.92rem; letter-spacing: 0.08em; }
  .brand__tag { display: none; }
  .bar__phone span, .bar__devis { display: none; }
  .bar__phone { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border: 1px solid var(--line-strong); border-radius: 50%; }
  .bar__actions { gap: 0.55rem; }
}
@media (max-width: 400px) { .brand__text { display: none; } }

/* 7. Menu mobile --------------------------------------------------------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  padding: 7rem var(--gutter) max(2rem, env(safe-area-inset-bottom));
  background: var(--forest); color: var(--text); overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity 400ms var(--ease-out), visibility 0s linear 400ms;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 400ms var(--ease-out); }
.menu__nav ul { list-style: none; padding: 0; display: grid; border-top: 1px solid rgb(238 234 224 / 0.18); }
.menu__nav li { overflow: hidden; border-bottom: 1px solid rgb(238 234 224 / 0.18); }
.menu__nav a {
  display: block; padding-block: 0.8rem;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 6.6vw, 2.4rem); line-height: 1.12; letter-spacing: -0.01em;
  text-decoration: none; transform: translateY(105%); transition: transform 700ms var(--ease-drawer), color 250ms ease;
}
.menu__nav a[aria-current="page"] { color: var(--leaf-2); }
.menu.is-open .menu__nav a { transform: none; }
.menu.is-open .menu__nav li:nth-child(2) a { transition-delay: 40ms; }
.menu.is-open .menu__nav li:nth-child(3) a { transition-delay: 80ms; }
.menu.is-open .menu__nav li:nth-child(4) a { transition-delay: 120ms; }
.menu.is-open .menu__nav li:nth-child(5) a { transition-delay: 160ms; }
.menu.is-open .menu__nav li:nth-child(6) a { transition-delay: 200ms; }
.menu.is-open .menu__nav li:nth-child(7) a { transition-delay: 240ms; }
.menu__foot { display: grid; gap: 1.2rem; justify-items: start; }
.menu__meta { color: #d5dbc9; font-size: var(--fs-small); line-height: 1.6; }

/* 8. Héros & en-têtes de page ------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; grid-template-rows: 1fr auto;
  background: var(--night);
}
.hero__media, .hero__media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media .pic { border-radius: 0; }
.hero__media .pic img, .hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1600ms var(--ease-out); }
.hero__video.is-playing { opacity: 1; }
.hero__shade, .page-hero::before {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(11 18 10 / 0.62) 0%, rgb(11 18 10 / 0) 26%),
    linear-gradient(0deg, rgb(11 18 10 / 0.95) 0%, rgb(11 18 10 / 0.62) 32%, rgb(11 18 10 / 0.08) 66%),
    linear-gradient(90deg, rgb(11 18 10 / 0.55) 0%, rgb(11 18 10 / 0) 62%);
}
.hero__inner { align-self: end; padding-top: 9rem; padding-bottom: clamp(2.6rem, 6vh, 4.5rem); }
.hero__title { font-size: var(--fs-h1); max-width: 13ch; }
/* Mention métier et ville, dans le H1 pour le référencement : même aspect que les autres repères de section */
.hero__title .hero__kicker { width: max-content; max-width: calc(100vw - 2 * var(--gutter)); }
.hero__title .hero__kicker .marker__name { color: var(--text); }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0 0.14em; margin: -0.06em 0 -0.14em; }
.hero__title .w > span { display: inline-block; }
.hero__sub { margin-top: 1.5rem; max-width: 46ch; font-size: var(--fs-lead); line-height: 1.6; color: var(--text-2); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.4rem; }

/* Bandeau d'informations en pied de héros */
.hero__strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: stretch;
  border-top: 1px solid var(--line-strong);
}
.strip__item { display: grid; align-content: center; gap: 0.2rem; padding: 1.3rem 2rem 1.5rem 0; text-decoration: none; }
.strip__item + .strip__item { padding-left: 2rem; border-left: 1px solid var(--line); }
.strip__value { font-family: var(--display); font-weight: 700; font-size: 1.8rem; line-height: 1.1; letter-spacing: -0.01em; transition: color 300ms ease; }
.strip__value small { font-size: 0.55em; color: var(--text-3); margin-left: 0.15rem; font-weight: 600; }
.strip__label { display: flex; align-items: center; gap: 0.6rem; color: var(--text-2); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) { a.strip__item:hover .strip__value { color: var(--leaf-2); } }
.strip__cue {
  position: relative; display: flex; align-items: center; gap: 1rem; padding-left: 2rem; border-left: 1px solid var(--line);
  color: var(--text-2); text-decoration: none; font-family: var(--display); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.strip__cue i { position: relative; display: block; width: 1px; height: 3rem; background: var(--line-strong); overflow: hidden; }
.strip__cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 45%; background: var(--leaf-2); }
@media (prefers-reduced-motion: no-preference) { .strip__cue i::after { animation: cue 2.4s var(--ease-in-out) infinite; } }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(230%); } }

.stars { display: inline-flex; gap: 2px; color: var(--ochre-2); vertical-align: middle; }
.stars svg { width: 0.85rem; height: 0.85rem; fill: currentColor; }

/* Bouton pause des vidéos (héros et fonds de section) */
.hero__pause, .bgv__pause {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgb(11 18 10 / 0.45); color: var(--text-2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: color 250ms ease, border-color 250ms ease;
}
.hero__pause { right: var(--gutter); bottom: 7.4rem; padding: 0.4rem 0.85rem 0.4rem 0.65rem; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.bgv__pause { right: var(--gutter); bottom: 1.6rem; width: 2.5rem; height: 2.5rem; }
.hero__pause svg, .bgv__pause svg { width: 0.85rem; height: 0.85rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero__pause:hover, .hero__pause:focus-visible, .bgv__pause:hover, .bgv__pause:focus-visible { color: var(--text); border-color: var(--cream); }

@media (max-width: 900px) {
  .hero__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip__cue { display: none; }
  .strip__item { padding: 1rem 0.8rem 1.2rem 0; }
  .strip__item + .strip__item { padding-left: 0.9rem; }
  .strip__value { font-size: 1.4rem; }
  .strip__label { font-size: 0.6rem; letter-spacing: 0.1em; }
}
@media (max-width: 640px) {
  .hero__inner { padding-top: 7rem; padding-bottom: 2.2rem; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgb(11 18 10 / 0.6) 0%, rgb(11 18 10 / 0.2) 20%),
      linear-gradient(0deg, rgb(11 18 10 / 0.97) 0%, rgb(11 18 10 / 0.78) 44%, rgb(11 18 10 / 0.3) 76%);
  }
  .hero__ctas { gap: 1rem; }
  .hero__ctas .btn { width: 100%; justify-content: space-between; }
  .strip__label .stars { display: none; }
  .hero__pause { top: 5.6rem; bottom: auto; }
}

/* En-tête des pages intérieures (image ou vidéo de fond) */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92svh, 56rem); display: grid; align-items: end; background: var(--night);
}
.page-hero::before { content: ""; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media .pic { height: 100%; border-radius: 0; }
.page-hero__inner { padding-top: 10rem; padding-bottom: clamp(3.5rem, 9vh, 6.5rem); }
.page-hero__title { font-size: var(--fs-h1); max-width: 14ch; }
.page-hero__lead { margin-top: 1.4rem; font-size: var(--fs-lead); max-width: 50ch; color: var(--text-2); line-height: 1.6; }
.page-hero .hero__ctas { margin-top: 2.3rem; }
.page-hero--short { min-height: min(72svh, 46rem); }
.page-hero--legal { min-height: min(52svh, 32rem); }
.page-hero .bgv__pause { bottom: 2rem; }
@media (max-width: 640px) {
  /* Sur mobile le texte couvre presque toute l'image : voile plus dense */
  .page-hero::before {
    background:
      linear-gradient(180deg, rgb(11 18 10 / 0.6) 0%, rgb(11 18 10 / 0.2) 18%),
      linear-gradient(0deg, rgb(11 18 10 / 0.97) 0%, rgb(11 18 10 / 0.82) 48%, rgb(11 18 10 / 0.4) 78%);
  }
  .page-hero .hero__ctas .btn { width: 100%; justify-content: space-between; }
  .page-hero .bgv__pause { top: 5.6rem; bottom: auto; }
}

.breadcrumb { margin-top: 2rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.6rem; opacity: 0.5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* 9. Sections ------------------------------------------------------------- */
.section { position: relative; padding-block: var(--space-section); }
.section--base { background: var(--deep); }
.section--alt { background: var(--deep-2); }
.section--night { background: var(--night); }
/* Section sur le vert de la charte : textes secondaires éclaircis pour rester lisibles */
.section--forest {
  --text-2: #dde2d2; --text-3: #c3ccb6; --line: rgb(238 234 224 / 0.18); --line-strong: rgb(238 234 224 / 0.34);
  background: var(--forest); overflow: hidden;
}
.section--forest .marker__alt { color: var(--cream); }
.section--forest .marker::before { background: var(--cream); }
.section--tight { padding-block: calc(var(--space-section) * 0.62); }
.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(3.2rem, 2.2rem + 4vw, 6.25rem); }
.section-head--split { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 1.6rem 6rem; }
.section-head--split .marker { grid-column: 1 / -1; margin-bottom: 0; }
@media (max-width: 900px) { .section-head--split { grid-template-columns: 1fr; } }

/* Lame de scie circulaire de la charte, en filigrane */
.deco-saw {
  position: absolute; z-index: 0; pointer-events: none; aspect-ratio: 2 / 1; width: clamp(22rem, 40vw, 40rem);
  background: rgb(238 234 224 / 0.06);
  -webkit-mask: url("/assets/brand/scie.webp") center / contain no-repeat; mask: url("/assets/brand/scie.webp") center / contain no-repeat;
}
.section > .wrap { position: relative; z-index: 1; }

/* 10. Fonds vidéo plein écran -------------------------------------------- */
.bgv { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--night); }
.bgv__poster, .bgv__video { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.bgv__poster img, .bgv__video { width: 100%; height: 100%; object-fit: cover; }
.bgv__video { opacity: 0; transition: opacity 1400ms var(--ease-out); }
.bgv__video.is-playing { opacity: 1; }

/* Section « cinéma » : vidéo plein cadre, texte posé dessus */
.cine {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; align-items: end; background: var(--night); color: var(--text);
}
.cine::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(11 18 10 / 0.7) 0%, rgb(11 18 10 / 0) 24%),
    linear-gradient(0deg, rgb(11 18 10 / 0.94) 0%, rgb(11 18 10 / 0.6) 36%, rgb(11 18 10 / 0.12) 70%),
    linear-gradient(90deg, rgb(11 18 10 / 0.6) 0%, rgb(11 18 10 / 0) 65%);
}
.cine__inner { padding-block: clamp(8rem, 16vh, 11rem) clamp(4rem, 9vh, 6.5rem); }
.cine__title { font-size: clamp(2.4rem, 1.4rem + 3.8vw, 5rem); max-width: 15ch; }
.cine__lead { margin-top: 1.4rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--text-2); max-width: 54ch; }
.cine__points { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); margin-top: clamp(2.8rem, 6vh, 4.5rem); border-top: 1px solid var(--line-strong); }
.cine__point { padding: 1.5rem 1.8rem 0 0; }
.cine__point + .cine__point { padding-left: 1.8rem; border-left: 1px solid var(--line); }
.cine__point h3 { font-size: var(--fs-h4); }
.cine__point p { margin-top: 0.55rem; color: var(--text-2); font-size: 0.94rem; line-height: 1.65; }
/* Variante centrée : appel à l'action */
.cine--center { align-items: center; text-align: center; }
.cine--center::before {
  background:
    radial-gradient(90% 75% at 50% 50%, rgb(11 18 10 / 0.5), rgb(11 18 10 / 0.86)),
    linear-gradient(0deg, rgb(11 18 10 / 0.6), rgb(11 18 10 / 0) 40%);
}
.cine--center .cine__inner { display: grid; justify-items: center; padding-block: clamp(7rem, 14vh, 10rem); }
.cine--center .cine__title { max-width: 18ch; }
.cine--center .cine__lead { max-width: 50ch; }
.cine__ctas { justify-content: center; margin-top: 2.6rem; }
.cine .seal { margin-bottom: 1.8rem; }
@media (max-width: 900px) {
  .cine__points { grid-template-columns: 1fr 1fr; }
  .cine__point:nth-child(3) { padding-left: 0; border-left: 0; }
  .cine__point:nth-child(n + 3) { margin-top: 0.4rem; }
}
@media (max-width: 560px) {
  .cine { min-height: 100svh; }
  .cine::before {
    background:
      linear-gradient(180deg, rgb(11 18 10 / 0.7) 0%, rgb(11 18 10 / 0.25) 20%),
      linear-gradient(0deg, rgb(11 18 10 / 0.96) 0%, rgb(11 18 10 / 0.8) 55%, rgb(11 18 10 / 0.45) 85%);
  }
  .cine__points { grid-template-columns: 1fr; border-top: 0; }
  .cine__point, .cine__point + .cine__point { padding: 1.1rem 0 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .cine__point:nth-child(n + 3) { margin-top: 0; }
  .cine__point:first-child { margin-top: 0; }
  .cine__ctas .btn { width: 100%; justify-content: space-between; }
  .cine--center .cine__ctas .btn { justify-content: center; }
}
/* Léger effet de profondeur au défilement (navigateurs récents) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cine .bgv { inset: -7% 0; animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { transform: translateY(-5%); } to { transform: translateY(5%); } }
  }
}

/* 11. Accueil -------------------------------------------------------------- */

/* Présentation */
.manifesto { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: center; }
.manifesto__text { grid-column: 1 / span 6; }
.manifesto__lead { font-family: var(--sans); font-weight: 400; font-size: clamp(1.35rem, 1rem + 1.3vw, 2.05rem); line-height: 1.38; letter-spacing: -0.01em; color: var(--text-2); }
.manifesto__lead strong { font-weight: 600; color: var(--text); }
.manifesto__note { margin-top: clamp(2.2rem, 1.8rem + 1.6vw, 3.4rem); max-width: 48ch; color: var(--text-2); font-size: 0.97rem; }
.signature { display: flex; align-items: center; gap: 1.1rem; margin-top: 2.6rem; }
.signature b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.signature span { color: var(--text-3); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.manifesto__media { grid-column: 8 / span 5; position: relative; }
.manifesto__media .pic { aspect-ratio: 4 / 5; }
.manifesto__media .seal { position: absolute; left: -2.2rem; top: 2.2rem; box-shadow: 0 0 0 0.5rem var(--deep); }
@media (max-width: 960px) {
  .manifesto__text, .manifesto__media { grid-column: 1 / -1; }
  .manifesto__media { margin-top: 1rem; max-width: 30rem; }
  /* Macaron dans le cadre : à -0,8rem il dépassait de 11 px et la page glissait de côté sur téléphone */
  .manifesto__media .seal { left: auto; right: 0.8rem; top: -1.6rem; }
}

/* Les trois métiers : grands panneaux image, bord à bord */
.trio { background: var(--deep-2); padding-top: var(--space-section); padding-bottom: 0.6rem; }
.trio__panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; padding-inline: 0.6rem; }
.panel {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(32rem, 84svh, 50rem); padding: clamp(1.5rem, 2.4vw, 2.6rem); border-radius: var(--radius);
  color: var(--text); text-decoration: none; background: var(--night);
}
.panel__media { position: absolute; inset: 0; z-index: -2; }
.panel__media .pic, .panel__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.panel__media .pic img { transition: transform 1600ms var(--ease-slow); }
.panel__media video { opacity: 0; transition: opacity 700ms var(--ease-out); }
.panel__media video.is-playing { opacity: 1; }
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgb(11 18 10 / 0.95) 0%, rgb(11 18 10 / 0.6) 34%, rgb(11 18 10 / 0) 64%);
}
.panel__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.7rem); line-height: 1.04; letter-spacing: -0.015em; }
.panel__text { margin-top: 0.9rem; color: var(--text-2); max-width: 36ch; font-size: 0.97rem; }
.panel__cta { display: inline-flex; align-items: center; gap: 0.85rem; margin-top: 1.6rem; font-family: var(--display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.panel__cta i { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--cream); color: var(--forest); transition: transform 450ms var(--ease-out); }
.panel__cta svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .panel:hover .panel__media .pic img { transform: scale(1.06); }
  .panel:hover .panel__cta i { transform: translateX(4px); }
}
@media (max-width: 900px) {
  .trio__panels { grid-template-columns: 1fr; }
  .panel { min-height: clamp(26rem, 70svh, 36rem); }
}

/* Méthode : quatre étapes réelles, numérotées */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); counter-reset: step; }
.step { padding: 2rem 2rem 0 0; counter-increment: step; }
.step + .step { padding-left: 2rem; border-left: 1px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 1.3rem;
  font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 2rem + 2vw, 3.8rem); line-height: 1; letter-spacing: -0.02em; color: var(--leaf-2);
}
.step h3 { font-size: var(--fs-h4); }
.step p { margin-top: 0.7rem; color: var(--text-2); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n + 3) { margin-top: 1rem; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step, .step + .step { padding: 1.6rem 0 1.4rem; border-left: 0; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: 4rem 1fr; column-gap: 1rem; }
  .step::before { grid-row: span 2; margin: 0; font-size: 2.4rem; }
  .step:nth-child(n + 3) { margin-top: 0; }
}

/* 12. Interventions : grande image fixe à gauche, liste à droite ---------- */
.interv { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 6rem); align-items: start; }
.interv__stage { position: sticky; top: 6.5rem; height: min(calc(100svh - 8.5rem), 50rem); border-radius: var(--radius); overflow: hidden; background: var(--night); }
.interv__frame { position: absolute; inset: 0; opacity: 0; transform: scale(1.05); transition: opacity 900ms var(--ease-out), transform 1600ms var(--ease-slow); }
.interv__frame.is-active { opacity: 1; transform: none; }
.interv__frame .pic { width: 100%; height: 100%; border-radius: 0; }
.interv__stage::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(0deg, rgb(11 18 10 / 0.75), rgb(11 18 10 / 0)); pointer-events: none; }
.interv__count {
  position: absolute; left: 1.6rem; bottom: 1.4rem; z-index: 2;
  font-family: var(--display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; color: var(--text-2); font-variant-numeric: tabular-nums;
}
.interv__count b { color: var(--cream); font-weight: 700; }
.interv__list { border-top: 1px solid var(--line); }
.interv__item { display: grid; align-content: center; gap: 1.1rem; min-height: 36svh; padding-block: clamp(2rem, 4vh, 3rem); border-bottom: 1px solid var(--line); }
.interv__item h3 { position: relative; font-size: var(--fs-h3); line-height: 1.1; color: var(--text-2); transition: color 400ms ease; }
/* Pastille de l'intervention lue, placée dans la marge pour ne pas décaler le titre */
.interv__item h3::before { content: ""; position: absolute; left: -1.5rem; top: 0.42em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--leaf-2); transform: scale(0); transition: transform 500ms var(--ease-out); }
.interv__item.is-active h3 { color: var(--text); }
.interv__item.is-active h3::before { transform: none; }
.interv__item p { color: var(--text-2); max-width: 52ch; }
.interv__thumb { display: none; }
@media (max-width: 959px) {
  .interv { grid-template-columns: 1fr; }
  .interv__stage { display: none; }
  .interv__list { border-top: 0; display: grid; gap: 3.4rem; }
  .interv__item { min-height: 0; padding: 0; border: 0; align-content: start; }
  .interv__item h3 { color: var(--text); }
  .interv__item h3::before { display: none; }
  .interv__thumb { display: block; margin-bottom: 0.4rem; }
  .interv__thumb .pic { aspect-ratio: 4 / 3; }
}

/* 13. Pages intérieures ------------------------------------------------------ */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: center; }
.split__text { grid-column: 1 / span 6; display: grid; gap: 1.7rem; }
.split__media { grid-column: 8 / span 5; }
.split__media .pic { aspect-ratio: 4 / 5; }
.split__text p { max-width: 58ch; color: var(--text-2); }
.split__text .lead { color: var(--text); }
@media (max-width: 960px) {
  .split__text, .split__media { grid-column: 1 / -1; }
  .split__media .pic { aspect-ratio: 4 / 3.4; }
}

/* Vidéos verticales */
.media-duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: center; }
.media-duo > .split__text { grid-column: 1 / span 6; }
.media-duo > .reel-frame { grid-column: 8 / span 4; justify-self: center; }
.reel-frame { position: relative; width: min(100%, 24rem); aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--deep-2); }
.reel-frame video, .reel-frame .pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.reel-frame video, .mosaic video { opacity: 0; transition: opacity 900ms var(--ease-out); }
.reel-frame video.is-playing, .mosaic video.is-playing { opacity: 1; }
.reel-frame__label {
  position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 2; padding: 0.35rem 0.8rem; border-radius: 999px;
  background: rgb(11 18 10 / 0.62); color: var(--text);
  font-family: var(--display); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
@media (max-width: 900px) {
  .media-duo > .split__text, .media-duo > .reel-frame { grid-column: 1 / -1; }
  .media-duo > .reel-frame { width: min(100%, 21rem); }
}

/* Encadré urgence */
.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.3rem; align-items: start;
  padding: clamp(1.4rem, 2.5vw, 2.1rem); border: 1px solid rgb(212 164 87 / 0.4); border-radius: var(--radius);
  background: rgb(174 130 49 / 0.12);
}
.notice__icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--ochre-2); color: var(--night); }
.notice__icon svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.notice h3 { font-size: var(--fs-h4); line-height: 1.3; }
.notice p { margin-top: 0.35rem; color: var(--text-2); }
.notice a { color: var(--text); font-weight: 600; }

/* Bandeau d'appel à l'action (recrutement) */
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: end; }
.cta-band__title { font-size: var(--fs-h2); max-width: 18ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* Mentions légales */
.prose { max-width: 70ch; display: grid; gap: 1.1rem; color: var(--text-2); }
.prose h2 { margin-top: 2.4rem; color: var(--text); font-size: var(--fs-h3); }
.prose h3 { margin-top: 1rem; color: var(--text); font-size: var(--fs-h4); }
.prose a { color: var(--leaf-2); }

/* Engagements (à propos) */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.value { padding: 2.1rem 2rem 2.3rem 0; }
.value + .value { padding-left: 2rem; border-left: 1px solid var(--line); }
.value h3 { font-size: var(--fs-h3); line-height: 1.1; }
.value p { margin-top: 0.85rem; color: var(--text-2); }
@media (max-width: 960px) {
  .values { grid-template-columns: 1fr 1fr; }
  .value:nth-child(3) { padding-left: 0; border-left: 0; }
  .value { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .value + .value { padding-left: 0; border-left: 0; }
}
/* Variante à trois colonnes (accueil : matériel électrique) : une seule colonne sous 960 px */
.values--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .values--3 { grid-template-columns: 1fr; }
  .values--3 .value + .value { padding-left: 0; border-left: 0; }
}

/* 14. Questions fréquentes ---------------------------------------------------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.faq-wrap__aside { position: sticky; top: 7rem; display: grid; gap: 1.3rem; justify-items: start; }
.faq-wrap__aside > p { color: var(--text-2); max-width: 40ch; }
.faq-call {
  display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1.2rem; align-items: center; margin-top: 1rem;
  padding: 1.3rem 1.5rem 1.3rem 1.3rem; border-radius: var(--radius); background: rgb(11 18 10 / 0.28); border: 1px solid var(--line);
}
.faq-call .seal { grid-row: span 2; }
.faq-call p { color: var(--text-2); font-size: 0.9rem; line-height: 1.5; }
.faq-call a { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.01em; line-height: 1.2; text-decoration: none; }
.faq-call a:hover { text-decoration: underline; }
.faq { display: grid; gap: 0.7rem; }
.faq details {
  border-radius: var(--radius); background: rgb(11 18 10 / 0.22); border: 1px solid var(--line);
  transition: background-color 300ms ease, border-color 300ms ease;
}
.faq details[open] { background: rgb(11 18 10 / 0.4); border-color: var(--line-strong); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.4rem;
  padding: 1.25rem 1.25rem 1.25rem 1.6rem; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--cream) center / 0.95rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334d2b' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform 450ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .faq details:not([open]) summary:hover { background: rgb(238 234 224 / 0.04); border-radius: var(--radius); } }
.faq__body { padding: 0 1.6rem 1.5rem; max-width: 64ch; display: grid; gap: 0.8rem; color: var(--text-2); }
/* Ouverture animée là où le navigateur sait animer jusqu'à « auto » */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height 500ms var(--ease-out), content-visibility 500ms allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}
.faq-wrap + .deco-saw, .section--forest .deco-saw { right: -6rem; bottom: -3rem; }
@media (max-width: 960px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap__aside { position: static; }
}

/* 15. Avis ------------------------------------------------------------------ */
.reviews { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.score { grid-column: 1 / span 4; display: grid; gap: 1.1rem; justify-items: start; }
.score__value { font-family: var(--display); font-weight: 800; font-size: clamp(5.5rem, 3rem + 8vw, 9rem); line-height: 0.85; letter-spacing: -0.03em; }
.score .stars svg { width: 1.2rem; height: 1.2rem; }
.score__label { color: var(--text-2); max-width: 26ch; }
.reviews > :last-child { grid-column: 6 / span 7; }
.quotes { position: relative; }
.quotes__track { display: grid; min-height: 16rem; }
.quote { grid-area: 1 / 1; }
.quote blockquote p { font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 1rem + 0.85vw, 1.65rem); line-height: 1.45; letter-spacing: -0.005em; }
.quote blockquote p::before { content: "«\00a0"; color: var(--leaf-2); }
.quote blockquote p::after { content: "\00a0»"; color: var(--leaf-2); }
.quote figcaption { margin-top: 1.8rem; display: flex; gap: 1rem; align-items: baseline; }
.review__name { font-family: var(--display); font-weight: 600; letter-spacing: 0.02em; }
.review__src { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.quote.is-entering { animation: quote-in 900ms var(--ease-out) both; }
@keyframes quote-in { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.quotes__nav { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.6rem; }
.quotes__progress { display: flex; gap: 0.4rem; flex: 1; max-width: 16rem; }
.quotes__progress span { flex: 1; height: 2px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.quotes__progress i { display: block; height: 100%; width: 100%; background: var(--leaf-2); transform: scaleX(0); transform-origin: left; }
.quotes__progress span.is-done i { transform: scaleX(1); }
.quotes__progress span.is-active i { animation: progress var(--slide-duration, 7s) linear forwards; }
.quotes.is-paused .quotes__progress span.is-active i { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.quotes__count { font-family: var(--display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 3.2rem; }
.quotes__count b { color: var(--text); font-weight: 600; }
@media (max-width: 960px) { .score, .reviews > :last-child { grid-column: 1 / -1; } }

/* Défilement continu d'avis courts */
.marquee {
  display: grid; gap: 0.9rem; margin-top: clamp(4rem, 7vw, 6.5rem); overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__inner { display: flex; gap: 0.9rem; width: max-content; }
.marquee__clone { display: flex; gap: 0.9rem; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__row .marquee__inner { animation: marquee 180s linear infinite; }
  .marquee__row[data-dir="right"] .marquee__inner { animation-direction: reverse; animation-duration: 100s; }
  .marquee:hover .marquee__inner, .marquee:focus-within .marquee__inner { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask: none; mask: none; }
  .marquee__row { overflow-x: auto; }
  .marquee__clone { display: none; }
}
@keyframes marquee { to { transform: translateX(calc(-50% - 0.45rem)); } }
.review--chip {
  width: clamp(17rem, 25vw, 22rem); padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgb(238 234 224 / 0.03); display: flex; flex-direction: column; gap: 0.9rem;
}
.review--chip blockquote p { font-size: 0.93rem; line-height: 1.6; color: var(--text-2); }
.review--chip figcaption, .review--card figcaption { margin-top: auto; display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-small); }

/* Cartes d'avis (pages intérieures) */
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.avis-mention { margin-top: 1rem; max-width: 60ch; color: var(--text-3); font-size: var(--fs-small); line-height: 1.5; }
.avis-mention a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.score .avis-mention { margin-top: 0; }
.review--card {
  display: flex; flex-direction: column; gap: 1.1rem; height: 100%; padding: clamp(1.5rem, 2.4vw, 2.2rem);
  border-radius: var(--radius); background: rgb(238 234 224 / 0.04); border: 1px solid var(--line);
}
.review--card blockquote p { font-family: var(--display); font-weight: 500; font-size: 1.12rem; line-height: 1.5; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }

/* 16. Galeries & visionneuse --------------------------------------------- */
.mosaic {
  display: grid; gap: clamp(0.5rem, 0.8vw, 0.8rem);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(4, clamp(8.5rem, 13vw, 13rem));
  grid-template-areas:
    "a a a a a b b b b c c c"
    "a a a a a b b b b c c c"
    "a a a a a d d d e e e e"
    "f f f f f d d d e e e e";
}
.mosaic > * { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--deep-2); }
.mosaic .pic, .mosaic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.mosaic .m-a { grid-area: a; } .mosaic .m-b { grid-area: b; } .mosaic .m-c { grid-area: c; }
.mosaic .m-d { grid-area: d; } .mosaic .m-e { grid-area: e; } .mosaic .m-f { grid-area: f; }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, 10.5rem); grid-template-areas: "a a" "a a" "b c" "b c" "d e"; }
  .mosaic .m-f { display: none; }
}
.zoomable { display: block; position: relative; cursor: zoom-in; border: 0; padding: 0; background: none; width: 100%; height: 100%; }
.zoomable .pic img { transition: transform 1400ms var(--ease-slow); }
@media (hover: hover) and (pointer: fine) { .zoomable:hover .pic img { transform: scale(1.04); } }

.gallery { columns: 3 18rem; column-gap: clamp(0.5rem, 0.8vw, 0.8rem); }
.gallery__item { break-inside: avoid; margin-bottom: clamp(0.5rem, 0.8vw, 0.8rem); border-radius: var(--radius-sm); overflow: hidden; background: var(--deep-2); }
.gallery__item .pic { border-radius: 0; }
.gallery__item .pic img { height: auto; }
/* Sur téléphone, deux colonnes : la galerie reste parcourable, la visionneuse agrandit */
@media (max-width: 700px) { .gallery { columns: 2; } }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.4rem; }
.filter {
  padding: 0.6rem 1.15rem; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--text-2);
  font-family: var(--display); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease;
}
.filter[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--forest); }
.filter:hover { border-color: var(--cream); color: var(--text); }
.filter[aria-pressed="true"]:hover { color: var(--forest); }
/* Sur téléphone, les filtres tiennent sur une ligne qui défile au doigt, d'un bord à l'autre de l'écran */
@media (max-width: 700px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; white-space: nowrap; }
}

.reels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.7rem; }
.reels .reel-frame { width: 100%; border-radius: var(--radius-sm); }
@media (max-width: 1100px) { .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; } }

/* Étiquette posée sur une photo (« Avant », « Après ») */
.photo-tag {
  position: absolute; left: 0.9rem; top: 0.9rem; z-index: 2; padding: 0.35rem 0.8rem; border-radius: 999px;
  background: rgb(11 18 10 / 0.62); color: var(--text); pointer-events: none;
  font-family: var(--display); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5;
}
.photo-tag--end { left: auto; right: 0.9rem; }

/* Comparaison avant / après : deux photos au même cadrage, « avant » découpée à gauche du curseur.
   --pos (0 % à 100 %) est la position du curseur, posée par le JS ; sans JS elle reste à 50 %. */
.ba { --pos: 50%; display: grid; gap: 0.9rem; align-content: start; }
.ba__frame {
  position: relative; isolation: isolate; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--night);
  cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.ba__frame .pic { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.ba__frame img { pointer-events: none; -webkit-user-drag: none; }
.ba__layer { position: absolute; inset: 0; }
.ba__layer--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__layer--after { clip-path: inset(0 0 0 var(--pos)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--cream); box-shadow: 0 0 0 1px rgb(11 18 10 / 0.18); pointer-events: none; }
.ba__knob {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--cream); color: var(--forest); box-shadow: 0 6px 24px rgb(11 18 10 / 0.45); transition: scale 250ms var(--ease-out);
}
.ba__knob svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ba.is-dragging .ba__knob { scale: 0.92; }
/* Champ invisible : il sert le clavier (flèches) et les lecteurs d'écran, la souris et le doigt passent par le cadre */
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.ba__frame:has(.ba__range:focus-visible) .ba__knob { outline: 2px solid var(--leaf-2); outline-offset: 4px; }
.ba__caption { color: var(--text-2); font-size: var(--fs-small); line-height: 1.5; }
/* Va-et-vient d'invitation à l'arrivée à l'écran */
.ba.is-hinting .ba__layer { transition: clip-path 800ms var(--ease-in-out); }
.ba.is-hinting .ba__handle { transition: left 800ms var(--ease-in-out); }
@media (hover: hover) and (pointer: fine) { .ba__frame:hover .ba__knob { scale: 1.06; } .ba.is-dragging .ba__frame:hover .ba__knob { scale: 0.92; } }

/* Rangée de comparaisons : trois colonnes, la première pouvant porter le texte */
.ba-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.ba-grid__text { align-self: center; display: grid; gap: 1.6rem; justify-items: start; padding-right: clamp(0rem, 2.5vw, 3rem); }
.ba-grid__text .lead { color: var(--text-2); }
.ba-grid--solo .ba-grid__text { grid-column: span 2; }
@media (max-width: 960px) {
  .ba-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ba-grid__text { grid-column: 1 / -1; padding-right: 0; margin-bottom: 1rem; }
  .ba-grid--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ba-grid--solo .ba-grid__text { grid-column: auto; margin-bottom: 0; }
}
@media (max-width: 700px) {
  .ba-grid, .ba-grid--trio { grid-template-columns: 1fr; gap: 2.2rem; }
  .ba-grid--solo .ba-grid__text { margin-bottom: 0.4rem; }
}

/* Paire de photos côte à côte (avant / après sans curseur, les prises de vue étant différentes) */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.5rem, 0.8vw, 0.8rem); }
.pair__item { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--deep-2); }
.pair .pair__item .pic { aspect-ratio: 3 / 4; border-radius: 0; }
.split--media-wide .split__text { grid-column: 1 / span 5; }
.split--media-wide .split__media { grid-column: 7 / span 6; }
@media (max-width: 960px) { .split--media-wide .split__text, .split--media-wide .split__media { grid-column: 1 / -1; } }

/* Chantier raconté en photos : une étape par colonne */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); counter-reset: phase; }
.phase { counter-increment: phase; display: grid; gap: 1.1rem; align-content: start; }
.phase__media { border-radius: var(--radius); overflow: hidden; background: var(--deep-2); }
.phase__media .pic { aspect-ratio: 3 / 4; border-radius: 0; }
.phase__text { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: baseline; }
.phase__text::before { content: counter(phase, decimal-leading-zero); grid-row: span 2; font-family: var(--display); font-weight: 700; font-size: var(--fs-h3); line-height: 1; color: var(--leaf-2); }
.phase__text h3 { font-size: var(--fs-h4); }
.phase__text p { margin-top: 0.3rem; color: var(--text-2); }
@media (max-width: 760px) {
  .phases { grid-template-columns: 1fr; gap: 2.4rem; }
  .phase__media .pic { aspect-ratio: 4 / 3.4; }
}

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(8 13 7 / 0.97); color: var(--text);
}
.lightbox::backdrop { background: rgb(8 13 7 / 0.7); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lb-in 300ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 4.5rem 4.5rem 1rem; min-height: 0; }
.lightbox__stage img { max-width: min(100%, calc(100vw - 9rem)); max-height: calc(100dvh - 9.5rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem var(--gutter) max(1.2rem, env(safe-area-inset-bottom)); }
.lightbox__caption { color: var(--text-3); font-size: var(--fs-small); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
@media (max-width: 640px) {
  .lightbox__stage { padding: 4rem 0.5rem 0.5rem; }
  .lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 12rem); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: -3.8rem; translate: none; }
}

/* 17. Zone d'intervention : vraie carte de France + loupe sur le 78 et le 95 -- */
.zone { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: center; }
.zone__text { grid-column: 1 / span 5; display: grid; gap: 1.6rem; }
.zone__facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 0.4rem; border-top: 1px solid var(--line-strong); }
.zone__facts div { padding: 1.2rem 1.2rem 0 0; }
.zone__facts div + div { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.zone__facts dt { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.1; letter-spacing: -0.01em; }
.zone__facts dd { margin: 0.35rem 0 0; color: var(--text-2); font-size: 0.9rem; line-height: 1.5; }
.zone__more summary {
  display: inline-flex; align-items: center; gap: 0.7rem; min-height: 2.75rem; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 250ms ease;
}
.zone__more summary::-webkit-details-marker { display: none; }
.zone__more summary::after { content: "+"; color: var(--leaf-2); font-size: 1.2rem; line-height: 1; transition: transform 400ms var(--ease-out); }
.zone__more[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .zone__more summary:hover { color: var(--leaf-2); } }
.zone__towns { display: grid; gap: 1.3rem; margin-top: 0.9rem; }
.zone__dept { margin-bottom: 0.65rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.zone__towns .tags li { font-size: 0.76rem; padding: 0.25rem 0.7rem; }
.zone-map { grid-column: 7 / span 6; margin: 0; }
.zone-map__frame { position: relative; }
.zm-france { width: 100%; height: auto; overflow: visible; }
.zm-land { fill: rgb(238 234 224 / 0.045); stroke: rgb(238 234 224 / 0.2); stroke-width: 0.6; stroke-linejoin: round; }
.zm-idf { fill: rgb(162 194 90 / 0.28); stroke: rgb(162 194 90 / 0.55); stroke-width: 0.6; stroke-linejoin: round; }
.zm-core { fill: var(--leaf-2); stroke: var(--deep); stroke-width: 0.6; stroke-linejoin: round; }
.zm-home { fill: var(--cream); stroke: var(--deep); stroke-width: 1.5; }
.zm-link { fill: none; stroke: var(--cream); stroke-width: 0.9; stroke-dasharray: 2 3; opacity: 0.75; }
/* Ondes : de Conflans jusqu'aux limites du pays */
.zm-waves circle { fill: none; stroke: var(--leaf-2); stroke-width: 1.2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; opacity: 0.22; }
.zm-waves circle:nth-child(1) { transform: scale(0.28); }
.zm-waves circle:nth-child(2) { transform: scale(0.58); }
.zm-waves circle:nth-child(3) { transform: scale(0.9); }
@media (prefers-reduced-motion: no-preference) {
  .zm-waves circle { opacity: 0; animation: wave 7.5s var(--ease-out) infinite; }
  .zm-waves circle:nth-child(2) { animation-delay: 2.5s; }
  .zm-waves circle:nth-child(3) { animation-delay: 5s; }
}
@keyframes wave { 0% { transform: scale(0.02); opacity: 0.8; } 100% { transform: scale(1); opacity: 0; } }
/* Loupe : posée sur l'Atlantique, en bas à gauche de la carte */
.zm-loupe { position: absolute; left: var(--loupe-left); bottom: var(--loupe-bottom); width: var(--loupe-size); height: auto; filter: drop-shadow(0 8px 14px rgb(0 0 0 / 0.45)); }
.zm-lbg { fill: var(--deep-2); }
.zm-lring { fill: none; stroke: var(--cream); stroke-width: 1.5; }
.zm-town { fill: var(--cream); opacity: 0.9; }
.zm-paris { fill: var(--deep); stroke: var(--cream); stroke-width: 1.4; }
.zm-home-ring { fill: none; stroke: var(--cream); stroke-width: 1.2; }
.zm-city, .zm-home-label { font-family: var(--display); font-weight: 700; font-size: 14px; fill: var(--cream); paint-order: stroke; stroke: var(--deep-2); stroke-width: 3px; stroke-linejoin: round; }
.zm-dept { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--night); text-anchor: middle; }
.zone-map__legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem 1.6rem; margin-top: 1.6rem; color: var(--text-2); font-size: 0.82rem; }
.zm-key { display: inline-block; width: 0.8rem; height: 0.8rem; margin-right: 0.55rem; vertical-align: -1px; border-radius: 3px; }
.zm-key--core { background: var(--leaf-2); }
.zm-key--wave { border: 1.5px solid var(--leaf-2); border-radius: 50%; }
@media (max-width: 960px) {
  .zone__text, .zone-map { grid-column: 1 / -1; }
  .zone-map { margin-top: 2rem; }
  .zone-map__frame { max-width: 36rem; margin-inline: auto; }
  .zone-map__legend { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .zone__facts { grid-template-columns: 1fr; }
  .zone__facts div + div { padding-left: 0; border-left: 0; }
  /* Sur téléphone, la loupe passe sous la carte, en grand, et le trait de liaison disparaît */
  .zm-loupe { position: relative; left: auto; bottom: auto; display: block; width: 78%; margin: -0.5rem auto 0; }
  .zm-france line.zm-link { display: none; }
}

/* 18. Contact & formulaire ------------------------------------------------ */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.contact__info { grid-column: 1 / span 5; display: grid; gap: 2.1rem; position: sticky; top: 7rem; }
.contact > :last-child { grid-column: 7 / span 6; }
.contact__title { font-size: var(--fs-h2); }
.contact__list { display: grid; border-top: 1px solid var(--line); }
.contact__list li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: center; padding-block: 1.05rem; border-bottom: 1px solid var(--line); }
.contact__list .ic { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--leaf-2); }
.contact__list svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--leaf-2); }
.contact__list small { display: block; color: var(--text-3); font-size: 0.8rem; line-height: 1.5; }
.contact__big { font-family: var(--display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.1; }
@media (max-width: 960px) {
  .contact__info, .contact > :last-child { grid-column: 1 / -1; }
  .contact__info { position: static; }
}

/* Formulaire : champs soulignés dans un panneau arrondi */
.form-shell { border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--deep-2); }
.devis, .devis-state { padding: clamp(1.5rem, 3.5vw, 3rem); }
.devis { display: grid; gap: 1.8rem; }
.devis__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 2rem; }
@media (max-width: 600px) { .devis__grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label:not([class]), .field > legend, .field__label {
  padding: 0; color: var(--text-3); font-family: var(--display); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.field__opt { letter-spacing: 0.04em; text-transform: none; font-weight: 500; color: var(--text-3); }
.field input:not([type="checkbox"]):not([type="file"]), .field textarea {
  width: 100%; min-height: 3rem; padding: 0.6rem 0 0.7rem;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; color: var(--text); font-size: 1.02rem; line-height: 1.5;
  transition: border-color 250ms ease, box-shadow 250ms ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder, .field textarea::placeholder { color: #7f8b76; opacity: 1; }
.field input:hover, .field textarea:hover { border-bottom-color: var(--text-3); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-bottom-color: var(--leaf-2); box-shadow: 0 1px 0 var(--leaf-2); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 100px var(--deep-2) inset; }
.field__error { display: none; color: #e9a283; font-size: 0.86rem; line-height: 1.45; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #e9a283; }
.field.is-invalid .field__error { display: block; }
.field.is-valid input:not([type="checkbox"]) { border-bottom-color: rgb(162 194 90 / 0.7); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0.5rem 1.05rem;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-2);
  font-size: 0.86rem; font-weight: 500; transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, transform 160ms var(--ease-out);
  user-select: none;
}
.chip input:checked + span { background: var(--cream); border-color: var(--cream); color: var(--forest); font-weight: 600; }
.chip input:checked + span::before {
  content: ""; width: 0.85rem; height: 0.85rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chip--urgent input:checked + span { background: var(--ochre-2); border-color: var(--ochre-2); color: var(--night); }
.chip input:focus-visible + span { outline: 2px solid var(--leaf-2); outline-offset: 3px; }
.chip input:active + span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover span { border-color: var(--text-3); color: var(--text); } }

.dropzone {
  position: relative; display: grid; justify-items: center; gap: 0.35rem; text-align: center; margin-top: 0.5rem;
  padding: 1.6rem 1rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color 250ms ease, background-color 250ms ease;
}
.dropzone svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--leaf-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dropzone__text { font-size: 0.95rem; }
.dropzone__text b { font-weight: 600; color: var(--text); }
.dropzone__hint { font-size: 0.82rem; color: var(--text-3); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.is-over, .dropzone:hover { border-color: var(--leaf-2); background: rgb(162 194 90 / 0.08); }
.dropzone:focus-within { outline: 2px solid var(--leaf-2); outline-offset: 3px; }
.dropzone__list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.dropzone__list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0.4rem 0.3rem 0.3rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; color: var(--text-2); }
.dropzone__list img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
.dropzone__list button { border: 1px solid var(--line-strong); background: transparent; color: var(--text); width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; }
.dropzone__list button svg { width: 0.85rem; height: 0.85rem; transform: rotate(45deg); fill: none; stroke: currentColor; stroke-width: 1.8; }

.field .consent { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; cursor: pointer; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 0.9rem; font-weight: 400; color: var(--text-2); line-height: 1.55; }
.consent input { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--leaf); }
.consent a { color: var(--leaf-2); }
.devis__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; padding-top: 0.6rem; }
.devis__note { font-size: 0.84rem; color: var(--text-3); max-width: 30ch; line-height: 1.55; }
.devis button[type="submit"][aria-busy="true"] svg { animation: spin 900ms linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

.devis-state { display: grid; gap: 1.1rem; justify-items: start; }
.devis-state:focus { outline: none; }
.devis-state h3 { font-family: var(--display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.02em; }
.devis-state p { color: var(--text-2); max-width: 50ch; }
.devis-state__icon { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--leaf-2); color: var(--night); }
.devis-state__icon svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 800ms 200ms var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.devis-state__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
.devis-state--ok { animation: quote-in 700ms var(--ease-out) both; }

.hours { display: grid; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--text-2); }
.hours dd { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 19. Pied de page ------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: var(--night); border-top: 1px solid var(--line); padding-top: clamp(4.5rem, 9vw, 7.5rem); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 3rem; }
.site-footer__brand { display: grid; gap: 1.4rem; justify-items: start; align-content: start; }
.site-footer__brand img { width: 5rem; height: 5rem; }
.site-footer__pitch { color: var(--text-2); max-width: 38ch; font-size: 0.94rem; }
.site-footer__rating { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; }
.site-footer__rating > span:last-child { display: grid; gap: 0.2rem; color: var(--text-3); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer__score { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.site-footer__title { margin-bottom: 1.3rem; font-family: var(--display); font-weight: 600; line-height: 1.4; color: var(--text-3); font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; }
.site-footer__col ul { display: grid; gap: 0.7rem; list-style: none; padding: 0; }
.site-footer__col a { text-decoration: none; color: var(--text-2); transition: color 250ms ease; }
.site-footer__col a:hover { color: var(--text); }
.site-footer__contact li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.8rem; align-items: start; font-size: 0.94rem; }
.site-footer__contact svg { width: 1rem; height: 1rem; margin-top: 0.35rem; fill: none; stroke: var(--leaf-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__urgent { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.8rem; margin-top: 1.6rem; font-size: 0.88rem; color: var(--text-3); }
.site-footer__urgent svg { width: 1rem; height: 1rem; margin-top: 0.3rem; fill: none; stroke: var(--ochre-2); stroke-width: 1.6; stroke-linejoin: round; }
.site-footer .hours div { font-size: 0.92rem; }
/* Logotype de la charte en très grand, purement décoratif (texte porté par un pseudo-élément) */
.site-footer__word {
  margin-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: 0.1em; font-family: var(--display); font-weight: 800; line-height: 0.9; letter-spacing: 0.04em;
  font-size: clamp(2.4rem, 10.2vw, 11rem); text-transform: uppercase; white-space: nowrap; color: rgb(238 234 224 / 0.07);
  text-align: center; user-select: none;
}
.site-footer__word::before { content: attr(data-word); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; padding-block: 1.6rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-3); }
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { color: var(--text); }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } .site-footer__bottom { padding-bottom: 6rem; } }

/* 20. Altimètre (desktop) & appel rapide (mobile) ------------------------ */
.altimeter {
  position: fixed; z-index: var(--z-altimeter); right: 0.4rem; top: 23vh; bottom: 25vh; width: 4.5rem;
  pointer-events: none; opacity: 0; transition: opacity 700ms ease;
}
.altimeter.is-visible { opacity: 1; }
/* L'arbre : dessiné par le JS en pixels réels (tronc à 20 px du bord droit du cadre) */
.altimeter__tree { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.t-base, .t-sap { fill: currentColor; }
.t-base { color: rgb(238 234 224 / 0.2); }
.t-sap { color: var(--ochre-2); }
.t-ground { fill: none; stroke: rgb(238 234 224 / 0.16); stroke-width: 1; stroke-linecap: round; }
/* Feuilles : petites et pâles tant que la sève n'est pas passée, puis elles poussent et verdissent */
.t-leaf { fill: rgb(238 234 224 / 0.18); transform: scale(0.55); transition: transform 700ms var(--ease-out), fill 700ms ease; }
.t-tuft.is-lit .t-leaf { fill: var(--leaf-2); transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .t-leaf { transition: none; } }
/* Lecture : uniquement l'altitude, reliée au tronc par un trait */
.altimeter__readout {
  position: absolute; right: calc(20px + 0.8rem); top: 0; translate: 0 -50%; will-change: transform; white-space: nowrap;
  padding: 0.35rem 0.55rem; border-radius: 8px; background: rgb(11 18 10 / 0.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1; color: var(--ochre-2); font-variant-numeric: tabular-nums;
}
.altimeter__readout small { font-size: 0.7em; margin-left: 0.1rem; }
.altimeter__readout::after { content: ""; position: absolute; right: -0.8rem; top: 50%; width: 0.65rem; height: 1px; background: var(--ochre-2); }
@media (max-width: 1180px) { .altimeter { display: none; } }

.call-fab {
  position: fixed; z-index: var(--z-fab); right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 0.6rem; padding: 0.5rem 1.3rem 0.5rem 0.5rem; border-radius: 999px;
  background: var(--cream); color: var(--forest); text-decoration: none;
  font-family: var(--display); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 6px 8px rgb(0 0 0 / 0.3);
  transform: translateY(calc(100% + 2rem)); transition: transform 500ms var(--ease-drawer);
}
.call-fab svg { box-sizing: content-box; width: 1rem; height: 1rem; padding: 0.7rem; border-radius: 50%; background: var(--forest); color: var(--cream); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.call-fab.is-visible { transform: none; }
.call-fab:active { transform: scale(0.96); }
@media (max-width: 760px) { .call-fab { display: inline-flex; } }

/* Grilles à 12 colonnes repliées sur une seule : sans cela, leurs 11 gouttières (352 px) dépassent
   de la largeur utile d'un téléphone et le contenu vient toucher le bord droit de l'écran. */
@media (max-width: 960px) { .split, .zone, .manifesto, .reviews, .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .media-duo { grid-template-columns: minmax(0, 1fr); } }

/* 21. Mouvement ------------------------------------------------------------ */
/* Entrée du héros au chargement (CSS seul : lisible même sans JavaScript) */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .w > span { animation: word-rise 1300ms var(--ease-slow) both; animation-delay: calc(250ms + var(--i, 0) * 90ms); }
  .hero .marker, .page-hero .marker { animation: soft-rise 1200ms var(--ease-slow) 100ms both; }
  .hero__sub, .page-hero__lead { animation: soft-rise 1200ms var(--ease-slow) 750ms both; }
  .hero__ctas { animation: soft-rise 1200ms var(--ease-slow) 900ms both; }
  .hero__strip { animation: soft-rise 1200ms var(--ease-slow) 1100ms both; }
  .page-hero__title { animation: soft-rise 1300ms var(--ease-slow) 250ms both; }
  .breadcrumb { animation: soft-rise 1200ms var(--ease-slow) 650ms both; }
  .hero__media .pic img, .page-hero__media .pic img, .page-hero .bgv__poster img { animation: settle 2400ms var(--ease-slow) both; }
}
@keyframes word-rise { from { transform: translateY(115%); } to { transform: none; } }
@keyframes soft-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* Révélations au défilement : l'état d'attente n'est posé par le JS que sur les éléments
   encore hors écran. La découpe porte sur les enfants (l'élément observé reste détectable). */
[data-reveal].is-pending { opacity: 0; transform: translateY(26px); }
[data-reveal="clip"].is-pending { opacity: 1; transform: none; }
[data-reveal="clip"].is-pending > * { clip-path: inset(100% 0 0 0 round var(--radius)); }
[data-reveal="clip"].is-pending .pic img { transform: scale(1.12); }
[data-reveal="clip"] > * { transition: clip-path 1400ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal="clip"] .pic img { transition: transform 1800ms var(--ease-slow); }
[data-reveal].is-in { transition: opacity 1100ms var(--ease-out), transform 1200ms var(--ease-slow); transition-delay: calc(var(--i, 0) * 90ms); }

.stars.is-pop svg { animation: star-pop 700ms var(--ease-out) both; animation-delay: calc(var(--s, 0) * 90ms); }
@keyframes star-pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  [data-reveal].is-pending, [data-reveal].is-pending > *, [data-reveal].is-pending .pic img { opacity: 1; transform: none; clip-path: none; }
  .hero__video, .lazy-video, .bgv__video, .hover-video { display: none; }
}
