/* =========================================================================
   MH GLASS - feuille de style unique, structurée par sections.
   Les couleurs de marque proviennent de BRAND.md (mesurées sur les photos
   du dossier). Les composants n'emploient QUE les jetons sémantiques
   (--bg, --fg, --card...) : le thème clair et le thème sombre ne sont
   qu'un échange de valeurs, jamais une section qui s'inverse.

   SOMMAIRE
   01. Jetons (marque, sémantique clair, sémantique sombre)
   02. Reset & base
   03. Utilitaires de mise en page
   04. Signature « cordon »
   05. Boutons
   06. En-tête, navigation, bascule de thème
   07. Hero
   08. Barre de réassurance
   09. Services
   10. Parcours pare-brise
   11. L'atelier
   12. Avis
   13. Zone d'intervention
   14. FAQ
   15. Contact & formulaire
   16. Pied de page & barre d'appel
   17. Page intérieure (mentions légales)
   18. Mouvement & préférences réduites

   Échelle de z-index : 1-3 contenu local · 90 barre d'appel mobile
   · 95 menu mobile · 100 en-tête · 200 lien d'évitement.
   ========================================================================= */

/* ---------- 01. JETONS ------------------------------------------------- */

:root {
  /* Marque - voir BRAND.md §1 pour la source de chaque valeur */
  --orange:       #FD882B;   /* mesuré : menuiseries de l'atelier, 01.webp */
  --orange-hover: #FFA053;
  --ink:          #141A21;
  --surface:      #232B35;
  --anthracite:   #373F49;   /* mesuré : comptoir d'accueil, 02/03.webp */
  --paper:        #F5F5F3;
  --damier:       #C03F40;   /* mesuré : table de la salle d'attente, 03.webp */
  --shadow-rgb:   20, 26, 33;

  /* Sémantique - thème clair (défaut) */
  --bg:            #F5F5F3;
  --bg-2:          #EDEDEA;
  --card:          #FBFBFA;
  --card-strong:   #141A21;
  --on-strong:     #F5F5F3;
  --on-strong-soft: rgba(245, 245, 243, .78);
  --fg:            #141A21;
  --fg-soft:       #4C5461;   /* 7,00:1 sur --bg */
  --line:          rgba(20, 26, 33, .13);
  --line-strong:   rgba(20, 26, 33, .26);
  --accent-text:   #A9420F;   /* orange lisible sur fond clair : 5,2:1 sur --bg-2 */
  --danger:        #C03F40;
  --field-bg:      #FDFDFC;
  --header-bg:     rgba(245, 245, 243, .86);
  --moon-display:  block;
  --sun-display:   none;

  /* Typographie - voir BRAND.md §2 */
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wide:      118%;
  --wide-max:  125%;

  --text-3xs:  0.688rem;
  --text-2xs:  0.75rem;
  --text-xs:   clamp(0.813rem, 0.79rem + 0.11vw, 0.875rem);
  --text-sm:   0.938rem;
  --text-base: clamp(1rem,     0.98rem + 0.11vw, 1.063rem);
  --text-lg:   clamp(1.125rem, 1.06rem + 0.31vw, 1.25rem);
  --text-xl:   clamp(1.375rem, 1.24rem + 0.63vw, 1.625rem);
  --text-2xl:  clamp(1.75rem,  1.4rem + 1.6vw,   2.5rem);
  --text-3xl:  clamp(2.125rem, 1.75rem + 1.72vw, 2.875rem);
  --text-hero: clamp(2.3rem,   1.2rem + 3.9vw,   4.1rem);

  /* Espacement */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  2.5rem;
  --space-8:  3.5rem;
  --space-9:  5rem;
  --space-10: 7rem;

  --section-y: clamp(4rem, 2.6rem + 5.6vw, 7.5rem);

  --wrap: 1180px;
  /* Système de rayons : boutons 6 px, cartes 12 px, pastilles 999 px,
     cadre « pare-brise » asymétrique pour les visuels signés. */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-screen: 30px 30px 18px 18px / 38px 38px 20px 20px;

  /* Mouvement : décélération à l'arrivée, sorties plus courtes */
  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: .2s;
  --dur:      .4s;
  --dur-slow: .9s;

  color-scheme: light;
}

