/* ==========================================================================
   Delcourt Rénovation, démo BRNSG
   DA : brutalisme d'atelier adouci. Plâtre, bleu de travail, ruban orangé.
   ========================================================================== */

/* ------------------------------ Tokens ---------------------------------- */
:root {
  /* Couleur (OKLCH) */
  --platre:       oklch(96% 0.008 85);   /* blanc plâtre chaud, fond */
  --platre-2:     oklch(92.5% 0.012 85); /* surface secondaire */
  --blanc:        oklch(99% 0.004 85);
  --beton:        oklch(44% 0.02 75);    /* gris béton chaud, texte secondaire */
  --encre:        oklch(26% 0.03 255);   /* encre bleutée, texte courant */
  --bleu:         oklch(38% 0.075 250);  /* bleu de travail profond */
  --bleu-nuit:    oklch(29% 0.055 252);  /* sections sombres */
  --bleu-nuit-2:  oklch(33% 0.055 252);
  --orange:       oklch(70% 0.17 55);    /* orangé sécurité, dosé */
  --orange-fonce: oklch(56% 0.15 50);
  --tape:         oklch(88% 0.07 70);    /* ruban de masquage */
  --ligne:        color-mix(in oklch, var(--encre) 14%, transparent);
  --ring:         var(--orange-fonce);

  /* Typo fluide */
  --step--1: clamp(0.83rem, 0.79rem + 0.2vw, 0.94rem);
  --step-0:  clamp(1rem, 0.93rem + 0.35vw, 1.19rem);
  --step-1:  clamp(1.25rem, 1.11rem + 0.7vw, 1.62rem);
  --step-2:  clamp(1.56rem, 1.31rem + 1.25vw, 2.22rem);
  --step-3:  clamp(1.95rem, 1.53rem + 2.1vw, 3.05rem);
  --step-4:  clamp(2.44rem, 1.77rem + 3.35vw, 4.18rem);
  --step-5:  clamp(3.05rem, 2.01rem + 5.2vw, 5.73rem);

  --font-display: "Big Shoulders Display", "Archivo", sans-serif;
  --font-texte: "Archivo", system-ui, sans-serif;

  /* Rythme */
  --radius: 10px;
  --radius-s: 4px;
  --wrap: 1180px;
  --gouttiere: clamp(1.25rem, 4.5vw, 3rem);

  /* Motion : un seul easing signature */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 180ms;
  --dur-2: 450ms;
  --dur-3: 800ms;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-texte);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--encre);
  background: var(--platre);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain de plâtre, très léger */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.55'/></svg>");
}

h1, h2, h3, legend {
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

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

::selection {
  background: var(--bleu);
  color: var(--platre);
}

:focus-visible {
  outline: 2.5px solid var(--ring);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}

/* Barre de défilement assortie */
html {
  scrollbar-color: color-mix(in oklch, var(--beton) 55%, var(--platre)) var(--platre);
  scrollbar-width: thin;
}
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--platre); }
body::-webkit-scrollbar-thumb {
  background: color-mix(in oklch, var(--beton) 55%, var(--platre));
  border-radius: 99px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.wrap-etroit { max-width: 860px; }

section { padding-block: clamp(4rem, 9vw, 7.5rem); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 300;
  padding: 0.7rem 1.1rem;
  background: var(--bleu);
  color: var(--platre);
  border-radius: var(--radius-s);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur-1) var(--ease);
}
.skip-link:focus-visible { top: 0.75rem; }

