/* ============================================================================
   CANALISATIONS URGENCE — DESIGN SYSTEM « Rivière Souterraine »
   camalisation-curageidf.fr — refonte premium 2026
   ----------------------------------------------------------------------------
   Fichier fondation partagé par toutes les pages.
   Sommaire :
     01. Tokens (couleurs, typo, espacements, ombres, rayons, z-index)
     02. Reset moderne
     03. Base typographique fluide
     04. Utilitaires (conteneurs, grilles, flux, texte, visibilité)
     05. Boutons (primaire, secondaire, appel, fantôme)
     06. Badges & pastilles
     07. Header sticky + navigation + dropdown Prestations
     08. Barre d'appel mobile sticky
     09. Vidéo d'intro (#intro-splash)
     10. Hero de page interne (image + overlay abysse)
     11. Séparateur vague SVG
     12. Cartes service 3D (tilt)
     13. Cartes génériques / bloc glacé
     14. Tableaux de tarifs
     15. Accordéon FAQ
     16. Bloc citation / avis clients
     17. Compteurs & stats
     18. Breadcrumb
     19. Schéma SVG animé (canalisations qui se dessinent)
     20. Étapes / méthode numérotée
     21. Footer 4 colonnes
     22. Animations & reveal
     23. Formulaires (contact)
     24. Responsive & reduced-motion
   ============================================================================ */


/* ============================================================================
   01. TOKENS
   ============================================================================ */

:root {
  /* --- Palette « Rivière Souterraine » (brief §2) --- */
  --abysse:    #05304A;   /* bleu nuit profond — fonds sombres, footer, hero */
  --canal:     #1273A6;   /* bleu canal — accents, liens */
  --eau-vive:  #16A38C;   /* vert d'eau — CTA secondaires, icônes, lueurs */
  --glacier:   #EAF6F4;   /* blanc glacier — fonds clairs, texte sur sombre */
  --blanc:     #FFFFFF;
  --encre:     #0B1F2A;   /* texte sur clair */

  /* --- Déclinaisons fonctionnelles --- */
  --abysse-90:   rgba(5, 48, 74, 0.9);
  --abysse-75:   rgba(5, 48, 74, 0.75);
  --abysse-50:   rgba(5, 48, 74, 0.5);
  --abysse-15:   rgba(5, 48, 74, 0.15);
  --abysse-08:   rgba(5, 48, 74, 0.08);
  --canal-15:    rgba(18, 115, 166, 0.15);
  --canal-08:    rgba(18, 115, 166, 0.08);
  --eau-vive-30: rgba(22, 163, 140, 0.3);
  --eau-vive-15: rgba(22, 163, 140, 0.15);
  --eau-vive-08: rgba(22, 163, 140, 0.08);
  --glacier-20:  rgba(234, 246, 244, 0.2);
  --glacier-60:  rgba(234, 246, 244, 0.6);
  --encre-60:    rgba(11, 31, 42, 0.6);
  --encre-75:    rgba(11, 31, 42, 0.75);

  /* Fond intermédiaire pour sections alternées */
  --profondeur:  #07405f;  /* entre abysse et canal, panneaux sombres */
  --sable-clair: #F6FBFA;  /* fond de section très clair, plus doux que blanc */

  /* --- Dégradés signature --- */
  --degrade-riviere: linear-gradient(135deg, #05304A, #1273A6 55%, #16A38C);
  --degrade-cta: linear-gradient(135deg, #1273A6, #16A38C);
  --degrade-abysse-v: linear-gradient(180deg, rgba(5, 48, 74, 0.35), rgba(5, 48, 74, 0.92));
  --degrade-hero: linear-gradient(115deg, rgba(5, 48, 74, 0.94) 0%, rgba(5, 48, 74, 0.78) 45%, rgba(18, 115, 166, 0.45) 100%);

  /* --- Typographies (brief §2) --- */
  --font-titre: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-texte: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-mono:  "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* --- Échelle typographique fluide --- */
  --fs-hero:  clamp(2.25rem, 1.2rem + 4.6vw, 4.25rem);    /* H1 accueil */
  --fs-h1:    clamp(2rem, 1.2rem + 3.2vw, 3.25rem);       /* H1 pages internes */
  --fs-h2:    clamp(1.6rem, 1.1rem + 2vw, 2.5rem);
  --fs-h3:    clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  --fs-h4:    clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  --fs-lead:  clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --fs-body:  1rem;                                        /* 16px min mobile */
  --fs-small: 0.875rem;
  --fs-tiny:  0.75rem;
  --fs-stat:  clamp(2.25rem, 1.5rem + 3vw, 3.75rem);       /* compteurs */

  /* --- Espacements (rythme 4/8) --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  /* --- Rayons --- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* --- Ombres colorées (jamais de gris pur, brief §2) --- */
  --ombre-carte: 0 6px 24px -8px rgba(5, 48, 74, 0.22), 0 2px 6px rgba(5, 48, 74, 0.08);
  --ombre-carte-hover: 0 24px 48px -16px rgba(5, 48, 74, 0.35), 0 8px 20px -6px rgba(22, 163, 140, 0.2);
  --ombre-header: 0 4px 24px -8px rgba(5, 48, 74, 0.25);
  --ombre-cta: 0 10px 28px -8px rgba(22, 163, 140, 0.55);
  --ombre-cta-hover: 0 14px 36px -8px rgba(22, 163, 140, 0.7);
  --lueur-eau: 0 0 0 0 rgba(22, 163, 140, 0.5);

  /* --- Z-index --- */
  --z-base: 0;
  --z-carte: 10;
  --z-sticky: 100;
  --z-header: 500;
  --z-dropdown: 510;
  --z-callbar: 600;
  --z-splash: 1000;

  /* --- Transitions --- */
  --ease-eau: cubic-bezier(0.22, 1, 0.36, 1);   /* ease-out fluide */
  --t-rapide: 160ms var(--ease-eau);
  --t-moyen: 280ms var(--ease-eau);
  --t-lent: 600ms var(--ease-eau);

  /* --- Layout --- */
  --largeur-max: 1200px;
  --largeur-texte: 72ch;
  --gouttiere: clamp(1rem, 0.5rem + 3vw, 2.5rem);
  --header-h: 76px;
  --callbar-h: 64px;

  accent-color: var(--eau-vive);
  color-scheme: light;
}


/* ============================================================================
   02. RESET MODERNE
   ============================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-texte);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--encre);
  background: var(--blanc);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: var(--canal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-rapide);
}

a:hover {
  color: var(--eau-vive);
}

ul[class],
ol[class] {
  list-style: none;
}

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

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

/* Décalage pour la barre d'appel mobile fixe */
body {
  padding-bottom: 0;
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px));
  }
}