/* Thème sombre : préférence système, sauf choix explicite du visiteur */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #141A21;
    --bg-2:          #181F27;
    --card:          #1D252E;
    --card-strong:   #28313C;
    --on-strong:     #F5F5F3;
    --on-strong-soft: rgba(245, 245, 243, .8);
    --fg:            #F2F2EF;
    --fg-soft:       #AEB4BC;   /* 8,3:1 sur --bg */
    --line:          rgba(245, 245, 243, .11);
    --line-strong:   rgba(245, 245, 243, .24);
    --accent-text:   #FD882B;   /* 7,28:1 sur --bg */
    --danger:        #F07272;
    --field-bg:      #141A21;
    --header-bg:     rgba(20, 26, 33, .8);
    --shadow-rgb:    0, 0, 0;
    --moon-display:  none;
    --sun-display:   block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:            #141A21;
  --bg-2:          #181F27;
  --card:          #1D252E;
  --card-strong:   #28313C;
  --on-strong:     #F5F5F3;
  --on-strong-soft: rgba(245, 245, 243, .8);
  --fg:            #F2F2EF;
  --fg-soft:       #AEB4BC;
  --line:          rgba(245, 245, 243, .11);
  --line-strong:   rgba(245, 245, 243, .24);
  --accent-text:   #FD882B;
  --danger:        #F07272;
  --field-bg:      #141A21;
  --header-bg:     rgba(20, 26, 33, .8);
  --shadow-rgb:    0, 0, 0;
  --moon-display:  none;
  --sun-display:   block;
  color-scheme: dark;
}

/* ---------- 02. RESET & BASE ------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 60px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: var(--wide);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-2xl); letter-spacing: -0.03em; }
h3 { font-size: var(--text-xl); letter-spacing: -0.01em; }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fg); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }

strong { font-weight: 600; }

::selection { background: var(--orange); color: var(--ink); }

/* Focus visible, partout, sans exception (WCAG 2.4.7) */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--orange); color: var(--ink);
  padding: var(--space-3) var(--space-5);
  font-weight: 600; border-radius: var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip:focus { top: var(--space-4); }

.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;
}

/* Repère invisible : quand il sort de l'écran, l'en-tête se resserre.
   Remplace l'écouteur de défilement (IntersectionObserver, voir main.js). */
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 48px; pointer-events: none; }

/* ---------- 03. UTILITAIRES DE MISE EN PAGE ---------------------------- */
/* Le rythme vertical est porté UNIQUEMENT par .section. */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
@media (min-width: 700px) { .wrap { width: min(100% - 4rem, var(--wrap)); } }

.section { padding-block: var(--section-y); position: relative; }
.tinted { background: var(--bg-2); }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-2xs);
  font-weight: 600;
  font-stretch: 110%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 var(--space-3);
}

.lead { font-size: var(--text-lg); color: var(--fg-soft); max-width: 58ch; }

.section__head { max-width: 62ch; margin-bottom: var(--space-8); }
.section__head h2 { margin-bottom: var(--space-4); }

.note { font-size: var(--text-xs); color: var(--fg-soft); }

/* ---------- 04. SIGNATURE « CORDON » ----------------------------------- */
/* Un trait orange interrompu : le cordon de colle déposé au pourtour d'un
   vitrage. Seul ornement du site (BRAND.md §3). En mouvement, il se
   « pose » : il se dessine et s'arrête juste avant de se refermer. */

.cordon {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--space-4);
}
.cordon::before,
.cordon::after {
  content: "";
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
  transform-origin: left center;
}
.cordon::before { width: 54px; }
.cordon::after  { width: 10px; }

/* Cadre « pare-brise » : le cordon fait le tour, avec une reprise visible.
   Repli CSS (sans JS) : bordure masquée. Avec JS : tracé SVG animé. */
.cordon-frame {
  position: relative;
  border-radius: var(--radius-screen);
  overflow: hidden;
  isolation: isolate;
}
.cordon-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--orange);
  border-radius: inherit;
  -webkit-mask-image: linear-gradient(to right, #000 0 62%, transparent 62% 71%, #000 71% 100%);
          mask-image: linear-gradient(to right, #000 0 62%, transparent 62% 71%, #000 71% 100%);
  pointer-events: none;
  z-index: 2;
}
.cordon-frame.has-svg::after { display: none; }

/* Tracé SVG généré par main.js (fonction cordonPath) */
.cordon-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}
.cordon-svg path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;
}