/* --------------------------- Ligne laser (progression) ------------------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 220;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--orange);
  box-shadow: 0 0 8px color-mix(in oklch, var(--orange) 70%, transparent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ------------------------------ Header ----------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.site-header.est-cache { transform: translateY(-102%); }
.site-header.est-scrolle {
  background: color-mix(in oklch, var(--platre) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--ligne);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 780;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.brand-name em {
  font-style: normal;
  font-weight: 620;
  font-size: 0.62em;
  letter-spacing: 0.34em;
  color: var(--beton);
}
.brand:hover .brand-mark { transform: rotate(-4deg); }
.brand-mark { transition: transform var(--dur-1) var(--ease); }

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-inline: auto;
}
.site-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 560;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  padding-block: 0.35rem;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2.5px;
  background: var(--orange);
  transition: right var(--dur-2) var(--ease);
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current]::after { right: 0; }

/* ------------------------------ Boutons ----------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 2px solid var(--bleu);
  border-radius: var(--radius-s);
  font-family: var(--font-texte);
  font-size: var(--step-0);
  font-weight: 620;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease), background var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 80ms; }

.btn-primary {
  background: var(--bleu);
  color: var(--platre);
}
.btn-primary:hover {
  background: color-mix(in oklch, var(--bleu) 88%, black);
  box-shadow: 0 8px 20px -8px color-mix(in oklch, var(--bleu) 60%, transparent);
}

.btn-ghost {
  background: transparent;
  color: var(--bleu);
}
.btn-ghost:hover { background: color-mix(in oklch, var(--bleu) 9%, transparent); }

.btn-header {
  padding: 0.6rem 1.1rem;
  font-size: var(--step--1);
}

/* --------------------------- Ruban de masquage ---------------------------- */
.tape {
  display: inline-block;
  padding: 0.4rem 1.15rem;
  margin-bottom: 1.1rem;
  background: var(--tape);
  color: color-mix(in oklch, var(--encre) 88%, var(--orange-fonce));
  font-size: var(--step--1);
  font-weight: 640;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-1.2deg);
  clip-path: polygon(1.5% 0%, 98.5% 2%, 100% 26%, 99% 55%, 100% 82%, 98% 100%, 2% 98%, 0% 70%, 1% 38%, 0% 12%);
}
.tape-nuit { background: color-mix(in oklch, var(--tape) 88%, var(--orange)); }

/* ------------------------------- Hero ------------------------------------- */
.hero {
  padding-top: clamp(7rem, 14vw, 10.5rem);
  background:
    radial-gradient(900px 420px at 78% -8%, color-mix(in oklch, var(--tape) 38%, transparent), transparent 68%),
    var(--platre);
}

.hero-stage { max-width: 56rem; }

.hero h1 {
  font-size: var(--step-5);
  font-weight: 790;
  margin-block: 0.5rem 1.4rem;
}

.split .line { display: block; overflow: clip; }
.split .line > span { display: block; }

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--beton);
  max-width: 44rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 1.6rem 0 0;
  padding: 0;
  color: var(--beton);
  font-size: var(--step--1);
  font-weight: 560;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-points li::before {
  content: "";
  width: 14px;
  height: 8px;
  flex: none;
  border-left: 2.5px solid var(--orange-fonce);
  border-bottom: 2.5px solid var(--orange-fonce);
  transform: rotate(-45deg) translateY(-2px);
}

/* Entrée orchestrée du hero */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-stage > * {
    opacity: 0;
    transform: translateY(22px);
    animation: entree var(--dur-3) var(--ease) both;
  }
  .js .hero-stage > *:nth-child(1) { animation-delay: 0.05s; }
  .js .hero-stage > *:nth-child(2) { animation-delay: 0.12s; }
  .js .hero-stage > *:nth-child(3) { animation-delay: 0.3s; }
  .js .hero-stage > *:nth-child(4) { animation-delay: 0.42s; }
  .js .hero-stage > *:nth-child(5) { animation-delay: 0.54s; }
  .js .split .line > span {
    transform: translateY(112%);
    animation: ligne-haute 0.85s var(--ease) both;
  }
  .js .split .line:nth-child(1) > span { animation-delay: 0.16s; }
  .js .split .line:nth-child(2) > span { animation-delay: 0.25s; }
  .js .split .line:nth-child(3) > span { animation-delay: 0.34s; }
}
@keyframes entree { to { opacity: 1; transform: none; } }
@keyframes ligne-haute { to { transform: none; } }

