/* ==========================================================================
   Mon Eau Chez Moi — feuille de style principale
   Palette : navy #08222F · teal #0F7FA3 · cyan #5EC2DE
   ========================================================================== */

/* --------------------------------------------------------- 1. Tokens */
:root {
  --navy:        #08222F;
  --navy-2:      #0A2A3D;
  --navy-3:      #0E3B50;
  --teal:        #0F7FA3;
  --teal-deep:   #0F5F7C;
  --cyan:        #5EC2DE;
  --ink:         #0A2A3D;
  --muted:       #3A5A6B;
  --muted-2:     #5B7C8C;
  --line:        #E3EDF1;
  --line-2:      #CFE0E7;
  --wash:        #F2F8FA;
  --chip:        #E4F2F6;
  --white:       #FFFFFF;
  --danger:      #C0564A;
  --danger-bg:   #FDF6F5;

  --font-head: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --pill: 999px;

  --shadow-sm: 0 8px 20px -14px rgba(8,34,47,.45);
  --shadow-md: 0 20px 40px -24px rgba(8,34,47,.40);
  --shadow-lg: 0 30px 60px -30px rgba(8,34,47,.55);

  --ease: cubic-bezier(.22,.68,.28,1);
  --ease-out: cubic-bezier(.2,.7,.3,1);

  --header-h: 74px;
}