/* ---------- 05. BOUTONS ------------------------------------------------ */
/* Règle absolue (BRAND.md §1) : l'orange ne porte JAMAIS de texte blanc
   (2,40:1). Texte encre : 7,28:1. */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.95rem 1.6rem;
  min-height: 52px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn svg { flex: none; transition: transform var(--dur) var(--ease-out); }

.btn--primary {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
}
.btn--primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--ink);
  box-shadow: 0 14px 28px -14px rgba(var(--shadow-rgb), .55);
}
.btn--primary:hover svg { transform: rotate(-12deg) scale(1.08); }

/* Bouton secondaire : l'aplat entre par la gauche au survol */
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur) var(--ease-out);
}
.btn--ghost:hover { color: var(--bg); border-color: var(--fg); }
.btn--ghost:hover::before { transform: scaleX(1); transform-origin: left center; }
.btn--ghost:hover svg { transform: translateX(3px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.btn-row .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .btn-row .btn { flex: 0 0 auto; } }

.btn[data-state="busy"] { pointer-events: none; opacity: .75; }

/* ---------- 06. EN-TÊTE, NAVIGATION, BASCULE DE THÈME ------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
          backdrop-filter: saturate(150%) blur(12px);
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header[data-scrolled] { box-shadow: 0 10px 30px -18px rgba(var(--shadow-rgb), .5); }

/* Progression de lecture : le cordon s'étire sous l'en-tête au fil du
   défilement. Animation pilotée par le défilement, sans JavaScript. */
@supports (animation-timeline: scroll()) {
  .site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 3px;
    background: var(--orange);
    border-radius: 0 999px 999px 0;
    transform-origin: left center;
    transform: scaleX(0);
    animation: read-progress linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes read-progress { to { transform: scaleX(1); } }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 72px;
  transition: min-height var(--dur) var(--ease);
}
.site-header[data-scrolled] .site-header__inner { min-height: 60px; }

/* Marque - PLACEHOLDER TYPOGRAPHIQUE (voir A-VALIDER.md, point 1).
   Remplacer par <img src="assets/logo/mh-glass.svg" alt="MH Glass">. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--fg);
  margin-right: auto;
}
.brand__mark {
  width: 30px; height: 24px;
  border: 3px solid var(--orange);
  border-radius: 9px 9px 5px 5px / 11px 11px 6px 6px;
  flex: none;
  transition: transform var(--dur) var(--ease-out);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: var(--wide-max);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  line-height: 1;
}
.brand:hover { color: var(--fg); }

.nav__list { display: flex; align-items: center; gap: var(--space-5); }
.nav__list a {
  position: relative;
  color: var(--fg);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  padding-block: var(--space-2);
}
/* Soulignement qui se dessine de gauche à droite */
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur) var(--ease-out);
}
.nav__list a:hover::after,
.nav__list a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left center; }

.header__tel {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.header__tel:hover { color: var(--accent-text); }
.header__tel svg { fill: var(--accent-text); flex: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--fg);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.icon-btn:hover { border-color: var(--fg); background: var(--bg-2); }
.icon-btn svg { fill: currentColor; }

.theme-toggle .i-moon { display: var(--moon-display); }
.theme-toggle .i-sun  { display: var(--sun-display); }
.theme-toggle svg { transition: transform .5s var(--ease-out); }
.theme-toggle:hover svg { transform: rotate(-25deg); }

.burger[aria-expanded="true"] .burger__open  { display: none; }
.burger[aria-expanded="false"] .burger__close { display: none; }

/* Mobile d'abord : navigation repliée, téléphone toujours atteignable */
@media (max-width: 1079px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    z-index: 95;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: var(--space-4) 0 var(--space-6);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .45s var(--ease-out), visibility .45s;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .site-header[data-scrolled] .nav { inset-block-start: 60px; }
  .nav[data-open="true"] { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .4s var(--ease-out); }
  .nav[data-open="true"] .nav__list li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 40ms + 80ms); }
  .nav__list a {
    display: block;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-stretch: var(--wide);
    font-weight: 600;
    font-size: var(--text-xl);
  }
  .nav__list a::after { display: none; }
  .nav__list a:hover { background: var(--bg-2); }
  .nav__cta { padding: var(--space-5) var(--space-5) 0; }
  .nav__cta .btn { width: 100%; }
  .header__tel span { display: none; }
  .header__tel { width: 44px; justify-content: center; }
}
@media (min-width: 1080px) {
  .burger { display: none; }
  .nav__cta { display: none; }
  .site-header__inner { gap: var(--space-6); }
}

