/* =====================================================================
   TTS RÉNOVATION — Feuille de style v1
   Charte : encre / plâtre / laiton · Archivo / Inter / IBM Plex Mono
   Élément signature : la ligne de cote (|—————|)
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1. Tokens                                                          */
/* ------------------------------------------------------------------ */
:root {
  /* Couleurs charte */
  --ink:        #191D23;
  --ink-soft:   #23282F;   /* survols sur fond encre */
  --platre:     #EDEBE6;
  --blanc:      #FBFAF8;
  --beton:      #8A8A82;   /* décoratif (bordures, ticks) — PAS pour du texte sur fond clair */
  --beton-clair:#C9C7C0;
  --laiton:     #9C7A45;   /* accent décoratif */

  /* Variantes accessibles (texte) — contraste ≥ 4.5:1 sur plâtre/blanc */
  --beton-text:  #5E5E57;
  --laiton-text: #7A5C2E;
  --laiton-on-dark: #B98E52;  /* accent laiton lisible sur fond encre (≥ 5:1) */

  /* Alphas utiles */
  --ink-08: rgba(25, 29, 35, 0.08);
  --ink-12: rgba(25, 29, 35, 0.12);
  --laiton-12: rgba(156, 122, 69, 0.12);

  /* Typographie */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Échelle d'espacement */
  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s7: 6rem;
  --section-y: clamp(3.5rem, 8vw, 7rem);

  /* Rayons (charte : coins quasi nets) */
  --r:    3px;
  --r-sm: 2px;

  /* Layout */
  --container: 1180px;
  --pad-x: clamp(1.25rem, 5vw, 3rem);

  /* Transitions */
  --t: .25s cubic-bezier(.2, .6, .2, 1);
}

/* ------------------------------------------------------------------ */
/* 2. Reset / base                                                    */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--platre);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

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

:focus-visible {
  outline: 2px solid var(--laiton);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

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

/* ------------------------------------------------------------------ */
/* 3. Layout primitives                                               */
/* ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--ink { background: var(--ink); color: var(--blanc); }
.section--blanc { background: var(--blanc); }

.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--blanc); }

.stack > * + * { margin-top: var(--s3); }

/* ------------------------------------------------------------------ */
/* 4. Typographie utilitaire                                          */
/* ------------------------------------------------------------------ */
.display {
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  letter-spacing: -0.02em;
  line-height: 1.0;
}
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: #2C313A;
  max-width: 60ch;
}
.section--ink .lead { color: #D7D9DC; }

.muted { color: var(--beton-text); }

/* Étiquette mono (eyebrow) avec tick laiton */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--laiton-text);
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 1px;
  height: 1.05em;
  background: var(--laiton);
  flex: none;
}
.section--ink .eyebrow { color: var(--laiton-on-dark); }

.mono { font-family: var(--font-mono); }

/* ------------------------------------------------------------------ */
/* 5. Ligne de cote (signature)                                       */
/* ------------------------------------------------------------------ */
/* Divider horizontal avec ticks aux extrémités : |———————| */
.cote {
  position: relative;
  height: 13px;
  border-left: 1px solid var(--laiton);
  border-right: 1px solid var(--laiton);
}
.cote::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  border-top: 1px solid var(--laiton);
}
/* petite cote sous un titre (largeur fixe, alignée à gauche) */
.cote--sm { width: 68px; height: 11px; }
/* cote pleine largeur en séparateur de section */
.cote--rule { width: 100%; }

.section--ink .cote,
.section--ink .cote::before { border-color: var(--laiton); }

/* ------------------------------------------------------------------ */
/* 6. En-tête de section                                              */
/* ------------------------------------------------------------------ */
.sec-head { max-width: 64ch; }
.sec-head .eyebrow { margin-bottom: var(--s2); }
.sec-head h2 { margin-bottom: var(--s3); }
.sec-head .cote--sm { margin-bottom: var(--s3); }
.sec-head .lead { margin-top: 0; }

/* ------------------------------------------------------------------ */
/* 7. Boutons                                                         */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .85rem 1.4rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
  text-align: center;
  line-height: 1.1;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--blanc); }
