/* ==========================================================================
   Vetter Services — feuille de style unique
   Concept : « la coupe de terrain » — ligne de terrain naturel, couches de sol,
   repères de nivellement (▼) et angles chanfreinés inspirés des engins.
   Sommaire :
   1. Police et variables      7. Accueil : couches (strates)
   2. Base                      8. Accueil : coupe de chantier
   3. Mise en page              9. Sections communes (spot, avis, zone, CTA)
   4. En-tête et navigation    10. Pages intérieures
   5. Boutons et marques       11. Formulaire, galerie, lightbox
   6. Accueil : hero           12. Pied de page, barre mobile, utilitaires
   ========================================================================== */

/* 1. Police et variables ------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1d1a16;            /* noir chaud */
  --ink-2: #2a2622;
  --anthracite: #35312c;
  --sand: #ece6d9;           /* sable */
  --sand-2: #e3daca;
  --paper: #f7f4ee;          /* blanc cassé */
  --yellow: #f4b400;         /* jaune chantier : signature et conversion */
  --amber: #ea8c0c;
  --orange: #d95b16;
  --orange-text: #963c09;    /* orange lisible sur fond clair */
  --earth-1: #d8c7a6;
  --earth-2: #cdb48c;
  --earth-3: #b08a5a;
  --earth-4: #4a3a2a;
  --text: #26221d;
  --muted: #5c5347;
  --line: rgba(38, 34, 29, 0.16);
  --on-dark: #efe9dd;
  --on-dark-muted: #b9af9f;
  --line-dark: rgba(239, 233, 221, 0.16);

  --font: "Archivo", "Arial Narrow", Arial, system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --chamfer: 12px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--sand);
  font-stretch: 100%;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  font-stretch: 70%;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-wrap: balance;
  color: var(--ink);
}
h2 { font-size: clamp(2rem, 1.25rem + 2.9vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.05; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }
::selection { background: var(--yellow); color: var(--ink); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }

/* 3. Mise en page -------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.on-dark { background: var(--ink); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--on-dark); }
.bg-paper { background: var(--paper); }
.bg-sand-2 { background: var(--sand-2); }
.lead { font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem); line-height: 1.55; max-width: 46ch; }
.prose { max-width: 66ch; }
.prose p, .prose li { color: var(--text); }
.on-dark .prose p { color: var(--on-dark); }
.muted { color: var(--muted); }
.on-dark .muted { color: var(--on-dark-muted); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 60rem; }
.section-head p { margin: 0; max-width: 58ch; }
.topo { position: relative; isolation: isolate; }
.topo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/brand/topo-clair.svg") center / cover no-repeat;
}
.on-dark.topo::before, .topo.on-dark::before { background-image: url("../img/brand/topo-sombre.svg"); }

/* 4. En-tête et navigation ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(236, 230, 217, 0.92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(247, 244, 238, 0.95); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-name { display: grid; line-height: 0.86; text-transform: uppercase; }
.brand-name b { font-weight: 850; font-stretch: 66%; font-size: 1.55rem; letter-spacing: 0.01em; }
.brand-name span { font-weight: 600; font-stretch: 112%; font-size: 0.62rem; letter-spacing: 0.34em; margin-top: 0.18rem; }

.nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 0.25rem; align-items: center; }
.nav-list a {
  display: block; padding: 0.55rem 0.7rem; text-decoration: none;
  font-weight: 600; font-stretch: 88%; font-size: 1rem; color: var(--ink); position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.3rem; height: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.header-call { flex-shrink: 0; }
.nav-toggle { display: none; }

.btn-label-short { display: none; }
@media (max-width: 1240px) {
  .header-call .btn-label-long { display: none; }
  .header-call .btn-label-short { display: inline; }
}
@media (min-width: 1101px) { .nav-home { display: none; } }
@media (max-width: 1100px) {
  :root { --header-h: 64px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin-left: auto; min-height: 44px; padding: 0 0.9rem;
    background: transparent; border: 2px solid var(--ink); border-radius: 3px;
    font-weight: 700; font-stretch: 85%;
  }
  .nav-toggle-bars { width: 18px; height: 12px; position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: transform 0.25s, opacity 0.2s;
  }
  .nav-toggle-bars::before { top: 0; }
  .nav-toggle-bars span { top: 5px; }
  .nav-toggle-bars::after { bottom: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { padding: 1rem 0; font-size: 1.35rem; font-stretch: 75%; font-weight: 750; border-bottom: 1px solid var(--line); }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--orange-text); }
  .nav-extra { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
  .site-header .header-call { order: 1; margin-left: auto; }
  .nav-toggle { order: 2; margin-left: 0.6rem; }
}
@media (max-width: 760px) {
  .site-header .header-call { display: none; }
  .nav-toggle { margin-left: auto; }
}
@media (min-width: 1101px) { .nav-extra { display: none; } }

/* 5. Boutons et marques -------------------------------------------------- */
.btn {
  --btn-bg: var(--yellow); --btn-fg: var(--ink);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.8rem 1.5rem 0.8rem 1.35rem;
  color: var(--btn-fg); background: transparent; border: 0;
  font-weight: 750; font-stretch: 88%; font-size: 1.05rem; line-height: 1.15;
  text-decoration: none; text-align: center;
  transition: transform 0.2s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-bg);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%);
  transition: background-color 0.2s, filter 0.2s;
}
.btn:hover { text-decoration: none; }
.btn:hover::before { filter: brightness(1.06) saturate(1.05); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.btn-dark { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn-dark:hover::before { filter: none; background: var(--anthracite); }
.btn-ghost {
  min-height: 52px; padding: 0.7rem 1.3rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 2px solid currentColor; border-radius: 3px; background: transparent;
  font-weight: 700; font-stretch: 88%; font-size: 1.05rem; text-decoration: none; line-height: 1.15;
  transition: background-color 0.2s, color 0.2s;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-dark .btn-ghost:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn-ghost svg { width: 1.15em; height: 1.15em; }
.btn-small { min-height: 44px; padding: 0.55rem 1.1rem 0.55rem 1rem; font-size: 0.98rem; --chamfer: 9px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

.text-link {
  font-weight: 700; font-stretch: 90%; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
.text-link:hover { text-decoration-color: var(--ink); }
.on-dark .text-link { color: var(--on-dark); text-decoration-color: var(--yellow); }

/* Repère de nivellement ▼ : puce signature */
.lvl { list-style: none; display: grid; gap: 0.7rem; }
.lvl li { position: relative; padding-left: 1.6rem; }
.lvl li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 0.85rem; height: 0.7rem; background: var(--amber);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.lvl li::after {
  content: ""; position: absolute; left: -0.15rem; top: calc(0.45em + 0.7rem); width: 1.15rem; height: 2px; background: currentColor; opacity: 0.35;
}

/* Étoiles */
.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.stars svg { width: 15px; height: 15px; }

/* Cadres photo chanfreinés + solution de repli si la photo manque */
.ph {
  display: block; position: relative; overflow: hidden; margin: 0;
  background: var(--sand-2) url("../img/brand/topo-clair.svg") center / cover no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s, transform 0.6s var(--ease); }
.ph > img.is-missing { opacity: 0; }
.ph.is-missing::after {
  content: "Photo Vetter Services"; position: absolute; left: 1rem; bottom: 1rem;
  font-size: 0.8rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em;
}
.r-land { aspect-ratio: 4 / 3; }
.r-wide { aspect-ratio: 16 / 10; }
.r-sq { aspect-ratio: 1 / 1; }
.r-port { aspect-ratio: 4 / 5; }
.r-tall { aspect-ratio: 3 / 4; }
.on-dark .ph { background-color: var(--ink-2); background-image: url("../img/brand/topo-sombre.svg"); }
.on-dark .ph.is-missing::after { color: var(--on-dark-muted); }

/* 6. Accueil : hero ------------------------------------------------------ */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: var(--ground-y, 58%); z-index: -1;
  background: url("../img/brand/topo-clair.svg") 30% 40% / 1400px auto no-repeat;
}
.hero-top { padding-top: clamp(2.2rem, 5vw, 4.5rem); padding-bottom: clamp(1.4rem, 2.6vw, 2.2rem); }
.hero h1 { font-size: clamp(2.65rem, 1.1rem + 6.6vw, 7.1rem); font-stretch: 64%; font-weight: 850; line-height: 0.9; max-width: 14ch; letter-spacing: -0.01em; }
.hero h1 .h1-where {
  display: block; margin-top: 0.9rem; max-width: none;
  font-size: clamp(1.15rem, 0.9rem + 1.4vw, 2rem); font-stretch: 96%; font-weight: 500; line-height: 1.15; letter-spacing: 0; color: var(--muted);
}
.ground {
  position: relative; height: 3px; background: var(--ink);
  transform-origin: left; animation: ground-draw 0.9s var(--ease) both;
}
.ground::after {
  content: ""; position: absolute; right: min(38%, 30rem); top: -15px; width: 16px; height: 13px;
  background: var(--amber); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.hero-below { position: relative; background: var(--sand-2); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.hero-copy { padding-top: clamp(1.6rem, 3vw, 2.6rem); display: grid; gap: 1.6rem; align-content: start; }
.hero-copy .lead { margin: 0; color: var(--text); }
.hero-proof { margin-top: 0.4rem; }
.hero-proof .lvl { gap: 0.85rem; }
.hero-proof li { font-weight: 600; font-stretch: 92%; }
.hero-reviews { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.hero-reviews:hover span { text-decoration: underline; }

/* La photo « en fouille » : trapèze sous la ligne de terrain + mire graduée */
.hero-dig { position: relative; margin-right: calc(-1 * var(--gutter)); padding-right: 38px; }
.dig-mask {
  position: relative; aspect-ratio: 5 / 5.2; overflow: hidden;
  background: var(--earth-4) url("../img/brand/topo-sombre.svg") center / cover;
  clip-path: polygon(0 0, 100% 0, 100% 16%, 92% 16%, 84% 100%, 10% 100%, 0 22%);
  animation: dig-open 1.1s var(--ease) 0.25s both;
}
.dig-mask img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dig-mask img.is-missing { opacity: 0; }
.dig-caption {
  position: absolute; left: 12%; bottom: 1rem; right: 18%;
  color: var(--on-dark); font-size: 0.85rem; font-weight: 600; opacity: 0; transition: opacity 0.3s;
}
.dig-mask.is-missing .dig-caption { opacity: 0.8; }
.mire {
  position: absolute; top: 0; right: 0; width: 22px; height: 100%;
  background:
    repeating-linear-gradient(to bottom, var(--ink) 0 2px, transparent 2px 12px) left / 8px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--yellow) 0 48px, var(--ink) 48px 96px) right / 12px 100% no-repeat;
  transform-origin: top; animation: mire-drop 0.9s var(--ease) 0.5s both;
}
@keyframes ground-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dig-open {
  from { clip-path: polygon(0 0, 100% 0, 100% 0, 92% 0, 84% 0, 10% 0, 0 0); }
  to { clip-path: polygon(0 0, 100% 0, 100% 16%, 92% 16%, 84% 100%, 10% 100%, 0 22%); }
}
@keyframes mire-drop { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-dig { order: 2; margin-right: 0; padding-right: 30px; }
  .dig-mask { aspect-ratio: 4 / 3; }
  .ground::after { right: 20%; }
}

/* En-tête des pages intérieures */
.page-hero { position: relative; isolation: isolate; padding-top: clamp(2rem, 5vw, 4rem); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/brand/topo-clair.svg") 70% 30% / 1300px auto no-repeat;
}
.page-hero h1 { font-size: clamp(2.3rem, 1.2rem + 4.4vw, 5rem); font-stretch: 66%; font-weight: 850; line-height: 0.93; max-width: 18ch; }
.page-hero .lead { margin-top: 1.3rem; color: var(--text); max-width: 54ch; }
.page-hero .btn-row { margin-top: 1.8rem; }
.page-hero .ground { margin-top: clamp(2rem, 4vw, 3.2rem); }
.page-hero .ground::after { right: 12%; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 1.4rem; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }
.breadcrumb a { color: var(--muted); }

/* 7. Accueil : couches (strates) ----------------------------------------- */
.strata { position: relative; }
.stratum {
  position: relative; display: block; text-decoration: none; color: var(--ink);
  padding-block: clamp(2rem, 4vw, 3rem);
  margin-top: -14px;
  clip-path: polygon(0 14px, 12% 6px, 27% 12px, 44% 3px, 61% 11px, 78% 4px, 90% 10px, 100% 5px, 100% 100%, 0 100%);
}
.stratum:first-child { margin-top: 0; clip-path: none; }
.stratum-1 { background: var(--sand-2); }
.stratum-2 { background: var(--earth-1); }
.stratum-3 { background: var(--earth-2); }
.stratum-4 { background: var(--earth-3); }
.stratum-5 { background: var(--earth-4); color: var(--on-dark); }
.stratum-5 h3, .stratum-5 .stratum-more { color: var(--on-dark); }
.stratum-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto; gap: clamp(1rem, 3vw, 3rem); align-items: center; }
.stratum h3 { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.9rem); font-stretch: 66%; }
.stratum p { margin: 0; max-width: 56ch; }
.stratum .stratum-tags { display: block; margin-top: 0.45rem; font-size: 0.93rem; font-weight: 600; font-stretch: 92%; }
.stratum-more {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 750; font-stretch: 88%; white-space: nowrap;
  padding: 0.6rem 0; border-bottom: 2px solid currentColor;
}
.stratum-more svg { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease); }
.stratum:hover .stratum-more svg, .stratum:focus-visible .stratum-more svg { transform: translateX(4px); }
.stratum:focus-visible { outline-offset: -6px; }
.strata-intro { padding-top: var(--section); padding-bottom: clamp(2rem, 4vw, 3rem); background: var(--sand-2); }
@media (max-width: 860px) {
  .stratum-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .stratum-more { justify-self: start; margin-top: 0.4rem; }
}
/* Dépôt des couches : balayage horizontal, une seule fois (JS n'arme que les blocs hors écran) */
.stratum.will-reveal .stratum-grid { clip-path: inset(0 100% 0 0); }
.stratum.will-reveal.is-revealed .stratum-grid { clip-path: inset(0 0 0 0); transition: clip-path 0.9s var(--ease); }

/* 8. Accueil : coupe de chantier ---------------------------------------- */
.coupe-section { background: var(--ink); color: var(--on-dark); margin-top: -14px; padding-top: calc(var(--section) + 14px); padding-bottom: var(--section); clip-path: polygon(0 14px, 15% 5px, 33% 12px, 52% 4px, 70% 11px, 86% 3px, 100% 9px, 100% 100%, 0 100%); }
.coupe-section h2 { color: var(--on-dark); max-width: 20ch; }
.coupe-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.coupe-figure { margin: 0; }
.coupe-svg { width: 100%; height: auto; overflow: visible; }
.coupe-svg .lbl { font: 600 15px var(--font); fill: var(--on-dark); letter-spacing: 0.01em; }
.coupe-svg .lbl-dim { fill: var(--on-dark-muted); font-weight: 500; }
.coupe-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.35rem; margin-top: 1.2rem; }
.coupe-steps button {
  width: 100%; min-height: 56px; padding: 0.55rem 0.4rem; text-align: left;
  background: transparent; color: var(--on-dark-muted); border: 0; border-top: 3px solid var(--line-dark);
  display: grid; gap: 0.1rem; transition: color 0.2s, border-color 0.2s;
}
.coupe-steps button .n { font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.coupe-steps button .t { font-size: 1.05rem; font-weight: 750; font-stretch: 80%; line-height: 1.1; }
.coupe-steps button:hover { color: var(--on-dark); }
.coupe-steps button[aria-selected="true"] { color: var(--yellow); border-top-color: var(--yellow); }
.coupe-panel h3 { color: var(--yellow); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-bottom: 0.9rem; }
.coupe-panel p { color: var(--on-dark); }
.coupe-panel .muted { color: var(--on-dark-muted); }
.coupe-panel[hidden] { display: none; }
.coupe-nav { display: flex; gap: 0.8rem; margin-top: 1.4rem; flex-wrap: wrap; }
.coupe-panels { min-height: 15rem; }
/* états de la scène SVG */
.coupe-svg .machine, .coupe-svg .canopy, .coupe-svg .hole, .coupe-svg .mound, .coupe-svg .gravel,
.coupe-svg .pavers, .coupe-svg .laser, .coupe-svg .s-lbl, .coupe-svg .truck-arrow, .coupe-svg .done {
  transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
}
.coupe-svg .hole { transform-origin: 50% 0; transform-box: fill-box; }
.coupe-svg .mound { transform-origin: 50% 100%; transform-box: fill-box; }
.coupe-svg .gravel { transform-origin: 50% 100%; transform-box: fill-box; }
.coupe-svg .s-lbl { opacity: 0; }
.coupe-svg .machine { transform: translateX(0); }
.coupe-svg .arm-dig { opacity: 0; }
.coupe-svg .hole, .coupe-svg .mound, .coupe-svg .gravel { transform: scaleY(0); }
.coupe-svg .pavers, .coupe-svg .laser, .coupe-svg .truck-arrow, .coupe-svg .done { opacity: 0; }
.coupe-svg .pavers { transform: translateY(-24px); }
.coupe-svg .canopy { transform: translateY(-26px); opacity: 0.45; }
.coupe-svg .passage { transition: opacity 0.6s; }
/* 1 accéder */
.coupe[data-step="1"] .s-1 { opacity: 1; }
/* 2 creuser */
.coupe[data-step="2"] .machine, .coupe[data-step="3"] .machine { transform: translateX(215px); }
.coupe[data-step="2"] .canopy, .coupe[data-step="3"] .canopy,
.coupe[data-step="4"] .canopy, .coupe[data-step="5"] .canopy { transform: none; opacity: 1; }
.coupe[data-step="2"] .arm-rest, .coupe[data-step="3"] .arm-rest { opacity: 0; }
.coupe[data-step="2"] .arm-dig, .coupe[data-step="3"] .arm-dig { opacity: 1; }
.coupe[data-step="2"] .hole, .coupe[data-step="3"] .hole, .coupe[data-step="4"] .hole, .coupe[data-step="5"] .hole { transform: scaleY(1); }
.coupe[data-step="2"] .mound { transform: scaleY(1); }
.coupe[data-step="2"] .s-2 { opacity: 1; }
.coupe:not([data-step="1"]) .passage { opacity: 0.35; }
/* 3 évacuer */
.coupe[data-step="3"] .mound { transform: translateX(90px) scaleY(0.15); opacity: 0; }
.coupe[data-step="3"] .truck-arrow, .coupe[data-step="3"] .s-3 { opacity: 1; }
/* 4 préparer */
.coupe[data-step="4"] .machine, .coupe[data-step="5"] .machine { transform: translateX(120px); }
.coupe[data-step="4"] .gravel, .coupe[data-step="5"] .gravel { transform: scaleY(1); }
.coupe[data-step="4"] .laser, .coupe[data-step="4"] .s-4 { opacity: 1; }
/* 5 finaliser */
.coupe[data-step="5"] .pavers { transform: none; opacity: 1; }
.coupe[data-step="5"] .done, .coupe[data-step="5"] .s-5 { opacity: 1; }
.coupe[data-step="5"] .machine { opacity: 0.25; }
@media (max-width: 960px) {
  .coupe-layout { grid-template-columns: 1fr; }
  .coupe-panels { min-height: 0; }
}
@media (max-width: 620px) {
  .coupe-svg .lbl { display: none; }
  .coupe-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.2rem; }
  .coupe-steps button { padding-inline: 0.15rem; }
  .coupe-steps button .t { font-size: 0.86rem; font-stretch: 72%; }
}

/* 9. Sections communes --------------------------------------------------- */
/* Mise en avant mini-pelle */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.spot-media { position: relative; }
.spot-media .ph { clip-path: polygon(0 0, 100% 0, 100% 78%, 86% 100%, 0 100%); }
.spot-note {
  position: absolute; left: clamp(-1rem, -2vw, -0.5rem); bottom: 12%;
  background: var(--yellow); color: var(--ink); padding: 0.8rem 1.1rem; max-width: 15rem;
  font-weight: 750; font-stretch: 84%; line-height: 1.2;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.spot h2 { margin-bottom: 1.2rem; }
.spot .lvl { margin: 1.6rem 0 2rem; }
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin: 1.4rem 0 0.2rem; font-weight: 750; font-stretch: 80%; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); }
.equation .op { color: var(--orange-text); font-weight: 500; }
.equation .res { background: var(--yellow); color: var(--ink); padding: 0.05em 0.45em; }
@media (max-width: 860px) {
  .spot { grid-template-columns: 1fr; }
  .spot-note { left: 0.8rem; bottom: 0.8rem; }
}