/* ---------- 07. HERO --------------------------------------------------- */
/* Titre pleine largeur sur deux lignes, puis texte et visuel côte à côte.
   La photo de façade ne fait que 960 px (AUDIT-ASSETS.md) : elle reste
   dans une colonne bornée, jamais en plein cadre. */

.hero { position: relative; overflow: clip; }

.hero__grid {
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-7) var(--space-8);
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-6);
    row-gap: var(--space-5);
    padding-block: var(--space-8) var(--space-9);
    align-items: start;
  }
  .hero .status, .hero__title { grid-column: 1 / -1; }
  .hero__copy   { grid-column: 1 / span 5; padding-top: var(--space-4); }
  .hero__figure { grid-column: 6 / -1; }
}

/* Statut d'ouverture en direct : seul point de couleur « d'état » du site */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  justify-self: start;
  margin: 0;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--fg-soft);
}
.status strong { color: var(--fg); font-weight: 600; }
.status__dot {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--fg-soft);
  flex: none;
}
.status[data-open="true"] .status__dot { background: var(--orange); box-shadow: none; }
.status[data-open="true"] .status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2.2s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}

.hero__title {
  margin: 0;
  font-size: var(--text-hero);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: initial;
}
.hero__title em { font-style: normal; color: var(--accent-text); }
/* Chaque ligne monte depuis un masque */
.hero__title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: line-up 1s var(--ease-out) forwards;
}
.hero__title .line:nth-child(1) > span { animation-delay: .1s; }
.hero__title .line:nth-child(2) > span { animation-delay: .22s; }
@keyframes line-up { to { transform: none; } }

.hero__lead { font-size: var(--text-lg); color: var(--fg-soft); max-width: 40ch; }

.hero__figure { margin: 0; }
.hero__figure .cordon-frame {
  aspect-ratio: 3 / 2;
  box-shadow: 0 40px 80px -40px rgba(var(--shadow-rgb), .45);
  animation: frame-in 1.2s var(--ease-out) .3s both;
}
.hero__figure picture { display: block; height: 100%; }
.hero__figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  animation: settle 1.8s var(--ease-out) .3s both;
}
.hero__figure .cordon-svg path { animation: draw 1.7s var(--ease-out) 1.15s both; }

@keyframes frame-in {
  from { clip-path: inset(10% 6% 10% 6%); opacity: 0; }
  to   { clip-path: inset(0); opacity: 1; }
}
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
@keyframes draw {
  0%   { stroke-dashoffset: 1; opacity: 0; }
  2%   { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

.hero [data-seq] { opacity: 0; transform: translateY(18px); animation: seq .8s var(--ease-out) forwards; }
.hero [data-seq="1"] { animation-delay: 0s; }
.hero [data-seq="3"] { animation-delay: .4s; }
.hero [data-seq="4"] { animation-delay: .52s; }
@keyframes seq { to { opacity: 1; transform: none; } }

/* ---------- 08. BARRE DE RÉASSURANCE ----------------------------------- */
/* Bandeau de marque : orange dans les deux thèmes, texte encre (7,28:1). */

.reassurance { background: var(--orange); color: var(--ink); }
.reassurance__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--space-5);
  padding-block: var(--space-6);
}
@media (min-width: 860px) {
  .reassurance__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reassurance__item + .reassurance__item { border-left: 1px solid rgba(20, 26, 33, .22); padding-left: var(--space-5); }
}
.reassurance__item { display: flex; flex-direction: column; gap: 2px; }
.reassurance__value {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.15;
}
.reassurance__label { font-size: var(--text-xs); font-weight: 500; color: rgba(20, 26, 33, .8); }

/* ---------- 09. SERVICES ----------------------------------------------- */
/* Grille à rythme : le vitrage occupe 2 colonnes sur 2 rangées (métier
   principal), une carte porte la seule photo métier disponible, les autres
   restent typographiques. 6 éléments, 9 cases pleines en desktop. */

.services__grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service--feature { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service--feature { grid-column: span 2; grid-row: span 2; }
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-5);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
/* Repère au repos : le début du cordon */
.service::before {
  content: "";
  position: absolute;
  top: 0; left: var(--space-5);
  width: 44px; height: 3px;
  background: var(--orange);
  border-radius: 0 0 999px 999px;
  z-index: 2;
  transition: opacity var(--dur-fast) var(--ease);
}
.service:hover, .service:focus-within {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 24px 40px -24px rgba(var(--shadow-rgb), .35);
}
.service.has-svg:hover::before, .service.has-svg:focus-within::before { opacity: 0; }