/* ============================================================================
   03. BASE TYPOGRAPHIQUE FLUIDE
   ============================================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-titre);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--encre);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 700; }

p {
  max-width: var(--largeur-texte);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--encre-75);
  font-weight: 500;
}

strong { font-weight: 700; }

/* Titre avec accent dégradé rivière */
.titre-accent,
.texte-degrade {
  background: var(--degrade-riviere);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Surtitre technique en mono */
.surtitre {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--canal);
  margin-bottom: var(--sp-3);
}

.surtitre::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--degrade-cta);
  border-radius: 2px;
}

.section-sombre .surtitre,
.hero-page .surtitre {
  color: var(--eau-vive);
}

/* Données chiffrées : toujours en mono (précision) */
.mono,
.prix,
.donnee {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}


/* ============================================================================
   04. UTILITAIRES
   ============================================================================ */

.conteneur {
  width: 100%;
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

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

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section-glacier { background: var(--glacier); }
.section-sable   { background: var(--sable-clair); }

.section-sombre {
  background: var(--abysse);
  color: var(--glacier);
}

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

.section-sombre p { color: var(--glacier-60); }
.section-sombre .lead { color: var(--glacier); }
.section-sombre a { color: var(--eau-vive); }

/* En-tête de section centré */
.entete-section {
  max-width: 720px;
  margin: 0 auto var(--sp-7);
  text-align: center;
}

.entete-section p {
  margin-top: var(--sp-3);
  margin-inline: auto;
}

.entete-section .surtitre { justify-content: center; }

/* Grilles responsive */
.grille-2,
.grille-3,
.grille-4 {
  display: grid;
  gap: var(--sp-5);
}

.grille-2 { grid-template-columns: repeat(2, 1fr); }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grille-4 { grid-template-columns: repeat(2, 1fr); }
  .grille-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .grille-2,
  .grille-3,
  .grille-4 { grid-template-columns: 1fr; }
}

/* Grille auto-fit pour cartes */
.grille-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--sp-5);
}

/* Deux colonnes texte + média */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
}

.duo-inverse > :first-child { order: 2; }
.duo-inverse > :last-child { order: 1; }

@media (max-width: 860px) {
  .duo-inverse > :first-child { order: 1; }
  .duo-inverse > :last-child { order: 2; }
}

/* Flux vertical */
.flux > * + * { margin-top: var(--sp-4); }
.flux-large > * + * { margin-top: var(--sp-6); }

/* Texte */
.centre { text-align: center; }
.texte-eau { color: var(--eau-vive); }
.texte-canal { color: var(--canal); }
.texte-doux { color: var(--encre-60); }

/* Accessibilité */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  z-index: calc(var(--z-splash) + 1);
  background: var(--abysse);
  color: var(--blanc);
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--t-moyen);
}

.skip-link:focus {
  top: 0;
  color: var(--blanc);
}

/* Image arrondie avec ombre colorée */
.img-cadre {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--ombre-carte);
}

