/* ==========================================================================
   carport-broye.ch — système de design (bois + métal, Broye VD/FR)
   Structure extraite du squelette C10. Le contenu ne dépend jamais du JS
   ni du scroll pour être visible.
   ========================================================================== */

/* ---- Polices auto-hébergées (variables, latin) ---- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/font-titre-var.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/font-texte-var.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-display: swap;
}

/* ---- Tokens ----
   Matière bois + métal : ambre/chêne chaud sur structure graphite. --sable
   sert de badge secondaire "aluminium" (gris acier) pour marquer visuellement
   la dualité des deux matériaux phares du site. */
:root {
  /* Profondeur : du fond le plus sombre à la surface */
  --abysse:  #14100b;
  --profond: #221a12;
  --moyen:   #3d2c1a;
  --surface: #a15a2c;
  --clair:   #d98f4e;
  --lumiere: #f2b673;
  --ecume:   #fff3e4;

  /* Échelle de grandeur (population des communes, petit village → ville) */
  --froid:  #8b96a0;
  --tiede:  #b9976a;
  --chaud:  #d98f4e;
  --brulant:#e2632e;
  --alerte: #ff8a5b;
  --sable:  #9aa3ab;

  /* Texte sur fond profond */
  --texte:      #d9c6ae;
  --texte-fort: #fdf3e7;
  --texte-2:    #a6906f;

  /* Verre */
  --glass:     rgba(255, 233, 200, .055);
  --glass-2:   rgba(255, 233, 200, .09);
  --glass-brd: rgba(242, 182, 115, .18);
  --glow:      rgba(217, 143, 78, .45);

  /* Ombres : bois brûlé, jamais du noir plat */
  --shadow-xs:    0 1px 2px rgba(20, 14, 8, .3);
  --shadow-card:  0 4px 10px rgba(20, 14, 8, .3), 0 24px 60px rgba(20, 14, 8, .5);
  --shadow-float: 0 8px 18px rgba(20, 14, 8, .35), 0 34px 80px rgba(20, 14, 8, .6);
  --shadow-cta:   0 0 0 1px rgba(242, 182, 115, .35), 0 10px 30px rgba(161, 90, 44, .5);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-pill: 999px;

  --section-y: clamp(4rem, 9vw, 7rem);
  --container: 72rem;
  --gutter: clamp(1.125rem, 4vw, 2rem);

  --f-titre: 'Fraunces', system-ui, -apple-system, sans-serif;
  --f-texte: 'Manrope', system-ui, -apple-system, sans-serif;
  --fs-h1: clamp(2.3rem, 1.2rem + 4.4vw, 4rem);
  --fs-h2: clamp(1.6rem, 1.1rem + 2.2vw, 2.5rem);
  --fs-h3: 1.2rem;
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-stat: clamp(2.4rem, 1.4rem + 3.6vw, 3.6rem);

  --z-fond: 0;
  --z-contenu: 1;
  --z-header: 40;
  --z-nav: 50;
  --z-modal: 60;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--abysse);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: var(--fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-titre);
  color: var(--texte-fort);
  line-height: 1.14;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0 0 .6em;
}
h1 { font-size: var(--fs-h1); font-weight: 600; }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 650; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }

p, ul, ol { margin: 0 0 1.1em; }
main p, main li { max-width: 68ch; text-wrap: pretty; }
ul, ol { padding-left: 1.35em; }
li { margin-bottom: .4em; }

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

strong { color: var(--texte-fort); font-weight: 700; }
small { font-size: var(--fs-small); color: var(--texte-2); }

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

:focus-visible {
  outline: 3px solid var(--lumiere);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: .5rem;
  background: var(--ecume);
  color: var(--abysse);
  font-weight: 700;
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  z-index: 100;
}
.skip-link:focus { left: .5rem; }

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: var(--z-contenu);
}

section { padding-block: var(--section-y); position: relative; z-index: var(--z-contenu); }
section.tight { padding-block: calc(var(--section-y) * .55); }