.btn-primary:hover { background: var(--ink-soft); }
.section--ink .btn-primary { background: var(--blanc); color: var(--ink); }
.section--ink .btn-primary:hover { background: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--beton-clair);
}
.btn-ghost:hover { border-color: var(--laiton); color: var(--ink); }
.section--ink .btn-ghost { color: var(--blanc); border-color: rgba(255,255,255,.28); }
.section--ink .btn-ghost:hover { border-color: var(--laiton); }

.btn-arrow::after {
  content: "→";
  font-family: var(--font-mono);
  transition: transform var(--t);
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* lien texte avec flèche */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--beton-clair);
  padding-bottom: 3px;
  transition: border-color var(--t), gap var(--t);
}
.link-arrow::after { content: "→"; transition: transform var(--t); }
.link-arrow:hover { border-color: var(--laiton); }
.link-arrow:hover::after { transform: translateX(3px); }
.section--ink .link-arrow { color: var(--blanc); border-color: rgba(255,255,255,.25); }

/* ------------------------------------------------------------------ */
/* 8. Header / navigation                                             */
/* ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 235, 230, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--beton-clair);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 72px;
}

/* Logo lockup HTML/CSS — édition noire (fond encre) */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--ink);
  border-radius: var(--r);
  padding: .5rem .8rem;
  line-height: 1;
}
.brand-tts {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--blanc);
}
.brand-cote {
  position: relative;
  width: 11px;
  align-self: stretch;
  border-top: 1.4px solid var(--laiton);
  border-bottom: 1.4px solid var(--laiton);
  flex: none;
}
.brand-cote::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  bottom: -1px;
  transform: translateX(-50%);
  border-left: 1.4px solid var(--laiton);
}
.brand-reno {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .34em;
  color: var(--blanc);
  padding-right: .1rem;
}

/* Nav */
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: .4rem;
  transition: color var(--t);
}
.nav__links a:hover { color: var(--laiton); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  border-top: 1.5px solid var(--laiton);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--beton-clair);
  border-radius: var(--r);
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------ */
/* 9. Hero                                                            */
/* ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; }
.hero__eyebrow { margin-bottom: var(--s3); }
.hero__title { margin-bottom: var(--s3); }
.hero__cote { width: 120px; margin-bottom: var(--s3); }
.hero__lead { margin-bottom: var(--s4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ------------------------------------------------------------------ */
/* 10. Bandeau chiffres clés                                          */
/* ------------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--beton-clair);
  border: 1px solid var(--beton-clair);
  border-radius: var(--r);
  overflow: hidden;
}
.stat { background: var(--blanc); padding: var(--s4) var(--s3); }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.stat__label {
  margin-top: .7rem;
  font-size: .82rem;
  color: var(--beton-text);
  line-height: 1.4;
}
.stat a { border-bottom: 1px solid var(--beton-clair); }
.stat a:hover { border-color: var(--laiton); color: var(--laiton-text); }

/* ------------------------------------------------------------------ */
/* 11. Grilles de cartes                                              */
/* ------------------------------------------------------------------ */
.grid { display: grid; gap: var(--s3); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--blanc);
  border: 1px solid var(--beton-clair);
  border-radius: var(--r);
  padding: var(--s4);
  transition: border-color var(--t), transform var(--t);
}
.card:hover { border-color: var(--laiton); }

/* Carte prestation */
.presta { display: flex; flex-direction: column; gap: var(--s2); }
.presta__index {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--laiton-text);
}
.presta h3 { font-size: 1.2rem; }
.presta p { color: #3A3F47; font-size: .98rem; }

/* ------------------------------------------------------------------ */
/* 12. Avis                                                           */
/* ------------------------------------------------------------------ */
.review {
  background: var(--blanc);
  border: 1px solid var(--beton-clair);
  border-radius: var(--r);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  height: 100%;
}
.stars { color: var(--laiton); letter-spacing: .15em; font-size: 1rem; }
.review__text { font-size: 1.02rem; line-height: 1.55; color: #2C313A; flex: 1; }
.review__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s2);
  border-top: 1px solid var(--beton-clair);
  padding-top: var(--s2);
}
.review__name { font-weight: 600; font-size: .95rem; }
.review__src {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--beton-text);
}
.review__src:hover { color: var(--laiton-text); }