.img-cadre img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============================================================================
   05. BOUTONS
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 52px;
  padding: 0.85rem 1.75rem;
  border-radius: var(--r-pill);
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--t-rapide), box-shadow var(--t-moyen),
              background-color var(--t-rapide), color var(--t-rapide),
              border-color var(--t-rapide);
  touch-action: manipulation;
  white-space: nowrap;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn:active { transform: scale(0.97); }

/* --- Primaire : dégradé rivière --- */
.btn-primaire {
  background: var(--degrade-cta);
  color: var(--blanc);
  box-shadow: var(--ombre-cta);
}

.btn-primaire:hover {
  color: var(--blanc);
  box-shadow: var(--ombre-cta-hover);
  transform: translateY(-2px);
}

/* --- Secondaire : contour --- */
.btn-secondaire {
  background: transparent;
  color: var(--abysse);
  border-color: var(--abysse-50);
}

.btn-secondaire:hover {
  color: var(--canal);
  border-color: var(--canal);
  background: var(--canal-08);
}

.section-sombre .btn-secondaire,
.hero-page .btn-secondaire {
  color: var(--glacier);
  border-color: var(--glacier-60);
}

.section-sombre .btn-secondaire:hover,
.hero-page .btn-secondaire:hover {
  color: var(--blanc);
  border-color: var(--eau-vive);
  background: var(--eau-vive-15);
}

/* --- Appel : dégradé + halo eau-vive pulsant --- */
.btn-appel {
  background: var(--degrade-cta);
  color: var(--blanc);
  box-shadow: var(--ombre-cta);
  position: relative;
  animation: halo-eau 2.8s var(--ease-eau) infinite;
}

.btn-appel:hover {
  color: var(--blanc);
  transform: translateY(-2px);
  box-shadow: var(--ombre-cta-hover);
}

.btn-appel .num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@keyframes halo-eau {
  0%   { box-shadow: var(--ombre-cta), 0 0 0 0 rgba(22, 163, 140, 0.45); }
  70%  { box-shadow: var(--ombre-cta), 0 0 0 14px rgba(22, 163, 140, 0); }
  100% { box-shadow: var(--ombre-cta), 0 0 0 0 rgba(22, 163, 140, 0); }
}

/* --- Fantôme (liens fléchés) --- */
.btn-fantome {
  background: none;
  border: none;
  color: var(--canal);
  padding: 0.5rem 0;
  min-height: 44px;
  gap: var(--sp-2);
  font-weight: 700;
}

.btn-fantome::after {
  content: "→";
  transition: transform var(--t-rapide);
}

.btn-fantome:hover { color: var(--eau-vive); }
.btn-fantome:hover::after { transform: translateX(4px); }

/* Grand bouton hero */
.btn-grand {
  min-height: 60px;
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

/* Groupe de boutons */
.groupe-btn {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}


/* ============================================================================
   06. BADGES & PASTILLES
   ============================================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--eau-vive-15);
  color: #0d7a68;
  border: 1px solid var(--eau-vive-30);
}

.badge svg { width: 14px; height: 14px; }

.badge-canal {
  background: var(--canal-15);
  color: var(--canal);
  border-color: rgba(18, 115, 166, 0.3);
}

.badge-sombre {
  background: var(--abysse);
  color: var(--glacier);
  border-color: var(--abysse);
}

.badge-glacier {
  background: var(--glacier-20);
  color: var(--glacier);
  border-color: var(--glacier-20);
}

/* Pastille « live » avec point pulsant */
.badge-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--eau-vive);
  animation: pulse-point 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-point {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.75); }
}


/* ============================================================================
   07. HEADER STICKY + NAVIGATION + DROPDOWN
   ============================================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--abysse-90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 246, 244, 0.08);
  box-shadow: var(--ombre-header);
}

.header-inner {
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

/* --- Logo --- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--blanc);
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
  flex-shrink: 0;
}

.logo:hover { color: var(--blanc); }

.logo svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(22, 163, 140, 0.5));
}

.logo .logo-accent { color: var(--eau-vive); }

/* --- Nav desktop --- */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav-liste {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-lien {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--r-sm);
  color: var(--glacier);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--t-rapide), background-color var(--t-rapide);
}

.nav-lien:hover,
.nav-lien:focus-visible,
.nav-lien[aria-expanded="true"] {
  color: var(--blanc);
  background: rgba(234, 246, 244, 0.1);
}

.nav-lien[aria-current="page"] {
  color: var(--eau-vive);
}

.nav-lien .chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--t-rapide);
}

.nav-lien[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

/* --- Dropdown Prestations --- */
.nav-item-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 300px;
  background: var(--blanc);
  border-radius: var(--r-md);
  box-shadow: 0 20px 50px -12px rgba(5, 48, 74, 0.4);
  border: 1px solid var(--abysse-08);
  padding: var(--sp-2);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-moyen), transform var(--t-moyen), visibility var(--t-moyen);
  z-index: var(--z-dropdown);
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--blanc);
  border-top: 1px solid var(--abysse-08);
  border-left: 1px solid var(--abysse-08);
}