/* Travailler avec David */
.david { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.quote-big { margin: 0; }
.quote-big p {
  font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3.2rem); font-weight: 750; font-stretch: 68%; line-height: 1.02;
  color: var(--ink); margin: 0 0 1.2rem; text-wrap: balance;
}
.quote-big p::before { content: "«\00a0"; color: var(--amber); }
.quote-big p::after { content: "\00a0»"; color: var(--amber); }
.quote-big figcaption { font-weight: 600; color: var(--muted); }
.david-text { margin-top: 1.8rem; }
.steps { list-style: none; counter-reset: step; position: relative; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 1.8rem 3.4rem; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 2.3rem; height: 2.3rem;
  display: grid; place-items: center; background: var(--ink); color: var(--yellow);
  font-weight: 800; font-stretch: 80%; font-size: 1.05rem;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.steps li::after { content: ""; position: absolute; left: 1.1rem; top: 2.5rem; bottom: 0.3rem; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.3rem; font-stretch: 78%; margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .david { grid-template-columns: 1fr; } }

/* Aperçu réalisations */
.works { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); align-items: start; }
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.8rem, 2vw, 1.2rem); }
.works-grid figure { margin: 0; }
.works-grid figcaption, .ba-caption { font-size: 0.93rem; font-weight: 600; font-stretch: 92%; margin-top: 0.55rem; color: var(--muted); }
.works-foot { margin-top: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; justify-content: space-between; }
@media (max-width: 860px) { .works { grid-template-columns: 1fr; } }