/* --------------------------- Comparateur (signature) ---------------------- */
.compare-figure {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
}
.compare-figure figcaption {
  margin-top: 0.9rem;
  font-size: var(--step--1);
  color: var(--beton);
  max-width: 52rem;
}

.compare-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: clip;
  border-radius: var(--radius);
  background: var(--platre-2);
  box-shadow: 0 24px 60px -30px color-mix(in oklch, var(--encre) 45%, transparent);
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.layer { position: absolute; inset: 0; }
.layer svg { width: 100%; height: 100%; }

.layer-after {
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.badge {
  position: absolute;
  top: 0.9rem;
  padding: 0.3rem 0.9rem;
  font-size: var(--step--1);
  font-weight: 660;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-s);
}
.badge-avant {
  right: 0.9rem;
  background: color-mix(in oklch, var(--encre) 78%, transparent);
  color: var(--platre);
}
.badge-apres {
  left: 0.9rem;
  background: var(--tape);
  color: color-mix(in oklch, var(--encre) 88%, var(--orange-fonce));
}

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  background: var(--orange);
  transform: translateX(-50%);
  box-shadow: 0 0 10px color-mix(in oklch, var(--orange) 65%, transparent);
  pointer-events: none;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--orange);
  background: var(--blanc);
  color: var(--bleu);
  cursor: ew-resize;
  touch-action: none;
  transition: box-shadow var(--dur-1) var(--ease);
  box-shadow: 0 6px 18px -6px color-mix(in oklch, var(--encre) 50%, transparent);
}
.compare-handle svg { width: 26px; height: 26px; }
.compare-handle:hover,
.compare .is-dragging .compare-handle {
  box-shadow: 0 6px 18px -6px color-mix(in oklch, var(--encre) 50%, transparent),
              0 0 0 8px color-mix(in oklch, var(--orange) 22%, transparent);
}
.compare-handle:focus-visible {
  outline: 2.5px solid var(--ring);
  outline-offset: 4px;
  border-radius: 50%;
}

.compare-hint {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  padding: 0.35rem 1rem;
  background: color-mix(in oklch, var(--encre) 78%, transparent);
  color: var(--platre);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 99px;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .compare-hint { animation: hint-glisse 2.2s var(--ease) infinite; }
}
@keyframes hint-glisse {
  0%, 100% { transform: translateX(calc(-50% - 7px)); }
  50% { transform: translateX(calc(-50% + 7px)); }
}
.compare.est-utilise .compare-hint { opacity: 0; }

/* ----------------------------- Savoir-faire ------------------------------- */
.metiers { padding-top: clamp(4rem, 8vw, 6rem); }

.h2 {
  font-size: var(--step-4);
  margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
}

.section-intro {
  max-width: 46rem;
  color: var(--beton);
  margin-top: -0.8rem;
  margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
}

.metier-liste { border-top: 2px solid var(--encre); }

.metier-row {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) 2.4fr auto;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.3rem, 3vw, 2rem) clamp(0.6rem, 2vw, 1.4rem);
  border-bottom: 2px solid var(--encre);
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.metier-row h3 {
  font-size: var(--step-3);
  font-weight: 770;
}
.metier-row p {
  color: var(--beton);
  max-width: 38rem;
  transition: color var(--dur-2) var(--ease);
}
.metier-glyphe {
  width: clamp(40px, 5vw, 52px);
  height: auto;
  color: var(--orange-fonce);
  justify-self: end;
  transition: transform var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.metier-row:hover {
  background: var(--bleu);
  color: var(--platre);
}
.metier-row:hover p { color: color-mix(in oklch, var(--platre) 82%, var(--bleu)); }
.metier-row:hover .metier-glyphe {
  color: var(--orange);
  transform: rotate(-6deg) scale(1.08);
}

/* ------------------------------ Chantiers --------------------------------- */
.chantiers { background: var(--platre-2); }

/* ------------------------------- Méthode ---------------------------------- */
.methode {
  background: var(--bleu-nuit);
  color: var(--platre);
}
.methode .h2 { color: var(--blanc); }

.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
  counter-reset: etape;
}
.etape {
  position: relative;
  background: var(--bleu-nuit-2);
  border: 1px solid color-mix(in oklch, var(--platre) 14%, transparent);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.etape:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklch, var(--orange) 55%, transparent);
}
.etape-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 780;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.etape h3 {
  font-size: var(--step-1);
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
  color: var(--blanc);
}
.etape p {
  color: color-mix(in oklch, var(--platre) 78%, var(--bleu-nuit));
  font-size: var(--step--1);
  line-height: 1.65;
}