/* Au survol, le cordon fait le tour de la carte et s'arrête avant de se
   refermer. Retrait plus rapide que l'arrivée. */
.service .cordon-svg path {
  opacity: 0;
  transition: stroke-dashoffset .35s var(--ease), opacity .25s var(--ease);
}
.service:hover .cordon-svg path,
.service:focus-within .cordon-svg path {
  stroke-dashoffset: 0;
  opacity: 1;
  transition: stroke-dashoffset .8s var(--ease-out), opacity .1s var(--ease);
}

.service h3 { margin: 0; }
.service p  { margin: 0; color: var(--fg-soft); font-size: var(--text-sm); }

/* Modalité (sur devis, sur rendez-vous) : information, pas un sur-titre */
.service__meta {
  order: -1;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-text);
}

.service__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
}
.service__list li {
  padding: 0.3rem 0.75rem;
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* Carte vedette : le métier d'origine */
.service--feature {
  background: var(--card-strong);
  border-color: transparent;
  padding: var(--space-7) var(--space-6);
  color: var(--on-strong);
}
.service--feature h3 { color: var(--on-strong); font-size: var(--text-2xl); max-width: 14ch; }
.service--feature p  { color: var(--on-strong-soft); font-size: var(--text-base); max-width: 46ch; }
.service--feature .service__meta { color: var(--orange); }
.service--feature .service__list li { color: var(--on-strong-soft); border-color: rgba(245, 245, 243, .18); }

.service__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(245, 245, 243, .16);
  width: 100%;
  min-height: 44px;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--orange);
  text-decoration: none;
}
.service__link svg { flex: none; transition: transform var(--dur) var(--ease-out); }
.service__link:hover { color: var(--on-strong); }
.service__link:hover svg { transform: translateX(5px); }

/* Carte photo : la seule image métier du dossier (mécanique) */
.service--photo {
  min-height: 300px;
  background: var(--ink);
  border-color: transparent;
  color: var(--paper);
  justify-content: flex-end;
}
.service--photo picture { position: absolute; inset: 0; z-index: -2; }
.service--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.service--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(20, 26, 33, .94) 30%, rgba(20, 26, 33, .5) 100%);
}
.service--photo:hover img { transform: scale(1.06); }
.service--photo h3 { color: var(--paper); }
.service--photo p  { color: rgba(245, 245, 243, .84); }
.service--photo .service__meta { color: var(--orange); }
.service--photo .service__list { margin-top: var(--space-2); }
.service--photo .service__list li { color: rgba(245, 245, 243, .86); border-color: rgba(245, 245, 243, .24); }

/* ---------- 10. PARCOURS PARE-BRISE ------------------------------------ */
/* Récit en quatre temps : l'intro reste en place pendant que les étapes
   défilent, et le cordon se remplit le long du rail. */

.parcours { background: var(--bg-2); overflow: clip; }

.parcours__grid { display: grid; gap: var(--space-7); }
@media (min-width: 960px) {
  .parcours__grid { grid-template-columns: 5fr 7fr; gap: var(--space-9); align-items: start; }
  .parcours__intro { position: sticky; top: 120px; }
}
.parcours__intro .note { margin-top: var(--space-6); max-width: 46ch; }

.steps {
  position: relative;
  display: grid;
  gap: var(--space-7);
  --progress: 1;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}
.steps::after {
  background: var(--orange);
  transform-origin: top center;
  transform: scaleY(var(--progress));
  transition: transform .7s var(--ease-out);
}
.js .steps[data-live] { --progress: 0; }

.step {
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-5) calc(44px + var(--space-6));
  border-radius: var(--radius);
  transition: background-color var(--dur) var(--ease);
}
.step__num {
  position: absolute;
  left: 0;
  top: var(--space-5);
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--orange);
  font-family: var(--font-display);
  font-stretch: var(--wide-max);
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent-text);
  z-index: 1;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.step h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); transition: color var(--dur) var(--ease); }
.step p  { font-size: var(--text-base); color: var(--fg-soft); margin: 0; max-width: 52ch; }