/* ------------------------------------------------------------------ */
/* 13. Comparateur avant / après                                     */
/* ------------------------------------------------------------------ */
.realisation { display: flex; flex-direction: column; gap: var(--s3); }
.realisation__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem var(--s2);
}
.realisation__type { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.realisation__city {
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--laiton-text);
}
.realisation__desc { color: #3A3F47; font-size: .98rem; max-width: 60ch; }

.compare {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--beton-clair);
  border-radius: var(--r);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  background: var(--blanc);
}
.compare__pane { position: absolute; inset: 0; }
.compare__pane figcaption {
  position: absolute;
  top: 12px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--blanc);
  padding: .3rem .6rem;
  border-radius: var(--r-sm);
}
.compare__before { background: #DEDCD6; }
.compare__before figcaption { left: 12px; }
.compare__after  { background: var(--blanc); clip-path: inset(0 0 0 50%); }
.compare__after  figcaption { right: 12px; background: var(--laiton-text); }

.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--blanc);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(25,29,35,.15);
}
.compare__grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  background: var(--blanc);
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .9rem;
}
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* ------------------------------------------------------------------ */
/* 14. FAQ (accordéon natif <details>)                               */
/* ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--beton-clair); }
.faq__item { border-bottom: 1px solid var(--beton-clair); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s3) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--laiton);
  font-size: 1.4rem;
  flex: none;
  transition: transform var(--t);
}
.faq__item[open] summary::after { content: "−"; }
.faq__answer { padding-bottom: var(--s3); color: #3A3F47; max-width: 70ch; }
.faq__answer p + p { margin-top: var(--s2); }

/* ------------------------------------------------------------------ */
/* 15. Formulaire devis (multi-étapes)                               */
/* ------------------------------------------------------------------ */
.form-shell {
  background: var(--blanc);
  border: 1px solid var(--beton-clair);
  border-radius: var(--r);
  padding: clamp(1.5rem, 4vw, 3rem);
}

/* Stepper façon ligne de cote */
.stepper { margin-bottom: var(--s5); }
.stepper__track {
  display: flex;
  align-items: center;
  gap: 0;
}
.stepper__node {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
}
.stepper__dot {
  width: 11px; height: 11px;
  flex: none;
  border: 1.4px solid var(--beton);
  background: var(--blanc);
  border-radius: 50%;
  transition: background var(--t), border-color var(--t);
}
.stepper__bar {
  flex: 1;
  height: 1px;
  background: var(--beton-clair);
}
.stepper__node:last-child .stepper__bar { display: none; }
.stepper__dot.is-done { background: var(--laiton); border-color: var(--laiton); }
.stepper__dot.is-current { border-color: var(--laiton); box-shadow: 0 0 0 3px var(--laiton-12); }
.stepper__meta {
  display: flex; justify-content: space-between;
  margin-top: var(--s2);
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--beton-text);
}
.stepper__meta b { color: var(--ink); font-weight: 500; }

.form-step { display: none; }
.form-step.is-active { display: block; animation: stepIn .3s var(--t); }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.form-step__title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: .5rem; }
.form-step__hint { color: var(--beton-text); font-size: .92rem; margin-bottom: var(--s4); }

.field { margin-bottom: var(--s3); }
.field > label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: .5rem;
}
.field .req { color: var(--laiton-text); }

.input, .textarea, .select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--platre);
  border: 1px solid var(--beton-clair);
  border-radius: var(--r);
  padding: .85rem 1rem;
  transition: border-color var(--t), background var(--t);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--laiton);
  background: var(--blanc);
}
.textarea { min-height: 120px; resize: vertical; }