/* Comparateur avant / après */
.ba { position: relative; overflow: hidden; background: var(--sand-2); user-select: none; -webkit-user-select: none; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba img.is-missing { opacity: 0; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  touch-action: pan-y; -webkit-appearance: none; appearance: none; z-index: 3;
}
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px;
  background: var(--yellow); z-index: 2; pointer-events: none;
}
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1a16' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 24px no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
}
.ba-range:focus-visible ~ .ba-handle::after { outline: 3px solid var(--ink); outline-offset: 2px; }
.ba-range:focus-visible ~ .ba-handle { box-shadow: 0 0 0 3px var(--ink); }
.ba-tag {
  position: absolute; top: 0.9rem; z-index: 2; pointer-events: none;
  background: var(--ink); color: var(--paper); font-size: 0.82rem; font-weight: 700; padding: 0.3rem 0.6rem; letter-spacing: 0.02em;
}
.ba-tag-before { left: 0.9rem; }
.ba-tag-after { right: 0.9rem; background: var(--yellow); color: var(--ink); }

/* Avis */
.reviews { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
.reviews-side { display: grid; gap: clamp(1.2rem, 3vw, 2.4rem); }
.review { margin: 0; padding: clamp(1.4rem, 3vw, 2.2rem) 0 0; border-top: 3px solid var(--ink); }
.review blockquote { margin: 0; }
.review p { margin: 0 0 0.8em; font-size: clamp(1.02rem, 0.97rem + 0.25vw, 1.15rem); }
.review-lead p:first-child { font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.9rem); font-weight: 650; font-stretch: 82%; line-height: 1.22; color: var(--ink); }
.review figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; margin-top: 1rem; font-size: 0.93rem; color: var(--muted); }
.review figcaption strong { color: var(--ink); font-weight: 700; }
.reviews-foot { margin-top: clamp(1.5rem, 3vw, 2.5rem); font-size: 0.95rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; align-items: center; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* Zone d'intervention */
.zone { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.zone-map { width: 100%; max-width: 460px; margin-inline: auto; }
.zone-map .ring { fill: none; stroke: var(--earth-3); stroke-opacity: 0.55; stroke-dasharray: 3 6; }
.zone-map .ring-lbl { font: 600 11px var(--font); fill: var(--muted); }
.zone-map .dot { fill: var(--ink); }
.zone-map .dot-home { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }
.zone-map .town { font: 600 12.5px var(--font); fill: var(--ink); }
.zone-map .town-big { font-size: 16px; font-weight: 800; font-stretch: 75%; }
.zone-map .town-home { font-size: 15px; font-weight: 800; }
.towns { columns: 2; column-gap: 2rem; list-style: none; margin: 1.4rem 0; font-size: 0.97rem; }
.towns li { padding: 0.28rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
@media (min-width: 1100px) { .towns { columns: 3; } }
@media (max-width: 860px) { .zone { grid-template-columns: 1fr; } }

/* Appel final */
.final-cta { position: relative; isolation: isolate; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/brand/topo-sombre.svg") center / cover no-repeat; }
.final-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.final-cta h2 { color: var(--on-dark); max-width: 17ch; }
.final-cta p { color: var(--on-dark-muted); max-width: 48ch; margin: 1.1rem 0 0; }
.big-phone {
  display: inline-block; text-decoration: none; color: var(--yellow);
  font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4.6rem); font-weight: 850; font-stretch: 66%; line-height: 1; letter-spacing: 0.01em; white-space: nowrap;
}
.big-phone:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.final-actions { display: grid; gap: 1.2rem; justify-items: start; }
.final-actions small { color: var(--on-dark-muted); font-size: 0.92rem; }
.final-actions small a { color: inherit; overflow-wrap: anywhere; }
@media (max-width: 860px) { .final-grid { grid-template-columns: 1fr; align-items: start; } }

/* 10. Pages intérieures -------------------------------------------------- */
/* Prestations */
.chapters-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.toc p { font-weight: 700; font-stretch: 85%; margin-bottom: 0.6rem; }
.toc ol { list-style: none; display: grid; gap: 0.1rem; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 0.45rem 0 0.45rem 1rem; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; font-weight: 600; font-stretch: 92%; color: var(--muted); }
.toc a:hover, .toc a.is-active { color: var(--ink); border-left-color: var(--amber); }
.chapter { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 3px solid var(--ink); }
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(1.2rem, 3vw, 2.5rem); align-items: end; margin-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.chapter-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); }
.chapter-head p { margin: 0.9rem 0 0; color: var(--muted); max-width: 52ch; }
.service { padding-block: clamp(1.4rem, 3vw, 2rem); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1rem); }
.service h3 { margin-bottom: 1rem; }
.service-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.service-cols h4 { font-size: 0.95rem; font-weight: 750; font-stretch: 90%; letter-spacing: 0.01em; color: var(--orange-text); margin-bottom: 0.35rem; line-height: 1.3; }
.service-cols p { margin: 0; font-size: 0.99rem; }
.service-link { margin-top: 1rem; }
@media (max-width: 1000px) { .chapters-layout { grid-template-columns: 1fr; } .toc { display: none; } }
@media (max-width: 760px) { .service-cols, .chapter-head { grid-template-columns: 1fr; } }