.steps[data-live] .step h3 { color: var(--fg-soft); }
.steps[data-live] .step.is-done h3,
.steps[data-live] .step.is-active h3 { color: var(--fg); }
.steps[data-live] .step.is-done .step__num,
.steps[data-live] .step.is-active .step__num { background: var(--orange); color: var(--ink); }
.steps[data-live] .step.is-active { background: var(--card); }
.steps[data-live] .step.is-active .step__num { transform: scale(1.1); }

/* ---------- 11. L'ATELIER ---------------------------------------------- */

.atelier__grid { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 940px) {
  .atelier__grid { grid-template-columns: 1fr 1.1fr; gap: var(--space-9); align-items: center; }
}

.atelier__mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.atelier__mosaic figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.atelier__mosaic .is-wide { grid-column: 1 / -1; }
.atelier__mosaic img { width: 100%; height: 100%; object-fit: cover; }
.atelier__mosaic .is-wide img { aspect-ratio: 3 / 2; }
.atelier__mosaic figure:not(.is-wide) img { aspect-ratio: 4 / 3; }
@media (min-width: 940px) {
  /* Décalage vertical : la seconde vignette descend, la grille respire */
  .atelier__mosaic figure:last-child { transform: translateY(var(--space-6)); }
}

/* Dérive douce des photos, pilotée par le défilement (sans JS) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .atelier__mosaic img {
      scale: 1.14;
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }
    @keyframes drift { from { translate: 0 -5%; } to { translate: 0 5%; } }
  }
}

.atelier__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-7);
}
.atelier__facts div {
  padding: var(--space-4);
  background: var(--bg-2);
  border-radius: var(--radius);
}
.atelier__facts dt { color: var(--fg-soft); font-size: var(--text-xs); margin: 0 0 2px; }
.atelier__facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: var(--wide);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.2;
}

/* ---------- 12. AVIS --------------------------------------------------- */

.avis__top {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
@media (min-width: 900px) {
  .avis__top { grid-template-columns: 1fr auto; align-items: end; gap: var(--space-8); }
}
.avis__top .section__head { margin-bottom: 0; }

.score {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.score__value {
  font-family: var(--font-display);
  font-stretch: var(--wide-max);
  font-weight: 800;
  font-size: clamp(3rem, 2.4rem + 2.4vw, 4.25rem);
  line-height: .9;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.score__value .score__unit { font-size: 1.1rem; letter-spacing: 0; color: var(--fg-soft); }
.score__meta p { margin: 0; }
.score__count { font-size: var(--text-sm); color: var(--fg-soft); }
.score__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Étoiles : le remplissage traduit la note réelle (4,6 = 92 %) */
.stars {
  position: relative;
  display: inline-block;
  margin: 0 0 var(--space-1);
  font-size: 1.05rem;
  letter-spacing: .14em;
  line-height: 1.2;
  white-space: nowrap;
}
.stars__base { color: var(--line-strong); }
.stars__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 92%);
  overflow: hidden;
  color: var(--orange);
  transition: width 1.4s var(--ease-out) .2s;
}
.js .score[data-reveal] .stars__fill { width: 0; }
.js .score[data-reveal].is-in .stars__fill { width: var(--fill, 92%); }

.quotes { display: grid; gap: var(--space-4); }
@media (min-width: 780px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
  .quote blockquote { font-size: var(--text-xl); line-height: 1.35; }
}

.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: var(--space-7) var(--space-6) var(--space-6);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.quote::before {
  content: "";
  position: absolute;
  top: 0; left: var(--space-6);
  width: 44px; height: 3px;
  background: var(--orange);
  border-radius: 0 0 999px 999px;
}
.quote blockquote {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 500;
  font-size: var(--text-lg);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.quote figcaption {
  margin-top: auto;
  font-size: var(--text-xs);
  color: var(--fg-soft);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.quote figcaption b { color: var(--orange); letter-spacing: .1em; margin-right: 4px; }

/* ---------- 13. ZONE D'INTERVENTION ------------------------------------ */
/* Le seul défilement horizontal de la page : les communes n'appellent pas
   une lecture une à une, elles disent l'étendue de la zone. */

.zone__head { max-width: 62ch; }

.marquee {
  position: relative;
  margin-top: var(--space-7);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.marquee[data-paused] .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.communes { display: flex; gap: var(--space-3); padding-right: var(--space-3); flex: none; }
.communes li {
  padding: 0.75rem 1.4rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: var(--text-lg);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.communes li:first-child { background: var(--orange); border-color: var(--orange); color: var(--ink); }

.zone__foot { display: flex; justify-content: flex-end; margin-top: var(--space-4); }
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-2);
  background: none;
  border: 0;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--fg-soft);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.text-btn:hover { color: var(--fg); }
.text-btn svg { fill: currentColor; flex: none; }
.text-btn .i-play { display: none; }
.text-btn[aria-pressed="true"] .i-play { display: block; }
.text-btn[aria-pressed="true"] .i-pause { display: none; }

/* ---------- 14. FAQ ---------------------------------------------------- */
/* <details>/<summary> natifs. Ouverture fluide là où le navigateur sait
   animer vers « auto » ; ailleurs, ouverture instantanée. */

.faq__list { max-width: 860px; }

.faq__item {
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease);
}
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 44px;
  padding: var(--space-5) 0;
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 600;
  font-size: var(--text-lg);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-fast) var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent-text); }