/* Choix en pastilles (cases/radios habillées) */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .7rem; }
.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  border: 1px solid var(--beton-clair);
  border-radius: var(--r);
  padding: .9rem 1rem;
  background: var(--platre);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.choice:hover { border-color: var(--beton-text); }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box {
  width: 18px; height: 18px; flex: none; margin-top: 1px;
  border: 1.4px solid var(--beton);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  transition: border-color var(--t), background var(--t);
}
.choice input[type="radio"] ~ .choice__box { border-radius: 50%; }
.choice__box::after {
  content: "";
  width: 9px; height: 9px;
  background: var(--blanc);
  border-radius: 1px;
  transform: scale(0);
  transition: transform var(--t);
}
.choice input[type="radio"] ~ .choice__box::after { border-radius: 50%; }
.choice__title { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.choice__desc { display: block; color: var(--beton-text); font-size: .82rem; margin-top: .15rem; }
.choice:has(input:checked) {
  border-color: var(--laiton);
  background: var(--laiton-12);
}
.choice:has(input:checked) .choice__box { background: var(--laiton); border-color: var(--laiton); }
.choice:has(input:checked) .choice__box::after { transform: scale(1); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }

.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--beton-clair);
}

.form-status {
  margin-top: var(--s3);
  font-size: .92rem;
  padding: .9rem 1rem;
  border-radius: var(--r);
  display: none;
}
.form-status.is-error { display: block; background: #FBE9E7; color: #7A271A; border: 1px solid #F1C0BA; }
.form-status.is-info  { display: block; background: var(--laiton-12); color: #5A4421; border: 1px solid rgba(156,122,69,.3); }

/* Écran de confirmation */
.form-done { display: none; text-align: left; }
.form-done.is-active { display: block; }
.form-done__mark {
  width: 54px; height: 54px;
  border: 1.5px solid var(--laiton);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--laiton);
  font-size: 1.6rem;
  margin-bottom: var(--s3);
}

/* ------------------------------------------------------------------ */
/* 16. Bloc contact                                                   */
/* ------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.info-list { display: flex; flex-direction: column; }
.info-item { padding: var(--s3) 0; border-top: 1px solid var(--beton-clair); }
.info-item:last-child { border-bottom: 1px solid var(--beton-clair); }
.info-item__label {
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--beton-text);
  margin-bottom: .4rem;
}
.info-item__value { font-size: 1.05rem; }
.info-item__value a:hover { color: var(--laiton); }

/* ------------------------------------------------------------------ */
/* 17. Bandeau CTA                                                    */
/* ------------------------------------------------------------------ */
.cta-band { text-align: center; }
.cta-band .container { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 18ch; }
.cta-band .cote { width: 120px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; }

/* ------------------------------------------------------------------ */
/* 18. Footer                                                         */
/* ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: var(--blanc); padding-block: var(--s6) var(--s4); }
.site-footer a { color: #D7D9DC; }
.site-footer a:hover { color: var(--laiton); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s5);
  padding-bottom: var(--s5);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .brand-chip { background: transparent; padding: 0; }
.footer-brand p { color: #A9ADB3; margin-top: var(--s2); max-width: 34ch; font-size: .95rem; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--laiton-on-dark);
  margin-bottom: var(--s2);
}
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; font-size: .95rem; }
.footer-legal {
  padding-top: var(--s4);
  display: flex; flex-wrap: wrap; gap: .4rem var(--s3);
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .04em; color: #9AA0A8;
}
.footer-legal a { color: #C2C6CC; }

/* ------------------------------------------------------------------ */
/* 19. Page header (sous-pages)                                       */
/* ------------------------------------------------------------------ */
.page-head { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head .eyebrow { margin-bottom: var(--s3); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: var(--s3); max-width: 18ch; }
.page-head .cote--sm { margin-bottom: var(--s3); }
.page-head .lead { margin-top: 0; }

/* ------------------------------------------------------------------ */
/* 20. Révélation au scroll                                           */
/* ------------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--t), transform .6s var(--t); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* 21. Responsive                                                     */
/* ------------------------------------------------------------------ */
@media (max-width: 940px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); }
}

@media (max-width: 720px) {
  /* Nav mobile */
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--blanc);
    border-bottom: 1px solid var(--beton-clair);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s2) var(--pad-x) var(--s3);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links a { padding: .95rem .25rem; border-bottom: 1px solid var(--beton-clair); font-size: 1rem; }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__links a[aria-current="page"] { color: var(--laiton); }
  .nav .btn { margin-top: var(--s3); justify-content: center; }
}