.dropdown.ouvert,
.nav-item-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

@media (hover: hover) {
  .nav-item-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-sm);
  color: var(--encre);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color var(--t-rapide), color var(--t-rapide);
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: var(--glacier);
  color: var(--canal);
}

.dropdown a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--degrade-cta);
  flex-shrink: 0;
}

/* --- CTA téléphone header --- */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 46px;
  padding: 0.55rem 1.2rem;
  border-radius: var(--r-pill);
  background: var(--degrade-cta);
  color: var(--blanc);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: var(--ombre-cta);
  transition: transform var(--t-rapide), box-shadow var(--t-moyen);
  white-space: nowrap;
  flex-shrink: 0;
  animation: halo-eau 2.8s var(--ease-eau) infinite;
}

.header-cta:hover {
  color: var(--blanc);
  transform: translateY(-1px);
  box-shadow: var(--ombre-cta-hover);
}

.header-cta svg { width: 18px; height: 18px; }

/* --- Burger --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: var(--r-sm);
  transition: background-color var(--t-rapide);
}

.burger:hover { background: rgba(234, 246, 244, 0.1); }

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--glacier);
  transition: transform var(--t-moyen), opacity var(--t-moyen);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Nav mobile --- */
@media (max-width: 1080px) {
  .burger { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: var(--z-header);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--abysse);
    padding: var(--sp-5) var(--gouttiere) calc(var(--callbar-h) + var(--sp-6));
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 320ms var(--ease-eau), visibility 320ms;
  }

  .nav.ouvert {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-liste {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-liste > li {
    border-bottom: 1px solid rgba(234, 246, 244, 0.08);
  }

  .nav-lien {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    font-size: 1.1rem;
    min-height: 52px;
  }

  .dropdown {
    position: static;
    transform: none;
    min-width: 0;
    background: rgba(234, 246, 244, 0.05);
    border: none;
    border-radius: var(--r-sm);
    box-shadow: none;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    display: none;
    padding: var(--sp-2);
    margin-bottom: var(--sp-3);
  }

  .dropdown::before { display: none; }

  .dropdown.ouvert {
    display: block;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .dropdown a {
    color: var(--glacier);
    min-height: 48px;
  }

  .dropdown a:hover,
  .dropdown a:focus-visible {
    background: rgba(234, 246, 244, 0.1);
    color: var(--blanc);
  }

  .header-cta { display: none; }

  .nav .header-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: var(--sp-5);
    min-height: 56px;
    font-size: 1.05rem;
  }
}


/* ============================================================================
   08. BARRE D'APPEL MOBILE STICKY (bas d'écran)
   ============================================================================ */

.barre-appel {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-callbar);
  min-height: var(--callbar-h);
  padding: 0.6rem var(--sp-4);
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--abysse-90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(234, 246, 244, 0.1);
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

@media (max-width: 900px) {
  .barre-appel { display: flex; }
}

.barre-appel-texte {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.barre-appel-texte .dispo {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eau-vive);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.barre-appel-texte .dispo::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--eau-vive);
  animation: pulse-point 1.8s ease-in-out infinite;
}

.barre-appel-texte .delai {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--glacier);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.barre-appel .btn-appel {
  min-height: 48px;
  padding: 0.6rem 1.3rem;
  font-size: 0.95rem;
  flex-shrink: 0;
}


/* ============================================================================
   09. VIDÉO D'INTRO (#intro-splash) — accueil uniquement
   ============================================================================ */

#intro-splash {
  position: fixed;
  inset: 0;
  z-index: var(--z-splash);
  background: var(--abysse);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 600ms ease;
}

#intro-splash.fondu-sortie {
  opacity: 0;
  pointer-events: none;
}

#intro-splash[hidden] { display: none; }

/* anti-flash : si l'intro a déjà été vue, un script inline dans le <head>
   pose la classe .intro-vue sur <html> AVANT le premier rendu */
.intro-vue #intro-splash { display: none; }

#intro-splash video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#intro-splash::after {
  /* voile pour lisibilité du titre en surimpression */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(5, 48, 74, 0.15), rgba(5, 48, 74, 0.65));
  pointer-events: none;
}

.intro-titre {
  position: relative;
  z-index: 2;
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: clamp(1.8rem, 1rem + 5vw, 4rem);
  color: var(--blanc);
  text-align: center;
  letter-spacing: 0.4em;
  padding-inline: var(--sp-5);
  text-shadow: 0 4px 30px rgba(5, 48, 74, 0.8);
  animation: intro-tracking 3.2s var(--ease-eau) both;
}

.intro-titre .logo-accent { color: var(--eau-vive); }