.garanties {
  list-style: none;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2.4rem;
  border: 1px dashed color-mix(in oklch, var(--orange) 60%, transparent);
  border-radius: var(--radius);
  font-size: var(--step--1);
  font-weight: 560;
}
.garanties li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.garanties li::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--orange);
}

/* -------------------------------- Zone ------------------------------------ */
.zone-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.zone-carte {
  margin: 0;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.8rem);
  box-shadow: 0 24px 60px -36px color-mix(in oklch, var(--encre) 45%, transparent);
}
.zone-carte svg { width: 100%; height: auto; }

.carte-region {
  fill: color-mix(in oklch, var(--bleu) 8%, var(--blanc));
  stroke: var(--bleu);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.carte-frontiere {
  stroke: var(--bleu);
  stroke-width: 2;
  stroke-dasharray: 3 7;
  stroke-linecap: round;
  opacity: 0.55;
}
.carte-mer, .carte-pays {
  font-family: var(--font-texte);
  font-size: 13px;
  font-style: italic;
  fill: var(--beton);
  letter-spacing: 0.08em;
}
.carte-rayon {
  fill: color-mix(in oklch, var(--orange) 10%, transparent);
  stroke: var(--orange-fonce);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}
.carte-rayon-pulse {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  .carte-rayon-pulse { animation: pulse-rayon 3.2s var(--ease) infinite; }
}
@keyframes pulse-rayon {
  0% { opacity: 0.55; transform: scale(0.86); }
  70%, 100% { opacity: 0; transform: scale(1.18); }
}
.carte-villes circle { fill: var(--beton); }
.carte-villes text {
  font-family: var(--font-texte);
  font-size: 13px;
  font-weight: 500;
  fill: var(--beton);
}
.carte-couvertes circle { fill: var(--orange-fonce); opacity: 0.8; }
.carte-atelier circle { fill: var(--orange-fonce); stroke: var(--blanc); stroke-width: 2.5; }
.carte-atelier path { stroke: var(--orange-fonce); stroke-width: 2; }
.carte-atelier text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 740;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  fill: var(--encre);
}

.zone-carte figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.8rem;
  margin-top: 1rem;
  font-size: var(--step--1);
  color: var(--beton);
}
.legende-atelier, .legende-rayon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.legende-atelier::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orange-fonce);
}
.legende-rayon::before {
  content: "";
  width: 22px;
  height: 0;
  border-top: 2.5px dashed var(--orange-fonce);
}

.zone-texte > p { max-width: 40rem; color: var(--beton); }

.villes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.6rem 0;
  padding: 0;
}
.villes li {
  padding: 0.42rem 0.95rem;
  background: var(--blanc);
  border: 1.5px solid var(--ligne);
  border-radius: 99px;
  font-size: var(--step--1);
  font-weight: 560;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.villes li:hover {
  border-color: var(--orange-fonce);
  background: color-mix(in oklch, var(--tape) 40%, var(--blanc));
  transform: translateY(-2px);
}
.villes li:first-child {
  background: var(--bleu);
  border-color: var(--bleu);
  color: var(--platre);
  font-weight: 640;
}

.zone-note { font-size: var(--step--1); }

/* -------------------------------- FAQ ------------------------------------- */
.faq { background: var(--platre-2); }

.faq-liste { border-top: 2px solid var(--encre); }

.faq details { border-bottom: 2px solid var(--encre); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0.4rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-1) var(--ease), padding-left var(--dur-2) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--bleu); padding-left: 0.8rem; }