/* ---- Rythme : on remonte à la surface, puis on replonge ---- */
.s-blanc {
  background: linear-gradient(180deg, #faf6f0, #f3ebe0);
  color: #3a2a1a;
  --texte:      #3a2a1a;
  --texte-fort: #241a10;
  --texte-2:    #6b5439;
  --lumiere:    #a15a2c;
  --clair:      #b96a34;
  --ecume:      #241a10;
  --glass:      rgba(255, 255, 255, .8);
  --glass-2:    rgba(255, 255, 255, .92);
  --glass-brd:  rgba(36, 26, 16, .1);
  --glow:       rgba(161, 90, 44, .25);
  --shadow-xs:    0 1px 2px rgba(36, 26, 16, .06);
  --shadow-card:  0 2px 4px rgba(36, 26, 16, .05), 0 12px 30px rgba(36, 26, 16, .09);
  --shadow-float: 0 8px 16px rgba(36, 26, 16, .07), 0 26px 54px rgba(36, 26, 16, .13);
}
.s-blanc .carte,
.s-blanc .stat,
.s-blanc .etapes li,
.s-blanc .prix-carte,
.s-blanc .faq-liste details,
.s-blanc .table-scroll {
  background: #fff;
  border-color: rgba(36, 26, 16, .09);
  box-shadow: var(--shadow-card);
}
.s-blanc .icone-pastille { background: #f3e7d8; border-color: rgba(36, 26, 16, .08); color: #8a5423; }
.s-blanc thead th { background: #f1e4d2; color: #7a4a1f; }
.s-blanc tbody tr:hover { background: #faf3e8; }
.s-blanc th, .s-blanc td { border-top-color: rgba(36, 26, 16, .09); }
.s-blanc .etapes li::before { color: rgba(217, 143, 78, .13); }
.s-blanc .encadre { background: #f6ead9; border-color: rgba(161, 90, 44, .22); }
.s-blanc .encadre.avertissement { background: #fdecea; border-color: rgba(196, 62, 42, .28); }
.s-blanc .chip { background: #f3e7d8; color: #7a4a1f; border-color: rgba(36, 26, 16, .08); }
.s-blanc .chip-liste a { background: #fff; color: #241a10; border-color: rgba(36, 26, 16, .12); }
.s-blanc .chip-liste a:hover { border-color: #a15a2c; color: #7a4a1f; }
.s-blanc .btn-ghost { background: #fff; color: #7a4a1f; border-color: rgba(36, 26, 16, .16); }
.s-blanc .btn-ghost:hover { border-color: #a15a2c; color: #241a10; }
.s-blanc .reassurance svg, .s-blanc .devis-aside svg { filter: none; }
.s-blanc .sources { border-top-color: rgba(36, 26, 16, .12); }
.s-blanc .stat .nombre, .s-blanc .hero-carte .valeur { text-shadow: none; }

/* Sections immergées */
.s-fonce { background: rgba(61, 44, 26, .42); }
.s-hero { background: transparent; }

/* ==========================================================================
   LE "VIVANT" — calque de fond fixe, masses ambrées qui dérivent en CSS pur.
   Jamais de contenu masqué en attendant ce calque : purement décoratif,
   pointer-events: none, coupé par prefers-reduced-motion (fin de fichier).
   ========================================================================== */
.fond-vivant { position: fixed; inset: 0; z-index: var(--z-fond); overflow: hidden; pointer-events: none; isolation: isolate; }

.fond-vivant i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
  opacity: .55;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.fond-vivant .masse-1 {
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; top: -22vw; right: -14vw;
  background: radial-gradient(circle at 40% 40%, #b9682f, transparent 65%);
  animation: derive1 26s ease-in-out infinite alternate;
}
.fond-vivant .masse-2 {
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; bottom: -18vw; left: -16vw;
  background: radial-gradient(circle at 55% 45%, #6b3d1f, transparent 62%);
  animation: derive2 34s ease-in-out infinite alternate;
}
.fond-vivant .masse-3 {
  width: 44vw; height: 44vw; max-width: 560px; max-height: 560px; top: 38%; left: 42%;
  background: radial-gradient(circle at 50% 50%, #d98f4e, transparent 60%); opacity: .3;
  animation: derive3 30s ease-in-out infinite alternate;
}
.fond-vivant .texture {
  position: absolute; inset: -30%; mix-blend-mode: screen; opacity: .11; filter: blur(14px);
  background:
    radial-gradient(ellipse 34% 12% at 22% 18%, rgba(242, 182, 115, .8), transparent 60%),
    radial-gradient(ellipse 26% 9%  at 68% 34%, rgba(217, 143, 78, .7), transparent 58%),
    radial-gradient(ellipse 30% 11% at 44% 62%, rgba(242, 182, 115, .6), transparent 62%),
    radial-gradient(ellipse 22% 8%  at 82% 78%, rgba(217, 143, 78, .65), transparent 55%),
    radial-gradient(ellipse 28% 10% at 12% 84%, rgba(242, 182, 115, .5), transparent 60%);
  animation: caustiques 28s ease-in-out infinite alternate;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.fond-vivant .rayon {
  top: -40vh; left: 52%; width: min(38vw, 440px); height: 190vh; border-radius: 0;
  background: linear-gradient(180deg, rgba(242, 182, 115, .3), rgba(217, 143, 78, .1) 45%, transparent 80%);
  filter: blur(52px); transform-origin: top center; transform: rotate(16deg);
  animation: rai 19s ease-in-out infinite alternate;
  will-change: transform;
  backface-visibility: hidden;
}

@keyframes derive1 { from { transform: translate3d(0,0,0) scale(1); }    to { transform: translate3d(-5%,4%,0) scale(1.12); } }
@keyframes derive2 { from { transform: translate3d(0,0,0) scale(1.06); } to { transform: translate3d(7%,-5%,0) scale(1); } }
@keyframes derive3 { from { transform: translate3d(0,0,0); }             to { transform: translate3d(-8%,-6%,0); } }
@keyframes caustiques { from { transform: translate3d(-2%,-1%,0) scale(1); } to { transform: translate3d(3%,2%,0) scale(1.14); } }
@keyframes rai { from { transform: rotate(13deg) translateX(-40px); } to { transform: rotate(20deg) translateX(50px); } }

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--f-texte);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  padding: .85rem 1.7rem;
  min-height: 48px;
  border-radius: var(--r-pill);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease-out, background-color .2s, border-color .2s, color .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--clair), var(--surface));
  color: #201304;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  color: #201304;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(242, 182, 115, .6), 0 16px 42px rgba(217, 143, 78, .55);
}
.btn-wa { background: linear-gradient(135deg, #35d17e, #12925a); color: #032218; box-shadow: 0 0 0 1px rgba(53,209,126,.35), 0 10px 30px rgba(18, 140, 80, .45); }
.btn-wa:hover { color: #032218; transform: translateY(-2px); }
.btn-ghost {
  background: var(--glass);
  color: var(--texte-fort);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--lumiere); color: var(--lumiere); }
.btn-blanc { background: var(--ecume); color: #2c1c0a; box-shadow: var(--shadow-card); }
.btn-blanc:hover { color: #2c1c0a; transform: translateY(-2px); }

/* ---- Verre ---- */
.glass {
  background: linear-gradient(165deg, var(--glass-2), rgba(255, 255, 255, .02));
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), var(--shadow-card);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .glass { -webkit-backdrop-filter: blur(16px) saturate(1.35); backdrop-filter: blur(16px) saturate(1.35); }
}

/* ---- Chips & badges ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  color: var(--lumiere);
  border-radius: var(--r-pill);
  font-size: .845rem;
  font-weight: 700;
  padding: .42rem 1rem;
}
.chip--data { background: var(--glass); }
.chip--sable { color: var(--sable); border-color: rgba(154, 163, 171, .3); }

.chip-liste { display: flex; flex-wrap: wrap; gap: .65rem; padding: 0; margin: 0 0 1.1em; list-style: none; }
.chip-liste li { margin: 0; }
.chip-liste a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-pill);
  padding: .58rem 1.15rem;
  min-height: 44px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--texte-fort);
  text-decoration: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color .2s, transform .2s cubic-bezier(.16,1,.3,1), color .2s;
}
.chip-liste a:hover { border-color: var(--lumiere); color: var(--lumiere); transform: translateY(-2px); }
.chip-liste .pin { color: var(--clair); flex: none; }

/* ---- Header : barre flottante en verre ---- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); padding-top: 12px; background: transparent; }
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.9rem;
  padding: .45rem .6rem .45rem 1.2rem;
  margin-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  border-radius: var(--r-pill);
  background: rgba(34, 26, 18, .72);
  border: 1px solid var(--glass-brd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 18px 46px rgba(20, 14, 8, .5);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header .wrap { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-titre);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--texte-fort);
  text-decoration: none;
  margin-right: auto;
}
.logo svg { flex: none; filter: drop-shadow(0 0 9px var(--glow)); animation: respire 4.2s ease-in-out infinite; }
@keyframes respire { 50% { filter: drop-shadow(0 0 18px var(--glow)); } }
.logo span { color: var(--clair); }

.site-header nav { display: flex; align-items: center; gap: 1.35rem; }
.site-header nav a { font-size: .97rem; font-weight: 650; color: var(--texte); text-decoration: none; padding: .35rem 0; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--lumiere); }
.site-header nav .mobile-devis { display: none; }

.cta-header { padding: .6rem 1.25rem; min-height: 42px; font-size: .94rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; color: var(--texte-fort); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icone-fermer { display: none; }
.nav-toggle[aria-expanded="true"] .icone-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icone-fermer { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-header nav {
    display: none;
    position: absolute;
    inset: calc(100% + 8px) 0 auto 0;
    z-index: var(--z-nav);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(26, 19, 12, .97);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-float);
    padding: .6rem 0;
  }
  @supports (backdrop-filter: blur(1px)) {
    .site-header nav { background: rgba(26, 19, 12, .82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
  }
  .site-header nav.nav-open { display: flex; }
  .site-header nav a { padding: .85rem 1.4rem; font-size: 1.05rem; }
  .site-header nav .mobile-devis { display: block; color: var(--lumiere); }
  .cta-header { display: none; }
  body.nav-locked { overflow: hidden; }
}

/* ---- Hero ---- */
.hero { padding-block: clamp(3rem, 7vw, 5rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero .wrap { display: grid; gap: clamp(2.4rem, 5vw, 3.8rem); align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.12fr .88fr; } }
.hero h1 { margin-bottom: .5em; }
.hero h1 em { font-style: normal; color: var(--lumiere); }
.hero .lead { font-size: clamp(1.08rem, 1rem + .5vw, 1.24rem); color: var(--texte); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }
.hero-note { margin-top: 1.1rem; font-size: .92rem; color: var(--texte-2); max-width: 40em; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes eveil { from { box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 0 0 rgba(20,14,8,0); } }
  .hero-carte { animation: eveil 1.1s cubic-bezier(.16, 1, .3, 1); }
}

/* Carte de mesure */
.hero-carte { padding: clamp(1.5rem, 3.5vw, 2.2rem); box-shadow: inset 0 1px 0 rgba(255,255,255,.13), var(--shadow-float); }
.hero-carte h2, .hero-carte h3 { font-size: 1.05rem; font-weight: 700; color: var(--texte); margin-bottom: .2rem; }
.hero-carte .valeur {
  font-family: var(--f-titre);
  font-size: clamp(3.6rem, 2rem + 6.5vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ecume);
  text-shadow: 0 0 46px rgba(242, 182, 115, .5);
  font-variant-numeric: tabular-nums;
  margin: .3rem 0 .2rem;
}
.hero-carte .valeur small { font-size: .28em; font-weight: 700; color: var(--clair); letter-spacing: 0; }

/* ---- Bandeau réassurance ---- */
.reassurance {
  border-block: 1px solid rgba(242, 182, 115, .12);
  background: linear-gradient(180deg, rgba(61, 44, 26, .5), rgba(20, 16, 11, .3));
  padding-block: 1.1rem;
  position: relative;
  z-index: var(--z-contenu);
}
@supports (backdrop-filter: blur(1px)) { .reassurance { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } }
.reassurance ul { display: flex; flex-wrap: wrap; gap: .55rem 2.2rem; justify-content: center; list-style: none; margin: 0; padding: 0; }
.reassurance li { display: inline-flex; align-items: center; gap: .55rem; font-size: .94rem; font-weight: 650; color: var(--texte); margin: 0; }
.reassurance svg { color: var(--clair); flex: none; filter: drop-shadow(0 0 6px var(--glow)); }

/* ---- Cartes ---- */
.grille { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); margin-block: 2rem .5rem; }
.carte {
  background: linear-gradient(165deg, var(--glass-2), rgba(255, 255, 255, .015));
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), var(--shadow-card);
  padding: 1.7rem 1.6rem;
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s;
}
@supports (backdrop-filter: blur(1px)) { .carte { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }
.carte:hover { transform: translateY(-3px); border-color: rgba(242, 182, 115, .35); }
.carte p:last-child, .carte ul:last-child { margin-bottom: 0; }
.carte .lien { font-weight: 700; text-decoration: none; }
.carte .lien::after { content: " →"; }
.carte .lien:hover { text-decoration: underline; }

.icone-pastille {
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(217, 143, 78, .14);
  border: 1px solid var(--glass-brd);
  color: var(--lumiere);
  display: grid; place-items: center; margin-bottom: 1rem;
}

/* ---- Stats ---- */
.stats { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); margin-block: 2rem; }
.stat {
  background: linear-gradient(165deg, var(--glass-2), rgba(255, 255, 255, .015));
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), var(--shadow-card);
  padding: 1.6rem 1.5rem 1.4rem;
}
@supports (backdrop-filter: blur(1px)) { .stat { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }
.stat .nombre {
  font-family: var(--f-titre);
  font-size: var(--fs-stat);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.05;
  color: var(--ecume);
  text-shadow: 0 0 34px rgba(242, 182, 115, .35);
  font-variant-numeric: tabular-nums;
  display: block;
}
.stat .nombre small { font-size: .4em; font-weight: 700; color: var(--clair); }
.stat p { margin: .55rem 0 0; font-size: var(--fs-small); }

/* ---- Étapes ---- */
.etapes {
  display: grid; gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  counter-reset: etape; list-style: none; padding: 0; margin-block: 2rem .5rem;
}
.etapes li {
  counter-increment: etape;
  position: relative;
  background: linear-gradient(165deg, var(--glass-2), rgba(255, 255, 255, .015));
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), var(--shadow-card);
  padding: 1.8rem 1.6rem 1.5rem;
  overflow: hidden;
  margin: 0;
}
@supports (backdrop-filter: blur(1px)) { .etapes li { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }
.etapes li::before {
  content: counter(etape, decimal-leading-zero);
  position: absolute; top: -.32em; right: .18em;
  font-family: var(--f-titre); font-size: 4.6rem; font-weight: 700; letter-spacing: -.03em;
  color: rgba(242, 182, 115, .1); line-height: 1; pointer-events: none;
}
.etapes h3 { position: relative; margin-bottom: .4rem; }
.etapes p { position: relative; margin: 0; font-size: var(--fs-small); }

/* ---- Tableaux ---- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: 1.9rem;
  border-radius: var(--r-md);
  background: linear-gradient(165deg, var(--glass-2), rgba(255, 255, 255, .015));
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-card);
}
@supports (backdrop-filter: blur(1px)) { .table-scroll { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }
table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 34rem; }
caption { text-align: left; font-weight: 700; color: var(--texte-fort); padding: 1.2rem 1.4rem .4rem; font-size: 1.02rem; }
th, td { text-align: left; padding: .82rem 1.4rem; border-top: 1px solid rgba(242, 182, 115, .1); vertical-align: top; }
thead th { border-top: 0; background: rgba(242, 182, 115, .06); color: var(--clair); font-size: .86rem; letter-spacing: .02em; }
tbody th { font-weight: 650; color: var(--texte-fort); }
tbody tr:hover { background: rgba(242, 182, 115, .045); }
td .fh { font-weight: 800; color: var(--lumiere); white-space: nowrap; font-variant-numeric: tabular-nums; }
td .regime-vd { font-weight: 700; color: var(--clair); }
td .regime-fr { font-weight: 700; color: var(--sable); }

/* ---- Relevé sur axe partagé (comparaison population) ---- */
.releve { margin-block: 2rem; }
.releve-liste { list-style: none; padding: 0; margin: 0; position: relative; }
.releve-liste li {
  display: grid;
  grid-template-columns: var(--col-nom) 1fr var(--col-val);
  align-items: center;
  gap: .9rem;
  margin: 0;
  padding: .42rem 0;
  max-width: none;
}
.r-nom { font-size: .92rem; font-weight: 650; color: var(--texte-fort); line-height: 1.25; }
.r-nom a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(242, 182, 115, .35); }
.r-nom a:hover { color: var(--lumiere); }
.r-nom small { display: block; font-weight: 500; font-size: .78rem; }
.r-piste {
  position: relative;
  height: 15px;
  border-radius: 4px;
  background: rgba(242, 182, 115, .07);
  box-shadow: inset 0 0 0 1px rgba(242, 182, 115, .09);
}
.r-barre {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) / var(--max, 11000) * 100%);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--froid), var(--tiede) 45%, var(--chaud) 72%, var(--brulant));
}
.r-val {
  font-family: var(--f-titre);
  font-size: 1rem; font-weight: 700;
  color: var(--texte-fort);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.releve-axe {
  display: grid;
  grid-template-columns: var(--col-nom) 1fr var(--col-val);
  gap: .9rem;
  margin-top: .5rem;
  font-size: .76rem; font-weight: 700; color: var(--texte-2);
}
.releve-axe .graduations { display: flex; justify-content: space-between; }
.releve { --col-nom: 13rem; --col-val: 4.2rem; }
@media (max-width: 700px) {
  .releve { --col-nom: 8.5rem; --col-val: 3.4rem; }
  .r-nom { font-size: .84rem; }
  .releve-liste li { gap: .55rem; }
}

/* ---- Cartes prix ---- */
.prix-grille { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); margin-block: 2rem .75rem; align-items: stretch; }
.prix-carte {
  background: linear-gradient(165deg, var(--glass-2), rgba(255, 255, 255, .015));
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), var(--shadow-card);
  padding: 1.9rem 1.7rem;
  display: flex; flex-direction: column;
}
@supports (backdrop-filter: blur(1px)) { .prix-carte { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }
.prix-carte.vedette { border-color: rgba(242, 182, 115, .5); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), var(--shadow-float), 0 0 60px rgba(217, 143, 78, .12); }
.prix-carte .montant {
  font-family: var(--f-titre);
  font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.3rem);
  font-weight: 620; letter-spacing: -.03em;
  color: var(--ecume); margin: .3rem 0 .1rem;
  font-variant-numeric: tabular-nums;
}
.prix-carte .montant small { font-size: .5em; font-weight: 700; color: var(--clair); }
.prix-carte ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.prix-carte li { padding-left: 1.75em; position: relative; font-size: var(--fs-small); margin-bottom: .58em; }
.prix-carte li::before {
  content: ""; position: absolute; left: 0; top: .34em; width: 1.05em; height: 1.05em; border-radius: 50%;
  background: rgba(217, 143, 78, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23f2b673' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E") center/68% no-repeat;
}
.prix-carte .btn { margin-top: auto; }

/* ---- FAQ ---- */
.faq-liste { margin-block: 1.9rem; }
.faq-liste details {
  background: linear-gradient(165deg, var(--glass-2), rgba(255, 255, 255, .015));
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  margin-bottom: .8rem;
  overflow: hidden;
  transition: border-color .25s;
}
@supports (backdrop-filter: blur(1px)) { .faq-liste details { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }
.faq-liste details[open] { border-color: rgba(242, 182, 115, .35); }
.faq-liste summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--f-titre); font-size: 1.06rem; font-weight: 650; color: var(--texte-fort);
  min-height: 48px;
}
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary::after {
  content: ""; flex: none; width: 1.5rem; height: 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23f2b673' stroke-width='2.4' stroke-linecap='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.faq-liste details[open] summary::after { transform: rotate(180deg); }
.faq-liste details > div { padding: 0 1.4rem 1.25rem; }
.faq-liste details > div > :last-child { margin-bottom: 0; }

/* ---- Formulaire ---- */
.devis { padding: clamp(1.7rem, 4vw, 2.6rem); display: grid; gap: clamp(1.7rem, 4vw, 2.8rem); }
@media (min-width: 880px) { .devis { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.form-row { margin-bottom: 1.05rem; }
.form-row label { display: block; font-size: .92rem; font-weight: 800; color: var(--texte-fort); margin-bottom: .35rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font: inherit; color: var(--texte-fort);
  background: rgba(20, 16, 11, .55);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-sm);
  padding: .78rem .95rem; min-height: 48px;
}
.form-row textarea { min-height: 6.2rem; resize: vertical; }
.form-row input::placeholder, .form-row textarea::placeholder { color: #b6a184; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 3px solid rgba(242, 182, 115, .4); outline-offset: 0; border-color: var(--lumiere);
}
.form-row option { background: var(--profond); color: var(--texte-fort); }
.form-note { font-size: .875rem; color: var(--texte-2); margin-top: .8rem; }
.form-status { font-weight: 700; color: var(--lumiere); margin-top: .8rem; }
.form-status:empty { display: none; }

.devis-aside h3 { margin-bottom: .8rem; }
.devis-aside ul { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.devis-aside li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .75rem; font-size: var(--fs-small); }
.devis-aside svg { color: var(--clair); flex: none; margin-top: .2em; filter: drop-shadow(0 0 6px var(--glow)); }

/* ---- Bande CTA ---- */
.cta-bande {
  background: linear-gradient(135deg, rgba(90, 52, 24, .85), rgba(161, 90, 44, .7) 55%, rgba(217, 143, 78, .6));
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  color: var(--ecume);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), var(--shadow-float);
}
@supports (backdrop-filter: blur(1px)) { .cta-bande { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }
.cta-bande h2 { color: #fff; }
.cta-bande p { color: #fbe9d6; max-width: 46em; }
.cta-bande .hero-ctas { margin-top: 1.4rem; }
.cta-bande .hero-note { color: #edd2ac; }

/* ---- Sections éditoriales ---- */
.entete-section { max-width: 46em; }
.entete-section .chip { margin-bottom: 1rem; }
.entete-section p.grand { font-size: clamp(1.05rem, 1rem + .4vw, 1.18rem); }

.deux-colonnes { display: grid; gap: clamp(1.8rem, 4vw, 3rem); align-items: start; }
@media (min-width: 880px) { .deux-colonnes { grid-template-columns: 1fr 1fr; } }

.encadre {
  background: rgba(217, 143, 78, .08);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-md);
  padding: 1.35rem 1.45rem;
  margin-block: 1.6rem;
}
.encadre.avertissement { background: rgba(255, 138, 91, .09); border-color: rgba(255, 138, 91, .3); }
.encadre > :last-child { margin-bottom: 0; }
.encadre .titre-encadre { display: block; font-family: var(--f-titre); font-weight: 700; color: var(--texte-fort); margin-bottom: .4rem; }

.sources { font-size: .875rem; color: var(--texte-2); border-top: 1px solid rgba(242, 182, 115, .14); padding-top: 1rem; margin-top: 2.2rem; }
.sources a { color: var(--texte-2); overflow-wrap: anywhere; }
.sources a:hover { color: var(--lumiere); }

/* ---- Fil d'Ariane ---- */
.breadcrumb { font-size: .9rem; color: var(--texte-2); margin-bottom: 1.3rem; }
.breadcrumb a { color: var(--texte-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--lumiere); text-decoration: underline; }

/* ---- Hero de pages intérieures ---- */
.hero-page { padding-block: clamp(2.6rem, 6vw, 4.2rem); }
.hero-page .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem); max-width: 42em; }
.hero-page .hero-ctas { margin-top: 1.4rem; }
.hero-page .chips-data { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

/* ---- Footer ---- */
.site-footer {
  background: linear-gradient(180deg, transparent, rgba(17, 13, 9, .9) 40%);
  border-top: 1px solid rgba(242, 182, 115, .12);
  color: var(--texte-2);
  padding-block: 3.4rem 2rem;
  font-size: var(--fs-small);
  position: relative;
  z-index: var(--z-contenu);
}
.site-footer .wrap { display: grid; gap: 2.2rem; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-size: .88rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--clair); margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--texte); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--lumiere); }
.site-footer .logo { color: var(--texte-fort); margin-bottom: .8rem; }
.site-footer .mentions { grid-column: 1 / -1; border-top: 1px solid rgba(242, 182, 115, .12); padding-top: 1.4rem; color: var(--texte-2); font-size: .875rem; }

/* ---- Page légale ---- */
.legal { padding-block: clamp(2.5rem, 6vw, 4rem); position: relative; z-index: var(--z-contenu); }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }

/* ---- Utilitaires ---- */
.centre { text-align: center; }
.centre .entete-section, .centre p { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 2rem; }

/* ---- Réglage système : tout s'immobilise ---- */
@media (prefers-reduced-motion: reduce) {
  .fond-vivant i, .fond-vivant .texture, .fond-vivant .rayon,
  .logo svg,
  .hero .wrap > div:first-child, .hero-carte { animation: none !important; }
  .btn, .carte, .chip-liste a, .faq-liste summary::after { transition: none !important; }
  .hero .wrap > div:first-child, .hero-carte { opacity: 1; transform: none; }
}