/* Mini-pelle */
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare caption { text-align: left; font-weight: 700; margin-bottom: 0.8rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 0.95rem 1rem; border-bottom: 1px solid var(--line-dark); }
.compare thead th { font-weight: 800; font-stretch: 78%; font-size: 1.15rem; border-bottom: 3px solid var(--line-dark); }
.compare thead th:last-child { color: var(--yellow); }
.compare tbody th { font-weight: 650; color: var(--on-dark-muted); width: 24%; }
.compare td:last-child { color: var(--on-dark); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .compare { min-width: 620px; }
.gabarit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.gabarit-svg { width: 100%; height: auto; }
.gabarit-svg .lbl { font: 600 14px var(--font); fill: var(--text); }
@media (max-width: 860px) { .gabarit { grid-template-columns: 1fr; } }
.uses { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.5rem; border-top: 3px solid var(--ink); }
@media (max-width: 900px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .uses { grid-template-columns: 1fr; } }
.uses li { padding: 1.2rem 1.2rem 1.2rem 0; border-bottom: 1px solid var(--line); }
.uses strong { display: block; font-weight: 800; font-stretch: 76%; font-size: 1.25rem; line-height: 1.1; margin-bottom: 0.3rem; color: var(--ink); }
.uses span { color: var(--muted); font-size: 0.97rem; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.split > div { border-top: 3px solid var(--ink); padding-top: 1.4rem; }
.split h3 { margin-bottom: 0.8rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.checklist-box { background: var(--paper); padding: clamp(1.4rem, 3vw, 2.2rem); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.checklist-box h3 { margin-bottom: 1rem; }

/* FAQ */
.faq { border-top: 3px solid var(--ink); max-width: 56rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.2rem; align-items: center;
  padding: 1.2rem 0; font-weight: 750; font-stretch: 82%; font-size: clamp(1.12rem, 1rem + 0.5vw, 1.35rem); line-height: 1.25; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 14px; height: 12px; background: var(--amber);
  clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .answer { padding: 0 0 1.4rem; max-width: 62ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Entreprise */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.monogram {
  position: relative; background: var(--ink); color: var(--on-dark); padding: clamp(1.6rem, 4vw, 2.6rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}
.monogram .big { display: block; font-size: clamp(3.4rem, 2rem + 6vw, 7rem); font-weight: 850; font-stretch: 62%; line-height: 0.85; color: var(--yellow); }
.monogram p { margin: 1rem 0 0; color: var(--on-dark-muted); }
.monogram dl { margin: 1.4rem 0 0; display: grid; gap: 0.8rem; }
.monogram dt { font-size: 0.85rem; color: var(--on-dark-muted); font-weight: 600; }
.monogram dd { margin: 0; font-weight: 700; font-stretch: 90%; }
.gear { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.gear-item { border-top: 3px solid var(--yellow); padding-top: 1.2rem; }
.gear-item h3 { color: var(--on-dark); margin-bottom: 0.6rem; }
.gear-item p { margin: 0; color: var(--on-dark-muted); }
@media (max-width: 860px) { .intro-grid, .gear { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: clamp(1rem, 3vw, 2.2rem); }
.values div { border-top: 1px solid var(--line); padding-top: 1rem; }
.values h3 { font-size: 1.35rem; font-stretch: 78%; margin-bottom: 0.4rem; }
.values p { margin: 0; color: var(--muted); }

/* 11. Formulaire, galerie, lightbox ------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-card { background: var(--ink); color: var(--on-dark); padding: clamp(1.5rem, 3.5vw, 2.4rem); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); }
.contact-card h2 { color: var(--on-dark); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-bottom: 1rem; }
.contact-card .big-phone { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem); }
.contact-card dl { margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.contact-card dt { font-size: 0.85rem; font-weight: 600; color: var(--on-dark-muted); }
.contact-card dd { margin: 0.1rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-card dd a { color: var(--on-dark); }
.contact-aside { display: grid; gap: clamp(1.5rem, 3vw, 2rem); position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } .contact-aside { position: static; } }

.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label, .field legend { font-weight: 700; font-stretch: 90%; font-size: 1rem; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--muted); }
.field .hint { font-size: 0.88rem; color: var(--muted); margin: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0.75rem 0.9rem; font-size: 1.02rem;
  background: var(--paper); border: 2px solid rgba(38, 34, 29, 0.38); border-radius: 3px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M0 0h14L7 12z' fill='%23ea8c0c'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.95rem center; background-size: 12px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.field [aria-invalid="true"] { border-color: #b3261e; background-color: #fbf1ef; }
.field-error { color: #9d2219; font-size: 0.9rem; font-weight: 600; margin: 0; }
.field-error:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.2rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0.55rem 1rem;
  border: 2px solid rgba(38, 34, 29, 0.38); border-radius: 3px; background: var(--paper);
  font-weight: 600; font-stretch: 92%; cursor: pointer; transition: background-color 0.15s, border-color 0.15s;
}
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--yellow); border-color: var(--ink); }
.field input[type="file"] { font-size: 0.95rem; padding: 0.6rem; background: var(--paper); border: 2px dashed rgba(38, 34, 29, 0.38); border-radius: 3px; width: 100%; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-legal { font-size: 0.88rem; color: var(--muted); margin: 0; max-width: 62ch; }
.form-status { font-weight: 600; margin: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: #9d2219; }
.form-success {
  display: none; background: var(--ink); color: var(--on-dark); padding: clamp(1.5rem, 4vw, 2.5rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}
.form-success h2, .form-success h3 { color: var(--yellow); margin-bottom: 0.8rem; }
.form-success p { margin: 0 0 0.8rem; }
.form-success.is-visible, #merci:target { display: block; }
.form-wrap.is-sent .form { display: none; }
button[disabled] { opacity: 0.6; cursor: progress; }

/* Galerie */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.4rem, 3vw, 2rem); }
.filters button {
  min-height: 44px; padding: 0.5rem 1rem; background: transparent; border: 2px solid rgba(38, 34, 29, 0.35); border-radius: 3px;
  font-weight: 700; font-stretch: 88%; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: clamp(0.8rem, 2vw, 1.2rem); grid-auto-flow: dense; }
.gallery-item { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.gallery-item[hidden] { display: none; }
.gallery-item.is-tall { grid-row: span 2; }
.gallery-item.is-tall .ph { aspect-ratio: auto; flex: 1 1 auto; min-height: 12rem; }
.gallery-item button { display: flex; flex-direction: column; flex: 1 1 auto; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.gallery-item button .ph { flex: 1; width: 100%; }
.gallery-item button:hover img { transform: scale(1.03); }
.gallery-item figcaption { font-size: 0.92rem; font-weight: 600; font-stretch: 92%; margin-top: 0.5rem; color: var(--muted); }
.gallery-empty { display: none; color: var(--muted); }
.gallery-empty.is-visible { display: block; }
@media (max-width: 560px) { .gallery-item.is-tall { grid-row: auto; } .gallery-item.is-tall .ph { aspect-ratio: 4 / 5; height: auto; } }

.lightbox {
  width: min(96vw, 1100px); max-height: 94vh; padding: 0; border: 0; background: var(--ink); color: var(--on-dark);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(20, 18, 15, 0.86); }
.lightbox-inner { display: grid; grid-template-rows: minmax(0, 1fr) auto; max-height: 94vh; }
.lightbox-img { width: 100%; max-height: calc(94vh - 5rem); object-fit: contain; background: #14120f; touch-action: pan-y; }
.lightbox-bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; }
.lightbox-bar p { margin: 0 auto 0 0; font-weight: 600; font-size: 0.95rem; }
.lightbox button {
  min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; background: transparent; color: var(--on-dark);
  border: 2px solid var(--line-dark); border-radius: 3px;
}
.lightbox button:hover { border-color: var(--yellow); color: var(--yellow); }
.lightbox button svg { width: 20px; height: 20px; }

/* Mentions et confidentialité */
.legal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.legal section { scroll-margin-top: calc(var(--header-h) + 1rem); }
.legal h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); margin-bottom: 1.2rem; }
.legal h3 { font-size: 1.12rem; font-stretch: 85%; margin: 1.4rem 0 0.4rem; }
.legal p, .legal li { font-size: 0.96rem; color: var(--text); }
.legal ul { padding-left: 1.2rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.2rem; font-size: 0.96rem; margin: 0; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal dl { grid-template-columns: 1fr; gap: 0.1rem; } .legal dd { margin-bottom: 0.6rem; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; }

/* 12. Pied de page, barre mobile, utilitaires --------------------------- */
.site-footer { background: var(--ink-2); color: var(--on-dark-muted); padding: clamp(3rem, 6vw, 4.5rem) 0 calc(2rem + env(safe-area-inset-bottom)); font-size: 0.96rem; }
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand-mark { --mark-bg: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.footer-grid h2 { font-size: 1rem; font-stretch: 90%; font-weight: 750; color: var(--on-dark); margin-bottom: 0.9rem; letter-spacing: 0.01em; }
.footer-grid ul { list-style: none; display: grid; gap: 0.45rem; }
.footer-grid a { color: var(--on-dark-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--yellow); text-decoration: underline; }
.footer-grid address { font-style: normal; display: grid; gap: 0.45rem; }
.footer-about { margin: 1rem 0 0; max-width: 34ch; }
.footer-bottom { margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.4rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; font-size: 0.88rem; }
.footer-bottom a { color: var(--on-dark-muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Barre d'appel mobile */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 0.5rem; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(29, 26, 22, 0.96); border-top: 1px solid var(--line-dark);
  transform: translateY(110%); transition: transform 0.35s var(--ease);
}
.callbar .btn { flex: 1; min-height: 48px; font-size: 1rem; padding-inline: 0.8rem; }
.callbar .btn-call { --btn-bg: var(--paper); }
.callbar.is-visible { transform: none; }
@media (max-width: 760px) { .callbar { display: flex; } }

/* Retour en haut */
.to-top {
  position: fixed; right: 1.1rem; bottom: calc(1.2rem + env(safe-area-inset-bottom)); z-index: 95;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--ink); color: var(--yellow); border: 0;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s linear 0.3s, bottom 0.35s var(--ease);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--anthracite); }
.to-top:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--yellow); }
@media (max-width: 760px) {
  .has-callbar .to-top { bottom: calc(5.1rem + env(safe-area-inset-bottom)); }
  .to-top { right: 0.8rem; width: 44px; height: 44px; }
}

/* 13. Compléments des pages intérieures ---------------------------------- */
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.page-hero-aside { position: relative; }
.hero-photo { margin: 0; position: relative; }
.hero-photo .ph { clip-path: polygon(0 0, 100% 0, 100% 80%, 88% 100%, 0 100%); }
.hero-photo figcaption { margin-top: 0.6rem; font-size: 0.9rem; font-weight: 600; font-stretch: 92%; color: var(--muted); }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } }
.page-hero .lead a { color: var(--ink); font-weight: 700; }

.chapter-n {
  display: inline-block; margin-bottom: 0.9rem; padding: 0.25rem 0.6rem 0.2rem;
  font-size: 0.85rem; font-weight: 750; font-stretch: 85%; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--earth-1); color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
.chapter-n-2 { background: var(--earth-2); }
.chapter-n-3 { background: var(--earth-3); }
.chapter-n-4 { background: var(--earth-4); color: var(--on-dark); }
.chapter-n-5 { background: var(--ink); color: var(--yellow); }
.chapter-head .ph { width: 100%; align-self: end; }
.chapters { min-width: 0; }

.quote-client { margin: clamp(2rem, 4vw, 3rem) 0 0; max-width: 52rem; padding-left: 1.4rem; border-left: 4px solid var(--yellow); }
.quote-client blockquote { margin: 0; }
.quote-client p { margin: 0 0 0.8rem; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 650; font-stretch: 82%; line-height: 1.25; color: var(--on-dark); }
.quote-client figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; font-size: 0.93rem; color: var(--on-dark-muted); }
.note { font-size: 0.95rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin: 0; max-width: 58ch; }
.gabarit-figure { margin: 0; }
.checklist-box h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.05; margin-bottom: 1rem; }
.table-scroll:focus-visible { outline-offset: 6px; }

.values .who { display: inline-block; margin-top: 0.5rem; font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.photo-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(0.8rem, 2vw, 1.2rem); align-items: stretch; }
.photo-row .r-sq { aspect-ratio: auto; min-height: 100%; }
@media (max-width: 760px) { .photo-row { grid-template-columns: 1fr 1fr; } .photo-row .r-wide { grid-column: 1 / -1; } .photo-row .r-sq { aspect-ratio: 1; } }
.zone-figure { margin: 0; }
.zone-figure figcaption { font-size: 0.88rem; text-align: center; margin-top: 0.6rem; }

.ba-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ba-feature .ba-figure { margin: 0; }
@media (max-width: 860px) { .ba-feature { grid-template-columns: 1fr; } }
.ba-figure { margin: 0; }
.filters .count { font-weight: 500; opacity: 0.7; margin-left: 0.2rem; }
.gallery-item button:focus-visible { outline-offset: 4px; }

.form-title { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); scroll-margin-top: calc(var(--header-h) + 1rem); }
.form-intro { margin: 0.8rem 0 1.6rem; font-size: 0.95rem; }
.form-wrap { scroll-margin-top: calc(var(--header-h) + 1rem); min-width: 0; }
.contact-card dl > div, .monogram dl > div { min-width: 0; }
.contact-card .dd-link { display: inline-block; margin-left: 0.3rem; color: var(--yellow); font-weight: 600; font-size: 0.92rem; }
.contact-card-foot { margin: 1.6rem 0 0; }
.contact-card .btn-ghost { color: var(--on-dark); }
.contact-card .btn-ghost:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.contact-card :focus-visible { outline-color: var(--yellow); }
.form-success :focus-visible, .form-success a { color: var(--on-dark); outline-color: var(--yellow); }
.monogram a { color: var(--on-dark); }
.monogram :focus-visible { outline-color: var(--yellow); }
.legal a { overflow-wrap: anywhere; }

.nf-code { font-size: clamp(5rem, 3rem + 10vw, 11rem); font-weight: 850; font-stretch: 62%; line-height: 0.8; color: var(--amber); margin: 0 0 1rem; }
.notfound h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.2rem); font-stretch: 66%; max-width: 18ch; }
.nf-links { margin-top: 2.4rem; }

/* Apparitions discrètes (seulement quelques blocs, armées par JS hors écran) */
.reveal.will-reveal { opacity: 0; transform: translateY(14px); }
.reveal.will-reveal.is-revealed { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

/* Mouvement réduit : tout est affiché, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .reveal.will-reveal { opacity: 1; transform: none; }
  .stratum.will-reveal .stratum-grid { clip-path: none; }
}

@media print {
  .site-header, .callbar, .to-top, .nav, .final-cta, .coupe-nav { display: none !important; }
  body { background: #fff; }
}