.faq-plus {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--orange-fonce);
  translate: 0 -50%;
  transition: rotate var(--dur-2) var(--ease);
}
.faq-plus::after { rotate: 90deg; }
.faq details[open] .faq-plus::after { rotate: 0deg; }
.faq details[open] .faq-plus::before { rotate: 180deg; }

.faq details p {
  padding: 0 0.4rem 1.3rem;
  max-width: 44rem;
  color: var(--beton);
}

/* -------------------------------- Devis ----------------------------------- */
.devis-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.devis-texte > p { max-width: 36rem; color: var(--beton); }

.devis-contacts {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.devis-contacts li {
  display: grid;
  gap: 0.1rem;
}
.devis-contact-label {
  font-size: var(--step--1);
  font-weight: 640;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--beton);
}
.devis-contacts a,
.devis-contact-valeur {
  font-weight: 560;
  overflow-wrap: anywhere;
}
.devis-contacts a { text-decoration-color: var(--orange-fonce); text-underline-offset: 3px; }
.devis-contacts a:hover { color: var(--bleu); }

.devis-note {
  margin-top: 1.6rem;
  font-size: var(--step--1);
  color: var(--beton);
  border-left: 3px solid var(--orange);
  padding-left: 0.9rem;
}

.devis-carte {
  position: relative;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  box-shadow: 0 24px 60px -36px color-mix(in oklch, var(--encre) 45%, transparent);
}

.champ-groupe {
  border: 0;
  margin: 0 0 1.4rem;
  padding: 0;
}
.champ-groupe legend {
  font-size: var(--step-0);
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.travaux-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.6rem;
}
.travaux-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.travaux-carte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.85rem 0.9rem;
  border: 2px solid var(--ligne);
  border-radius: var(--radius-s);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.25;
  color: var(--beton);
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.travaux-carte svg { width: 26px; height: 26px; }
.travaux-option:hover .travaux-carte { border-color: var(--bleu); transform: translateY(-2px); }
.travaux-option input:checked + .travaux-carte {
  border-color: var(--bleu);
  background: color-mix(in oklch, var(--bleu) 8%, var(--blanc));
  color: var(--bleu);
}
.travaux-option input:focus-visible + .travaux-carte {
  outline: 2.5px solid var(--ring);
  outline-offset: 3px;
}

.champ { margin-bottom: 1.2rem; }
.champ-rangee {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.champ label {
  display: block;
  font-weight: 620;
  font-size: var(--step--1);
  margin-bottom: 0.4rem;
}
.champ-optionnel { font-weight: 400; color: var(--beton); }

.champ input,
.champ textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--ligne);
  border-radius: var(--radius-s);
  background: var(--platre);
  font: inherit;
  color: var(--encre);
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.champ input:hover, .champ textarea:hover { border-color: color-mix(in oklch, var(--encre) 32%, transparent); }
.champ input:focus-visible, .champ textarea:focus-visible {
  outline: none;
  border-color: var(--bleu);
  background: var(--blanc);
}
.champ input[aria-invalid="true"],
.champ textarea[aria-invalid="true"] { border-color: var(--orange-fonce); }

.champ-suffixe { position: relative; }
.champ-suffixe span {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  translate: 0 -50%;
  color: var(--beton);
  font-weight: 600;
  pointer-events: none;
}
.champ-suffixe input { padding-right: 3rem; }

.champ-erreur {
  margin-top: 0.4rem;
  font-size: var(--step--1);
  font-weight: 560;
  color: var(--orange-fonce);
}

.champ-piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consentement {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: var(--step--1);
  color: var(--beton);
  cursor: pointer;
  margin-block: 0.4rem 0.2rem;
}
.consentement input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--bleu);
  cursor: pointer;
}

.btn-envoyer {
  width: 100%;
  margin-top: 1.2rem;
  padding-block: 1rem;
}