@keyframes intro-tracking {
  0%   { opacity: 0; letter-spacing: 0.02em; filter: blur(6px); }
  35%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; letter-spacing: 0.18em; }
}

.intro-passer {
  position: absolute;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(1rem, 4vw, 2.5rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0.6rem 1.2rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--glacier-60);
  color: var(--glacier);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  background: rgba(5, 48, 74, 0.4);
  backdrop-filter: blur(6px);
  transition: background-color var(--t-rapide), color var(--t-rapide), border-color var(--t-rapide);
}

.intro-passer:hover {
  background: var(--glacier);
  color: var(--abysse);
  border-color: var(--glacier);
}


/* ============================================================================
   10. HERO DE PAGE INTERNE (image + overlay dégradé abysse)
   ============================================================================ */

.hero-page {
  position: relative;
  isolation: isolate;
  background: var(--abysse);
  color: var(--glacier);
  padding-block: clamp(4rem, 3rem + 5vw, 7.5rem) clamp(4.5rem, 3rem + 6vw, 8.5rem);
  overflow: hidden;
}

.hero-page-fond {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-page-fond img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-page::before {
  /* overlay dégradé abysse */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--degrade-hero);
}

.hero-page h1 {
  color: var(--blanc);
  font-size: var(--fs-h1);
  max-width: 18ch;
}

.hero-page .lead {
  color: var(--glacier);
  margin-top: var(--sp-4);
  max-width: 58ch;
}

.hero-page .groupe-btn { margin-top: var(--sp-6); }

.hero-page .badge { margin-bottom: var(--sp-4); }

/* Rangée d'infos mono sous le hero (délai, zone, dispo) */
.hero-infos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  margin-top: var(--sp-6);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--glacier-60);
}

.hero-infos span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.hero-infos svg {
  width: 16px;
  height: 16px;
  color: var(--eau-vive);
  flex-shrink: 0;
}

/* Vague en bas du hero (à combiner avec .separateur-vague) */
.hero-page .separateur-vague {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 1;
}


/* ============================================================================
   11. SÉPARATEUR VAGUE SVG
   ============================================================================ */

.separateur-vague {
  display: block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.separateur-vague svg {
  display: block;
  width: 100%;
  height: clamp(40px, 3vw + 24px, 80px);
}

/* la couleur de la vague = couleur de la section SUIVANTE, via currentColor */
.vague-blanc   { color: var(--blanc); }
.vague-glacier { color: var(--glacier); }
.vague-sable   { color: var(--sable-clair); }
.vague-abysse  { color: var(--abysse); }

.separateur-vague.retourne svg { transform: scaleY(-1); }


/* ============================================================================
   12. CARTES SERVICE 3D (tilt)
   ============================================================================ */

.carte-3d {
  position: relative;
  background: var(--blanc);
  border-radius: var(--r-lg);
  border: 1px solid var(--abysse-08);
  box-shadow: var(--ombre-carte);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform var(--t-moyen), box-shadow var(--t-moyen), border-color var(--t-moyen);
  z-index: var(--z-carte);
}

.carte-3d:hover {
  box-shadow: var(--ombre-carte-hover);
  border-color: var(--eau-vive-30);
}

/* filet dégradé en haut de carte */
.carte-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--r-lg);
  right: var(--r-lg);
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--degrade-riviere);
  opacity: 0;
  transition: opacity var(--t-moyen);
}

.carte-3d:hover::before { opacity: 1; }

/* éléments internes détachés en profondeur quand [data-tilt] actif */
.carte-3d > * { transform: translateZ(0); }

.carte-3d .carte-icone,
.carte-3d h3 {
  transform: translateZ(28px);
}

.carte-icone {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--canal-15), var(--eau-vive-15));
  color: var(--canal);
  flex-shrink: 0;
}

.carte-icone svg {
  width: 28px;
  height: 28px;
}

.carte-3d h3 {
  font-size: var(--fs-h4);
  letter-spacing: -0.01em;
}

.carte-3d p {
  color: var(--encre-60);
  font-size: 0.95rem;
  flex-grow: 1;
}

.carte-3d .btn-fantome {
  margin-top: auto;
  align-self: flex-start;
  transform: translateZ(20px);
}

/* tag prix indicatif dans une carte */
.carte-prix {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--eau-vive);
}

/* Variante sombre (sur section abysse) */
.section-sombre .carte-3d {
  background: var(--profondeur);
  border-color: rgba(234, 246, 244, 0.08);
}

.section-sombre .carte-3d h3 { color: var(--blanc); }
.section-sombre .carte-3d p { color: var(--glacier-60); }

.section-sombre .carte-icone {
  background: rgba(22, 163, 140, 0.18);
  color: var(--eau-vive);
}


/* ============================================================================
   13. CARTES GÉNÉRIQUES / BLOC GLACÉ
   ============================================================================ */