@media (max-width: 620px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-nav .btn { flex: 1; justify-content: center; }
  .stat { padding: var(--s3) var(--s2); }
  .brand-reno { display: none; }   /* lockup compact sur très petit écran */
}

/* ------------------------------------------------------------------ */
/* 22. Mouvement réduit                                               */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Impression simple */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; }
}

/* ==================================================================== */
/* 18. v2 — Photos réelles, galerie, visionneuse, animations           */
/* ==================================================================== */

/* --- Utilitaires image --- */
.media-frame {
  position: relative;
  border: 1px solid var(--beton-clair);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--platre);
}
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Apparition douce des images au chargement */
.js .img-fade { opacity: 0; transition: opacity .7s var(--t); }
.js .img-fade.is-loaded { opacity: 1; }

/* --- Hero plein cadre photo --- */
.hero--photo {
  min-height: clamp(520px, 84vh, 780px);
  display: flex;
  align-items: flex-end;
  color: var(--blanc);
}
.hero--photo .hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero--photo .hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% center;
  transform: scale(1.08); will-change: transform;
}
.hero--photo .hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(20,22,26,.9) 0%, rgba(20,22,26,.66) 36%, rgba(20,22,26,.28) 68%, rgba(20,22,26,.5) 100%),
    linear-gradient(0deg, rgba(20,22,26,.78) 0%, rgba(20,22,26,0) 48%);
}
.hero--photo .hero__inner {
  position: relative; z-index: 2;
  padding-block: clamp(3.5rem, 10vw, 7rem);
  max-width: 46ch;
}
.hero--photo .hero__title { color: var(--blanc); }
.hero--photo .hero__lead { color: rgba(251,250,248,.88); }
.hero--photo .btn-primary { background: var(--blanc); color: var(--ink); }
.hero--photo .btn-primary:hover { background: #fff; }
.hero--photo .btn-ghost { color: var(--blanc); border-color: rgba(255,255,255,.34); }
.hero--photo .btn-ghost:hover { border-color: var(--laiton); color: var(--blanc); }
.hero__credit {
  position: absolute; z-index: 2; right: var(--pad-x); bottom: 12px;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(251,250,248,.82);
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}

/* --- Cote qui se trace au scroll --- */
.js .cote::before { transform: scaleX(0); transform-origin: left center; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.js .cote { border-right-color: transparent; transition: border-right-color .2s ease .85s; }
.js .cote.is-drawn::before { transform: scaleX(1); }
.js .cote.is-drawn { border-right-color: var(--laiton); }

/* --- Révélations : léger décalage en cascade --- */
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }
.js .reveal[data-delay="5"] { transition-delay: .40s; }

/* --- Comparateur avec vraies images --- */
.compare__pane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare--tall { aspect-ratio: 508 / 846; max-width: 440px; margin-inline: auto; }
.compare__hint {
  margin-top: var(--s2); text-align: center;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--beton-text);
}

