/* ==========================================================================
   HH CRÉATION — HEINRICH & HOFFER · Pisciniste à Hilsenheim (Alsace)
   V2 — « Faire de la construction d'une piscine l'interface du site »
   Système : plan de coupe (traits, hachures, niveau d'eau ▽) + eau + béton.
   Conception : VD Studio — https://vd-studio.fr
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 380 680;
  font-stretch: 78% 118%;
  font-display: swap;
}

:root {
  /* Profondeurs (fonds sombres) */
  --abysse: #072029;
  --abysse-2: #0C2E3A;
  --petrole: #123F4E;
  /* Marque (logo) */
  --hh: #206D88;
  --hh-fonce: #17566C;
  --hh-vif: #2A85A5;
  --gris-hh: #535353;
  /* Eau */
  --eau: #63C6D6;
  --eau-clair: #BFE6EE;
  /* Matières claires */
  --beton: #EEF1EF;
  --beton-2: #E2E7E4;
  --pierre: #DCD4C4;
  --sol: #E4DDD0;
  --blanc: #FFFFFF;
  /* Texte */
  --encre: #15262D;
  --texte-2: #4C5C62;
  --ligne: rgba(21, 38, 45, 0.14);
  --ligne-forte: rgba(21, 38, 45, 0.32);

  /* Alias conservés pour les composants des pages intérieures */
  --hh-clair: var(--eau-clair);
  --ecume: var(--beton);
  --brume: var(--beton-2);
  --anthracite: var(--gris-hh);
  --ligne-eau: rgba(32, 109, 136, 0.35);
  --hh-voile: rgba(32, 109, 136, 0.1);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-texte: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gouttiere: clamp(20px, 4.5vw, 56px);
  --bloc: clamp(88px, 11vw, 156px);
  --entete: 74px;

  --ease: cubic-bezier(0.22, 0.61, 0.3, 1);
  --ease-eau: cubic-bezier(0.33, 0, 0.18, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-stretch: 100%;
  color: var(--encre);
  background: var(--beton);
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
figure { margin: 0; }

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

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 540;
  font-stretch: 108%;
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--encre);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h3 { font-stretch: 102%; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--hh); outline-offset: 3px; border-radius: 1px; }
.sombre :focus-visible, .hero :focus-visible, .page-hero :focus-visible,
.site-footer :focus-visible, .cta-v2 :focus-visible { outline-color: var(--eau); }
::selection { background: var(--hh); color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--abysse); color: #fff; padding: 10px 18px; font-size: 0.9rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gouttiere)); margin-inline: auto; }

.niveau { display: inline-block; vertical-align: middle; color: var(--eau); }

/* Ancienne ligne décorative : remplacée par le vrai niveau d'eau */
.ligne-eau { display: none; }

/* ---------- Boutons & liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-texte); font-weight: 580; font-stretch: 104%;
  font-size: 0.98rem; letter-spacing: 0.005em; line-height: 1.2;
  text-decoration: none; padding: 16px 26px;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-plein { background: var(--hh); color: #fff; }
.btn-plein:hover { background: var(--hh-vif); color: #fff; }
.btn-contour { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.42); }
.btn-contour:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.07); }
.btn-contour-sombre { background: transparent; color: var(--encre); border-color: var(--ligne-forte); }
.btn-contour-sombre:hover { border-color: var(--hh); color: var(--hh-fonce); }
/* Pages intérieures : btn-contour sur fond clair */
.section .btn-contour, .bande-cta .btn-contour, .page-simple .btn-contour { color: var(--encre); border-color: var(--ligne-forte); }
.section .btn-contour:hover, .page-simple .btn-contour:hover { color: var(--hh-fonce); border-color: var(--hh); }