/* --------------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--navy);
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }   /* neutralise l'attribut height quand la largeur est contrainte */
a { color: var(--teal); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy-2); }
input, textarea, select, button { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible {
  outline: 3px solid rgba(15,127,163,.55);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------- 3. Layout */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--wash { background: var(--wash); }
.section--tight { padding-block: clamp(40px, 5vw, 68px); }

.eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.h2 { font-size: clamp(27px, 3.6vw, 40px); line-height: 1.12; font-weight: 800; }
.h3 { font-size: 18px; line-height: 1.3; font-weight: 700; }
.lead { font-size: clamp(16.5px, 1.5vw, 18.5px); line-height: 1.6; color: var(--muted); }
.head-block { max-width: 46rem; }
.head-block .lead { margin-top: 16px; }
.center { text-align: center; margin-inline: auto; }

/* --------------------------------------------------------- 4. Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 16px; line-height: 1;
  padding: 15px 26px; border-radius: var(--pill);
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--teal); color: #fff;
  box-shadow: 0 12px 26px -14px rgba(15,127,163,.95);
}
.btn--primary:hover { background: var(--navy-2); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 32px -16px rgba(8,34,47,.65); }
.btn--ghost { border-color: var(--navy-2); color: var(--navy-2); background: transparent; }
.btn--ghost:hover { background: var(--navy-2); color: #fff; transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--navy-2); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 30px; font-size: 16.5px; }

/* Boutons verre (sur fond sombre) */
.btn--glass {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.28);
  color: #fff;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.btn--glass:hover { background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.5); color: #fff; transform: translateY(-2px); }

/* --------------------------------------------------------- 5. En-tête */
.header {
  position: sticky; top: 0; z-index: 90;
  transition: background .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 13px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; color: inherit; }
.brand:hover { color: inherit; }

/* ==========================================================================
   Logo — marque du kit en SVG inline (recolorable), nom en texte vivant.
   Le lockup complet du kit reste dans assets/logo/ pour l'impression :
   à hauteur d'en-tête, sa mention « adoucisseurs · loiret » serait
   illisible (4 px), d'où cette composition marque + texte.
   ========================================================================== */
.mark { width: 40px; height: 40px; flex: none; }
.mark__tile { fill: var(--navy-2); transition: fill .3s var(--ease); }
.mark__drop { stroke: #FFFFFF; transition: stroke .3s var(--ease); }
.mark__wave { stroke: var(--teal); }

.brand__text { display: block; line-height: 1.1; }
.brand__name {
  display: block;
  font-family: "Jost", var(--font-body), sans-serif;
  font-weight: 500; font-size: 18.5px; letter-spacing: .005em;
  color: inherit;
}
.brand__tag {
  display: block; margin-top: 4px;
  font-family: "Jost", var(--font-body), sans-serif;
  font-size: 9.5px; font-weight: 500; letter-spacing: .34em;
  text-transform: uppercase; color: var(--teal);
}

/* Fond sombre : tuile blanche, goutte navy (variante 03 du kit). */
.brand--rev .mark__tile, .header--over .mark__tile { fill: #FFFFFF; }
.brand--rev .mark__drop, .header--over .mark__drop { stroke: var(--navy-2); }
.brand--rev .brand__tag, .header--over .brand__tag { color: var(--cyan); }

/* Le kit demande de retirer le filet d'eau en dessous de 24 px de tuile. */
@media (max-width: 620px) {
  .mark { width: 34px; height: 34px; }
  .brand__name { font-size: 16.5px; }
  .brand__tag { font-size: 8.5px; letter-spacing: .28em; }
}


.nav { display: flex; align-items: center; gap: 15px; margin-left: auto; white-space: nowrap; }
.nav a { font-size: 14px; font-weight: 500; color: inherit; opacity: .82; position: relative; white-space: nowrap; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover { opacity: 1; color: inherit; }
.nav a:hover::after { transform: scaleX(1); }

.header__cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header__tel {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; color: inherit;
  padding: 9px 15px; border-radius: var(--pill);
  border: 1px solid currentColor; opacity: .8;
  transition: opacity .25s var(--ease), background .25s var(--ease);
}
.header__tel:hover { opacity: 1; color: inherit; }
.header__quote {
  font-size: 14.5px; font-weight: 600; padding: 10px 18px;
  border-radius: var(--pill); background: var(--teal); color: #fff;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.header__quote:hover { background: #fff; color: var(--navy); transform: translateY(-1px); }

/* état « sur le héros » : verre sombre */
.header--over {
  background: rgba(8,34,47,.42);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  color: #fff;
  border-bottom-color: rgba(255,255,255,.10);
}
/* état « défilé » : verre clair */
.header--scrolled {
  background: rgba(255,255,255,.90);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  color: var(--navy-2);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -20px rgba(8,34,47,.6);
}
.header--scrolled .header__quote:hover { background: var(--navy-2); color: #fff; }

.burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: inherit;
}
.header--scrolled .burger { background: var(--wash); border-color: var(--line); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 10px 24px 20px;
  color: var(--navy-2);
}
.mobile-nav.is-open { display: block; animation: dropIn .35s var(--ease-out) both; }
.mobile-nav a {
  display: block; padding: 12px 4px; font-size: 16px; font-weight: 500;
  color: var(--navy-2); border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: 0; color: var(--teal); font-weight: 600; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   6. HÉROS — glassmorphisme & animations fluides
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(48px, 6vw, 88px));
  padding-bottom: clamp(120px, 13vw, 190px);
  background:
    radial-gradient(120% 90% at 82% 8%,  #10506B 0%, transparent 58%),
    radial-gradient(110% 80% at 10% 92%, #0B3346 0%, transparent 60%),
    linear-gradient(168deg, #071E2A 0%, #08222F 44%, #0A2C3C 100%);
  color: #fff;
  overflow: hidden;
}
.hero h1, .hero h2, .hero h3 { color: #fff; }

/* --- Aurores liquides en arrière-plan ------------------------------------ */
.hero__aura { position: absolute; inset: -20% -10%; z-index: -2; pointer-events: none; }
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  will-change: transform;
  mix-blend-mode: screen;
}
.hero__blob--1 {
  width: 46vw; height: 46vw; min-width: 420px; min-height: 420px;
  top: -8%; right: -6%;
  background: radial-gradient(circle at 35% 35%, #1FA6CE 0%, #0F7FA3 45%, transparent 72%);
  animation: drift1 26s ease-in-out infinite;
}
.hero__blob--2 {
  width: 40vw; height: 40vw; min-width: 360px; min-height: 360px;
  bottom: -14%; left: -8%;
  background: radial-gradient(circle at 60% 40%, #2FD3C6 0%, #0E6E93 50%, transparent 74%);
  opacity: .42;
  animation: drift2 32s ease-in-out infinite;
}
.hero__blob--3 {
  width: 30vw; height: 30vw; min-width: 300px; min-height: 300px;
  top: 42%; left: 46%;
  background: radial-gradient(circle at 50% 50%, #5EC2DE 0%, #12546F 55%, transparent 75%);
  opacity: .3;
  animation: drift3 22s ease-in-out infinite;
}
@keyframes drift1 {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  33%     { transform: translate3d(-5%, 7%, 0) scale(1.12); }
  66%     { transform: translate3d(4%, -5%, 0) scale(.95); }
}
@keyframes drift2 {
  0%,100% { transform: translate3d(0,0,0) scale(1.05); }
  40%     { transform: translate3d(9%, -8%, 0) scale(.92); }
  70%     { transform: translate3d(-4%, 5%, 0) scale(1.15); }
}
@keyframes drift3 {
  0%,100% { transform: translate3d(0,0,0) scale(.95); }
  50%     { transform: translate3d(-9%, -9%, 0) scale(1.18); }
}

/* --- Grille fine + grain ------------------------------------------------- */
.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(90% 70% at 50% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(90% 70% at 50% 30%, #000 0%, transparent 78%);
}

/* --- Vague de raccord vers le blanc -------------------------------------- */
.hero__wave {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1;
  width: 100%; height: clamp(60px, 8vw, 120px);
  pointer-events: none;
}
.hero__wave path { fill: #fff; }
.hero__wave--back path { fill: rgba(255,255,255,.16); }
.hero__wave--back { bottom: 14px; }

/* --- Grille de contenu --------------------------------------------------- */
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--wrap); margin: 0 auto; padding-inline: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

/* --- Surface de verre générique ------------------------------------------ */
.glass {
  background: linear-gradient(148deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.06) 58%, rgba(255,255,255,.09) 100%);
  border: 1px solid rgba(255,255,255,.20);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  backdrop-filter: blur(22px) saturate(155%);
  box-shadow:
    0 28px 60px -34px rgba(0,0,0,.75),
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(255,255,255,.06);
  border-radius: var(--r-lg);
}
/* liseré lumineux qui balaie la surface */
.glass--sheen { position: relative; overflow: hidden; }
.glass--sheen::after {
  content: ""; position: absolute; top: -60%; left: -70%;
  width: 55%; height: 220%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.22) 50%, transparent 100%);
  transform: rotate(14deg);
  animation: sheen 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%, 62%  { left: -70%; opacity: 0; }
  68%      { opacity: 1; }
  92%,100% { left: 130%; opacity: 0; }
}

/* --- Badge « installateur local » ---------------------------------------- */
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--pill);
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  color: #DCF1F8;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: #5EE0C0; flex: none;
}
.dot::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: #5EE0C0; opacity: .5;
  animation: pulseDot 2.2s ease-out infinite;
}
@keyframes pulseDot {
  0%   { transform: scale(.7); opacity: .55; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero h1 {
  font-size: clamp(35px, 6.1vw, 60px);
  line-height: 1.03; font-weight: 800;
  margin-top: 24px;
  letter-spacing: -.035em;
}
.hero h1 .accent {
  background: linear-gradient(96deg, #7FE3F5 0%, #5EC2DE 42%, #34C7B0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__lead {
  font-size: clamp(16.5px, 1.55vw, 19px); line-height: 1.6;
  color: #C2D8E2; margin-top: 22px; max-width: 34em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --- Pastilles de réassurance en verre ----------------------------------- */
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px;
}
.trust-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px; border-radius: var(--pill);
  font-size: 13.5px; color: #C2D8E2;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.trust-pill:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.trust-pill strong { color: #fff; font-weight: 700; }
.trust-pill svg { flex: none; }

/* --- Colonne visuelle ---------------------------------------------------- */
.hero__visual { position: relative; perspective: 1200px; }
.hero__card {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--r-xl);
  /* Le visuel produit est détouré au plus juste : la respiration vient d'ici. */
  padding: 13% 15% 11%;
  display: grid; place-items: center;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out);
  will-change: transform;
}
.hero__card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(115% 90% at 50% 12%, rgba(255,255,255,.22) 0%, rgba(94,194,222,.10) 46%, transparent 74%);
  pointer-events: none;
}
.hero__product {
  /* positionnement absolu : le pourcentage de hauteur ne se résout pas
     de façon fiable dans une grille dont la hauteur vient d'aspect-ratio. */
  /* marge basse plus généreuse : le visuel est détouré au plus juste,
     il doit dégager la carte flottante posée en bas à gauche. */
  position: absolute; z-index: 1; inset: 26px 34px 74px;
  width: calc(100% - 68px); height: calc(100% - 100px); object-fit: contain;
  filter: drop-shadow(0 34px 46px rgba(0,0,0,.55));
  animation: floaty 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes floaty {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-14px) rotate(-.6deg); }
}
.hero__tag {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  padding: 7px 14px; border-radius: var(--pill);
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #EAF7FB;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hero__price {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  padding: 14px 18px; border-radius: var(--r-md); text-align: right;
  background: linear-gradient(150deg, rgba(8,34,47,.78), rgba(12,58,78,.68));
  border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 20px 38px -22px rgba(0,0,0,.8);
}
.hero__price-k { font-size: 11.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--cyan); }
.hero__price-v { font-family: var(--font-head); font-size: 27px; font-weight: 800; line-height: 1.08; margin-top: 4px; }
.hero__price-s { font-size: 12.5px; color: #A8C6D4; margin-top: 2px; }

/* carte flottante « prix tout compris » */
.hero__float {
  position: absolute; left: -22px; bottom: 22px; z-index: 3;
  display: flex; align-items: center; gap: 14px;
  max-width: 305px;
  padding: 15px 19px; border-radius: var(--r-md);
  animation: floatCard 8s ease-in-out infinite;
  will-change: transform;
}
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
.hero__float-title { display: block; font-family: var(--font-head); font-weight: 700; font-size: 15.5px; color: #fff; line-height: 1.25; }
.hero__float-sub { display: block; font-size: 12.5px; color: #B7D0DA; line-height: 1.35; margin-top: 3px; max-width: 24ch; }
.ripple { position: relative; width: 42px; height: 42px; display: grid; place-items: center; flex: none; }
.ripple__wave {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--cyan);
  animation: meRipple 2.6s ease-out infinite;
}
.ripple__wave:nth-child(2) { animation-delay: 1.3s; }
.ripple__core {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(94,194,222,.20);
  border: 1px solid rgba(255,255,255,.28);
  display: grid; place-items: center;
}
@keyframes meRipple {
  0%   { transform: scale(.85); opacity: .5; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* --- Entrée en scène ------------------------------------------------------ */
.hero-in { opacity: 0; transform: translateY(26px); filter: blur(6px); }
.js-ready .hero-in {
  animation: heroIn .95s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes heroIn {
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* --- Indicateur de défilement -------------------------------------------- */
.hero__scroll {
  position: absolute; left: 50%; bottom: clamp(78px, 9vw, 118px); z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.hero__scroll span { display: block; width: 1px; height: 34px; background: linear-gradient(180deg, rgba(255,255,255,.6), transparent); animation: scrollLine 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes scrollLine { 0%,100% { transform: scaleY(.35); opacity: .35; } 50% { transform: scaleY(1); opacity: 1; } }

/* ==========================================================================
   7. Bandeau de chiffres clés
   ========================================================================== */
.stats {
  position: relative; z-index: 3;
  margin-top: clamp(-88px, -7vw, -60px);
  margin-bottom: 8px;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(8,34,47,.5);
}
.stat { background: #fff; padding: 26px 24px; transition: background .3s var(--ease); }
.stat:hover { background: var(--wash); }
.stat__k { font-family: var(--font-head); font-size: clamp(21px, 2.3vw, 27px); font-weight: 800; color: var(--teal); line-height: 1.1; }
.stat__v { font-size: 13.5px; color: var(--muted-2); margin-top: 8px; line-height: 1.45; }

/* ==========================================================================
   8. Cartes génériques
   ========================================================================== */
.grid { display: grid; gap: 18px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(232px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--2l { grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card__icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--chip); color: var(--teal);
}
.card p { color: var(--muted); font-size: 15px; line-height: 1.55; margin-top: 9px; }
.card--flat:hover { transform: none; }

/* ==========================================================================
   9. Simulateur & calculateur
   ========================================================================== */
.sim { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: clamp(24px,3vw,40px); margin-top: 40px; align-items: start; }
.sim__controls { display: grid; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px,2.6vw,32px); }
.field { display: block; }
.field__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 600; color: var(--navy-2); }
.field__val { font-family: var(--font-head); font-size: 17px; font-weight: 800; color: var(--teal); }
.field__hint { display: block; font-size: 12.5px; color: var(--muted-2); margin-top: 7px; line-height: 1.45; font-weight: 400; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; margin-top: 14px;
  border-radius: 999px; background: var(--line-2); outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); border: 3px solid #fff;
  box-shadow: 0 4px 12px -3px rgba(15,127,163,.9);
  transition: transform .18s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff;
  background: var(--teal); box-shadow: 0 4px 12px -3px rgba(15,127,163,.9);
}

.sim__result {
  background: linear-gradient(160deg, #0E3B50 0%, #08222F 65%);
  color: #fff; border-radius: var(--r-lg); padding: clamp(24px,2.8vw,34px);
  box-shadow: var(--shadow-lg);
  position: sticky; top: calc(var(--header-h) + 16px);
}
.sim__result .eyebrow { color: var(--cyan); }
.sim__total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sim__total b { font-family: var(--font-head); font-size: clamp(38px,5vw,52px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.sim__total span { font-size: 15px; color: #A8C6D4; }
.sim__note { font-size: 14px; color: #A8C6D4; margin-top: 12px; line-height: 1.5; }
.sim__rows { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.sim__row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.09); font-size: 14.5px; color: #C2D8E2; }
.sim__row b { color: #fff; font-weight: 600; white-space: nowrap; }
.sim__row--net { color: #fff; font-weight: 600; }
.sim__row--net b { color: #5EE0C0; font-family: var(--font-head); font-size: 18px; font-weight: 800; }
.sim__payback { font-size: 13.5px; color: var(--cyan); margin-top: 12px; line-height: 1.5; }
.sim__legal { font-size: 12px; color: #7FA0B0; margin-top: 16px; line-height: 1.5; }
.sim__result .btn { margin-top: 20px; }

/* segments oui/non */
.seg { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.seg button {
  flex: 1 1 auto; min-width: 108px;
  padding: 11px 16px; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: #fff; color: var(--navy-2);
  font-size: 14.5px; font-weight: 600;
  transition: all .25s var(--ease);
}
.seg button:hover { border-color: var(--teal); color: var(--teal); }
.seg button[aria-pressed="true"] {
  background: var(--teal); border-color: var(--teal); color: #fff;
  box-shadow: 0 8px 18px -12px rgba(15,127,163,.9);
}
.qbox { display: grid; gap: 22px; }
.qbox__step { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.qbox__n {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--teal); color: #fff; font-size: 14px; font-weight: 700;
}
.qbox__t { font-family: var(--font-head); font-weight: 700; font-size: 16px; }

/* ==========================================================================
   10. Tarifs
   ========================================================================== */
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.price-card--feature { border-color: var(--teal); box-shadow: 0 26px 50px -34px rgba(15,127,163,.7); }
.price-card__flag {
  position: absolute; top: -12px; left: 26px;
  background: var(--teal); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--pill);
}
.price-card__sub { font-size: 14.5px; color: var(--muted-2); margin-top: 7px; }
.price-card__amount { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; }
.price-card__amount b { font-family: var(--font-head); font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price-card__amount span { font-size: 14px; color: var(--muted-2); font-weight: 600; }
.price-card__tva { font-size: 13px; color: var(--muted-2); margin-top: 10px; line-height: 1.5; }
.price-card ul { margin-top: 20px; display: grid; gap: 11px; }
.price-card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.price-card li svg { flex: none; margin-top: 3px; }
.price-card .btn, .price-card__link { margin-top: auto; padding-top: 22px; }
.price-card__link { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; }
.price-card__link span { transition: transform .25s var(--ease); }
.price-card__link:hover span { transform: translateX(4px); }

.notice {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--chip); border: 1px solid #CDE6EE;
  border-radius: var(--r-lg); padding: 24px 26px; margin-top: 34px;
}
.notice__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--teal); }
.notice p { font-size: 15px; color: var(--muted); line-height: 1.6; margin-top: 8px; }

/* ==========================================================================
   11. Comparatif, étapes, FAQ
   ========================================================================== */
.compare { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.compare__row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; font-size: 14.5px; }
.compare__row + .compare__row { border-top: 1px solid var(--line); }
.compare__row > * { padding: 13px 16px; }
.compare__row > span:first-child { color: var(--muted-2); }
.compare__row > span:nth-child(2) { font-weight: 600; color: var(--navy); }
.compare__row > span:nth-child(3) { color: var(--muted-2); }

/* En-tête : déclaré APRÈS les cellules pour que ses couleurs l'emportent,
   sinon le bleu nuit du nth-child(2) s'écrit sur un fond bleu nuit. */
.compare__row--head { background: var(--navy); font-size: 13.5px; }
.compare__row--head > span { display: flex; flex-direction: column; gap: 3px; padding-block: 15px; }
.compare__row--head > span:first-child { color: rgba(255,255,255,.55); }
.compare__row--head > span:nth-child(2) { color: #fff; font-weight: 700; }
.compare__row--head > span:nth-child(3) { color: #B7D0DA; font-weight: 600; }
.compare__row--head b { font-family: var(--font-head); font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.compare__row--head > span:nth-child(2) b { color: var(--cyan); }
.compare__row--head small { font-size: 11.5px; font-weight: 500; opacity: .8; letter-spacing: .02em; }
.compare__vs {
  align-items: flex-start !important;
  font-family: var(--font-head); font-weight: 800; font-size: 13px;
  letter-spacing: .12em;
}
.compare__vs span {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 26px; padding: 0 9px;
  border-radius: var(--pill);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  color: #fff;
}

.steps { display: grid; gap: 22px; margin-top: 30px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__n {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--chip); color: var(--teal-deep);
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
}
.step p { font-size: 15px; color: var(--muted); line-height: 1.55; margin-top: 6px; }

.acc { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:last-child { border-bottom: 0; }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 19px 24px; font-family: var(--font-head); font-weight: 700; font-size: 16.5px;
  color: var(--navy); transition: background .25s var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: var(--wash); }
.acc summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .3s var(--ease);
}
.acc details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.acc__body { padding: 0 24px 22px; font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 62rem; }
.acc details[open] .acc__body { animation: accIn .38s var(--ease-out) both; }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--wash); }
.media img { width: 100%; height: 100%!important; object-fit: cover; aspect-ratio: 4/3; transition: transform .8s var(--ease); }
.media:hover img { transform: scale(1.04); }
.caption { font-size: 13px; color: var(--muted-2); margin-top: 10px; }
.speclist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.speclist span { font-size: 13px; font-weight: 600; color: var(--teal-deep); background: var(--chip); padding: 7px 13px; border-radius: var(--pill); }
/* Listes à puces en prose (guides et pages piliers) */
.checklist { margin-top: 16px; display: grid; gap: 11px; }
.checklist li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--muted); line-height: 1.6; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--teal-deep); opacity: .55; }
.checklist li strong { color: var(--navy); font-weight: 600; }

/* Avis clients */
.avis { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(330px,100%), 1fr)); margin-top: 34px; }
.avis__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px,3vw,40px); display: flex; flex-direction: column; box-shadow: var(--shadow-sm); margin: 0; }
.avis__mark { font-family: var(--font-head); font-weight: 700; font-size: 58px; line-height: .8;
  color: var(--chip); margin-bottom: 6px; }
.avis__txt { font-family: var(--font-head); font-weight: 500; font-size: clamp(17px,1.6vw,20px);
  line-height: 1.55; color: var(--navy); margin: 0; text-wrap: pretty; }
.avis__meta { margin-top: auto; padding-top: 22px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.avis__who { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--navy); letter-spacing: .02em; }
.avis__where { font-size: 13.5px; color: var(--muted-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { font-size: 14px; color: var(--navy-2); background: #fff; border: 1px solid var(--line-2); padding: 8px 14px; border-radius: var(--pill); }

/* ==========================================================================
   12. Formulaires
   ========================================================================== */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px,2.8vw,34px); display: grid; gap: 16px; }
.form--dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 16px; }
.form label { display: block; font-size: 14.5px; font-weight: 600; color: var(--navy-2); }
.form input, .form select, .form textarea {
  width: 100%; margin-top: 8px;
  padding: 13px 15px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  font-size: 15px; font-weight: 400;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.form input::placeholder, .form textarea::placeholder { color: #9FB6C1; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,127,163,.13);
}
.form textarea { resize: vertical; min-height: 104px; }
.form .err { border-color: #D98A80; background: var(--danger-bg); }
/* Les sélecteurs de classe ci-dessous l'emportent sinon sur la règle [hidden]
   du navigateur : sans ceci, messages d'erreur et de succès restent visibles. */
[hidden] { display: none !important; }
.err-msg { display: block; font-size: 13px; color: var(--danger); font-weight: 500; margin-top: 6px; }
.form__legal { font-size: 12.5px; color: var(--muted-2); line-height: 1.5; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ok-msg {
  display: flex; gap: 11px; align-items: flex-start;
  background: #E6F6F0; border: 1px solid #B7E4D3; color: #14624A;
  border-radius: var(--r-sm); padding: 14px 16px; font-size: 14.5px; line-height: 1.5;
}
.recap { background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 15px 17px; }
.recap__k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.recap__v { font-size: 14.5px; font-weight: 600; color: var(--navy); margin-top: 6px; line-height: 1.45; }
.recap__h { font-size: 12.5px; color: var(--muted-2); margin-top: 7px; }

.contact-list { display: grid; gap: 16px; margin-top: 26px; }
.contact-item { display: flex; gap: 14px; align-items: center; }
.contact-item__ico { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--chip); color: var(--teal); }
.contact-item__k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.contact-item__v { font-size: 16px; font-weight: 600; color: var(--navy); margin-top: 2px; }

.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--wash); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ==========================================================================
   13. Bandeau CTA sombre + pied de page + barre d'appel mobile
   ========================================================================== */
.cta-band {
  background: linear-gradient(150deg, #0E3B50 0%, #08222F 68%);
  border-radius: var(--r-xl); padding: clamp(30px,4vw,52px);
  color: #fff; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
  gap: clamp(22px,3vw,40px); align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #A8C6D4; margin-top: 12px; font-size: 16px; line-height: 1.6; }
.cta-band__actions { display: flex; flex-direction: column; gap: 11px; }

.footer { background: var(--navy); color: #A8C6D4; padding-top: clamp(48px,6vw,72px); margin-top: clamp(56px,7vw,96px); }
.footer__grid { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(auto-fit, minmax(min(170px,100%),1fr)); gap: 34px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; }
.footer a { display: block; color: #A8C6D4; font-size: 14.5px; padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer__about { font-size: 14.5px; line-height: 1.6; margin-top: 14px; max-width: 34em; }
.footer__brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.10); padding: 20px 0 26px;
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  font-size: 13px; color: #7FA0B0;
}
.footer__bottom a { display: inline; margin-left: 20px; font-size: 13px; }

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--line);
  transform: translateY(140%); transition: transform .45s var(--ease-out);
}
.callbar.is-visible { transform: translateY(0); }
.callbar .btn { flex: 1; padding: 13px 16px; font-size: 15px; }

/* ==========================================================================
   14. Révélation au défilement
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(22px); }
.js-ready [data-reveal] {
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
.no-js [data-reveal], html:not(.js-ready) [data-reveal] { opacity: 1; transform: none; }

/* ==========================================================================
   15. Responsive
   ========================================================================== */
/* En-tête : on resserre entre le passage au menu burger et le confort du grand écran */
@media (min-width: 1141px) and (max-width: 1300px) {
  .nav { gap: 12px; }
  .nav a { font-size: 13.5px; }
  .brand__tag { display: none; }
  .header__tel span, .header__tel { font-size: 13.5px; }
}

@media (max-width: 1140px) {
  .nav { display: none; }
  .header__tel { display: none; }
  .burger { display: flex; }
  .sim { grid-template-columns: 1fr; }
  .sim__result { position: static; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 480px; width: 100%; margin-inline: auto; }
  .hero__scroll { display: none; }
  .cta-band { grid-template-columns: 1fr; }
  .compare__row { font-size: 13.5px; }
  .callbar { display: flex; }
  body { padding-bottom: 0; }
}
@media (max-width: 620px) {
  .header__quote { display: none; }
  .hero { padding-bottom: clamp(96px, 18vw, 140px); }
  .hero__float { left: 0; bottom: 14px; padding: 12px 15px; }
  .hero__trust { gap: 8px; }
  .trust-pill { font-size: 12.5px; padding: 8px 13px; }
  .stats { margin-top: -44px; }
  .footer__bottom a { margin-left: 0; margin-right: 18px; }
}

/* ==========================================================================
   16. Mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero-in, [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero__blob { animation: none; }
}

/* Repli si backdrop-filter indisponible */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass, .hero__badge, .hero__tag, .btn--glass, .trust-pill { background: rgba(12,44,60,.72); }
  .header--over { background: rgba(8,34,47,.92); }
  .header--scrolled, .mobile-nav, .callbar { background: #fff; }
}

/* ==========================================================================
   17. Héros compact (pages secondaires)
   ========================================================================== */
.hero--compact { padding-bottom: clamp(90px, 11vw, 150px); }
.hero--compact h1 { font-size: clamp(30px, 4.6vw, 46px); margin-top: 20px; }
.hero--compact .hero__inner { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: center; }
.hero--solo .hero__inner { grid-template-columns: minmax(0, 860px); }
.offer-card { padding: clamp(24px,2.6vw,32px); color: #fff; }
.offer-card__k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.offer-card__amount { display: flex; align-items: baseline; gap: 9px; margin-top: 12px; }
.offer-card__amount b { font-family: var(--font-head); font-size: clamp(34px,4.4vw,44px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.offer-card__amount span { font-size: 14.5px; color: #A8C6D4; font-weight: 600; }
.offer-card p { font-size: 14.5px; color: #C2D8E2; line-height: 1.6; margin-top: 14px; }
.offer-card ul { margin-top: 18px; display: grid; gap: 10px; }
.offer-card li { display: flex; gap: 10px; font-size: 14.5px; color: #DCEAF1; }
.offer-card li svg { flex: none; margin-top: 3px; color: #5EE0C0; }

/* Cartes « dureté par commune » */
.th-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.th-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.th-card__val { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.th-card__val b { font-family: var(--font-head); font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--teal); }
.th-card__val span { font-size: 16px; font-weight: 600; color: var(--muted-2); }
.th-card__level {
  display: inline-flex; align-self: flex-start; margin-top: 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--pill); background: var(--chip); color: var(--teal-deep);
}
.th-card__level[data-level="Très calcaire"] { background: #FBE9E4; color: #A5442F; }
.th-card__level[data-level="Calcaire"] { background: #FCF1DF; color: #8A5B14; }
.th-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-top: 14px; }

/* Page légale */
.legal { max-width: 820px; margin-inline: auto; }
.legal h2 { font-size: clamp(21px,2.4vw,26px); margin-top: 44px; }
.legal p { font-size: 15.5px; color: var(--muted); line-height: 1.7; margin-top: 14px; }
.legal__table { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 20px; }
.legal__row { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); font-size: 15px; }
.legal__row + .legal__row { border-top: 1px solid var(--line); }
.legal__row > * { padding: 13px 18px; }
.legal__row > span:first-child { color: var(--muted-2); background: var(--wash); font-weight: 500; }
.legal__row > span:last-child { color: var(--navy); font-weight: 500; }
@media (max-width: 560px) { .legal__row { grid-template-columns: 1fr; } .legal__row > *:first-child { padding-bottom: 0; background: #fff; } }

/* Responsive des héros compacts — placé après la section 17 pour l'emporter */
@media (max-width: 900px) {
  .hero--compact .hero__inner,
  .hero--solo .hero__inner { grid-template-columns: 1fr; }
  .hero--compact .hero__visual { max-width: 480px; width: 100%; margin-inline: auto; }
}

/* ==========================================================================
   18. Galerie « Nos installations »
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 14px;
  margin-top: 42px;
}
.shot {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--wash);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.shot:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.shot img { width: 100%; height: 100%!important; object-fit: cover; transition: transform .9s var(--ease); }
.shot:hover img { transform: scale(1.06); }
.shot--lg { grid-column: span 2; grid-row: span 2; }
.shot--tall { grid-row: span 2; }
.shot__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--pill);
  color: #fff; background: rgba(8,34,47,.55);
  border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.shot__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 40px 16px 14px;
  font-size: 13.5px; line-height: 1.4; color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(8,34,47,.55) 45%, rgba(8,34,47,.88) 100%);
}
.gallery-note {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 22px; font-size: 14.5px; color: var(--muted); line-height: 1.6;
}
.gallery-note svg { flex: none; margin-top: 2px; color: var(--teal); }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
  .shot--lg { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .shot--lg, .shot--tall { grid-column: span 1; grid-row: span 1; }
}

/* ==========================================================================
   18. Nos installations — galerie + visionneuse
   ========================================================================== */
.gallery {
  display: grid; gap: 14px; margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.gallery__item {
  position: relative; display: block; padding: 0; border: 0; background: none;
  border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 3px;
  padding: 40px 18px 15px; text-align: left;
  background: linear-gradient(180deg, transparent 0%, rgba(6,26,36,.82) 62%);
  color: #fff;
}
.gallery__place { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; line-height: 1.2; }
.gallery__desc { font-size: 12.5px; color: #C2D8E2; line-height: 1.35; }
.gallery__zoom {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: scale(.85);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: none; }
@media (max-width: 620px) { .gallery__item--wide { grid-column: span 1; aspect-ratio: 4/3; } }

/* Visionneuse plein écran */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(4,18,26,.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__frame {
  position: relative; max-width: min(1100px, 100%); max-height: 100%;
  display: flex; flex-direction: column; gap: 14px;
  transform: scale(.96); transition: transform .35s var(--ease-out);
}
.lightbox.is-open .lightbox__frame { transform: none; }
.lightbox img { max-width: 100%; max-height: 76vh; object-fit: contain; border-radius: var(--r-md); box-shadow: 0 40px 90px -40px #000; }
.lightbox__cap { color: #DCEAF1; font-size: 14.5px; text-align: center; }
.lightbox__cap b { display: block; font-family: var(--font-head); font-size: 17px; color: #fff; margin-bottom: 4px; }
.lightbox__btn {
  position: absolute; top: -6px; right: -6px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .25s var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lightbox__nav {
  /* fixed : les flèches restent collées aux bords de l'écran,
     quelle que soit la largeur de l'image ouverte. */
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .25s var(--ease);
}
.lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__nav--prev { left: clamp(8px, 2vw, 28px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 28px); }
@media (max-width: 900px) {
  .lightbox__btn { top: 4px; right: 4px; }
}
body.no-scroll { overflow: hidden; }

/* Vignettes de chantier rendues cliquables (visionneuse) */
.shot { padding: 0; border: 0; cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.shot .gallery__zoom {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: scale(.85);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.shot:hover .gallery__zoom, .shot:focus-visible .gallery__zoom { opacity: 1; transform: none; }

/* ==========================================================================
   19. Page entretien — composants de landing
   ========================================================================== */

/* Auto-diagnostic : symptômes cochables */
.checkup { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr)); margin-top: 38px; }
.symptom {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 22px; cursor: pointer;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.symptom:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.symptom input { position: absolute; opacity: 0; width: 0; height: 0; }
.symptom__box {
  flex: none; width: 24px; height: 24px; border-radius: 8px; margin-top: 1px;
  border: 2px solid var(--line-2); background: #fff;
  display: grid; place-items: center; color: #fff;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.symptom__box svg { opacity: 0; transform: scale(.6); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.symptom input:checked ~ .symptom__box { background: var(--teal); border-color: var(--teal); }
.symptom input:checked ~ .symptom__box svg { opacity: 1; transform: none; }
.symptom input:focus-visible ~ .symptom__box { outline: 3px solid rgba(15,127,163,.5); outline-offset: 2px; }
.symptom__t { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; color: var(--navy); line-height: 1.3; }
.symptom__d { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 5px; }

.verdict {
  margin-top: 22px; border-radius: var(--r-lg); padding: 22px 26px;
  background: var(--chip); border: 1px solid #CDE6EE;
  display: flex; gap: 16px; align-items: flex-start;
}
.verdict__ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--teal); }
.verdict__t { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--navy); }
.verdict__d { font-size: 15px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.verdict[data-level="alerte"] { background: #FDF1EC; border-color: #F3D3C6; }
.verdict[data-level="alerte"] .verdict__ico { color: #B4552F; }

/* Formules */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(270px,100%), 1fr)); margin-top: 40px; }

/* Marques */
.brands { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.brands span {
  font-size: 14.5px; font-weight: 600; color: var(--navy-2);
  background: #fff; border: 1px solid var(--line-2);
  padding: 10px 16px; border-radius: var(--r-sm);
}

/* Déroulé d'un rendez-vous */
.timeline { position: relative; margin-top: 36px; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--line-2));
  border-radius: 2px;
}
.timeline__row { position: relative; padding-bottom: 26px; }
.timeline__row:last-child { padding-bottom: 0; }
.timeline__row::before {
  content: ""; position: absolute; left: -30px; top: 5px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal);
}
.timeline__when { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--teal); }
.timeline__t { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: var(--navy); margin-top: 4px; }
.timeline__d { font-size: 15px; color: var(--muted); line-height: 1.55; margin-top: 5px; }

/* Bandeau de réassurance sous le héros */
.assurance { display: grid; gap: 1px; background: var(--line); grid-template-columns: repeat(auto-fit, minmax(min(210px,100%), 1fr));
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.assurance > div { background: #fff; padding: 22px 24px; display: flex; gap: 13px; align-items: flex-start; }
.assurance__ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--chip); color: var(--teal); }
.assurance__t { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--navy); line-height: 1.25; }
.assurance__d { font-size: 13.5px; color: var(--muted-2); line-height: 1.45; margin-top: 4px; }

/* Onglet de la page courante */
.nav a[aria-current="page"] { opacity: 1; font-weight: 600; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.mobile-nav a[aria-current="page"] { color: var(--teal); font-weight: 600; }

/* Variantes d'icône de carte */
.card__icon--alert { background: #FBE9E4; color: #A5442F; }
.card__icon--num {
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
  letter-spacing: .02em; background: var(--navy); color: #fff;
}
.card__icon--ok { background: #E6F6F0; color: #14624A; }

/* Comparatif à deux colonnes de valeurs, avec l'option recommandée mise en avant */
.compare--offer .compare__row > span:nth-child(2) { background: rgba(15,127,163,.06); }
.compare--offer .compare__row--head > span:nth-child(2) { background: rgba(94,194,222,.14); }

/* Bandeau marques */
.brands { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.brands span {
  font-size: 14.5px; font-weight: 600; color: var(--navy-2);
  background: #fff; border: 1px solid var(--line-2);
  padding: 10px 18px; border-radius: var(--r-sm);
}

/* ==========================================================================
   19. Diagnostic (page dépannage)
   ========================================================================== */
.diag { display: grid; gap: 18px; margin-top: 6px; }
.diag__part {
  display: grid; gap: 9px; justify-items: start;
  padding-left: 16px; border-left: 2px solid var(--line-2);
}
.diag__part:has(.diag__k--do) { border-left-color: #8FD3B8; }
.diag__part:has(.diag__k--us) { border-left-color: var(--navy); }
.diag__k {
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--teal-deep); background: var(--chip);
  padding: 6px 12px; border-radius: var(--pill);
  max-width: 100%; white-space: normal; text-wrap: balance;
}
.diag__k--do { background: #E6F6F0; color: #14624A; }
.diag__k--us { background: var(--navy); color: #fff; }
.diag__part p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }

/* Encart d'alerte pleine largeur */
.alert-band {
  display: flex; gap: 20px; align-items: flex-start;
  background: #FDF3EF; border: 1px solid #F2D6CB;
  border-left: 4px solid #C4603F;
  border-radius: var(--r-lg); padding: 24px 26px;
}
.alert-band__icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; background: #fff; color: #C4603F;
}
.alert-band h3 { color: #8A3D24; }
.alert-band p { font-size: 15px; color: #7A4B3B; line-height: 1.6; margin-top: 8px; }
.alert-band ol { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 7px; }
.alert-band li { font-size: 15px; color: #7A4B3B; line-height: 1.5; list-style: decimal; }

/* ==========================================================================
   Bandeau de consentement
   ========================================================================== */
.consentement {
  position: fixed; inset: auto 0 0 0; z-index: 400;
  padding: 16px clamp(14px, 3vw, 26px) calc(16px + env(safe-area-inset-bottom));
  animation: consentement-entree .38s var(--ease) both;
}
@keyframes consentement-entree { from { opacity: 0; transform: translateY(18px); } }

.consentement__boite {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 34px);
  align-items: center;
  background: var(--navy); color: #C6DCE6;
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg);
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 2.8vw, 30px);
  box-shadow: var(--shadow-lg);
}
.consentement__titre {
  font-family: var(--font-head); font-weight: 700; color: #fff;
  font-size: clamp(16px, 1.7vw, 18px); line-height: 1.3; margin: 0 0 8px;
}
.consentement__titre:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 4px; }
.consentement__texte p { font-size: 14px; line-height: 1.6; margin: 0; }
.consentement__texte a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.consentement__actions { display: flex; gap: 11px; flex: none; }
.consentement__actions .btn { white-space: nowrap; }
/* Refuser doit être aussi accessible qu'accepter : même taille, même place. */
.consentement__actions .btn--ghost {
  border-color: rgba(255,255,255,.42); color: #fff; background: transparent;
}
.consentement__actions .btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }

@media (max-width: 860px) {
  .consentement__boite { grid-template-columns: 1fr; }
  .consentement__actions { flex-direction: row; }
  .consentement__actions .btn { flex: 1 1 0; justify-content: center; }
}
/* La barre d'appel mobile ne doit pas passer sous le bandeau. */
.consentement ~ .callbar, body:has(.consentement) .callbar { display: none; }