/* --- Filtres de galerie --- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s5); }
.filter-chip {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .55rem .9rem; border: 1px solid var(--beton-clair); border-radius: 999px;
  background: transparent; color: var(--beton-text); cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.filter-chip:hover { color: var(--ink); border-color: var(--beton-text); }
.filter-chip.is-active { background: var(--ink); color: var(--blanc); border-color: var(--ink); }
.filter-chip b { font-weight: 500; opacity: .6; margin-left: .35rem; }

/* --- Grille galerie --- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.5rem, 1.2vw, 1rem); }
.tile {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden;
  background: var(--platre); border: 1px solid var(--beton-clair);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--t); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile__overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: .8rem; opacity: 0; transition: opacity var(--t);
  background: linear-gradient(0deg, rgba(20,22,26,.72) 0%, rgba(20,22,26,0) 55%);
}
.tile:hover .tile__overlay, .tile:focus-visible .tile__overlay { opacity: 1; }
.tile__cat {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blanc);
}
.tile__plus {
  position: absolute; top: .7rem; right: .7rem; width: 26px; height: 26px;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%; color: var(--blanc); font-family: var(--font-mono); font-size: .9rem;
  opacity: 0; transform: translateY(-4px); transition: opacity var(--t), transform var(--t);
}
.tile:hover .tile__plus, .tile:focus-visible .tile__plus { opacity: 1; transform: none; }
.tile.is-hidden { display: none; }

/* --- Visionneuse plein écran (lightbox) --- */
.lightbox {
  position: fixed; inset: 0; z-index: 80; display: none;
  align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem);
  background: rgba(16,18,21,.94); opacity: 0; transition: opacity .25s var(--t);
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__stage { position: relative; max-width: min(94vw, 1000px); max-height: 88vh; text-align: center; }
.lightbox__img {
  max-width: 100%; max-height: 78vh; border-radius: var(--r);
  box-shadow: 0 24px 60px rgba(0,0,0,.5); background: var(--ink);
}
.lightbox__cap {
  margin-top: var(--s2); color: rgba(251,250,248,.82);
  font-size: .9rem;
}
.lightbox__count {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(251,250,248,.5); margin-top: .35rem;
}
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: rgba(251,250,248,.1); border: 1px solid rgba(255,255,255,.25);
  color: var(--blanc); font-size: 1.4rem; display: grid; place-items: center;
  transition: background var(--t), border-color var(--t);
}
.lightbox__btn:hover { background: rgba(251,250,248,.2); border-color: var(--laiton); }
.lightbox__btn--prev { left: -8px; }
.lightbox__btn--next { right: -8px; }
.lightbox__close {
  position: fixed; top: clamp(1rem, 3vw, 1.6rem); right: clamp(1rem, 3vw, 1.6rem);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,.3); color: var(--blanc);
  font-size: 1.3rem; display: grid; place-items: center; transition: border-color var(--t), background var(--t);
}
.lightbox__close:hover { border-color: var(--laiton); background: rgba(251,250,248,.1); }

/* --- Bande galerie d'accueil --- */
.gallery--teaser { grid-template-columns: repeat(6, 1fr); }

/* --- Accent image sur sections --- */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.media-split .media-frame { aspect-ratio: 4 / 3; }