.lien-fil {
  display: inline-block; font-weight: 580; color: var(--encre); text-decoration: none;
  padding-bottom: 5px;
  background-image: linear-gradient(90deg, var(--hh), var(--hh));
  background-repeat: no-repeat; background-size: 28px 2px; background-position: left bottom;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
}
.lien-fil:hover { background-size: 100% 2px; color: var(--hh-fonce); }
.sombre .lien-fil { color: #fff; background-image: linear-gradient(90deg, var(--eau), var(--eau)); }
.sombre .lien-fil:hover { color: var(--eau-clair); }

.intro { font-size: 1.12rem; color: var(--texte-2); max-width: 58ch; }
.sombre .intro { color: rgba(255, 255, 255, 0.76); }
.note-photos { font-size: 0.84rem; color: var(--texte-2); margin-top: 28px; }
.sombre .note-photos { color: rgba(255, 255, 255, 0.55); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.header-inner {
  display: flex; align-items: center; gap: 28px; min-height: var(--entete);
  width: min(1400px, 100% - 2 * var(--gouttiere)); margin-inline: auto;
}
.marque { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.marque img { height: 46px; width: auto; }
.marque .logo-sombre { display: none; }
.nav-principale ul { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav-principale a {
  font-size: 0.95rem; font-weight: 500; color: #fff; text-decoration: none; padding: 8px 2px;
  background-image: linear-gradient(90deg, currentColor, currentColor);
  background-repeat: no-repeat; background-size: 0 1.5px; background-position: left calc(100% - 2px);
  transition: background-size 0.3s var(--ease);
  text-shadow: 0 1px 12px rgba(7, 32, 41, 0.35);
}
.nav-principale a:hover, .nav-principale a[aria-current="page"] { background-size: 100% 1.5px; }
.nav-principale a[aria-current="page"] { font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-tel { font-size: 0.95rem; font-weight: 600; color: #fff; text-decoration: none; white-space: nowrap; text-shadow: 0 1px 12px rgba(7, 32, 41, 0.35); }
.header-tel:hover { color: var(--eau-clair); }
.header-actions .btn { padding: 11px 20px; font-size: 0.92rem; }

.site-header.est-pose { background: rgba(238, 241, 239, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--ligne); }
.site-header.est-pose .nav-principale a, .site-header.est-pose .header-tel { color: var(--encre); text-shadow: none; }
.site-header.est-pose .header-tel:hover { color: var(--hh-fonce); }
.site-header.est-pose .marque .logo-blanc { display: none; }
.site-header.est-pose .marque .logo-sombre { display: block; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 46px; height: 46px; padding: 10px; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background-color 0.3s var(--ease); }
.site-header.est-pose .nav-toggle span { background: var(--encre); }
.menu-ouvert .nav-toggle span { background: #fff; }
.menu-ouvert .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-ouvert .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-ouvert .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1023px) {
  :root { --entete: 64px; }
  .nav-toggle { display: flex; z-index: 130; }
  .header-tel, .header-actions .btn { display: none; }
  .marque img { height: 40px; }
  .nav-principale {
    position: fixed; inset: 0; z-index: 120;
    background: linear-gradient(180deg, var(--abysse-2) 0%, var(--abysse) 100%);
    display: grid; align-content: center; justify-items: start;
    padding: 96px var(--gouttiere) 120px;
    opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  }
  .menu-ouvert .nav-principale { opacity: 1; visibility: visible; }
  .nav-principale ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-principale a { font-size: clamp(1.8rem, 7vw, 2.4rem); font-weight: 520; font-stretch: 108%; color: #fff; padding: 8px 0; background-position: left calc(100% - 6px); text-shadow: none; }
  .menu-pied { margin-top: 40px; display: grid; gap: 14px; }
  .menu-pied .menu-tel { color: var(--eau-clair); font-size: 1.2rem; font-weight: 600; text-decoration: none; }
}
@media (min-width: 1024px) { .menu-pied { display: none; } }
@media (min-width: 1100px) { .header-inner { width: calc(100% - 2 * clamp(36px, 3.6vw, 72px)); } }
@media (min-width: 1024px) and (max-width: 1279px) { .header-tel { display: none; } .nav-principale ul { gap: 18px; } }
body.menu-ouvert { overflow: hidden; }

/* ---------- Jauge de niveau (accueil, desktop large) ---------- */
.jauge { position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 90; display: none; transition: opacity 0.4s var(--ease), visibility 0.4s; }
.au-heros .jauge { opacity: 0; visibility: hidden; }
@media (min-width: 1360px) { .jauge { display: block; } }
.jauge-tube { position: absolute; left: 4px; top: -8px; bottom: -8px; width: 3px; background: rgba(21, 38, 45, 0.14); border-radius: 2px; overflow: hidden; }
.sur-sombre .jauge-tube { background: rgba(255, 255, 255, 0.18); }
.jauge-eau { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--remplissage, 0) * 100%); background: linear-gradient(0deg, var(--hh), var(--eau)); }
.jauge ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.jauge a { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 12px; }
.jauge-trait { width: 11px; height: 2px; background: var(--ligne-forte); transition: width 0.3s var(--ease), background-color 0.3s var(--ease); }
.sur-sombre .jauge-trait { background: rgba(255, 255, 255, 0.45); }
.jauge-nom {
  font-size: 0.78rem; font-weight: 560; font-stretch: 96%; color: var(--texte-2); white-space: nowrap;
  opacity: 0; transform: translateX(-6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  background: rgba(238, 241, 239, 0.9); padding: 2px 8px; border-radius: 2px;
}
.sur-sombre .jauge-nom { color: #fff; background: rgba(7, 32, 41, 0.8); }
.jauge a:hover .jauge-nom, .jauge a:focus-visible .jauge-nom { opacity: 1; transform: none; }
.jauge li.actif .jauge-trait { width: 20px; background: var(--hh); }
.sur-sombre .jauge li.actif .jauge-trait { background: var(--eau); }

/* ==========================================================================
   A. HÉROS — la photo à sa taille réelle, le texte dans une zone de lecture
   construite comme un bassin : de l'air au-dessus, de l'eau en dessous.
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--abysse);
  color: #fff;
}
.hero-photo { position: relative; height: clamp(360px, 58svh, 560px); overflow: hidden; background: var(--abysse-2); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 32, 41, 0.62) 0%, rgba(7, 32, 41, 0) 100%);
}
.hero-panneau { position: relative; display: flex; flex-direction: column; }
.hero-air { display: none; }
.hero-eau {
  position: relative; isolation: isolate;
  padding: 34px var(--gouttiere) 40px;
  border-top: 1px solid var(--eau);
}
.hero-eau::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #0F4555 0%, #0A3140 34%, var(--abysse) 100%);
  transform-origin: 50% 100%;
}
.hero-niveau { position: absolute; top: -16px; left: var(--gouttiere); line-height: 0; }
.hero-surtitre {
  font-size: 0.8rem; font-weight: 600; font-stretch: 104%; letter-spacing: 0.16em;
  color: var(--eau-clair); margin: 0;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.7rem, 7.4vw, 3rem);
  font-weight: 520; font-stretch: 106%;
  line-height: 1.04; letter-spacing: -0.022em;
  margin: 0 0 0.55em; max-width: 15ch;
}
.hero-texte { font-size: 1.08rem; color: rgba(255, 255, 255, 0.82); max-width: 44ch; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.preuve-google { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.86); margin: 0; }
.etoiles { color: #F2C14E; letter-spacing: 0.08em; }
.releve { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }

/* Mobile / tablette : photo, puis une bande « air » (surtitre), puis l'eau */
@media (max-width: 1099px) {
  .hero-air { display: block; padding: 16px var(--gouttiere) 14px; background: #0B232B; }
  .hero h1 { font-stretch: 98%; max-width: none; }
}
@media (max-width: 1099px) and (min-width: 700px) {
  .hero-eau { padding-top: 44px; padding-bottom: 54px; }
}

/* Desktop : panneau d'eau à gauche, photo à droite plafonnée à sa largeur native */
@media (min-width: 1100px) {
  .hero {
    --pad-h: clamp(36px, 3.6vw, 72px);
    grid-template-columns: minmax(420px, 1fr) min(62vw, 1080px);
    min-height: clamp(640px, 100svh, 980px);
  }
  .hero-photo { grid-column: 2; grid-row: 1; height: auto; }
  .hero-photo::after { height: 170px; }
  .hero-photo::before {
    /* fine arête verticale : le bord du bassin */
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; z-index: 2;
    background: linear-gradient(180deg, rgba(99, 198, 214, 0) 0%, rgba(99, 198, 214, 0.55) 40%, rgba(99, 198, 214, 0.9) 100%);
  }
  .hero-panneau { grid-column: 1; grid-row: 1; background: #0D2830; }
  .hero-air {
    display: flex; align-items: flex-end; flex: 1 1 auto; position: static;
    padding: calc(var(--entete) + 40px) var(--pad-h) 26px;
    background: linear-gradient(180deg, #0B232B 0%, #0E2C35 100%);
  }
  .hero-eau { padding: 42px var(--pad-h) clamp(44px, 7vh, 80px); }
  .hero-niveau { left: var(--pad-h); }
  /* le titre est dimensionné sur la largeur réelle du panneau : chaque phrase respire */
  .hero h1 { max-width: none; font-size: clamp(2rem, calc((max(38vw, 100vw - 1080px) - 2 * var(--pad-h)) / 11.6), 3.5rem); }
  /* la ligne d'eau déborde légèrement sur la photo */
  .hero-actions .btn { padding: 15px 20px; }
  .hero-eau::after {
    content: ""; position: absolute; top: -1px; right: -64px; width: 64px; height: 1px; z-index: 3;
    background: linear-gradient(90deg, var(--eau), rgba(99, 198, 214, 0));
  }
}

/* Mise en eau du héros : le seul mouvement orchestré au chargement */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-eau::before { animation: remplir 1.5s var(--ease-eau) 0.15s both; }
  .js .hero-eau { animation: ligne 1.5s var(--ease-eau) 0.15s both; }
  .js .hero-eau > * { animation: emerger 0.9s var(--ease) 1.05s both; }
  .js .hero-photo img { animation: apparaitre 1.2s var(--ease) both; }
}
@keyframes remplir { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ligne { from { border-top-color: transparent; } 60% { border-top-color: transparent; } to { border-top-color: var(--eau); } }
@keyframes emerger { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes apparaitre { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   B + C. SOUS LA SURFACE — la coupe technique interactive (signature)
   ========================================================================== */
.coupe-section { position: relative; background: var(--beton); padding-block: var(--bloc) calc(var(--bloc) * 0.7); }
.coupe-tete { display: grid; gap: 20px 60px; margin-bottom: clamp(36px, 5vw, 64px); }
.coupe-tete h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); max-width: 16ch; margin: 0; }
.coupe-liens { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; }
@media (min-width: 1000px) { .coupe-tete { grid-template-columns: 1.1fr 1fr; align-items: end; } }

.coupe { display: grid; grid-template-columns: minmax(0, 1fr); }
.coupe > * { min-width: 0; }
.coupe-scene { position: sticky; top: var(--entete); z-index: 2; background: var(--beton); margin-inline: calc(-1 * var(--gouttiere)); padding: 10px var(--gouttiere) 8px; border-bottom: 1px solid var(--ligne); }
.coupe-collant { display: flex; flex-direction: column; gap: 10px; }

.coupe-barre { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.coupe-barre::-webkit-scrollbar { display: none; }
.coupe-bouton {
  flex: 0 0 auto; font: inherit; font-size: 0.8rem; font-weight: 560; font-stretch: 96%;
  color: var(--texte-2); background: none; border: 0; padding: 6px 8px 8px; cursor: pointer;
  display: inline-flex; gap: 6px; align-items: baseline; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.coupe-bouton span { font-variant-numeric: tabular-nums; color: var(--ligne-forte); font-weight: 600; transition: color 0.25s; }
.coupe-bouton:hover { color: var(--encre); }
.coupe-bouton[aria-current="step"] { color: var(--encre); border-bottom-color: var(--hh); }
.coupe-bouton[aria-current="step"] span, .coupe-bouton.est-fait span { color: var(--hh); }
.coupe-progression { position: absolute; left: 0; bottom: 8px; height: 1px; width: 100%; background: var(--ligne); z-index: -1; }

.coupe-figure { position: relative; }
.coupe-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--f-texte); }

.coupe-etapes { list-style: none; margin: 0; padding: 0; }
.coupe-etape { padding: 34px 0 30px; border-bottom: 1px solid var(--ligne); transition: opacity 0.4s var(--ease); }
.coupe-etape:last-child { border-bottom: 0; }
.coupe-num { font-size: 0.82rem; font-weight: 600; color: var(--texte-2); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.coupe-num span { color: var(--hh); font-size: 1rem; margin-right: 2px; }
.coupe-etape h3 { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 0.4em; }
.coupe-etape > p:not(.coupe-num) { color: var(--texte-2); max-width: 46ch; }
.coupe-preuve { margin-top: 20px; }
.coupe-preuve img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.coupe-preuve figcaption { font-size: 0.82rem; color: var(--texte-2); margin-top: 8px; }
.js .coupe-etape:not(.est-active) { opacity: 0.4; }

@media (min-width: 700px) and (max-width: 1279px) { .coupe-preuve { max-width: 520px; } }
@media (min-width: 1280px) {
  .coupe { grid-template-columns: minmax(280px, 0.6fr) minmax(0, 1.7fr); gap: 0 clamp(40px, 5vw, 80px); align-items: start; }
  .coupe-scene { grid-column: 2; grid-row: 1; margin: 0; padding: 0; border: 0; top: calc(var(--entete) + max(2vh, (100svh - var(--entete) - 34vw) / 2)); background: none; }
  .coupe-collant { width: 100%; gap: 22px; }
  .coupe-etapes { grid-column: 1; grid-row: 1; padding-block: 4vh 22vh; }
  .coupe-etape { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; border: 0; padding: 0; }
  .coupe-preuve { max-width: 360px; }
  .coupe-bouton { font-size: 0.86rem; padding-inline: 10px; }
}

/* --- Dessin : matières (état « fait ») --- */
.coupe-svg .sol-fond { fill: var(--sol); }
.coupe-svg .m-point { fill: #B7AD9A; }
.coupe-svg .m-trait { stroke: #B7AD9A; stroke-width: 1; }
.coupe-svg .sol-vegetal { fill: #CFC7B6; opacity: 0.7; }
.coupe-svg .tn { stroke: var(--encre); stroke-width: 1.5; }
.coupe-svg .tn-texte { font-size: 15px; fill: var(--texte-2); font-weight: 500; }
.coupe-svg .vide, .coupe-svg .interieur { fill: var(--beton); }
.coupe-svg .m-grain { fill: none; stroke: #A99F8B; stroke-width: 1; }
.coupe-svg .trait-cle { fill: none; stroke: var(--encre); stroke-width: 1.4; stroke-dasharray: 6 5; }
.coupe-svg .beton rect, .coupe-svg .beton polygon, .coupe-svg rect.beton { fill: #C9D1D0; }
.coupe-svg .m-hachure { stroke: #8F9C9E; stroke-width: 1; }
.coupe-svg .contour rect, .coupe-svg .contour polygon, .coupe-svg .contour-simple { fill: none; stroke: var(--encre); stroke-width: 1.5; }
.coupe-svg .fer path { fill: none; stroke: #6C7A7E; stroke-width: 1.3; stroke-dasharray: 5 4; }
.coupe-svg .piece rect { fill: #F7F8F7; stroke: var(--encre); stroke-width: 1.4; }
.coupe-svg .tuyau { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.coupe-svg .aspiration { stroke: #5C6F77; }
.coupe-svg .refoulement { stroke: var(--hh); }
.coupe-svg .equipement rect, .coupe-svg .equipement path, .coupe-svg .equipement circle { fill: #F7F8F7; stroke: var(--encre); stroke-width: 1.4; }
.coupe-svg .sol-local { stroke: var(--encre); stroke-width: 1; }
.coupe-svg .trappe { stroke: var(--encre); stroke-width: 3; }
.coupe-svg .remblai { stroke: none; }
.coupe-svg .dalle-plage, .coupe-svg .margelle { fill: var(--pierre); stroke: var(--encre); stroke-width: 1.2; }
.coupe-svg .margelle { fill: #EDE7DA; }
.coupe-svg .joints line { stroke: var(--encre); stroke-width: 1; opacity: 0.6; }
.coupe-svg .revetement { fill: none; stroke: var(--hh); stroke-width: 4; stroke-linejoin: round; }
.coupe-svg .eau-haut { stop-color: #8AD6E3; stop-opacity: 0.95; }
.coupe-svg .eau-bas { stop-color: #1E6B83; stop-opacity: 0.95; }
.coupe-svg .surface { stroke: #fff; stroke-width: 2; }
.coupe-svg .repere-eau path:first-child { fill: var(--hh-fonce); }
.coupe-svg .repere-eau path:last-child { fill: none; stroke: #fff; stroke-width: 1.6; }
.coupe-svg .flux { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 2 16; opacity: 0; }

.coupe-svg .etiquette line { stroke: var(--encre); stroke-width: 1; }
.coupe-svg .etiquette circle { fill: var(--hh); }
.coupe-svg .etiquette text { font-size: 19px; font-weight: 560; font-stretch: 96%; fill: var(--encre); paint-order: stroke; stroke: var(--beton); stroke-width: 5px; stroke-linejoin: round; }

/* --- États pilotés par le scroll / les boutons (JS) --- */
.js .coupe-svg .calque { transition: opacity 0.7s var(--ease); }
.js .coupe-svg .calque[data-etat="futur"] { opacity: 0.1; }
.js .coupe-svg .calque[data-etat="futur"][data-e="6"] { opacity: 0; }
.js .coupe-svg .etiquette { opacity: 0; transition: opacity 0.45s var(--ease); }
.js .coupe-svg .etiquette.est-visible { opacity: 1; }
.js .coupe[data-etape="6"] .coupe-svg .etiquette { opacity: 1; transition-delay: 1.4s; }
.js .coupe[data-etape="6"] .coupe-svg .etiquette:not([data-e="6"]) text { font-weight: 500; }

/* actif : l'élément en cours s'illumine */
.coupe-svg .calque[data-etat="actif"] .trait-cle { stroke: var(--hh); stroke-width: 2.4; stroke-dasharray: none; }
.coupe-svg .calque[data-etat="actif"] .vide { fill: #E6F0F2; }
.coupe-svg .calque[data-etat="actif"] .beton rect,
.coupe-svg .calque[data-etat="actif"] .beton polygon,
.coupe-svg .calque[data-etat="actif"] rect.beton { fill: #BFD9E1; }
.coupe-svg .calque[data-etat="actif"] .contour rect,
.coupe-svg .calque[data-etat="actif"] .contour polygon,
.coupe-svg .calque[data-etat="actif"] .contour-simple { stroke: var(--hh); stroke-width: 2.2; }
.coupe-svg .calque[data-etat="actif"] .fer path { stroke: var(--hh); }
.coupe-svg .calque[data-etat="actif"] .piece rect,
.coupe-svg .calque[data-etat="actif"] .equipement rect,
.coupe-svg .calque[data-etat="actif"] .equipement path,
.coupe-svg .calque[data-etat="actif"] .equipement circle { fill: #DDEEF2; stroke: var(--hh); stroke-width: 2; }
.coupe-svg .calque[data-etat="actif"] .aspiration { stroke: #2F8FAE; }
.coupe-svg .calque[data-etat="actif"] .dalle-plage,
.coupe-svg .calque[data-etat="actif"] .margelle { stroke: var(--hh); stroke-width: 1.8; }
.coupe-svg .calque[data-etat="actif"] .revetement { stroke-width: 5; }

/* tracés : les réseaux se dessinent, le revêtement se pose */
.js .coupe-svg .tuyau, .js .coupe-svg .revetement { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-eau), stroke 0.4s; }
.js .coupe-svg .calque[data-etat="futur"] .tuyau, .js .coupe-svg .calque[data-etat="futur"] .revetement { stroke-dashoffset: 1; }

/* l'eau monte */
.coupe-svg .eau { transform-box: fill-box; transform-origin: 50% 100%; }
.js .coupe-svg .eau { transform: scaleY(0); transition: transform 2s var(--ease-eau); }
.js .coupe-svg .calque[data-etat="actif"] .eau, .js .coupe-svg .calque[data-etat="fait"] .eau { transform: scaleY(1); }
.js .coupe-svg [data-e="6"] .surface, .js .coupe-svg [data-e="6"] .repere-eau { opacity: 0; transition: opacity 0.6s var(--ease) 1.6s; }
.js .coupe-svg [data-e="6"][data-etat="actif"] .surface, .js .coupe-svg [data-e="6"][data-etat="actif"] .repere-eau { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .coupe-svg [data-e="6"][data-etat="actif"] .flux { opacity: 0.85; transition: opacity 0.6s 1.8s; animation: circuler 1.6s linear infinite; }
  .coupe-svg [data-e="6"][data-etat="actif"] .flux-ref { animation-direction: normal; }
}
@keyframes circuler { to { stroke-dashoffset: -18; } }
html:not(.js) .coupe-svg .flux { display: none; }

/* sur petit écran, le dessin reste lisible : les étiquettes passent dans le texte */
@media (max-width: 699px) {
  .coupe-svg .etiquettes, .coupe-svg .tn-texte { display: none; }
  .coupe-svg .tuyau { stroke-width: 8; }
  .coupe-svg .revetement { stroke-width: 6; }
}
/* ==========================================================================
   Chapitres de projet — en-tête commun
   ========================================================================== */
.projet-tete { max-width: 760px; margin-bottom: clamp(40px, 6vw, 76px); }
.projet-num { font-size: 0.86rem; font-weight: 600; font-stretch: 100%; color: var(--hh-fonce); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.projet-num span { margin: 0 6px; color: var(--ligne-forte); }
.sombre .projet-num { color: var(--eau); }
.sombre .projet-num span { color: rgba(255, 255, 255, 0.3); }
.projet-tete h2, .escalier-texte h2, .bassins-tete h2, .duo-v2-texte h2, .avis-v2-tete h2, .zone-v2 h2, .cta-v2 h2 {
  font-size: clamp(2rem, 1.2rem + 2.5vw, 3.3rem);
}
.sombre h2, .sombre h3 { color: #fff; }
.sombre { background: var(--abysse); color: rgba(255, 255, 255, 0.88); }

/* Cadre « bassin » : les images se remplacent par une ligne d'eau qui monte */
.cadre-eau { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--abysse-2); }
.cadre-eau .t-img { position: absolute; inset: 0; }
.cadre-eau .t-img img { width: 100%; height: 100%; object-fit: cover; }
.t-ligne {
  position: absolute; left: 0; right: 0; top: calc(var(--ligne-pos, 1) * 100%); height: 2px; z-index: 6;
  background: var(--eau); box-shadow: 0 0 18px 2px rgba(99, 198, 214, 0.55);
  opacity: var(--ligne-o, 0); pointer-events: none; transform: translateY(-1px);
}

/* ==========================================================================
   D. TRANSFORMATION — scrollytelling avant / chantier / après
   ========================================================================== */
.transfo { padding-block: var(--bloc); background: var(--abysse); }
.transfo-scene { display: grid; grid-template-columns: 1fr; }
.transfo-visuel { position: sticky; top: calc(var(--entete) + 8px); z-index: 2; display: flex; justify-content: center; }
.transfo-cadre { width: min(100%, 52svh); }
.transfo-cadre .t-img[data-t="1"] { z-index: 1; }
.transfo-cadre .t-img[data-t="2"] { z-index: 2; clip-path: inset(calc((1 - var(--r, 0)) * 100%) 0 0 0); }
.transfo-cadre .t-img[data-t="3"] { z-index: 3; clip-path: inset(calc((1 - var(--r, 0)) * 100%) 0 0 0); }
html:not(.js) .transfo-cadre .t-img[data-t="3"] { clip-path: none; }
.t-badge { position: absolute; left: 14px; top: 14px; z-index: 7; margin: 0; }
.t-badge span {
  display: none; font-size: 0.8rem; font-weight: 600; color: #fff; background: rgba(7, 32, 41, 0.72);
  padding: 6px 12px; border-left: 2px solid var(--eau);
}
.t-badge span.est-visible { display: inline-block; }
html:not(.js) .t-badge span[data-b="3"] { display: inline-block; }

.transfo-etapes { list-style: none; margin: 0; padding: 12svh 0 6svh; }
.t-etape { min-height: 62svh; display: flex; flex-direction: column; justify-content: center; padding: 26px 0; transition: opacity 0.4s var(--ease); }
.js .t-etape:not(.est-active) { opacity: 0.38; }
.t-num { font-size: 0.95rem; font-weight: 600; color: var(--eau); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.t-etape h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); margin-bottom: 0.4em; }
.t-etape p:last-child { color: rgba(255, 255, 255, 0.76); max-width: 42ch; }
@media (max-width: 999px) {
  .t-etape { background: linear-gradient(180deg, rgba(7, 32, 41, 0) 0, var(--abysse) 26px); }
}
@media (min-width: 1000px) {
  .transfo-scene { grid-template-columns: minmax(280px, 0.8fr) 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
  .transfo-visuel { grid-column: 2; grid-row: 1; top: calc(var(--entete) + (100svh - var(--entete) - min(640px, 76svh)) / 2); }
  .transfo-cadre { width: min(100%, 640px, 76svh); }
  .transfo-etapes { grid-column: 1; grid-row: 1; padding: 8svh 0 14svh; }
  .t-etape { min-height: 78svh; }
}

.transfo-conclusion { display: grid; gap: 30px 60px; align-items: center; margin-top: clamp(40px, 6vw, 90px); padding-top: clamp(40px, 5vw, 70px); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.transfo-conclusion h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); }
.transfo-conclusion-texte p { color: rgba(255, 255, 255, 0.76); max-width: 40ch; }
.transfo-conclusion .comparateur { width: min(100%, 620px); justify-self: end; }
@media (min-width: 1000px) { .transfo-conclusion { grid-template-columns: 0.8fr 1fr; } }

/* Comparateur (conclusion de l'histoire) */
.comparateur { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--abysse-2); user-select: none; touch-action: pan-y; }
.comparateur img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.comparateur .calque-avant { position: absolute; inset: 0; z-index: 2; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.comparateur .poignee { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; z-index: 3; box-shadow: 0 0 0 1px rgba(7, 32, 41, 0.25); }
.comparateur .poignee::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(255, 255, 255, 0.97) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='12' viewBox='0 0 22 12'%3E%3Cpath d='M6 1 1 6l5 5M16 1l5 5-5 5' fill='none' stroke='%23206D88' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px 12px no-repeat;
  box-shadow: 0 4px 18px rgba(7, 32, 41, 0.35);
}
.comparateur .badge { position: absolute; bottom: 14px; z-index: 4; font-size: 0.8rem; font-weight: 600; color: #fff; background: rgba(7, 32, 41, 0.7); padding: 6px 12px; pointer-events: none; }
.comparateur .badge-avant { left: 14px; }
.comparateur .badge-apres { right: 14px; }
.comparateur input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 5; -webkit-appearance: none; appearance: none; }
.comparateur input[type="range"]:focus-visible ~ .poignee::after { outline: 3px solid var(--eau); outline-offset: 3px; }

/* ==========================================================================
   E. ESCALIER — les marches sont les commandes
   ========================================================================== */
.escalier { padding-block: var(--bloc); background: #F7F8F7; }
.escalier-grille { display: grid; gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.esc-cadre { width: min(100%, 620px); }
.esc-cadre .t-img { opacity: 0; z-index: 1; }
.esc-cadre .t-img.est-precedente { opacity: 1; z-index: 2; }
.esc-cadre .t-img.est-active { opacity: 1; z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .esc-cadre .t-img.est-active.anime { animation: monter 1.1s var(--ease-eau) both; }
  .esc-cadre.anime-ligne .t-ligne { animation: ligne-monte 1.1s var(--ease-eau) both; }
}
@keyframes monter { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ligne-monte { 0% { top: 100%; opacity: 1; } 88% { opacity: 1; } 100% { top: 0%; opacity: 0; } }

.escalier-texte .intro { margin-bottom: 8px; }
.marches {
  --h: 176px; --pas: 34px;
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: var(--h);
  margin: 34px 0 20px; max-width: 520px;
}
.marche {
  position: relative; align-self: stretch; font: inherit; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; padding: 12px 10px 10px 12px;
  color: var(--encre); border: 0; border-top: 3px solid var(--encre); border-left: 1px solid var(--ligne-forte);
  background: repeating-linear-gradient(45deg, rgba(21, 38, 45, 0.07) 0 1px, transparent 1px 8px), #E3E8E6;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.marche:nth-of-type(2) { margin-top: var(--pas); }
.marche:nth-of-type(3) { margin-top: calc(var(--pas) * 2); }
.marche:nth-of-type(4) { margin-top: calc(var(--pas) * 3); }
.m-num { font-size: 1.05rem; font-weight: 640; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.m-nom { font-size: 0.84rem; font-weight: 560; font-stretch: 94%; line-height: 1.2; }
.marche:hover { border-top-color: var(--hh); }
.marche[aria-selected="true"] { border-top-color: var(--hh); background: repeating-linear-gradient(45deg, rgba(32, 109, 136, 0.14) 0 1px, transparent 1px 8px), #D5E6EB; }
.marche[aria-selected="true"] .m-num { color: var(--hh-fonce); }
.marche:focus-visible { outline-offset: -3px; }
.marches-eau {
  position: absolute; left: 0; right: 0; top: calc(var(--pas) * 0.55); bottom: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(99, 198, 214, 0.42), rgba(32, 109, 136, 0.5));
  border-top: 2px solid var(--eau);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform 1.1s var(--ease-eau);
}
.marches.en-eau .marches-eau { transform: scaleY(1); }
.esc-panneau p { font-size: 1.06rem; min-height: 3.4em; max-width: 44ch; }
@media (min-width: 1000px) { .escalier-grille { grid-template-columns: 1fr 0.9fr; } }
@media (max-width: 480px) { .marches { --h: 150px; --pas: 28px; } .m-nom { font-size: 0.76rem; } }

/* ==========================================================================
   F. SOUS LA SURFACE — le circuit de l'eau relie les coulisses au bassin
   ========================================================================== */
.dessous { padding-block: var(--bloc); background: linear-gradient(180deg, var(--abysse) 0%, #051A21 100%); }
.dessous-grille { display: grid; gap: 40px clamp(40px, 6vw, 96px); }
.colonne-titre { font-size: 0.86rem; font-weight: 600; color: var(--eau-clair); display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.colonne-titre::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.16); }
.dessous-bassin img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.dessous-bassin figcaption { margin-top: 10px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.6); }

.circuit { position: relative; padding-left: 58px; }
.circuit-tuyau { position: absolute; left: 20px; top: 6px; bottom: 6px; width: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.circuit-eau { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--flux, 1) * 100%); background: linear-gradient(180deg, var(--eau), var(--hh)); }
.circuit-bout { font-size: 0.88rem; font-weight: 560; color: var(--eau-clair); margin: 0; position: relative; }
.circuit-bout::before { content: ""; position: absolute; left: -44px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--abysse); border: 2px solid var(--eau); }
.stations { list-style: none; margin: 30px 0; padding: 0; display: grid; gap: 34px; }
.station { position: relative; display: grid; grid-template-columns: minmax(110px, 200px) 1fr; gap: 22px; align-items: center; }
.station figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.station h3 { font-size: 1.25rem; margin-bottom: 0.3em; }
.station p { color: rgba(255, 255, 255, 0.74); font-size: 0.98rem; }
.noeud { position: absolute; left: -48px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.28); background: var(--abysse); transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease); }
.noeud::after { content: ""; position: absolute; left: 24px; top: 10px; width: 22px; height: 2px; background: rgba(255, 255, 255, 0.2); transition: background-color 0.4s var(--ease); }
.station.est-atteinte .noeud, html:not(.js) .noeud { border-color: var(--eau); background: radial-gradient(circle, var(--eau) 0 5px, var(--abysse) 6px); }
.station.est-atteinte .noeud::after, html:not(.js) .noeud::after { background: var(--eau); }
.citation { display: block; margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--eau); color: var(--eau-clair); font-size: 0.95rem; }
.citation span { display: block; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); margin-top: 3px; }
@media (min-width: 1000px) {
  .dessous-grille { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
  .dessous-visible { position: sticky; top: calc(var(--entete) + 5vh); }
  .dessous-bassin { max-width: 560px; }
  /* retour au bassin : le refoulement rejoint la colonne « Ce que vous voyez » */
  .circuit-sortie::after {
    content: ""; position: absolute; top: 50%; right: calc(100% + 44px); height: 2px; margin-top: -1px;
    width: calc(clamp(40px, 6vw, 96px) + 14px);
    background: linear-gradient(270deg, var(--eau), rgba(99, 198, 214, 0.25));
  }
}
@media (max-width: 560px) {
  .circuit { padding-left: 44px; }
  .circuit-tuyau { left: 12px; }
  .noeud { left: -40px; width: 22px; height: 22px; margin-top: -11px; }
  .noeud::after { left: 20px; top: 8px; width: 14px; }
  .circuit-bout::before { left: -37px; }
  .station { grid-template-columns: 1fr; gap: 12px; }
  .station .noeud { top: 28%; }
}

/* ==========================================================================
   Bassins terminés — bandeau horizontal, chaque photo à son format
   ========================================================================== */
.bassins { padding-block: var(--bloc) calc(var(--bloc) * 0.75); background: var(--beton); }
.bassins-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 36px; }
.bassins-tete h2 { max-width: 18ch; }
.bassins-actions { display: flex; align-items: center; gap: 10px; }
.bassins-fleche { width: 48px; height: 48px; display: inline-grid; place-items: center; border: 1px solid var(--ligne-forte); background: transparent; color: var(--encre); border-radius: 50%; cursor: pointer; transition: border-color 0.25s, color 0.25s, background-color 0.25s; }
.bassins-fleche:hover { border-color: var(--hh); color: var(--hh-fonce); }
.bassins-fleche[disabled] { opacity: 0.35; cursor: default; }
.bassins-actions .btn { margin-left: 8px; }
.bassins-piste {
  --h: 300px;
  --marge: max(var(--gouttiere), (100vw - var(--wrap)) / 2);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--marge); padding: 0 var(--marge) 14px;
  scrollbar-width: thin; scrollbar-color: var(--hh) transparent;
}
.bassins-piste:focus-visible { outline-offset: -3px; }
.bassins-piste ul { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; width: max-content; }
.bassins-piste li { flex: 0 0 auto; width: calc(var(--h) * var(--ratio)); scroll-snap-align: start; }
.bassins-piste img { width: 100%; height: var(--h); object-fit: cover; }
.bassins-piste figcaption { margin-top: 10px; font-size: 0.86rem; color: var(--texte-2); max-width: 36ch; }
@media (min-width: 900px) { .bassins-piste { --h: 460px; } }

/* ==========================================================================
   G. DUO — portrait encadré comme un bassin, carte d'identité en surimpression
   ========================================================================== */
.duo-v2 { padding-block: var(--bloc); background: #F7F8F7; overflow: hidden; }
.duo-v2-grille { display: grid; gap: 76px clamp(40px, 6vw, 110px); align-items: center; }
.duo-portrait { position: relative; width: min(100% - 26px, 540px); margin-bottom: 26px; }
.duo-cadre { position: relative; isolation: isolate; }
.duo-cadre img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: 0 30px 60px -34px rgba(7, 32, 41, 0.55); }
/* le « bassin » décalé : bord en trait de plan, eau jusqu'à la ligne de niveau */
.duo-bassin {
  position: absolute; z-index: 0; inset: 26px -26px -26px 26px;
  border: 1.5px solid var(--hh);
  background: linear-gradient(180deg, rgba(32, 109, 136, 0) 0 60%, rgba(99, 198, 214, 0.2) 60%, rgba(32, 109, 136, 0.3) 100%);
}
.duo-bassin::before { content: ""; position: absolute; left: 0; right: 0; top: 60%; height: 1.5px; background: var(--eau); }
.duo-niveau { position: absolute; right: 4px; top: calc(60% - 17px); line-height: 0; }
.duo-niveau .niveau { color: var(--hh); }
.duo-carte {
  position: absolute; z-index: 2; left: -14px; bottom: -30px; max-width: calc(100% - 24px);
  display: grid; gap: 3px; padding: 16px 22px 16px 18px;
  background: var(--abysse); color: #fff; border-left: 3px solid var(--eau);
  box-shadow: 0 20px 44px -22px rgba(7, 32, 41, 0.7);
}
.duo-carte b { font-weight: 600; font-stretch: 104%; font-size: 1.02rem; line-height: 1.25; }
.duo-carte span { font-size: 0.84rem; color: rgba(255, 255, 255, 0.72); }
.duo-faits { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px; margin: 28px 0 32px; padding: 18px 0; border-block: 1px solid var(--ligne); }
.duo-faits dt { font-size: 0.8rem; color: var(--texte-2); }
.duo-faits dd { margin: 0; font-weight: 600; font-stretch: 104%; }
@media (min-width: 1000px) { .duo-v2-grille { grid-template-columns: 1fr 1fr; } .duo-portrait { margin-left: 14px; } }
@media (max-width: 560px) {
  .duo-faits { grid-template-columns: 1fr 1fr; }
  .duo-bassin { inset: 16px -16px -16px 16px; }
  .duo-portrait { margin-bottom: 0; }
  .duo-carte { position: relative; left: auto; bottom: auto; margin: -30px 0 0 12px; padding: 13px 16px; }
}

/* ==========================================================================
   H. AVIS
   ========================================================================== */
.avis-v2 { padding-block: var(--bloc); background: var(--beton-2); }
.avis-v2-tete { display: grid; gap: 24px 60px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.note-globale { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.note-globale .chiffre { font-size: clamp(3rem, 2rem + 3vw, 4.4rem); font-weight: 520; font-stretch: 108%; line-height: 1; letter-spacing: -0.03em; }
.note-globale .detail { font-size: 0.9rem; color: var(--texte-2); }
.note-globale .lien-fil { flex-basis: 100%; width: max-content; }
.avis-v2-flux { display: grid; gap: 30px clamp(28px, 3vw, 48px); }
.avis { border-top: 2px solid var(--encre); padding-top: 22px; }
.avis blockquote { margin: 0 0 20px; font-size: 1.04rem; line-height: 1.6; }
.avis footer { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 0.88rem; color: var(--texte-2); }
.avis footer b { color: var(--encre); font-weight: 600; }
.avis-source { margin-top: 26px; font-size: 0.84rem; color: var(--texte-2); }
@media (min-width: 900px) {
  .avis-v2-tete { grid-template-columns: 1fr auto; }
  .avis-v2-flux { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   I. ZONE et J. CTA — les photos se fondent dans le fond de section
   ========================================================================== */
.fondu { margin: 0; }
.fondu img { width: 100%; object-fit: cover; }
.zone-v2 { position: relative; overflow: hidden; padding-block: var(--bloc); background: var(--beton); }
.zone-v2-grille { display: grid; gap: 30px; }
.zone-liens { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 22px; }
.zone-photo figcaption { font-size: 0.84rem; color: var(--texte-2); margin-top: 8px; }

.cta-v2 { position: relative; overflow: hidden; padding-block: var(--bloc); background: linear-gradient(180deg, #0E4150 0%, var(--abysse) 55%); border-top: 1px solid var(--eau); }
.cta-v2-grille { display: grid; gap: 34px; }
.cta-v2-texte { position: relative; z-index: 2; }
.cta-niveau { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; font-weight: 600; color: var(--eau); margin-bottom: 18px; }
.cta-v2-texte > p:not(.cta-niveau) { color: rgba(255, 255, 255, 0.8); max-width: 46ch; }
.cta-v2 .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 30px; }
.tel-grand { display: grid; color: #fff; text-decoration: none; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 560; font-stretch: 106%; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tel-grand small { font-size: 0.8rem; font-weight: 500; font-stretch: 100%; color: rgba(255, 255, 255, 0.6); margin-bottom: 4px; }
.tel-grand:hover { color: var(--eau-clair); }

/* Mobile / tablette : la photo déborde jusqu'aux bords et se fond vers le texte */
@media (max-width: 999px) {
  .zone-photo { order: -1; margin: calc(-1 * var(--bloc)) calc(-1 * var(--gouttiere)) 0; }
  .zone-photo img { aspect-ratio: 4 / 3; max-height: 62svh; -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, #000 58%, transparent 100%); }
  .zone-photo figcaption { padding-inline: var(--gouttiere); margin-top: -26px; position: relative; }
  .cta-v2-photo { margin: 0 calc(-1 * var(--gouttiere)) calc(-1 * var(--bloc)); }
  .cta-v2-photo img { aspect-ratio: 4 / 5; max-height: 70svh; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 32%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 32%, #000 78%, transparent 100%); }
}
/* Ordinateur : la photo occupe le bord droit de la section, fondue sur trois côtés */
@media (min-width: 1000px) {
  .zone-v2-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(420px, 38vw, 600px); align-items: center; }
  .cta-v2-grille { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px 80px; }
  .cta-v2 .actions { margin-top: 0; }
  .zone-photo, .cta-v2-photo { position: absolute; top: 0; right: 0; bottom: 0; }
  .zone-photo { width: min(54vw, 1080px); }
  .cta-v2-photo { width: min(46vw, 1077px); }
  .fondu img {
    height: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 44%), linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 44%), linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
    mask-composite: intersect;
  }
  .zone-photo img { object-position: 50% 64%; }
  .zone-photo figcaption { position: absolute; right: max(var(--gouttiere), (100vw - var(--wrap)) / 2); bottom: 26px; margin: 0; }
}

/* ==========================================================================
   Héros des pages intérieures — même architecture que l'accueil
   ========================================================================== */
.page-hero { position: relative; display: grid; grid-template-columns: 1fr; background: var(--abysse); color: #fff; }
.page-hero img { width: 100%; height: clamp(300px, 46svh, 480px); object-fit: cover; object-position: 50% 55%; }
.page-hero .hero-scrim {
  position: absolute; inset: 0 0 auto 0; height: 150px; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 32, 41, 0.6) 0%, rgba(7, 32, 41, 0) 100%);
}
.page-hero .hero-contenu { position: relative; padding: 34px var(--gouttiere) 46px; border-top: 1px solid var(--eau); background: linear-gradient(180deg, #0F4555 0%, var(--abysse) 70%); }
.page-hero:not(:has(img)) .hero-contenu { padding-top: calc(var(--entete) + 56px); border-top: 0; }
.fil-ariane { font-size: 0.84rem; color: rgba(255, 255, 255, 0.72); margin-bottom: 16px; }
.fil-ariane a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.fil-ariane a:hover { color: #fff; }
.fil-ariane .sep { margin: 0 8px; color: rgba(255, 255, 255, 0.4); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.2vw, 3.2rem); max-width: 18ch; margin-bottom: 0.4em; }
.page-hero .hero-texte { color: rgba(255, 255, 255, 0.8); max-width: 46ch; margin: 0; font-size: 1.06rem; }
@media (min-width: 1100px) {
  .page-hero { --pad-h: clamp(36px, 3.6vw, 72px); grid-template-columns: minmax(420px, 1fr) min(56vw, 1080px); min-height: clamp(520px, 74svh, 760px); }
  .page-hero h1 { max-width: none; }
  .page-hero:has(img) .fil-ariane { position: relative; padding-top: 22px; }
  .page-hero:has(img) .fil-ariane::before { content: ""; position: absolute; top: 0; left: calc(-1 * var(--pad-h)); right: calc(-1 * var(--pad-h)); height: 1px; background: linear-gradient(90deg, rgba(99, 198, 214, 0.35), var(--eau)); }
  .page-hero img { position: absolute; top: 0; right: 0; width: min(56vw, 1080px); height: 100%; }
  .page-hero .hero-scrim { left: auto; width: min(56vw, 1080px); height: 160px; z-index: 1; }
  .page-hero .hero-contenu { grid-column: 1; grid-row: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; border-top: 0;
    padding: calc(var(--entete) + 40px) var(--pad-h) clamp(48px, 8vh, 84px);
    background: linear-gradient(180deg, #0B232B 0%, #0E3441 58%, var(--abysse) 100%); }
  .page-hero:not(:has(img)) { grid-template-columns: 1fr; min-height: 0; }
  .page-hero:not(:has(img)) .hero-contenu { padding: calc(var(--entete) + 72px) max(var(--gouttiere), (100vw - var(--wrap)) / 2) 64px; }
}

/* Sections génériques (pages intérieures) */
.section { padding-block: var(--bloc); position: relative; }
.section-serree { padding-block: calc(var(--bloc) * 0.66); }
.fond-pierre { background: #F2F0EB; }
.fond-brume { background: var(--beton-2); }
.sec-tete { max-width: 740px; margin-bottom: clamp(38px, 5vw, 64px); }
.sec-tete h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem); }
.sec-tete .intro { font-size: 1.1rem; }
/* ==========================================================================
   Composants des pages intérieures (repris de la V1, adaptés aux nouveaux jetons)
   ========================================================================== */
.transformation-grille {
  display: grid;
  gap: clamp(30px, 4vw, 64px);
  align-items: center;
}
@media (min-width: 980px) { .transformation-grille { grid-template-columns: 5fr 6fr; } }



.sequence-transfo {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sequence-transfo figure { margin: 0; }
.sequence-transfo img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.sequence-transfo figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-2);
}
.sombre .sequence-transfo figcaption { color: rgba(255, 255, 255, 0.65); }

/* ---------- Duo ---------- */

.duo-grille {
  display: grid;
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
}
@media (min-width: 940px) { .duo-grille { grid-template-columns: 6fr 6fr; } }
.duo-photo { position: relative; }
.duo-photo img { width: 100%; }
.duo-photo figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--texte-2);
}
.duo-valeurs {
  list-style: none;
  margin: 26px 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px 30px;
}
.duo-valeurs li {
  position: relative;
  padding-left: 22px;
  font-size: 0.98rem;
}
.duo-valeurs li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 12px; height: 2px;
  background: var(--hh);
}


/* ---------- Scrollytelling chantier (pages création / rénovation) ---------- */

.scrolly {
  display: grid;
  gap: clamp(26px, 4vw, 64px);
}
@media (min-width: 960px) {
  .scrolly { grid-template-columns: 5fr 6fr; }
  .scrolly-visuel {
    position: sticky;
    top: 100px;
    align-self: start;
    height: min(78vh, 680px);
  }
}
.scrolly-visuel {
  position: relative;
  overflow: hidden;
  background: var(--brume);
  aspect-ratio: 1 / 1;
}
@media (min-width: 960px) { .scrolly-visuel { aspect-ratio: auto; } }
.scrolly-visuel img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.scrolly-visuel img.est-visible { opacity: 1; }
.scrolly-visuel .repere {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 2;
  color: #fff;
  background: rgba(9, 30, 40, 0.66);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scrolly-etapes { display: grid; gap: clamp(34px, 6vh, 72px); }
.scrolly-etape {
  border-left: 2px solid rgba(34, 51, 60, 0.14);
  padding: 6px 0 6px 22px;
  transition: border-color 0.4s var(--ease);
}
.scrolly-etape .num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 480;
  color: var(--anthracite);
  transition: color 0.4s var(--ease);
}
.scrolly-etape h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 2px 0 8px; }
.scrolly-etape p { color: var(--texte-2); font-size: 0.99rem; margin: 0; }
.scrolly-etape.est-active { border-color: var(--hh); }
.scrolly-etape.est-active .num { color: var(--hh); }
@media (max-width: 959px) {
  .scrolly-visuel { display: none; }
  .scrolly-etape { display: grid; gap: 8px; }
  .scrolly-etape .mobile-img { display: block; margin-top: 10px; }
}
@media (min-width: 960px) { .scrolly-etape .mobile-img { display: none; } }

/* ---------- Galerie réalisations ---------- */

.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.filtre {
  font-family: var(--f-texte);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--texte-2);
  background: transparent;
  border: 1px solid rgba(34, 51, 60, 0.25);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.filtre:hover { border-color: var(--hh); color: var(--hh); }
.filtre[aria-pressed="true"] { background: var(--hh); border-color: var(--hh); color: #fff; }

.galerie {
  columns: 3 300px;
  column-gap: clamp(16px, 2vw, 24px);
}
.g-item {
  break-inside: avoid;
  margin: 0 0 clamp(16px, 2vw, 24px);
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--brume);
  cursor: zoom-in;
  overflow: hidden;
  text-align: left;
}
.g-item img { width: 100%; transition: transform 1s var(--ease); }
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 37, 49, 0) 62%, rgba(9, 30, 40, 0.66) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.03); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }
.g-legende {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 14px 16px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.g-item:hover .g-legende, .g-item:focus-visible .g-legende { opacity: 1; transform: none; }
@media (hover: none) {
  .g-item::after { opacity: 1; }
  .g-legende { opacity: 1; transform: none; }
}
.g-serie {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hh-clair);
  white-space: nowrap;
}
.g-item[hidden] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 24, 32, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.est-ouverte { display: flex; }
.lightbox figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: grid;
  gap: 14px;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(86vh - 60px);
  width: auto; height: auto;
  margin-inline: auto;
  object-fit: contain;
}
.lightbox figcaption {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.lightbox .compteur { color: rgba(255, 255, 255, 0.5); }
.lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  line-height: 1;
  transition: background-color 0.25s var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb-fermer { top: max(18px, env(safe-area-inset-top)); right: 18px; }
.lb-prec { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-suiv { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lb-prec, .lb-suiv { top: auto; bottom: max(20px, env(safe-area-inset-bottom)); transform: none; }
  .lb-prec { left: 20px; }
  .lb-suiv { right: 20px; }
}

/* ---------- Mise en avant galerie ---------- */

.galerie-une {
  display: grid;
  gap: clamp(24px, 3vw, 48px);
  margin-bottom: clamp(40px, 6vw, 72px);
  align-items: end;
}
@media (min-width: 940px) { .galerie-une { grid-template-columns: 7fr 5fr; } }
.galerie-une img { width: 100%; }
.galerie-une figure { margin: 0; }

/* ---------- Formulaire de devis ---------- */

.devis-grille {
  display: grid;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
@media (min-width: 980px) { .devis-grille { grid-template-columns: 7fr 5fr; } }

.formulaire { display: grid; gap: 22px; }
.champ { display: grid; gap: 7px; }
.champ label { font-weight: 560; font-size: 0.95rem; }
.champ .aide { font-size: 0.84rem; color: var(--texte-2); }
.champ input,
.champ select,
.champ textarea {
  font: inherit;
  color: var(--encre);
  background: #fff;
  border: 1px solid rgba(34, 51, 60, 0.28);
  border-radius: 2px;
  padding: 13px 14px;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--hh);
  box-shadow: 0 0 0 3px var(--hh-voile);
}
.champ-duo { display: grid; gap: 22px; }
@media (min-width: 640px) { .champ-duo { grid-template-columns: 1fr 1fr; } }
.consentement {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--texte-2);
}
.consentement input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--hh); flex: none; }
.formulaire .btn { justify-self: start; }

.devis-aside { display: grid; gap: 22px; }
.carte-contact {
  background: #fff;
  border: 1px solid var(--ligne);
  border-top: 2px solid var(--hh);
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  gap: 6px;
}
.carte-contact b { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--texte-2); font-weight: 600; }
.carte-contact a.grand {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 540;
  color: var(--encre);
  text-decoration: none;
}
.carte-contact a.grand:hover { color: var(--hh); }
.carte-contact address { font-style: normal; color: var(--texte-2); }
.carte-contact .lien-fil { justify-self: start; margin-top: 8px; font-size: 0.94rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; }
.faq details {
  border-top: 1px solid var(--ligne);
}
.faq details:last-child { border-bottom: 1px solid var(--ligne); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  font-family: var(--f-display);
  font-weight: 540;
  font-size: 1.15rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--hh);
  border-bottom: 2px solid var(--hh);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .reponse { padding: 0 0 22px; color: var(--texte-2); max-width: 64ch; }

/* ---------- Bandes de contenu génériques ---------- */

.edito-grille {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
@media (min-width: 940px) {
  .edito-grille { grid-template-columns: 6fr 6fr; }
  .edito-grille.inverse .edito-media { order: 2; }
}
.edito-media { margin: 0; }
.edito-media img { width: 100%; }
.edito-media figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--texte-2); }
.edito-texte h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.edito-texte .intro { color: var(--texte-2); }
.liste-fil {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.liste-fil li { position: relative; padding-left: 22px; }
.liste-fil li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 12px; height: 2px;
  background: var(--hh);
}

.duo-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 26px);
  align-items: start;
}
.duo-media figure { margin: 0; }
.duo-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.duo-media figcaption { margin-top: 9px; font-size: 0.85rem; color: var(--texte-2); }
.duo-media .decale { margin-top: clamp(24px, 4vw, 56px); }

/* ---------- Bande CTA intermédiaire ---------- */

.bande-cta {
  background: var(--abysse);
  color: #fff;
  padding-block: clamp(52px, 7vw, 84px);
}
.bande-cta .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.bande-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; max-width: 24ch; }
.bande-cta .actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* ---------- Pied de page ---------- */

.site-footer {
  background: #071B24;
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(60px, 8vw, 96px) 0 0;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hh), rgba(32, 109, 136, 0));
}
.footer-grille {
  display: grid;
  gap: 40px;
  padding-bottom: 52px;
}
@media (min-width: 800px) { .footer-grille { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer .marque-pied img { height: 58px; width: auto; margin-bottom: 18px; }
.site-footer h2 {
  color: #fff;
  font-family: var(--f-texte);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-note { font-size: 0.92rem; max-width: 34ch; }
.footer-bas {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bas .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
}
.footer-bas a { color: rgba(255, 255, 255, 0.6); }
.footer-bas a:hover { color: #fff; }

/* ---------- Barre d'actions mobile ---------- */

.cta-mobile {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(7, 27, 36, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(105%);
  transition: transform 0.4s var(--ease);
}
.cta-mobile.est-visible { transform: none; }
.cta-mobile a {
  display: grid;
  place-items: center;
  padding: 15px 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.cta-mobile a + a { background: var(--hh); }
@media (min-width: 900px) { .cta-mobile { display: none; } }

/* ---------- Retour en haut ---------- */

.haut-page {
  position: fixed;
  right: clamp(16px, 2.5vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 94;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(34, 51, 60, 0.2);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 26px rgba(9, 30, 40, 0.18);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease);
}
.haut-page.est-visible { opacity: 1; visibility: visible; transform: none; }
.haut-page svg { display: block; }
.haut-page:hover { border-color: var(--hh); }
@media (max-width: 899px) {
  .haut-page { bottom: calc(64px + env(safe-area-inset-bottom) + 14px); }
}

/* ---------- Révélations au scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="clip"] {
  transform: none;
  clip-path: inset(0 0 18% 0);
}
[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); transition: opacity 0.9s var(--ease), clip-path 1.1s var(--ease); }

/* ---------- Pages légales / merci ---------- */

.page-simple { padding-top: clamp(140px, 18vh, 190px); }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.6em; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: var(--texte-2); }
.prose ul { padding-left: 20px; }
/* ==========================================================================
   Ajustements V2 sur les composants repris
   ========================================================================== */
.scrolly-etape .num { font-family: var(--f-texte); font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--texte-2); }
.scrolly-visuel .repere, .sequence-transfo figcaption, .g-serie, .carte-contact b { text-transform: none; letter-spacing: 0.01em; }
.scrolly-visuel { background: var(--beton-2); }
.edito-media img, .duo-media img { max-width: 100%; }
.site-footer { background: #051A21; }
.lightbox img { max-width: min(92vw, 1440px); }
.g-item img { width: 100%; }

/* Impression */
@media print {
  .site-header, .jauge, .cta-mobile, .haut-page, .lightbox, .coupe-barre, .bassins-actions { display: none !important; }
  body { background: #fff; }
  .coupe-scene, .transfo-visuel, .dessous-visible { position: static !important; }
}

/* Mouvement réduit : tout reste lisible, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .t-ligne { display: none; }
}
.champ { align-content: start; }
html:not(.js) .site-header { background: rgba(7, 32, 41, 0.94); }

/* Création : la photo du chantier suit le titre survolé */
.scrolly-titre { font: inherit; color: inherit; letter-spacing: inherit; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.scrolly-titre:hover, .scrolly-etape.est-active .scrolly-titre { color: var(--hh-fonce); }
.scrolly-titre:focus-visible { outline-offset: 4px; }
@media (min-width: 960px) {
  .scrolly-survol { align-items: center; }
  .scrolly-survol .scrolly-visuel { align-self: center; top: calc(var(--entete) + 24px); height: min(72vh, 620px); }
  .scrolly-survol .scrolly-etapes { gap: 10px; }
  .scrolly-survol .scrolly-etape { padding: 14px 0 14px 22px; cursor: pointer; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
  .scrolly-survol .scrolly-etape:hover { border-color: rgba(32, 109, 136, 0.55); }
  .scrolly-survol .scrolly-etape.est-active { background: linear-gradient(90deg, rgba(32, 109, 136, 0.07), rgba(32, 109, 136, 0)); }
}