/* Signe + qui pivote en × */
.faq__icon {
  position: relative;
  flex: none;
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--fg);
  transition: background-color var(--dur) var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(135deg); background: var(--orange); border-color: var(--orange); }
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after { background: var(--ink); }

.faq__answer {
  padding: 0 calc(36px + var(--space-5)) var(--space-5) 0;
  max-width: 72ch;
  color: var(--fg-soft);
}

@supports (interpolate-size: allow-keywords) {
  .faq__list { interpolate-size: allow-keywords; }
  .faq__item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete;
  }
  .faq__item[open]::details-content { block-size: auto; }
}

/* ---------- 15. CONTACT & FORMULAIRE ----------------------------------- */

.contact__grid { display: grid; gap: var(--space-7); }
@media (min-width: 940px) { .contact__grid { grid-template-columns: 1fr 1.1fr; gap: var(--space-8); align-items: start; } }

.coords { display: grid; gap: var(--space-5); }
.coords__block h3 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.coords__block p, .coords__block address { font-style: normal; color: var(--fg-soft); font-size: var(--text-sm); margin: 0; }
.coords__tel {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
}
.coords__tel svg { fill: var(--accent-text); }
.coords__tel:hover { color: var(--accent-text); }

.hours { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.hours th, .hours td { padding: var(--space-2) 0; text-align: left; font-weight: 400; border-bottom: 1px solid var(--line); }
.hours th { color: var(--fg-soft); }
.hours td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.hours tr[data-closed] td { color: var(--fg-soft); font-weight: 400; }
/* Jour courant, signalé par main.js (fuseau Europe/Paris) */
.hours tr[data-today] th,
.hours tr[data-today] td { color: var(--fg); font-weight: 700; }
.hours tr[data-today] th::after {
  content: "aujourd'hui";
  margin-left: var(--space-2);
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-size: var(--text-2xs);
  font-weight: 600;
}

/* Carte : chargée au clic (aucun appel tiers avant action de l'utilisateur) */
.map {
  position: relative;
  margin-top: var(--space-5);
  aspect-ratio: 16 / 10;
  background: var(--anthracite);
  border-radius: var(--radius);
  overflow: hidden;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--anthracite);
  color: var(--paper);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-sm);
  text-align: center;
  transition: background-color var(--dur) var(--ease);
}
.map__placeholder:hover { background: var(--surface); }
.map__placeholder strong { font-family: var(--font-display); font-size: var(--text-lg); }

.form {
  padding: var(--space-6);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 700px) { .form { padding: var(--space-7); } }
.form > h3 { font-size: var(--text-2xl); }

.field { margin-bottom: var(--space-4); }
.field label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
}
.field label .opt { font-weight: 400; color: var(--fg-soft); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  min-height: 48px;
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--fg);
  background: var(--field-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-soft); opacity: .85; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--fg-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(253, 136, 43, .35);
}
.field input[type="file"] { padding: 0.6rem; background: var(--bg-2); }

.field--row { display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .field--row { grid-template-columns: 1fr 1fr; } }

.field__error {
  display: none;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--danger);
  font-weight: 600;
}
.field[data-invalid] input,
.field[data-invalid] select { border-color: var(--danger); }
.field[data-invalid] .field__error { display: block; animation: nudge .35s var(--ease-out); }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }

.form__note {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--text-xs);
  color: var(--fg-soft);
}
.form__status {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border-left: 3px solid var(--orange);
  font-size: var(--text-sm);
  animation: seq .4s var(--ease-out);
}
.form__status:empty { display: none; }