/* ==================================================================== */
/* 19. Responsive v2                                                    */
/* ==================================================================== */
@media (max-width: 940px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery--teaser { grid-template-columns: repeat(3, 1fr); }
  .media-split { grid-template-columns: 1fr; }
  .media-split .media-frame { aspect-ratio: 16 / 10; }
}
@media (max-width: 620px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery--teaser { grid-template-columns: repeat(2, 1fr); }
  .hero--photo .hero__bg img { object-position: 64% center; }
  .lightbox__btn { width: 40px; height: 40px; }
  .lightbox__btn--prev { left: 0; }
  .lightbox__btn--next { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero--photo .hero__bg img { transform: none; }
  .js .cote::before { transform: scaleX(1); transition: none; }
  .js .cote { border-right-color: var(--laiton); }
  .tile img, .tile:hover img { transition: none; }
  .js .img-fade { opacity: 1; transition: none; }
  .lightbox { transition: none; }
}

/* ==================================================================== */
/* 20. v2.1 — Showcase de comparateurs avant/après (vraies paires)      */
/* ==================================================================== */
.compare--wide { aspect-ratio: 3 / 2; }                 /* comparateurs en rang */
.compare-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.compare-cell { display: flex; flex-direction: column; }
.compare-cap {
  margin-top: var(--s2);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--beton-text);
  display: flex; align-items: center; gap: .5rem;
}
.compare-cap::before { content: ""; width: 14px; height: 1px; background: var(--laiton); flex: none; }
.compare-feature { max-width: 460px; margin-inline: auto; }
@media (max-width: 820px) {
  .compare-row { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

/* ==================================================================== */
/* 21. v3 — Couche premium (a11y, micro-interactions, conversion)        */
/* ==================================================================== */

/* Lien d'évitement clavier (WCAG 2.4.1) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--blanc);
  padding: .7rem 1rem; border-radius: var(--r);
  font-weight: 600; font-size: .9rem;
}
.skip-link:focus { left: var(--pad-x); top: .5rem; }
main:focus { outline: none; }

/* Eyebrow lisible sur le hero photo (fond sombre) */
.hero--photo .eyebrow { color: var(--laiton-on-dark); }

/* Header : ombre fine une fois défilé */
.site-header { transition: box-shadow var(--t), background var(--t); }
.site-header.is-scrolled {
  background: rgba(237, 235, 230, 0.9);
  box-shadow: 0 1px 0 var(--beton-clair), 0 8px 24px -18px rgba(25,29,35,.42);
}

/* Élévation au survol — cartes & tuiles galerie */
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -16px rgba(25,29,35,.22);
}
.tile:hover, .tile:focus-visible {
  border-color: var(--laiton);
  box-shadow: 0 14px 30px -18px rgba(25,29,35,.32);
}
.tile:hover .tile__plus, .tile:focus-visible .tile__plus {
  border-color: rgba(255,255,255,.7); background: rgba(156,122,69,.28);
}

/* Bande stats : signaler la cellule « avis » cliquable */
.stat a { color: var(--laiton-text); border-color: var(--laiton); }
.stat a::after { content: " \2192"; font-family: var(--font-mono); }

/* Lien fléché : ne pas animer le gap (évite un léger reflow) */
.link-arrow { transition: border-color var(--t); }

/* Comparateur — finition premium (élément signature) */
.compare__handle {
  box-shadow: 0 0 0 1px rgba(25,29,35,.28), 0 0 14px rgba(0,0,0,.28);
}
.compare__grip {
  font-size: 0;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  box-shadow: 0 2px 8px rgba(25,29,35,.25);
}
.compare__grip::after {
  content: "\2039\2009\203A";
  font-family: var(--font-mono); font-size: .95rem; color: var(--ink); line-height: 1;
}
.compare.is-dragging .compare__grip,
.compare:focus-within .compare__grip {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: var(--laiton);
  box-shadow: 0 0 0 3px var(--laiton-12), 0 2px 10px rgba(25,29,35,.3);
}
.compare:focus-within { outline: 2px solid var(--laiton); outline-offset: 2px; }

/* Fallback comparateur sans JS : n'afficher proprement que la photo « après » */
html.no-js .compare__after { clip-path: none; }
html.no-js .compare__before,
html.no-js .compare__handle,
html.no-js .compare__range { display: none; }

/* Focus clavier visible sur les choix personnalisés (input masqué) */
.choice:has(input:focus-visible) { outline: 2px solid var(--laiton); outline-offset: 2px; }
/* Libellé de groupe (questions du devis) */
.field-legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .5rem; }

/* Visionneuse : focus visible en contexte sombre */
.lightbox__btn:focus-visible, .lightbox__close:focus-visible {
  outline: 2px solid var(--blanc);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(156,122,69,.55);
}

/* Barre d'appel collante — mobile uniquement (conversion) */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: var(--beton-clair);
    box-shadow: 0 -6px 20px -12px rgba(25,29,35,.45);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .95rem 1rem; font-weight: 600; font-size: .95rem;
  }
  .callbar__call { background: var(--ink); color: var(--blanc); }
  .callbar__devis { background: var(--laiton-text); color: var(--blanc); }
  body:has(.callbar) { padding-bottom: 60px; }
}

/* Numéro de téléphone sous le CTA (fond encre) */
.cta-band__tel {
  margin-top: var(--s2); font-size: .85rem; letter-spacing: .04em;
  color: rgba(251,250,248,.78);
}
.cta-band__tel a {
  color: var(--laiton-on-dark);
  border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 2px;
}
.cta-band__tel a:hover { border-color: var(--laiton-on-dark); }

/* Bandeau de réassurance (points près des conversions) */
.assurance {
  display: flex; flex-wrap: wrap; gap: .55rem 1.3rem; align-items: center;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--beton-text);
}
.assurance span { display: inline-flex; align-items: center; gap: .5rem; }
.assurance span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--laiton); flex: none;
}

/* Réduction de mouvement : neutraliser les nouveaux transforms */
@media (prefers-reduced-motion: reduce) {
  .card:hover, .tile:hover, .compare__grip,
  .compare.is-dragging .compare__grip, .compare:focus-within .compare__grip { transform: none; }
  .site-header, .compare__grip { transition: none; }
}