.carte {
  background: var(--blanc);
  border-radius: var(--r-lg);
  border: 1px solid var(--abysse-08);
  box-shadow: var(--ombre-carte);
  padding: var(--sp-6);
}

.bloc-glace {
  background: var(--glacier);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  border: 1px solid rgba(18, 115, 166, 0.12);
}

/* Encadré alerte / urgence */
.encadre-urgence {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  background: linear-gradient(135deg, var(--abysse), var(--profondeur));
  color: var(--glacier);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--ombre-carte);
}

.encadre-urgence svg {
  width: 32px;
  height: 32px;
  color: var(--eau-vive);
  flex-shrink: 0;
}

.encadre-urgence h3,
.encadre-urgence h4 { color: var(--blanc); }

.encadre-urgence p { color: var(--glacier-60); }

/* Liste à coches */
.liste-coches {
  list-style: none;
  display: grid;
  gap: var(--sp-3);
}

.liste-coches li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  line-height: 1.5;
}

.liste-coches li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--eau-vive-15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A38C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.section-sombre .liste-coches li::before {
  background-color: rgba(22, 163, 140, 0.25);
}


/* ============================================================================
   14. TABLEAUX DE TARIFS
   ============================================================================ */

.tableau-conteneur {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  box-shadow: var(--ombre-carte);
  border: 1px solid var(--abysse-08);
}

.tableau-tarifs {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanc);
  min-width: 560px;
}

.tableau-tarifs caption {
  text-align: left;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: var(--fs-h4);
  padding: var(--sp-5) var(--sp-5) var(--sp-3);
  color: var(--encre);
}

.tableau-tarifs thead th {
  background: var(--abysse);
  color: var(--glacier);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.9rem var(--sp-5);
}

.tableau-tarifs tbody td {
  padding: 1rem var(--sp-5);
  border-bottom: 1px solid var(--abysse-08);
  vertical-align: top;
}

.tableau-tarifs tbody tr:last-child td { border-bottom: none; }

.tableau-tarifs tbody tr {
  transition: background-color var(--t-rapide);
}

.tableau-tarifs tbody tr:hover {
  background: var(--sable-clair);
}

.tableau-tarifs .prix {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--canal);
  white-space: nowrap;
}

.tableau-tarifs tbody th[scope="row"] {
  text-align: left;
  font-weight: 600;
  padding: 1rem var(--sp-5);
  border-bottom: 1px solid var(--abysse-08);
}

.note-tarif {
  font-size: var(--fs-small);
  color: var(--encre-60);
  margin-top: var(--sp-3);
}


/* ============================================================================
   15. ACCORDÉON FAQ
   ============================================================================ */

.faq-liste {
  display: grid;
  gap: var(--sp-3);
}

.faq-item {
  background: var(--blanc);
  border: 1px solid var(--abysse-08);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-moyen), box-shadow var(--t-moyen);
}

.faq-item.ouvert {
  border-color: var(--eau-vive-30);
  box-shadow: var(--ombre-carte);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  text-align: left;
  padding: 1.1rem var(--sp-5);
  min-height: 56px;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--encre);
  cursor: pointer;
  transition: color var(--t-rapide);
}

.faq-question:hover { color: var(--canal); }

.faq-question .faq-icone {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--eau-vive-15);
  color: var(--eau-vive);
  transition: transform var(--t-moyen), background-color var(--t-moyen), color var(--t-moyen);
}

.faq-icone svg { width: 14px; height: 14px; }

.faq-item.ouvert .faq-icone {
  transform: rotate(45deg);
  background: var(--eau-vive);
  color: var(--blanc);
}

.faq-reponse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease-eau);
}

.faq-item.ouvert .faq-reponse {
  grid-template-rows: 1fr;
}

.faq-reponse-inner {
  overflow: hidden;
}

.faq-reponse-inner p,
.faq-reponse-inner ul {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--encre-75);
}

/* variante sur fond glacier */
.section-glacier .faq-item,
.section-sable .faq-item {
  border-color: rgba(18, 115, 166, 0.12);
}


/* ============================================================================
   16. BLOC CITATION / AVIS CLIENTS
   ============================================================================ */

.avis {
  position: relative;
  background: var(--blanc);
  border: 1px solid var(--abysse-08);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--ombre-carte);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.avis::before {
  content: "“";
  position: absolute;
  top: -0.35em;
  left: var(--sp-5);
  font-family: var(--font-titre);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--degrade-riviere);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.avis-etoiles {
  display: inline-flex;
  gap: 3px;
  color: var(--eau-vive);
  margin-top: var(--sp-2);
}

.avis-etoiles svg { width: 18px; height: 18px; }

.avis blockquote {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--encre-75);
  border: none;
  flex-grow: 1;
}

.avis-auteur {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border-top: 1px solid var(--abysse-08);
  padding-top: var(--sp-4);
}

.avis-initiale {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--degrade-cta);
  color: var(--blanc);
  font-family: var(--font-titre);
  font-weight: 800;
  flex-shrink: 0;
}