/* ---------- 16. PIED DE PAGE & BARRE D'APPEL --------------------------- */

.site-footer { background: var(--bg-2); color: var(--fg-soft); border-top: 1px solid var(--line); }
.site-footer__grid {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-8) var(--space-6);
}
@media (min-width: 760px)  { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-7); } }

.site-footer h2 {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--space-4);
}
.site-footer a { color: var(--fg-soft); text-decoration: none; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }
.site-footer li { margin-bottom: var(--space-2); font-size: var(--text-sm); }
.site-footer address { font-style: normal; font-size: var(--text-sm); }

.site-footer__brand .brand { margin-bottom: var(--space-4); }
.site-footer__brand p { font-size: var(--text-sm); max-width: 34ch; }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  justify-content: space-between;
  padding-block: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: var(--text-xs);
}
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.site-footer__legal li { margin: 0; font-size: inherit; }

/* Rappel téléphone collé en bas d'écran, mobile uniquement (BRAND.md §4) */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  gap: 1px;
  background: var(--ink);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 18px rgba(20, 26, 33, .28);
  animation: callbar-in .6s var(--ease-out) 1.2s both;
}
@keyframes callbar-in { from { transform: translateY(100%); } to { transform: none; } }
.callbar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 56px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
}
.callbar__tel { background: var(--orange); color: var(--ink); }
.callbar__devis { background: var(--ink); color: var(--paper); }
.callbar svg { fill: currentColor; flex: none; }
@media (min-width: 1080px) { .callbar { display: none; } }
@media (max-width: 1079px) { body { padding-bottom: 56px; } }

/* ---------- 17. PAGE INTÉRIEURE ---------------------------------------- */

.page-head { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.page-head__inner { padding-block: var(--space-8) var(--space-7); }
.page-head h1 { font-size: var(--text-3xl); }

.prose { max-width: 74ch; }
.prose h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose dl { margin: 0 0 var(--space-4); }
.prose dt { font-weight: 600; margin-top: var(--space-3); }
.prose dd { margin: 0 0 var(--space-2); color: var(--fg-soft); }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: var(--space-4); }
.prose li { margin-bottom: var(--space-2); }

.todo {
  display: inline-block;
  padding: 0.1em 0.5em;
  background: var(--bg-2);
  border: 1px dashed var(--accent-text);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.85em;
  font-weight: 600;
  color: var(--accent-text);
  white-space: nowrap;
}

/* ---------- 18. MOUVEMENT ---------------------------------------------- */
/* Chaque animation a une raison : hiérarchie (le hero), récit (le
   parcours), retour d'action (survols, formulaire), changement d'état
   (FAQ, statut d'ouverture). Le reste ne bouge pas.

   Masquage conditionné à `.js` (posée dans le <head>) : sans script, rien
   n'est jamais masqué. main.js retire data-reveal une fois l'entrée jouée,
   pour rendre aux composants leurs transitions de survol. */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Variante « rideau » pour les photos */
.js [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0 round var(--radius));
  transition: clip-path 1.2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 140ms);
}
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }

/* Le cordon de tête de section se pose quand la section arrive */
.js [data-reveal] .cordon::before,
.js [data-reveal] .cordon::after { transform: scaleX(0); transition: transform .9s var(--ease-out) .2s; }
.js [data-reveal] .cordon::after { transition-delay: .55s; }
.js [data-reveal].is-in .cordon::before,
.js [data-reveal].is-in .cordon::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal], .hero [data-seq], .hero__title .line > span { opacity: 1; transform: none; clip-path: none; }
  .btn:hover, .service:hover, .service:focus-within { transform: none; }
  .status[data-open="true"] .status__dot::after { display: none; }
  .atelier__mosaic figure:last-child { transform: none; }

  /* Le défilement horizontal devient une liste statique */
  .marquee { -webkit-mask-image: none; mask-image: none; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
  .marquee__track { animation: none; width: auto; }
  .communes { flex: 1 1 100%; flex-wrap: wrap; padding: 0; }
  .communes li { font-size: var(--text-sm); padding: 0.45rem 0.9rem; }
  .communes[aria-hidden="true"], .zone__foot { display: none; }
}

@media print {
  .site-header, .callbar, .map, .form, .skip, .marquee__track > .communes[aria-hidden] { display: none; }
  body { background: #fff; color: #000; }
}