/* État succès (démo) */
.devis-succes {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
  padding-block: 1rem;
}
.devis-succes[hidden] { display: none; }
.devis-succes svg {
  width: 54px;
  height: 54px;
  color: var(--orange-fonce);
}
.devis-succes h3 {
  font-size: var(--step-2);
  letter-spacing: 0.03em;
}
.devis-succes p { color: var(--beton); max-width: 34rem; }
.devis-succes-demo {
  font-weight: 640;
  color: var(--encre) !important;
  background: var(--tape);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-s);
}

/* ------------------------------- Footer ----------------------------------- */
.site-footer {
  background: var(--bleu-nuit);
  color: var(--platre);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.6rem;
}

.footer-grille {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid color-mix(in oklch, var(--platre) 16%, transparent);
}

.brand-footer .brand-name em { color: color-mix(in oklch, var(--platre) 65%, var(--bleu-nuit)); }
.footer-marque p {
  margin-top: 1rem;
  max-width: 30rem;
  color: color-mix(in oklch, var(--platre) 78%, var(--bleu-nuit));
  font-size: var(--step--1);
}

.footer-nav {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.footer-nav a,
.footer-contact a {
  color: color-mix(in oklch, var(--platre) 85%, var(--bleu-nuit));
  text-decoration: none;
  font-size: var(--step--1);
  width: fit-content;
  transition: color var(--dur-1) var(--ease);
}
.footer-nav a:hover, .footer-contact a:hover {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact {
  font-style: normal;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  font-size: var(--step--1);
  color: color-mix(in oklch, var(--platre) 85%, var(--bleu-nuit));
}
.footer-contact a { overflow-wrap: anywhere; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.4rem;
  font-size: var(--step--1);
  color: color-mix(in oklch, var(--platre) 70%, var(--bleu-nuit));
}
.footer-legal a {
  color: var(--orange);
  font-weight: 620;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-1) var(--ease);
}
.footer-legal a:hover { color: color-mix(in oklch, var(--orange) 80%, white); }

/* ---------------------------- CTA mobile collant --------------------------- */
.cta-mobile {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 180;
  display: none;
  padding: 1rem;
  text-align: center;
  background: var(--bleu);
  color: var(--platre);
  font-weight: 640;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px -12px color-mix(in oklch, var(--encre) 65%, transparent);
  transform: translateY(140%);
  transition: transform var(--dur-2) var(--ease);
}
.cta-mobile.est-visible { transform: none; }
.cta-mobile:active { transform: scale(0.98); }

/* ------------------------------- Reveals ----------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].est-la { opacity: 1; transform: none; }

.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal-group].est-la > * { opacity: 1; transform: none; }

/* --------------------------- Reduced motion --------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; }
  .js .hero-stage > *, .js .split .line > span { opacity: 1; transform: none; animation: none; }
  .compare-hint { animation: none; }
}

/* ------------------------------ Responsive ---------------------------------- */
@media (max-width: 1000px) {
  .zone-grille, .devis-grille { grid-template-columns: 1fr; }
  .zone-carte { max-width: 620px; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .metier-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "titre glyphe" "texte texte";
    row-gap: 0.7rem;
  }
  .metier-row h3 { grid-area: titre; }
  .metier-row p { grid-area: texte; }
  .metier-glyphe { grid-area: glyphe; }
}

@media (max-width: 720px) {
  .compare-frame { aspect-ratio: 4 / 3; }
  .compare-handle { width: 50px; height: 50px; }
  .champ-rangee { grid-template-columns: 1fr; gap: 0; }
  .footer-grille { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-legal { flex-direction: column; }
  .cta-mobile { display: block; }
  body { padding-bottom: 4.5rem; }
}

@media (max-width: 480px) {
  .btn-header { padding: 0.55rem 0.85rem; }
  .brand-name { font-size: 1.15rem; }
  .hero-cta .btn { width: 100%; }
  .badge { top: 0.6rem; }
  .badge-avant { right: 0.6rem; }
  .badge-apres { left: 0.6rem; }
}