.avis-auteur .nom {
  font-weight: 700;
  line-height: 1.2;
}

.avis-auteur .quartier {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  color: var(--encre-60);
}


/* ============================================================================
   17. COMPTEURS & STATS
   ============================================================================ */

.grille-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--sp-5);
  text-align: center;
}

.stat {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: rgba(234, 246, 244, 0.05);
  border: 1px solid rgba(234, 246, 244, 0.1);
}

.stat-valeur {
  font-family: var(--font-mono);
  font-size: var(--fs-stat);
  font-weight: 700;
  line-height: 1.05;
  color: var(--blanc);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 0.1em;
}

.stat-valeur .unite {
  font-size: 0.4em;
  color: var(--eau-vive);
  font-weight: 500;
}

.stat-label {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--glacier-60);
  letter-spacing: 0.02em;
}

/* variante sur fond clair */
.section:not(.section-sombre) .stat {
  background: var(--glacier);
  border-color: rgba(18, 115, 166, 0.12);
}

.section:not(.section-sombre) .stat-valeur {
  background: var(--degrade-riviere);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section:not(.section-sombre) .stat-valeur .unite {
  -webkit-text-fill-color: var(--eau-vive);
}

.section:not(.section-sombre) .stat-label { color: var(--encre-60); }


/* ============================================================================
   18. BREADCRUMB
   ============================================================================ */

.breadcrumb {
  padding-block: var(--sp-4);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.03em;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--encre-60);
  opacity: 0.5;
}

.breadcrumb a {
  color: var(--canal);
  text-decoration: none;
  padding-block: 0.35rem;
}

.breadcrumb a:hover { color: var(--eau-vive); text-decoration: underline; }

.breadcrumb [aria-current="page"] {
  color: var(--encre-60);
}

/* breadcrumb posé sur un hero sombre */
.hero-page .breadcrumb a { color: var(--glacier-60); }
.hero-page .breadcrumb a:hover { color: var(--eau-vive); }
.hero-page .breadcrumb [aria-current="page"] { color: var(--glacier); }
.hero-page .breadcrumb li + li::before { color: var(--glacier-60); }


/* ============================================================================
   19. SCHÉMA SVG ANIMÉ (canalisations qui se dessinent + points circulants)
   ============================================================================ */

.schema-iso {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: visible;
}

/* traits blueprint : gérés par JS via [data-draw] (stroke-dashoffset) */
[data-draw] path.trace,
[data-draw] .trace {
  fill: none;
  stroke: var(--canal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-draw] .trace-eau {
  stroke: var(--eau-vive);
}

[data-draw] .trace-fine {
  stroke-width: 1.25;
  opacity: 0.5;
}

/* points qui circulent dans les tuyaux : offset-path posé inline dans le SVG */
.point-flux {
  fill: var(--eau-vive);
  filter: drop-shadow(0 0 6px rgba(22, 163, 140, 0.8));
}

/* pastille label technique sur le schéma */
.schema-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  fill: var(--glacier-60);
  text-transform: uppercase;
}

.section-sombre .schema-label { fill: var(--glacier-60); }
.section:not(.section-sombre) .schema-label { fill: var(--encre-60); }


/* ============================================================================
   20. ÉTAPES / MÉTHODE NUMÉROTÉE
   ============================================================================ */

.etapes {
  display: grid;
  gap: var(--sp-5);
  counter-reset: etape;
}

.etape {
  position: relative;
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  counter-increment: etape;
}

.etape-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--degrade-cta);
  color: var(--blanc);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 6px 18px -6px rgba(22, 163, 140, 0.5);
}

.etape-num::before { content: counter(etape, decimal-leading-zero); }

/* ligne verticale reliant les étapes */
.etape:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 60px;
  bottom: calc(-1 * var(--sp-5) + 4px);
  width: 2px;
  background: linear-gradient(180deg, var(--eau-vive-30), var(--canal-15));
  border-radius: 2px;
}

.etape h3 { margin-bottom: var(--sp-2); }
.etape p { color: var(--encre-60); }

.section-sombre .etape p { color: var(--glacier-60); }


/* ============================================================================
   21. FOOTER 4 COLONNES
   ============================================================================ */

.footer {
  background: var(--abysse);
  color: var(--glacier-60);
  padding-top: var(--sp-8);
  font-size: 0.95rem;
}

.footer-grille {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
}

@media (max-width: 1024px) {
  .footer-grille { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grille { grid-template-columns: 1fr; }
}

.footer .logo { margin-bottom: var(--sp-4); }

.footer h2,
.footer h3 {
  color: var(--blanc);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.footer p { color: var(--glacier-60); }

.footer ul {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
}

.footer ul a {
  color: var(--glacier-60);
  text-decoration: none;
  display: inline-block;
  padding-block: 0.2rem;
  transition: color var(--t-rapide), transform var(--t-rapide);
}

.footer ul a:hover {
  color: var(--eau-vive);
  transform: translateX(3px);
}

.footer address {
  font-style: normal;
  line-height: 1.7;
}

.footer .footer-tel {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blanc);
  text-decoration: none;
  margin-top: var(--sp-3);
}

.footer .footer-tel svg {
  width: 20px;
  height: 20px;
  color: var(--eau-vive);
}

.footer .footer-tel:hover { color: var(--eau-vive); }

.footer-dispo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eau-vive);
}

.footer-dispo::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--eau-vive);
  animation: pulse-point 1.8s ease-in-out infinite;
}

.footer-bas {
  border-top: 1px solid rgba(234, 246, 244, 0.1);
  padding-block: var(--sp-5);
  padding-bottom: calc(var(--sp-5) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  color: rgba(234, 246, 244, 0.45);
}

.footer-bas a {
  color: var(--glacier-60);
  text-decoration: none;
}

.footer-bas a:hover { color: var(--eau-vive); text-decoration: underline; }

@media (max-width: 900px) {
  .footer-bas {
    padding-bottom: var(--sp-5); /* la barre d'appel gère déjà le safe-area */
  }
}


/* ============================================================================
   22. ANIMATIONS & REVEAL
   ============================================================================ */

/* état initial : caché, translation douce vers le haut */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-eau), transform 700ms var(--ease-eau);
  transition-delay: var(--reveal-delai, 0ms);
  will-change: opacity, transform;
}

/* état déclenché par le JS */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* décalages en cascade (à poser sur les enfants d'une grille) */
.reveal-d1 { --reveal-delai: 80ms; }
.reveal-d2 { --reveal-delai: 160ms; }
.reveal-d3 { --reveal-delai: 240ms; }
.reveal-d4 { --reveal-delai: 320ms; }
.reveal-d5 { --reveal-delai: 400ms; }
.reveal-d6 { --reveal-delai: 480ms; }

/* variantes directionnelles */
.reveal-gauche { transform: translateX(-32px); }
.reveal-droite { transform: translateX(32px); }
.reveal-gauche.visible,
.reveal-droite.visible { transform: translateX(0); }

.reveal-zoom { transform: scale(0.94); }
.reveal-zoom.visible { transform: scale(1); }

/* flottement doux (bulles, éléments décoratifs) */
@keyframes flotte {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.flotte { animation: flotte 5s ease-in-out infinite; }
.flotte-lent { animation: flotte 8s ease-in-out infinite; }

/* ondulation continue pour vagues décoratives */
@keyframes derive {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.vague-derive { animation: derive 14s linear infinite; }


/* ============================================================================
   23. FORMULAIRES (contact)
   ============================================================================ */

.champ {
  display: grid;
  gap: var(--sp-2);
}

.champ label {
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--encre);
}

.champ .obligatoire { color: var(--eau-vive); }

.champ input,
.champ textarea,
.champ select {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--abysse-15);
  background: var(--blanc);
  color: var(--encre);
  transition: border-color var(--t-rapide), box-shadow var(--t-rapide);
}

.champ textarea {
  min-height: 140px;
  resize: vertical;
}

.champ input:focus,
.champ textarea:focus,
.champ select:focus {
  outline: none;
  border-color: var(--eau-vive);
  box-shadow: 0 0 0 4px var(--eau-vive-15);
}

.champ .aide {
  font-size: var(--fs-tiny);
  color: var(--encre-60);
}

.champ .erreur {
  font-size: var(--fs-small);
  color: #C0392B;
  font-weight: 600;
}


/* ============================================================================
   24. RESPONSIVE & REDUCED-MOTION
   ============================================================================ */

@media (max-width: 680px) {
  :root {
    --header-h: 64px;
  }

  .logo { font-size: 1rem; }
  .logo svg { width: 28px; height: 28px; }

  .groupe-btn .btn {
    width: 100%;
  }

  .etape { gap: var(--sp-4); }
  .etape-num { width: 46px; height: 46px; font-size: 1rem; }
  .etape:not(:last-child)::before { left: 22px; top: 50px; }
}

/* Désactivation du tilt au touch : le JS ne l'active pas, mais on neutralise
   aussi tout transform résiduel par sécurité */
@media (hover: none) {
  .carte-3d,
  .carte-3d:hover {
    transform: none !important;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-gauche,
  .reveal-droite,
  .reveal-zoom {
    opacity: 1;
    transform: none;
  }

  .btn-appel,
  .header-cta { animation: none; }

  .flotte,
  .flotte-lent,
  .vague-derive { animation: none; }

  [data-draw] .trace,
  [data-draw] path.trace {
    stroke-dashoffset: 0 !important;
    stroke-dasharray: none !important;
  }

  .intro-titre { animation: none; opacity: 1; letter-spacing: 0.18em; }
}
