/* =====================================================================
   BF Carrelage — feuille de style du site définitif (design « Proximité nuit »)
   Mise en page arrondie et chaleureuse, couleurs SOMBRES par défaut :
   fonds anthracite (#141312 / #1F1D1C / #2A2725), blanc chaud, bleu #009CD4.
   Thème clair : bloc « :root[data-theme="clair"] » en fin de fichier.

   ORIGINE : copie figée, le 2026-12-03, de maquettes/version-d/style.css (version D validée
   par Flavien puis par Jérémy). Ce fichier est désormais LA source : on le retouche ici, et
   plus jamais via outils/fabriquer-version-d.py (qui ne sert plus qu'aux maquettes).
   Les variables « --clair-N » viennent de ce générateur : chaque couleur s'écrit
   « var(--clair-N, couleur sombre) », et le thème clair redéfinit --clair-N.

   Règles suivies dans tout ce fichier :
   - les animations ne touchent QUE transform, opacity et clip-path (fluides,
     gérées par la carte graphique, elles ne recalculent pas la mise en page) ;
   - l'état « caché avant animation » n'existe que sous .js (classe posée par
     le script en tête de page) : sans JavaScript, tout est visible ;
   - en bas du fichier, prefers-reduced-motion coupe toutes les animations.
   ===================================================================== */

/* ---------- 0. Police auto-hébergée (aucun appel à Google Fonts) ----------
   Plus Jakarta Sans, police variable (graisses 300 à 800) dans un seul fichier woff2.
   Adresse relative au CSS : elle marche à la racine comme dans le dossier d'aperçu. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap; /* texte visible tout de suite, police appliquée dès qu'elle arrive */
}

/* ---------- 1. Variables (couleurs, police, espacements, courbes) ---------- */
:root {
  /* Couleurs : palette SOMBRE de la maquette C « Atelier » appliquée à la mise en page de A.
     (Copie figée de la maquette D : voir l'en-tête du fichier.) */
  --bleu: #009CD4;            /* bleu du logo : textes bleus, boutons, accents (5,9:1 sur --fond) */
  --bleu-texte: #00739D;      /* gardé UNIQUEMENT pour les dégradés des blocs bleus (texte blanc dessus) */
  --bleu-profond: #005A7B;    /* dégradés des blocs bleus */
  --bleu-nuit: #003D54;       /* fond du grand appel à l'action */
  --bleu-300: #7FCDEA;        /* bleu clair : titres du pied de page, carte */
  --bleu-voile: rgba(0, 156, 212, 0.14);      /* remplace les fonds bleu très clair de A */
  --bleu-voile-fort: rgba(0, 156, 212, 0.24); /* pastilles d'icônes, filets bleus discrets */
  --bleu-filet: rgba(0, 156, 212, 0.42);      /* traits et bordures bleus visibles */
  --anthracite: #1F1D1C;      /* texte posé sur le bleu vif (comme les boutons de C) */
  --fond: #141312;            /* fond principal, très profond (comme C) */
  --fond-2: #1F1D1C;          /* sections alternées */
  --fond-3: #2A2725;          /* cartes, champs, menus */
  --texte: #F5F3F1;           /* blanc chaud de C */
  --texte-doux: rgba(245, 243, 241, 0.74);  /* textes secondaires (≈ 8:1 sur --fond) */
  --filet: rgba(245, 243, 241, 0.12);       /* contours fins des cartes */
  --filet-fort: rgba(245, 243, 241, 0.26);  /* contours des champs et boutons contour */
  /* Couleurs utilisées dans le HTML (vagues de séparation, halo de la page contact).
     Les vagues suivent --fond / --fond-2, donc elles changent toutes seules en thème clair. */
  --vague-fond: var(--fond);
  --vague-fond-2: var(--fond-2);
  --halo-contact: #009CD4;

  /* Police unique, en graisses variées */
  --police: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Arrondis : la signature « douce » de cette version */
  --rayon-s: 12px;
  --rayon-m: 20px;
  --rayon-l: 28px;
  --rayon-xl: 40px;

  /* Ombres douces, légèrement teintées */
  --ombre-douce: 0 14px 36px -16px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
  --ombre-forte: 0 26px 60px -24px rgba(0, 0, 0, 0.75);
  --ombre-bleue: 0 16px 34px -14px rgba(0, 115, 157, 0.55);

  /* Espacements */
  --gouttiere: clamp(16px, 4vw, 40px);       /* marge latérale de la page */
  --largeur-max: 1240px;
  --espace-section: clamp(72px, 10vw, 136px);
  --hauteur-entete: 88px;

  /* Courbes d'animation : « douce » ralentit longuement à l'arrivée,
     « ressort » dépasse un peu la cible puis revient (effet rebond léger). */
  --ease-douce: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ressort: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Les ancres (#zone…) s'arrêtent sous l'en-tête collant, pas derrière. */
  scroll-padding-top: calc(var(--hauteur-entete) + 16px);
}

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--clair-1, var(--texte));
  background: var(--clair-2, var(--fond));
  -webkit-font-smoothing: antialiased;
  /* Aucun défilement horizontal parasite, même si un décor dépasse.
     « clip » (et non « hidden ») ne casse pas l'en-tête collant. */
  overflow-x: hidden;
  overflow-x: clip;
}

/* Quand le menu mobile est ouvert, la page derrière ne défile plus. */
html.menu-ouvert { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clair-3, var(--bleu)); text-underline-offset: 0.2em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; color: inherit; }

/* Focus clavier bien visible (accessibilité). */
:focus-visible {
  outline: var(--clair-4, 3px solid var(--bleu));
  outline-offset: 3px;
  border-radius: 6px;
}

/* Bibliothèque d'icônes cachée (référencée par <use>). */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Icônes au trait : elles prennent la couleur du texte (currentColor). */
.icone {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icone--petite { width: 0.9em; height: 0.9em; }
.icone--retournee { transform: scaleX(-1); }

/* Lien d'évitement : hors écran, il apparaît quand il reçoit le focus clavier. */
.lien-evitement {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--clair-1, var(--bleu));
  color: var(--clair-5, var(--anthracite));
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-douce);
}
.lien-evitement:focus { transform: none; }

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

.section {
  position: relative;
  padding-block: var(--espace-section);
  overflow-x: clip; /* les décors ne débordent jamais sur les côtés */
}
.section--teintee { background: var(--clair-6, var(--fond-2)); }

/* ---------- 3. Petits composants réutilisés ---------- */

/* Surtitre en pastille, avec un point bleu qui « respire ». */
.surtitre {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--clair-6, var(--bleu-voile));
  box-shadow: var(--clair-7, inset 0 0 0 1px var(--bleu-voile-fort));
  color: var(--clair-3, var(--bleu));
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section--teintee .surtitre { background: var(--clair-5, var(--fond-3)); }
.surtitre__point {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bleu);
}
/* Anneau qui grossit et s'efface en boucle autour du point (transform + opacity). */
.surtitre__point::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bleu);
  animation: pulsation 2.4s ease-out infinite;
}
.surtitre--clair {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  color: var(--clair-5, var(--texte));
}
.surtitre--clair .surtitre__point,
.surtitre--clair .surtitre__point::after { background: var(--clair-5, var(--texte)); }

.entete-section { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.entete-section--centre { margin-inline: auto; text-align: center; }
.entete-section__texte { margin-top: 18px; color: var(--clair-8, var(--texte-doux)); font-size: 1.125rem; }

.titre-section {
  font-size: clamp(1.85rem, 1.15rem + 2.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

/* Boutons pilule. Au survol, un fond plus foncé « monte » depuis le bas
   (pseudo-élément déplacé avec transform : aucun recalcul de mise en page). */
.bouton {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.45s var(--ease-ressort);
}
.bouton::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-douce);
}
.bouton:hover { transform: translateY(-3px); }
.bouton:hover::before,
.bouton:focus-visible::before { transform: none; }
.bouton:active { transform: translateY(0) scale(0.98); }

/* Bleu texte + texte blanc : contraste 5,3:1, valable même en petit. */
.bouton--primaire { background: var(--clair-3, var(--bleu)); color: var(--clair-5, var(--anthracite)); box-shadow: var(--ombre-bleue); padding-left: 8px; }
.bouton--primaire::before { background: var(--clair-9, var(--texte)); }
.bouton--secondaire { background: var(--clair-5, transparent); color: var(--clair-1, var(--texte)); box-shadow: var(--clair-10, inset 0 0 0 2px var(--filet-fort)); padding-right: 8px; }
.bouton--secondaire::before { background: var(--clair-6, var(--bleu-voile)); }
.bouton--clair { background: var(--clair-5, var(--texte)); color: var(--bleu-profond); padding-right: 8px; }
.bouton--clair::before { background: var(--clair-11, #FFFFFF); }

.bouton__icone {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.45s var(--ease-ressort);
}
.bouton--secondaire .bouton__icone,
.bouton--clair .bouton__icone { background: var(--clair-6, var(--bleu-voile)); color: var(--clair-3, var(--bleu)); }
.bouton:hover .bouton__icone { transform: translateX(3px) rotate(-8deg); }
/* Le combiné téléphone « sonne » (petites rotations) au survol. */
.bouton:hover .bouton__icone--sonne { animation: sonnerie 0.8s ease-in-out; }

/* Bouton rond (flèches du carrousel). */
.bouton-rond {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--clair-5, var(--fond-3));
  color: var(--clair-3, var(--bleu));
  box-shadow: var(--ombre-douce);
  cursor: pointer;
  transition: transform 0.4s var(--ease-ressort), opacity 0.3s;
}
.bouton-rond:hover { transform: scale(1.08); }
.bouton-rond:active { transform: scale(0.95); }
.bouton-rond[disabled] { opacity: 0.4; cursor: default; transform: none; }

/* Pastilles (petites étiquettes arrondies). */
.pastilles { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.pastilles li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--clair-6, var(--bleu-voile));
  color: var(--clair-3, var(--bleu));
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Liste à coches bleues. */
.liste-coches { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.liste-coches li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.liste-coches .icone {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--clair-11, var(--bleu-voile-fort));
  color: var(--clair-3, var(--bleu));
  stroke-width: 3;
}

/* ---------- 4. Apparition au scroll ----------
   Le script observe chaque [data-reveal] (IntersectionObserver) et lui ajoute
   .est-visible quand il entre à l'écran. Dans un [data-reveal-groupe], chaque
   enfant reçoit un petit retard (--delai) pour un effet « en cascade ». */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-douce), transform 1s var(--ease-douce);
  transition-delay: var(--delai, 0s);
}
.js [data-reveal="zoom"] { transform: scale(0.92); }
.js [data-reveal].est-visible { opacity: 1; transform: none; }
/* Une fois l'apparition terminée (classe ajoutée par le script), on remet des transitions
   courtes et sans retard : les effets de survol des cartes restent vifs. */
.js [data-reveal].revele-fini {
  transition: transform 0.5s var(--ease-ressort), opacity 0.3s, box-shadow 0.4s;
  transition-delay: 0s;
}

/* ---------- 5. En-tête : pilule flottante et collante ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px var(--gouttiere) 0;
  height: var(--hauteur-entete);
}
.entete__barre {
  position: relative;
  isolation: isolate; /* crée un « calque » propre pour ordonner fond / menu / boutons */
  max-width: var(--largeur-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 68px;
  padding: 0 8px 0 20px;
  border-radius: 999px;
}
/* Le fond flouté est sur un pseudo-élément et PAS sur la barre elle-même :
   un backdrop-filter sur la barre « piégerait » le menu mobile en position fixe. */
.entete__barre::before,
.entete__barre::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
}
.entete__barre::before {
  background: var(--clair-12, rgba(31, 29, 28, 0.78));
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--clair-13, inset 0 0 0 1px rgba(245, 243, 241, 0.1), 0 6px 24px -14px rgba(0, 0, 0, 0.6));
}
/* Ombre plus marquée une fois la page défilée : on joue sur l'opacité d'un 2e calque. */
.entete__barre::after {
  box-shadow: var(--ombre-forte);
  opacity: 0;
  transition: opacity 0.4s;
}
.entete.est-defile .entete__barre::after { opacity: 1; }

.entete__logo { position: relative; z-index: 2; flex: none; border-radius: 8px; }
.entete__logo img {
  width: auto;
  height: 56px; /* le brief impose 60 px maximum (petit original) */
  transform-origin: left center;
  transition: transform 0.5s var(--ease-douce);
}
.entete.est-defile .entete__logo img { transform: scale(0.86); }

/* Menu principal (ordinateur) */
.nav-principale { margin-left: auto; display: flex; align-items: center; }
.nav-principale__liste { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-principale__liste > li { position: relative; }
.nav-principale__liste > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--clair-1, var(--texte));
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  isolation: isolate;
}
/* Fond pâle qui « gonfle » au survol (scale), au lieu de changer brutalement. */
.nav-principale__liste > li > a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--clair-6, var(--bleu-voile));
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.35s var(--ease-ressort), opacity 0.25s;
}
.nav-principale__liste > li > a:hover::before { transform: none; opacity: 1; }
.nav-principale__liste a[aria-current="page"] { color: var(--clair-3, var(--bleu)); }
/* Petit point sous l'entrée de la page courante. */
.nav-principale__liste > li > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--bleu);
}

/* Sous-menu des villes : caché, il apparaît au survol ou quand un de ses liens a le focus. */
.sous-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 380px;
  margin: 0;
  padding: 10px;
  list-style: none;
  border-radius: var(--rayon-l);
  background: var(--clair-5, var(--fond-3));
  box-shadow: var(--clair-14, var(--ombre-forte), inset 0 0 0 1px var(--filet));
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px) scale(0.97);
  transform-origin: top center;
  transition: opacity 0.25s, transform 0.4s var(--ease-douce), visibility 0s 0.4s;
}
/* « Pont » invisible entre le lien et le sous-menu pour ne pas le perdre en descendant la souris. */
.sous-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.a-sous-menu:hover .sous-menu,
.a-sous-menu:focus-within .sous-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.25s, transform 0.4s var(--ease-douce), visibility 0s;
}
.sous-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--rayon-s);
  color: var(--clair-1, var(--texte));
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s var(--ease-douce);
}
.sous-menu a:hover { background: var(--clair-6, var(--bleu-voile)); color: var(--clair-3, var(--bleu)); transform: translateX(4px); }
.sous-menu a[href="carreleur-belley.html"]::after { content: " ●"; color: var(--bleu); font-size: 0.6em; vertical-align: middle; }

.nav-principale__appel { display: none; }

/* Téléphone de l'en-tête (toujours visible). */
.entete__tel {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding: 6px 18px 6px 6px;
  border-radius: 999px;
  background: var(--clair-3, var(--bleu));
  color: var(--clair-5, var(--anthracite));
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--ombre-bleue);
  transition: transform 0.4s var(--ease-ressort);
}
.entete__tel:hover { transform: translateY(-2px); }
.entete__tel-icone {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
/* Petite sonnerie toutes les 6 secondes pour attirer l'œil, sans insister. */
.entete__tel-icone .icone { animation: sonnerie-periodique 6s ease-in-out infinite; }

/* Burger : deux traits qui se croisent en « X » à l'ouverture. */
.burger {
  position: relative;
  z-index: 2;
  display: none;
  width: 48px;
  height: 48px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--clair-6, var(--bleu-voile));
  cursor: pointer;
}
.burger__trait {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--clair-1, var(--texte));
  transition: transform 0.45s var(--ease-ressort);
}
.burger__trait:nth-child(1) { top: 19px; }
.burger__trait:nth-child(2) { top: 27px; }
.menu-ouvert .burger__trait:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-ouvert .burger__trait:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Menu mobile (sous 1080 px) ---------- */
@media (max-width: 1079px) {
  .burger { display: block; }
  .entete__tel { margin-left: auto; }

  /* Sans JS : le menu reste une simple liste de liens sous l'en-tête. */
  html:not(.js) .burger { display: none; }
  html:not(.js) .entete { position: relative; height: auto; }
  html:not(.js) .entete__barre { flex-wrap: wrap; height: auto; padding: 10px 16px; border-radius: var(--rayon-l); }
  html:not(.js) .nav-principale { order: 3; width: 100%; }
  html:not(.js) .nav-principale__liste { flex-wrap: wrap; }
  html:not(.js) .sous-menu { display: none; }

  /* Avec JS : panneau plein écran qui s'ouvre en cercle depuis le burger.
     clip-path: circle() passe d'un rayon nul à un rayon qui couvre tout l'écran. */
  .js .nav-principale {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 28px;
    margin: 0;
    padding: calc(var(--hauteur-entete) + 24px) var(--gouttiere) 40px;
    overflow-y: auto;
    background: var(--clair-15, radial-gradient(circle at 85% 0%, var(--bleu-voile-fort), transparent 55%),
      linear-gradient(180deg, var(--fond) 0%, var(--fond-2) 100%));
    clip-path: circle(0px at calc(100% - 48px) 46px);
    visibility: hidden;
    transition: clip-path 0.7s var(--ease-douce), visibility 0s linear 0.7s;
  }
  .js.menu-ouvert .nav-principale {
    clip-path: circle(150vmax at calc(100% - 48px) 46px);
    visibility: visible;
    transition: clip-path 0.8s var(--ease-douce), visibility 0s;
  }
  .js .nav-principale__liste { flex-direction: column; align-items: stretch; gap: 4px; }
  .js .nav-principale__liste > li > a { font-size: 1.75rem; font-weight: 800; padding: 10px 4px; letter-spacing: -0.02em; }
  .js .nav-principale__liste > li > a::before,
  .js .nav-principale__liste > li > a::after { display: none; }
  .js .nav-principale__liste .icone--petite { display: none; }
  /* Dans le panneau, les villes s'affichent en pastilles (pas de survol au doigt). */
  .js .sous-menu {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: auto;
    padding: 4px 0 8px;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .js .sous-menu::before { display: none; }
  .js .sous-menu a { padding: 7px 14px; border-radius: 999px; background: var(--clair-5, var(--fond-3)); box-shadow: var(--clair-7, inset 0 0 0 1px var(--bleu-voile-fort)); font-size: 0.875rem; }
  .js .nav-principale__appel { display: inline-flex; align-self: flex-start; }

  /* Les entrées du menu arrivent l'une après l'autre (opacity + translate). */
  .js .nav-principale__liste > li,
  .js .nav-principale__appel {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.4s, transform 0.6s var(--ease-douce);
  }
  .js.menu-ouvert .nav-principale__liste > li,
  .js.menu-ouvert .nav-principale__appel { opacity: 1; transform: none; }
  .js.menu-ouvert .nav-principale__liste > li:nth-child(1) { transition-delay: 0.15s; }
  .js.menu-ouvert .nav-principale__liste > li:nth-child(2) { transition-delay: 0.2s; }
  .js.menu-ouvert .nav-principale__liste > li:nth-child(3) { transition-delay: 0.25s; }
  .js.menu-ouvert .nav-principale__liste > li:nth-child(4) { transition-delay: 0.3s; }
  .js.menu-ouvert .nav-principale__liste > li:nth-child(5) { transition-delay: 0.35s; }
  .js.menu-ouvert .nav-principale__appel { transition-delay: 0.42s; }
}

@media (max-width: 560px) {
  :root { --hauteur-entete: 80px; }
  .entete { padding-top: 10px; }
  .entete__barre { height: 62px; padding: 0 6px 0 14px; gap: 8px; }
  .entete__logo img { height: 44px; }
  .entete__tel { padding: 5px 14px 5px 5px; font-size: 0.875rem; gap: 8px; }
  .entete__tel-icone { width: 36px; height: 36px; }
  .burger { width: 46px; height: 46px; }
  .burger__trait:nth-child(1) { top: 18px; }
  .burger__trait:nth-child(2) { top: 26px; }
}
/* Très petits écrans : on garde l'icône, le numéro reste dans le menu et le bouton flottant. */
@media (max-width: 359px) {
  .entete__tel-numero { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .entete__tel { padding-right: 5px; }
}

/* ---------- 6. Accueil (bandeau en deux colonnes) ---------- */
.accueil {
  position: relative;
  /* Le bandeau remonte SOUS l'en-tête collant pour que son fond aille jusqu'en haut. */
  margin-top: calc(-1 * var(--hauteur-entete));
  padding-top: calc(var(--hauteur-entete) + clamp(28px, 5vw, 72px));
  overflow: clip;
  background: var(--clair-16, linear-gradient(180deg, var(--fond) 0%, var(--fond-2) 100%));
}
/* Halos flous qui dérivent lentement en fond (transform uniquement). */
.accueil__fond { position: absolute; inset: 0; pointer-events: none; }
.halo {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 156, 212, 0.22) 0%, rgba(0, 156, 212, 0) 70%);
  animation: derive 18s ease-in-out infinite alternate;
}
.halo--1 { width: 640px; height: 640px; right: -160px; top: -120px; }
.halo--2 { width: 520px; height: 520px; left: -220px; bottom: -80px; animation-duration: 22s; animation-delay: -6s; }
.halo--3 { width: 300px; height: 300px; left: 42%; top: 18%; animation-duration: 26s; background: radial-gradient(circle, rgba(127, 205, 234, 0.3), rgba(127, 205, 234, 0) 70%); }

.accueil__grille {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(48px, 7vw, 96px);
}

.accueil__titre {
  font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.05rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.accueil__intro { max-width: 560px; margin: 24px 0 32px; color: var(--clair-8, var(--texte-doux)); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }
.accueil__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.accueil__atouts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; font-weight: 600; font-size: 0.9375rem; color: var(--clair-8, var(--texte-doux)); }
.accueil__atouts li { display: inline-flex; align-items: center; gap: 8px; }
.accueil__atouts .icone { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--clair-3, var(--bleu)); color: var(--clair-5, var(--anthracite)); stroke-width: 3.2; }

/* Groupe de mots qui ne doit jamais être coupé en fin de ligne. */
.sans-coupure { white-space: nowrap; }

/* Mot mis en avant dans le titre, souligné d'un trait « à main levée ». */
.surligne { position: relative; font-style: normal; color: var(--clair-3, var(--bleu)); white-space: nowrap; }
.surligne__trait {
  position: absolute;
  left: -2%;
  bottom: -0.14em;
  width: 104%;
  height: 0.32em;
  overflow: visible;
  fill: none;
  stroke: var(--bleu);
  stroke-width: 5;
  stroke-linecap: round;
}
.surligne__trait path { vector-effect: non-scaling-stroke; }

/* --- Titre découpé en mots (le script enveloppe chaque mot dans 2 <span>) ---
   .mot sert de « fenêtre » (overflow hidden) et .mot__interieur monte dedans :
   les mots semblent sortir d'une ligne invisible, l'un après l'autre (--i). */
.js [data-mots]:not(.mots-prets) { opacity: 0; }
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.js .mot__interieur {
  display: inline-block;
  transform: translateY(110%);
  animation: mot-monte 1s var(--ease-douce) forwards;
  animation-delay: calc(0.15s + var(--i) * 55ms);
}
/* Le trait sous « à Chambéry » se dessine de gauche à droite (clip-path) après les mots. */
.js .surligne__trait { clip-path: inset(0 100% 0 0); animation: trait-dessine 1.1s var(--ease-douce) 1s forwards; }

/* Les autres éléments du texte d'accueil montent en fondu, en décalé. */
.js .accueil__surtitre,
.js .fil-ariane,
.js .accueil__intro,
.js .accueil__actions,
.js .accueil__atouts,
.js .accueil__contacts { animation: monte-fondu 0.9s var(--ease-douce) both; }
.js .fil-ariane { animation-delay: 0s; }
.js .accueil__surtitre { animation-delay: 0.05s; }
.js .accueil__intro { animation-delay: 0.55s; }
.js .accueil__actions { animation-delay: 0.7s; }
.js .accueil__atouts,
.js .accueil__contacts { animation-delay: 0.85s; }

/* --- Blob : photo découpée par une forme organique qui ondule --- */
.accueil__visuel {
  position: relative;
  /* --sx / --sy : position de la souris (-1 → 1), écrites par le script pour la parallaxe. */
  --sx: 0;
  --sy: 0;
}
.blob { position: relative; width: min(100%, 560px); aspect-ratio: 1 / 1; margin-inline: auto; }
.blob__defs { position: absolute; width: 0; height: 0; }
.blob__halo {
  position: absolute;
  left: 4%;
  top: 6%;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0.85;
  /* la souris décale le halo à l'opposé de la photo : impression de profondeur */
  translate: calc(var(--sx) * 14px) calc(var(--sy) * 14px);
  animation: tourner 48s linear infinite;
}
.blob__masque {
  position: absolute;
  inset: 0;
  /* Découpe par la forme SVG #forme-blob (unités 0→1, donc à la taille de la boîte). */
  -webkit-clip-path: url(#forme-blob);
  clip-path: url(#forme-blob);
  background: var(--clair-17, var(--bleu-filet));
}
.blob__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 60%;
  /* Agrandie de 12 % pour pouvoir glisser avec la souris sans laisser de vide. */
  transform: scale(1.12) translate3d(calc(var(--sx) * -12px), calc(var(--sy) * -12px), 0);
}
.blob__anneau {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  fill: none;
  stroke: var(--bleu);
  stroke-width: 0.35;
  stroke-dasharray: 0.6 2.4;
  stroke-linecap: round;
  opacity: 0.6;
  animation: tourner 70s linear infinite reverse;
}
/* Apparition du blob au chargement : il « éclot » (scale + opacity). */
.js .blob { animation: eclosion 1.3s var(--ease-douce) 0.2s both; }

/* --- Badges flottants --- */
.badge {
  position: absolute;
  z-index: 2;
  /* Parallaxe : plus --profondeur est grand, plus le badge suit la souris. */
  transform: translate3d(calc(var(--sx) * var(--profondeur, 1) * 14px), calc(var(--sy) * var(--profondeur, 1) * 14px), 0);
}
.badge--1 { left: -6%; top: 12%; }
.badge--2 { right: -4%; bottom: 16%; }
.badge--3 { left: 4%; bottom: 2%; }
.badge__flotte {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 10px;
  border-radius: 999px;
  background: var(--clair-18, rgba(42, 39, 37, 0.94));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--clair-19, var(--ombre-douce), inset 0 0 0 1px var(--filet));
  line-height: 1.25;
  white-space: nowrap;
  /* Flottement continu ; durées différentes pour que les 3 badges ne bougent jamais ensemble. */
  animation: flotter var(--duree-flotte, 6s) ease-in-out infinite;
}
.badge--1 .badge__flotte { --duree-flotte: 6s; --n: 0; }
.badge--2 .badge__flotte { --duree-flotte: 7.5s; --n: 1; }
.badge--3 .badge__flotte { --duree-flotte: 8.5s; --n: 2; }
.badge strong { display: block; font-size: 0.9375rem; font-weight: 800; }
.badge small { display: block; font-size: 0.8125rem; color: var(--clair-8, var(--texte-doux)); font-weight: 500; }
.badge__icone {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clair-11, var(--bleu-voile-fort));
  color: var(--clair-3, var(--bleu));
}
.badge__icone--plein { width: 38px; height: 38px; background: var(--clair-3, var(--bleu)); color: var(--clair-5, var(--anthracite)); }
/* Avec JS : chaque badge « saute » à sa place (ressort), PUIS se met à flotter.
   Deux animations sur le même élément : la 2e prend le relais quand la 1re est finie. */
.js .badge__flotte {
  animation:
    badge-entree 0.9s var(--ease-ressort) calc(1s + var(--n) * 0.18s) both,
    flotter var(--duree-flotte, 6s) ease-in-out calc(1.9s + var(--n) * 0.18s) infinite;
}

/* ---------- 7. Vagues animées (séparateurs) ----------
   Chaque calque SVG fait 200 % de large et contient DEUX fois la même ondulation :
   en le décalant de -50 % en boucle, on revient exactement au point de départ,
   ce qui donne une vague infinie sans « saut ». Deux calques à vitesses différentes
   créent la profondeur. */
.vague {
  position: relative;
  z-index: 1;
  height: clamp(44px, 6vw, 96px);
  margin-top: -1px;
  overflow: hidden;
  pointer-events: none;
}
.vague__calque {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 100%;
  fill: var(--vague-couleur, var(--fond));
  animation: vague-defile 16s linear infinite;
}
.vague__calque--arriere { opacity: 0.5; animation-duration: 24s; animation-direction: reverse; }
/* Vague du haut d'une section : retournée, elle « coule » depuis la section précédente. */
.vague--haut { position: absolute; left: 0; right: 0; top: -1px; transform: scaleY(-1); }
.section > .vague--haut + .conteneur,
.appel > .vague--haut ~ .appel__contenu { position: relative; }

/* ---------- 8. Arguments + compteurs ---------- */
.atouts { padding-top: clamp(48px, 6vw, 80px); }
.atouts__grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.carte-atout {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--rayon-l);
  background: var(--clair-5, var(--fond-3));
  box-shadow: var(--clair-20, var(--ombre-douce), inset 0 0 0 1px var(--filet));
  transition: transform 0.5s var(--ease-ressort), opacity 0.9s var(--ease-douce);
}
.js .carte-atout.est-visible:hover,
html:not(.js) .carte-atout:hover { transform: translateY(-8px); }
.carte-atout h3 { margin: 22px 0 10px; font-size: 1.1875rem; font-weight: 800; }
.carte-atout p { color: var(--clair-8, var(--texte-doux)); font-size: 0.975rem; }
.carte-atout__icone {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: var(--clair-21, linear-gradient(135deg, var(--bleu-voile), var(--bleu-voile-fort)));
  color: var(--clair-3, var(--bleu));
  transition: transform 0.5s var(--ease-ressort);
}
.carte-atout__icone .icone { width: 28px; height: 28px; }
.carte-atout:hover .carte-atout__icone { transform: rotate(-10deg) scale(1.1); }

.compteurs {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 56px 0 0;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--rayon-xl);
  background: linear-gradient(120deg, var(--bleu-texte), var(--bleu-profond));
  color: var(--clair-5, var(--texte));
}
/* Reflet lumineux décoratif dans le bandeau des compteurs. */
.compteurs::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 205, 234, 0.45), transparent 70%);
}
.compteur { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.compteur__valeur { margin: 0; font-size: clamp(2.6rem, 2rem + 2.5vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.compteur__libelle { color: rgba(255, 255, 255, 0.88); font-weight: 500; max-width: 240px; }

/* ---------- 9. Services ---------- */
.services__grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.carte-service {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 34px 30px 30px;
  border-radius: var(--rayon-l);
  background: var(--clair-5, var(--fond-3));
  box-shadow: var(--clair-22, inset 0 0 0 1px var(--filet));
  transition: transform 0.5s var(--ease-ressort), opacity 0.9s var(--ease-douce), box-shadow 0.4s;
}
.carte-service:hover { box-shadow: var(--clair-23, var(--ombre-douce), inset 0 0 0 1px var(--bleu-voile-fort)); }
.js .carte-service.est-visible:hover,
html:not(.js) .carte-service:hover { transform: translateY(-6px); }
/* « Projecteur » : un halo bleu suit la souris dans la carte. Le script écrit --mx / --my
   (position du curseur en px) et le halo est déplacé avec transform. */
.carte-service::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  width: 380px;
  height: 380px;
  margin: -190px 0 0 -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 156, 212, 0.16), rgba(0, 156, 212, 0) 65%);
  transform: translate(var(--mx, 50%), var(--my, 50%));
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.carte-service:hover::before { opacity: 1; }
.carte-service h3 { margin: 22px 0 10px; font-size: 1.25rem; font-weight: 800; }
.carte-service p { color: var(--clair-8, var(--texte-doux)); font-size: 0.975rem; }
.carte-service__icone {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: var(--clair-3, var(--bleu));
  transition: color 0.3s;
}
/* Fond de l'icône en forme de goutte, qui se remplit de bleu au survol (scale). */
.carte-service__icone::before,
.carte-service__icone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
}
.carte-service__icone::before { background: var(--clair-6, var(--bleu-voile)); }
.carte-service__icone::after {
  background: linear-gradient(135deg, var(--bleu-texte), var(--bleu-profond));
  transform: scale(0);
  transition: transform 0.5s var(--ease-ressort);
}
.carte-service:hover .carte-service__icone { color: var(--clair-5, var(--texte)); }
.carte-service:hover .carte-service__icone::after { transform: scale(1) rotate(12deg); }
.carte-service__icone .icone { width: 30px; height: 30px; }

/* ---------- 10. L'entreprise (collage photo + texte) ---------- */
.entreprise__grille { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.entreprise__photos { position: relative; padding-bottom: 12%; }
.photo-arrondie { margin: 0; overflow: hidden; background: var(--clair-11, var(--bleu-voile-fort)); }
.photo-arrondie img { width: 100%; height: 100%; object-fit: cover; }
/* Forme « arche » : très arrondie en haut, douce en bas. */
.photo-arrondie--grande { width: 74%; aspect-ratio: 3 / 4; border-radius: 999px 999px var(--rayon-xl) var(--rayon-xl); box-shadow: var(--ombre-douce); }
.photo-arrondie--petite {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 3 / 4;
  border-radius: var(--rayon-xl);
  border: var(--clair-24, 8px solid var(--fond));
  box-shadow: var(--ombre-forte);
}
.pastille-lieu {
  position: absolute;
  left: -4%;
  bottom: 30%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: var(--clair-5, var(--fond-3));
  box-shadow: var(--ombre-douce);
  line-height: 1.25;
}
.pastille-lieu strong { display: block; font-weight: 800; }
.pastille-lieu small { display: block; color: var(--clair-8, var(--texte-doux)); font-size: 0.8125rem; }
.pastille-lieu__icone { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--clair-3, var(--bleu)); color: var(--clair-5, var(--anthracite)); }
.entreprise__texte .titre-section { margin-bottom: 22px; }
.entreprise__texte > p { color: var(--clair-8, var(--texte-doux)); }

/* ---------- 11. Parcours en 4 étapes ---------- */
.parcours { padding-top: calc(var(--espace-section) + 30px); }
.parcours__piste { position: relative; --progression: 1; }
.parcours__etapes { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
/* Pas d'espace entre colonnes : ainsi le centre des colonnes tombe à 12,5 %, 37,5 %,
   62,5 % et 87,5 % de la largeur, là où passe la ligne SVG (viewBox 0→1000). */
.etape { padding: 0 18px; text-align: center; }
.etape h3 { margin: 0 0 10px; font-size: 1.1875rem; font-weight: 800; }
.etape p { color: var(--clair-8, var(--texte-doux)); font-size: 0.975rem; }
.etape__numero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--clair-5, var(--fond-3));
  color: var(--clair-3, var(--bleu));
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: var(--clair-25, inset 0 0 0 2px var(--bleu-filet), var(--ombre-douce));
  transition: transform 0.6s var(--ease-ressort), color 0.4s;
}
/* Remplissage bleu qui « gonfle » quand la ligne atteint l'étape (classe .est-active). */
.etape__numero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bleu), var(--bleu-texte) 55%, var(--bleu-profond));
  transform: scale(0);
  transition: transform 0.6s var(--ease-ressort);
}
/* Onde unique émise au moment de l'activation. */
.etape__numero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 50%;
  background: var(--bleu);
  opacity: 0;
}
.etape.est-active .etape__numero { color: var(--clair-5, var(--texte)); transform: scale(1.06); }
.etape.est-active .etape__numero::before { transform: scale(1); }
.etape.est-active .etape__numero::after { animation: onde-unique 1.1s ease-out; }
/* Sans JS : toutes les étapes sont affichées « actives ». */
html:not(.js) .etape__numero { color: var(--clair-5, var(--texte)); }
html:not(.js) .etape__numero::before { transform: scale(1); }

/* Ligne ondulée (ordinateur) : fond en pointillés + trait plein révélé par clip-path.
   --progression (0 → 1) est écrite par le script selon le scroll ; le trait commence
   à 12,5 % et finit à 87,5 % de la largeur, d'où le calcul ci-dessous. */
.parcours__ligne { position: absolute; left: 0; right: 0; top: 2px; height: 72px; pointer-events: none; }
.parcours__ligne svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.parcours__ligne path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.parcours__ligne-fond path { stroke: var(--clair-17, var(--bleu-filet)); stroke-width: 2.5; stroke-dasharray: 2 9; }
.parcours__ligne-trait path { stroke: url(#degrade-parcours); stroke-width: 4; }
.parcours__ligne-masque {
  position: absolute;
  inset: 0;
  clip-path: inset(-30px calc(100% - (12.5% + var(--progression) * 75%)) -30px 0);
}
/* Petite bille lumineuse au bout du trait (positionnée par le script). */
.parcours__pointe {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--bleu);
  box-shadow: 0 0 0 6px rgba(0, 156, 212, 0.22), 0 0 18px rgba(0, 156, 212, 0.6);
  opacity: 0;
  transform: translate(var(--pointe-x, 0px), var(--pointe-y, 0px));
  transition: opacity 0.3s;
}
.parcours__piste.en-cours .parcours__pointe { opacity: 1; }
.parcours__rail { display: none; }

/* ---------- 12. Réalisations (carrousel) ---------- */
.parcours + .realisations { padding-top: 0; }
.realisations__entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.realisations__entete .entete-section { margin-bottom: 40px; }
.carrousel__boutons { display: flex; gap: 12px; margin-bottom: 40px; }
.carrousel { position: relative; }
.carrousel__piste {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 10px 0 30px;
  /* Le 1er carreau s'aligne sur le texte du conteneur, mais la piste va jusqu'au bord de l'écran. */
  padding-inline: max(var(--gouttiere), calc((100% - var(--largeur-max)) / 2));
  scroll-padding-inline: max(var(--gouttiere), calc((100% - var(--largeur-max)) / 2));
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carrousel__piste::-webkit-scrollbar { display: none; }
.carrousel__piste:focus-visible { outline-offset: -3px; border-radius: var(--rayon-l); }
/* Pendant le glisser à la souris, on coupe l'aimantation pour suivre la main au pixel près. */
.carrousel__piste.en-glisse { scroll-snap-type: none; cursor: grabbing; }
.carrousel__piste.en-glisse .realisation { pointer-events: none; }

.realisation {
  position: relative;
  flex: none;
  width: 330px;
  height: 440px;
  overflow: hidden;
  border-radius: var(--rayon-l);
  background: var(--clair-11, var(--bleu-voile-fort));
  scroll-snap-align: start;
  box-shadow: var(--ombre-douce);
  user-select: none;
  -webkit-user-select: none;
}
.realisation--paysage { width: 586px; }
.realisation img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-douce);
  -webkit-user-drag: none;
}
.realisation:hover img { transform: scale(1.08); }
/* La légende couvre toute la carte : texte calé en bas sur un dégradé sombre
   (lisibilité du blanc), pastille « type » ancrée en haut à gauche. */
.realisation__legende {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(31, 29, 28, 0) 55%, rgba(31, 29, 28, 0.82) 100%);
  color: var(--clair-5, var(--texte));
}
.realisation__legende p { margin: 0; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.realisation__type {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--clair-18, rgba(20, 19, 18, 0.86));
  color: var(--clair-3, var(--bleu));
  font-size: 0.8125rem;
  font-weight: 700;
}
.carrousel__progression { height: 5px; border-radius: 999px; background: var(--clair-11, var(--bleu-voile-fort)); overflow: hidden; }
.carrousel__progression span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bleu-texte), var(--bleu));
  transform-origin: left center;
  transform: scaleX(var(--progression-carrousel, 0.12));
}
/* Bulle « Glisser » : suit la souris (position écrite par le script) au-dessus de la piste. */
.curseur-glisser {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  pointer-events: none;
  transform: translate3d(var(--cx, 0px), var(--cy, 0px), 0);
}
.curseur-glisser__bulle {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: var(--bleu);
  color: var(--clair-1, var(--anthracite)); /* texte foncé sur le bleu du logo (contraste 5,4:1) */
  font-weight: 800;
  font-size: 0.9375rem;
  box-shadow: var(--ombre-bleue);
  transform: scale(0);
  transition: transform 0.45s var(--ease-ressort);
}
.carrousel.curseur-actif .curseur-glisser__bulle { transform: scale(1); }
.carrousel.curseur-actif.appuye .curseur-glisser__bulle { transform: scale(0.8); }
/* La bulle remplace le curseur, seulement avec une vraie souris (pas au doigt). */
@media (hover: hover) and (pointer: fine) {
  .js .carrousel.curseur-actif .carrousel__piste { cursor: none; }
}

/* ---------- 13. Zone d'intervention + carte stylisée ---------- */
.zone { padding-top: calc(var(--espace-section) + 30px); }
.zone__grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.zone__texte .titre-section { margin-bottom: 20px; }
.zone__texte > p { color: var(--clair-8, var(--texte-doux)); }
.zone__groupe { margin: 28px 0 12px; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clair-8, var(--texte-doux)); }
.zone__note { margin-top: 20px; color: var(--clair-8, var(--texte-doux)); font-size: 0.9375rem; }

.communes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.communes a,
.communes span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--clair-5, var(--fond-3));
  box-shadow: var(--clair-7, inset 0 0 0 1px var(--bleu-voile-fort));
  color: var(--clair-1, var(--texte));
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.35s var(--ease-ressort), box-shadow 0.3s;
}
.communes a:hover,
.communes span:hover,
.communes .est-actif { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--bleu), var(--ombre-douce); }
.communes .communes__vedette { background: var(--clair-3, var(--bleu)); color: var(--clair-5, var(--anthracite)); box-shadow: var(--ombre-bleue); }

.lien-carte {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 14px 20px 14px 14px;
  border-radius: var(--rayon-l);
  background: var(--clair-6, var(--bleu-voile));
  box-shadow: var(--clair-7, inset 0 0 0 1px var(--bleu-voile-fort));
  color: var(--clair-1, var(--texte));
  text-decoration: none;
  line-height: 1.3;
  transition: transform 0.45s var(--ease-ressort);
}
.lien-carte:hover { transform: translateY(-3px); }
.lien-carte strong { display: block; font-weight: 800; font-size: 1.0625rem; }
.lien-carte small { display: block; color: var(--clair-8, var(--texte-doux)); font-size: 0.875rem; }
.lien-carte__icone { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 16px; background: var(--clair-3, var(--bleu)); color: var(--clair-5, var(--anthracite)); }
.lien-carte__fleche { margin-left: auto; color: var(--clair-3, var(--bleu)); transition: transform 0.4s var(--ease-ressort); }
.lien-carte:hover .lien-carte__fleche { transform: translateX(5px); }

.carte {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--rayon-xl);
  background: var(--clair-26, radial-gradient(circle at 47% 75%, rgba(0, 156, 212, 0.14), rgba(0, 156, 212, 0) 42%), linear-gradient(160deg, var(--fond-3) 10%, var(--fond-2) 100%));
  box-shadow: var(--clair-23, var(--ombre-douce), inset 0 0 0 1px var(--bleu-voile-fort));
}
/* .carte__monde contient le fond ET les points : on peut le zoomer d'un bloc (page Belley). */
.carte__monde {
  position: relative;
  aspect-ratio: 488 / 520;
  transform-origin: var(--zoom-origine, 50% 50%);
  transition: transform 1.8s var(--ease-douce) 0.4s;
}
.carte__fond { position: absolute; inset: 0; width: 100%; height: 100%; }
#trame-points circle { fill: var(--clair-17, var(--bleu-filet)); }
.carte__trame { opacity: 0.55; }
.carte__dept { font: 800 15px var(--police); letter-spacing: 0.28em; fill: var(--bleu-300); opacity: 0.6; }
.carte__riviere { fill: none; stroke: var(--bleu-300); stroke-width: 5; stroke-linecap: round; }
.carte__lac { fill: url(#degrade-lac); }
.carte__eau { font: italic 600 11px var(--police); fill: var(--clair-3, var(--bleu)); }
.carte__eau--lac { fill: var(--clair-5, var(--fond-2)); font-size: 9.5px; font-style: normal; font-weight: 700; letter-spacing: 0.04em; }
/* Ondes « radar » autour du siège : trois cercles identiques qui grandissent et s'effacent
   avec un décalage d'un tiers de cycle (transform-box pour grossir depuis leur centre). */
.carte__radar circle {
  fill: none;
  stroke: var(--bleu);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0.25;
  animation: radar 4.5s ease-out infinite;
}
.carte__radar circle:nth-child(1) { transform: scale(0.4); }
.carte__radar circle:nth-child(2) { transform: scale(0.75); animation-delay: 1.5s; }
.carte__radar circle:nth-child(3) { transform: scale(1.1); animation-delay: 3s; }
/* Mention en bandeau SOUS le dessin (et non par-dessus) : elle ne masque jamais un point. */
.carte__note {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 10px 16px;
  border-top: var(--clair-27, 1px solid var(--bleu-voile-fort));
  background: var(--clair-28, rgba(31, 29, 28, 0.88));
  color: var(--clair-8, var(--texte-doux));
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.carte__points { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
/* Chaque point est placé en % (--x, --y) : il suit la carte à toutes les tailles. */
.point { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; z-index: 1; }
.point:hover,
.point.est-actif { z-index: 4; }
.point__bouton {
  position: absolute;
  left: -16px;
  top: -16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* --contre compense le zoom de la carte (page Belley) : les points gardent leur taille. */
  transform: scale(var(--contre, 1));
  transition: transform 1.8s var(--ease-douce) 0.4s;
}
.point__pastille {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bleu);
  box-shadow: var(--clair-29, 0 0 0 3px var(--fond-3), 0 3px 8px rgba(0, 115, 157, 0.45));
  transition: transform 0.35s var(--ease-ressort);
}
/* Pulsation : copie du point qui grossit et s'efface, décalée pour chaque commune (--i). */
.point__pastille::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bleu);
  animation: pulsation 2.6s ease-out infinite;
  animation-delay: calc(var(--i, 0) * -0.37s);
}
.point__bouton:hover .point__pastille,
.point.est-actif .point__pastille { transform: scale(1.35); }
.point--majeur .point__pastille { width: 16px; height: 16px; background: var(--clair-3, var(--bleu)); }
.point--siege .point__bouton { left: -21px; top: -21px; width: 42px; height: 42px; }
.point--siege .point__pastille {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--bleu-texte), var(--bleu-profond));
  color: var(--clair-5, var(--texte));
}
.point--siege .point__pastille .icone { width: 18px; height: 18px; }
.point--siege .point__pastille::after { display: none; }

/* Nom de la commune : bulle cachée (opacity + scale), visible au survol, au focus
   ou au toucher (.est-actif posé par le script). Trois placements : dessus, droite, gauche. */
.point__nom {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 4px);
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--clair-1, var(--fond-3));
  color: var(--clair-5, var(--texte));
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) scale(var(--echelle-nom, 0.8));
  transform-origin: 50% 100%;
  transition: opacity 0.25s, transform 0.4s var(--ease-ressort);
}
.point--droite .point__nom { left: calc(100% - 4px); bottom: auto; top: 50%; transform: translateY(-50%) scale(var(--echelle-nom, 0.8)); transform-origin: 0 50%; }
.point--gauche .point__nom { left: auto; right: calc(100% - 4px); bottom: auto; top: 50%; transform: translateY(-50%) scale(var(--echelle-nom, 0.8)); transform-origin: 100% 50%; }
.point__bouton:hover .point__nom,
.point__bouton:focus-visible .point__nom,
.point.est-actif .point__nom { opacity: 1; --echelle-nom: 1; }
/* Grandes villes et siège : nom toujours affiché, en blanc (carte lisible même au doigt). */
.point--majeur .point__nom,
.point--siege .point__nom { opacity: 1; --echelle-nom: 1; background: var(--clair-5, var(--texte)); color: var(--clair-1, var(--anthracite)); box-shadow: 0 4px 14px -4px rgba(31, 29, 28, 0.3); }
.point--majeur.est-actif .point__nom,
.point--majeur .point__bouton:hover .point__nom { background: var(--clair-1, var(--bleu)); color: var(--clair-5, var(--anthracite)); }

/* Apparition de la carte : la rivière s'écoule du nord au sud (clip-path), puis les points
   « éclosent » un par un (--i). Seulement avec JS (classe .est-visible posée au scroll). */
.js .carte .carte__riviere { clip-path: inset(0 0 100% 0); transition: clip-path 2.2s var(--ease-douce) 0.3s; }
.js .carte.est-visible .carte__riviere { clip-path: inset(0 0 0 0); }
.js .carte .point { opacity: 0; transform: scale(0); transition: opacity 0.4s, transform 0.6s var(--ease-ressort); transition-delay: calc(0.5s + var(--i) * 0.06s); }
.js .carte.est-visible .point { opacity: 1; transform: none; }

/* Variante « Bas-Bugey » (page Belley) : la carte zoome sur Belley une fois visible,
   et les communes autour de Belley sont mises en avant. */
/* Zoom ×1,3 autour du point (12 %, 28 %) : calculé pour garder visibles Seyssel (en haut),
   Contrevoz (à gauche) et le siège de Voglans (en bas). --contre = 1 / 1,3. */
.carte--bugey { --zoom-origine: 12% 28%; }
.carte--bugey.est-visible .carte__monde,
html:not(.js) .carte--bugey .carte__monde { transform: scale(1.3); }
.carte--bugey.est-visible .point__bouton,
html:not(.js) .carte--bugey .point__bouton { --contre: 0.769; }
.carte--bugey .point:not(.point--bugey) .point__pastille { background: var(--bleu-300); }
.carte--bugey .point--bugey .point__pastille { background: var(--clair-3, var(--bleu)); }
.carte--bugey .point--bugey .point__nom { font-size: 0.8125rem; }

/* ---------- 14. Avis : emplacement réservé (aucun faux avis) ---------- */
.avis { padding-top: 0; }
.avis__reserve {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 48px);
  border: 2px dashed var(--bleu-300);
  border-radius: var(--rayon-xl);
  background: var(--clair-30, repeating-linear-gradient(135deg, var(--fond-2) 0 14px, var(--fond-3) 14px 28px));
  text-align: center;
}
.avis__icone { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 22px; background: var(--clair-5, var(--fond-3)); color: var(--clair-3, var(--bleu)); box-shadow: var(--ombre-douce); }
.avis__icone .icone { width: 30px; height: 30px; }
.avis__titre { margin-bottom: 10px; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; }
.avis__texte { max-width: 560px; margin-inline: auto; color: var(--clair-8, var(--texte-doux)); }

/* ---------- 15. Grand appel à l'action ---------- */
.appel {
  position: relative;
  overflow: clip;
  padding-top: clamp(110px, 13vw, 180px);
  background:
    radial-gradient(circle at 18% 30%, rgba(0, 156, 212, 0.55), rgba(0, 156, 212, 0) 45%),
    linear-gradient(135deg, var(--bleu-texte) 0%, var(--bleu-profond) 55%, var(--bleu-nuit) 100%);
  color: var(--clair-5, var(--texte));
  text-align: center;
}
.appel__contenu { position: relative; z-index: 2; padding-bottom: clamp(56px, 8vw, 96px); }
.appel__titre { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.appel__numero {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  margin: 22px 0 18px;
  color: var(--clair-5, var(--texte));
  font-size: clamp(2.3rem, 1.2rem + 5.5vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}
/* Soulignement qui se trace au survol (scaleX depuis la gauche). */
.appel__numero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 4px;
  border-radius: 4px;
  background: var(--bleu-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-douce);
}
.appel__numero:hover::after { transform: scaleX(1); }
.appel__numero-icone {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: var(--clair-5, var(--texte));
  color: var(--bleu-texte);
}
.appel__numero-icone .icone { width: 0.5em; height: 0.5em; stroke-width: 2.2; animation: sonnerie-periodique 5s ease-in-out infinite; }
.appel__numero-icone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: var(--clair-31, 2px solid var(--texte));
  animation: onde 2.6s ease-out infinite;
}
.appel__texte { max-width: 620px; margin: 0 auto 30px; color: rgba(255, 255, 255, 0.9); font-size: 1.0625rem; }
.appel__texte a { color: var(--clair-5, var(--texte)); font-weight: 700; }
.appel :focus-visible { outline-color: var(--clair-5, var(--texte)); }
/* Bulles décoratives qui montent lentement. */
.appel__bulles span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02));
  animation: derive 16s ease-in-out infinite alternate;
}
.appel__bulles span:nth-child(1) { width: 280px; height: 280px; right: 6%; top: 18%; }
.appel__bulles span:nth-child(2) { width: 120px; height: 120px; left: 8%; bottom: 22%; animation-duration: 12s; }
.appel__bulles span:nth-child(3) { width: 60px; height: 60px; right: 30%; bottom: 14%; animation-duration: 9s; }
.appel > .vague:last-child { margin-top: 0; }

/* ---------- 16. Pied de page ---------- */
.pied { background: var(--clair-1, var(--fond-2)); color: rgba(255, 255, 255, 0.78); font-size: 0.9375rem; }
.pied a { color: var(--clair-5, var(--texte)); text-decoration: none; }
.pied a:hover { color: var(--bleu-300); }
.pied :focus-visible { outline-color: var(--clair-5, var(--texte)); }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1.1fr 1fr 0.8fr; gap: 40px; padding-top: clamp(48px, 6vw, 72px); padding-bottom: 48px; }
.pied__logo { width: auto; height: 60px; margin-bottom: 18px; }
.pied__marque p { max-width: 320px; }
.pied__titre { margin-bottom: 16px; color: var(--bleu-300); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.pied__adresse { display: grid; gap: 12px; font-style: normal; }
.pied__adresse a,
.pied__horaires,  /* horaires d'ouverture : même alignement icône + texte que le téléphone */
.pied__social { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.pied__adresse .icone,
.pied__social .icone { color: var(--bleu); }
.pied__communes,
.pied__liens { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pied__communes { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  /* Place libre en bas : la pastille du sélecteur (gauche) et le bouton d'appel (droite)
     sont fixés à l'écran et masqueraient sinon cette dernière ligne. */
  padding-bottom: 96px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
}
.pied__bas p { margin: 0; }

/* ---------- 17. Bouton d'appel flottant (en bas à droite) ---------- */
.appel-flottant {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.6s var(--ease-ressort), opacity 0.4s;
}
/* Deux ondes décalées d'une demi-période : l'onde ne s'arrête jamais. */
.appel-flottant__onde {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bleu);
  animation: onde 2.6s ease-out infinite;
}
.appel-flottant__onde:nth-child(2) { animation-delay: 1.3s; }
.appel-flottant__bouton {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-texte) 70%);
  color: var(--clair-5, var(--texte));
  box-shadow: var(--ombre-bleue);
  transition: transform 0.45s var(--ease-ressort);
}
.appel-flottant__bouton .icone { width: 26px; height: 26px; stroke-width: 2.1; animation: sonnerie-periodique 6s ease-in-out 2s infinite; }
.appel-flottant:hover .appel-flottant__bouton { transform: scale(1.08) rotate(-6deg); }
.appel-flottant__etiquette {
  position: absolute;
  right: calc(100% + 12px);
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--clair-1, var(--fond-3));
  color: var(--clair-5, var(--texte));
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s, transform 0.45s var(--ease-ressort);
  pointer-events: none;
}
.appel-flottant:hover .appel-flottant__etiquette,
.appel-flottant:focus-visible .appel-flottant__etiquette { opacity: 1; transform: none; }
/* Avec JS, le bouton n'apparaît qu'après un petit scroll (le bandeau a déjà ses boutons). */
.js .appel-flottant { opacity: 0; transform: translateY(110px) scale(0.6); pointer-events: none; }
.js .appel-flottant.est-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- 18. (Retiré : le message « page à venir » ne servait qu'à la maquette.) ---------- */

/* =====================================================================
   PAGES INTÉRIEURES (Belley, Contact)
   ===================================================================== */

/* Fil d'Ariane */
.fil-ariane { margin-bottom: 18px; font-size: 0.875rem; font-weight: 600; }
.fil-ariane ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fil-ariane li { display: inline-flex; align-items: center; gap: 6px; color: var(--clair-8, var(--texte-doux)); }
.fil-ariane li + li::before { content: "›"; color: var(--clair-3, var(--bleu)); font-weight: 800; }
.fil-ariane a { color: var(--clair-3, var(--bleu)); text-decoration: none; }
.fil-ariane a:hover { text-decoration: underline; }

/* Bandeau des pages intérieures : même esprit, un peu moins haut. */
.accueil--page .accueil__titre { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.6rem); }
.accueil--page .blob { width: min(100%, 500px); }

/* Encadrés de texte (cartes blanches arrondies) */
.colonnes { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.colonnes--centre { align-items: center; }
.texte-courant > p { color: var(--clair-8, var(--texte-doux)); }
.texte-courant .titre-section { margin-bottom: 22px; }
.encadre {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--rayon-xl);
  background: var(--clair-5, var(--fond-3));
  box-shadow: var(--clair-20, var(--ombre-douce), inset 0 0 0 1px var(--filet));
}
.encadre h3 { margin-bottom: 14px; font-size: 1.375rem; font-weight: 800; }
.encadre > p { color: var(--clair-8, var(--texte-doux)); }
.encadre--bleu { background: linear-gradient(140deg, var(--bleu-texte), var(--bleu-profond)); color: var(--clair-5, var(--texte)); box-shadow: var(--ombre-bleue); }
.encadre--bleu > p { color: rgba(255, 255, 255, 0.9); }

.texte-courant .sous-titre { margin: 32px 0 14px; font-size: 1.375rem; font-weight: 800; }
.texte-courant .liste-coches { margin-bottom: 8px; }
.zone__proximite { margin: 26px 0 0; font-weight: 700; }

/* Encadré « particuliers et professionnels » : icône + texte côte à côte. */
.pros { display: flex; gap: 24px; align-items: flex-start; margin-top: 28px; }
.pros h3 { color: var(--clair-5, var(--texte)); }
.pros__icone { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 20px; background: rgba(255, 255, 255, 0.16); }
.pros__icone .icone { width: 30px; height: 30px; }

/* Liste d'expertises avec icônes (page Belley) */
.expertises { display: grid; gap: 10px; margin: 20px 0 22px; padding: 0; list-style: none; }
.expertises li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: var(--clair-6, var(--bleu-voile));
  font-weight: 700;
  transition: transform 0.4s var(--ease-ressort);
}
.expertises li:hover { transform: translateX(6px); }
.expertises .icone { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--clair-5, var(--fond-3)); color: var(--clair-3, var(--bleu)); }

/* Grille de petites cartes (prestations, engagements) */
.grille-cartes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.grille-cartes--3 { grid-template-columns: repeat(3, 1fr); }
.mini-carte {
  padding: 26px 24px;
  border-radius: var(--rayon-l);
  background: var(--clair-5, var(--fond-3));
  box-shadow: var(--clair-22, inset 0 0 0 1px var(--filet));
  transition: transform 0.5s var(--ease-ressort), opacity 0.9s var(--ease-douce), box-shadow 0.4s;
}
.section--teintee .mini-carte { box-shadow: 0 1px 0 rgba(31, 29, 28, 0.03); }
.js .mini-carte.est-visible:hover,
html:not(.js) .mini-carte:hover { transform: translateY(-6px); box-shadow: var(--ombre-douce); }
.mini-carte h3 { margin: 16px 0 8px; font-size: 1.0625rem; font-weight: 800; }
.mini-carte p { color: var(--clair-8, var(--texte-doux)); font-size: 0.9375rem; }
.mini-carte__icone { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--clair-11, var(--bleu-voile-fort)); color: var(--clair-3, var(--bleu)); transition: transform 0.5s var(--ease-ressort); }
.mini-carte:hover .mini-carte__icone { transform: rotate(-10deg) scale(1.08); }
.mini-carte__icone .icone { width: 24px; height: 24px; }

/* Postes qui font varier le prix : cartes numérotées */
.postes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: poste; }
.poste {
  position: relative;
  overflow: hidden;
  padding: 30px 26px 26px;
  border-radius: var(--rayon-l);
  background: var(--clair-5, var(--fond-3));
  box-shadow: var(--ombre-douce);
  counter-increment: poste;
  transition: transform 0.5s var(--ease-ressort), opacity 0.9s var(--ease-douce);
}
.js .poste.est-visible:hover,
html:not(.js) .poste:hover { transform: translateY(-6px) rotate(-0.6deg); }
/* Grand numéro en filigrane (compteur CSS automatique). */
.poste::before {
  content: "0" counter(poste);
  position: absolute;
  right: 18px;
  top: 6px;
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--clair-6, var(--bleu-voile-fort));
}
.poste h3 { position: relative; margin-bottom: 10px; font-size: 1.125rem; font-weight: 800; padding-right: 60px; }
.poste p { position: relative; color: var(--clair-8, var(--texte-doux)); font-size: 0.975rem; }
.poste--encart { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(140deg, var(--bleu-texte), var(--bleu-profond)); color: var(--clair-5, var(--texte)); }
.poste--encart::before { content: none; }
.poste--encart p { color: rgba(255, 255, 255, 0.92); font-weight: 500; }
.poste--encart .bouton { align-self: flex-start; margin-top: 18px; }

/* Défis du bâti ancien */
.defis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0; padding: 0; list-style: none; }
.defi { padding: 24px; border-radius: var(--rayon-l); background: var(--clair-6, var(--bleu-voile)); box-shadow: var(--clair-7, inset 0 0 0 1px var(--bleu-voile-fort)); }
.defi .icone { width: 30px; height: 30px; color: var(--clair-3, var(--bleu)); }
.defi p { margin: 12px 0 0; font-weight: 700; line-height: 1.4; }

/* Photo en arche (page Belley) */
.photo-arche { position: relative; margin: 0; }
.photo-arche img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px var(--rayon-xl) var(--rayon-xl); box-shadow: var(--ombre-forte); }
.photo-arche figcaption { margin-top: 12px; color: var(--clair-8, var(--texte-doux)); font-size: 0.875rem; text-align: center; }

/* FAQ en accordéon (<details> natif : fonctionne sans JS).
   Ouverture : la réponse se dévoile du haut vers le bas (clip-path) en glissant.
   Fermeture : le script joue l'animation inverse AVANT de refermer réellement. */
.faq { display: grid; gap: 14px; max-width: 880px; margin: 0 auto; }
.faq__item {
  border-radius: var(--rayon-l);
  background: var(--clair-5, var(--fond-3));
  box-shadow: var(--clair-22, inset 0 0 0 1px var(--filet));
  transition: box-shadow 0.3s;
}
.faq__item[open] { box-shadow: var(--clair-32, var(--ombre-douce), inset 0 0 0 2px var(--bleu-voile-fort)); }
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 22px 28px;
  border-radius: var(--rayon-l);
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question h3 { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); font-weight: 800; line-height: 1.35; }
.faq__icone {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--clair-6, var(--bleu-voile));
  transition: transform 0.5s var(--ease-ressort);
}
/* « + » dessiné avec deux barres ; ouvert, il tourne et devient « − ». */
.faq__icone::before,
.faq__icone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2.5px;
  margin: -1.25px 0 0 -8px;
  border-radius: 2px;
  background: var(--clair-3, var(--bleu));
  transition: transform 0.5s var(--ease-ressort);
}
.faq__icone::after { transform: rotate(90deg); }
.faq__item[open] .faq__icone { transform: rotate(180deg); }
.faq__item[open] .faq__icone::after { transform: rotate(0deg); }
.faq__reponse { padding: 0 28px 26px; color: var(--clair-8, var(--texte-doux)); }
.faq__item[open] .faq__reponse { animation: faq-ouvre 0.55s var(--ease-douce); }
.faq__item.se-ferme .faq__reponse { animation: faq-ferme 0.3s ease-in forwards; }

/* --- Page contact --- */
.accueil--contact .accueil__grille { align-items: center; }
.accueil__contacts { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px; font-weight: 600; color: var(--clair-8, var(--texte-doux)); font-size: 0.9375rem; }
.accueil__contacts span { display: inline-flex; align-items: center; gap: 8px; }
.accueil__contacts .icone { color: var(--clair-3, var(--bleu)); }

.cartes-contact { position: relative; display: grid; gap: 16px; max-width: 520px; width: 100%; margin-inline: auto; }
/* Blob décoratif derrière les cartes : il déborde du bloc et ondule (même script que l'accueil). */
.cartes-contact .blob--deco {
  position: absolute;
  inset: -14% -12%;
  z-index: 0;
  width: auto;
  margin: 0;
  aspect-ratio: auto;
  pointer-events: none;
}
.cartes-contact .carte-contact { z-index: 1; }
.titre-formulaire { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-bottom: 10px; }
.formulaire__intro { margin-bottom: 28px; color: var(--clair-8, var(--texte-doux)); }
.aside-contact .encadre--bleu h2 { color: var(--clair-5, var(--texte)); }
.aside-contact .encadre--bleu .bouton { margin-top: 18px; }
/* Vague posée tout en bas de la section (transition vers le pied de page sombre). */
.section:has(> .vague--sortie) { padding-bottom: calc(var(--espace-section) + 60px); }
.vague--sortie { position: absolute; left: 0; right: 0; bottom: 0; }
.carte-contact {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px 20px 20px;
  border-radius: var(--rayon-l);
  background: var(--clair-5, var(--fond-3));
  box-shadow: var(--clair-20, var(--ombre-douce), inset 0 0 0 1px var(--filet));
  color: var(--clair-1, var(--texte));
  text-decoration: none;
  line-height: 1.3;
  transition: transform 0.5s var(--ease-ressort);
}
a.carte-contact:hover { transform: translateY(-4px) rotate(-0.5deg); }
.carte-contact small { display: block; color: var(--clair-8, var(--texte-doux)); font-size: 0.875rem; font-weight: 600; }
.carte-contact strong { display: block; font-size: 1.125rem; font-weight: 800; overflow-wrap: anywhere; }
.carte-contact address { font-style: normal; }
/* Page contact : chaque adresse après la première (Sonnaz, Aix…) est séparée de la précédente par un petit espace. */
.carte-contact__adresse-suivante { margin-top: 10px; }
.carte-contact__icone { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 18px; background: var(--clair-11, var(--bleu-voile-fort)); color: var(--clair-3, var(--bleu)); }
.carte-contact__icone .icone { width: 26px; height: 26px; }
/* Carte téléphone : la plus visible, en bleu, numéro en très grand. */
.carte-contact--tel {
  overflow: hidden;
  isolation: isolate;
  padding: 30px 28px;
  background: linear-gradient(135deg, var(--bleu-texte), var(--bleu-profond));
  color: var(--clair-5, var(--texte));
  box-shadow: var(--ombre-bleue);
}
.carte-contact--tel small { color: rgba(255, 255, 255, 0.88); }
.carte-contact--tel strong { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); letter-spacing: -0.02em; white-space: nowrap; }
.carte-contact--tel .carte-contact__icone { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--clair-5, var(--texte)); }
.carte-contact--tel .carte-contact__icone::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: var(--clair-31, 2px solid var(--texte)); animation: onde 2.6s ease-out infinite; }
.carte-contact--tel::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 205, 234, 0.5), transparent 70%);
  animation: derive 10s ease-in-out infinite alternate;
}
.carte-contact--tel :focus-visible { outline-color: var(--clair-5, var(--texte)); }
.cartes-contact .badge { position: absolute; }
.cartes-contact .badge--1 { left: auto; right: -14px; top: -26px; }

/* Formulaire */
.formulaire-grille { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.formulaire {
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--rayon-xl);
  background: var(--clair-5, var(--fond-3));
  box-shadow: var(--clair-20, var(--ombre-douce), inset 0 0 0 1px var(--filet));
}
.formulaire__ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.champ { display: grid; gap: 8px; margin-bottom: 18px; }
.champ label { font-weight: 700; font-size: 0.9375rem; }
.champ label .obligatoire { color: var(--clair-3, var(--bleu)); }
.champ input,
.champ select,
.champ textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: var(--clair-33, 2px solid var(--filet-fort));
  border-radius: 18px;
  background: var(--clair-34, var(--fond));
  color: var(--clair-1, var(--texte));
  font: inherit;
  font-size: 1rem;
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2300739D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.champ input:hover,
.champ select:hover,
.champ textarea:hover { border-color: var(--clair-17, var(--bleu-filet)); }
.champ input:focus,
.champ select:focus,
.champ textarea:focus { outline: none; border-color: var(--clair-3, var(--bleu)); background-color: var(--clair-5, var(--fond-2)); box-shadow: var(--clair-35, 0 0 0 4px var(--bleu-voile-fort)); }
.formulaire__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.formulaire__mention { margin: 0; color: var(--clair-8, var(--texte-doux)); font-size: 0.875rem; }
/* Message renvoyé par le serveur après un envoi (succès, aperçu, erreur), en haut du formulaire.
   Même apparence que le message de la maquette, dont il prend la place. */
.message-formulaire {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  padding: 16px 20px;
  border-radius: var(--rayon-m);
  background: var(--clair-6, var(--bleu-voile));
  box-shadow: var(--clair-36, inset 0 0 0 2px var(--bleu-filet));
  font-weight: 700;
  animation: badge-entree 0.6s var(--ease-ressort);
}
.message-formulaire .icone { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--clair-3, var(--bleu)); color: var(--clair-5, var(--anthracite)); stroke-width: 3; flex: none; }
.message-formulaire a { color: inherit; }

/* Erreurs : un rouge lisible dans chaque thème (clair sur fond sombre, foncé sur fond blanc). */
:root { --erreur: #FF8A80; }
:root[data-theme="clair"] { --erreur: #B3261E; }
.message-formulaire--erreur { box-shadow: inset 0 0 0 2px var(--erreur); background: transparent; }
.message-formulaire--erreur .icone { background: var(--erreur); }
.champ__erreur { margin: 0; color: var(--erreur); font-size: 0.875rem; font-weight: 700; }
.champ [aria-invalid="true"] { border-color: var(--erreur); }

/* Piège à robots (champ « site_web ») : hors de l'écran, jamais vu ni atteint au clavier par un
   humain ; un robot qui remplit tous les champs se trahit. Pas de display:none, que certains
   robots savent repérer. */
.formulaire__piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.aside-contact { display: grid; gap: 18px; }
.aside-contact .encadre h2 { margin-bottom: 12px; font-size: 1.375rem; font-weight: 800; }
.etapes-mini { display: grid; gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: mini; }
.etapes-mini li { position: relative; padding-left: 50px; counter-increment: mini; color: var(--clair-8, var(--texte-doux)); }
.etapes-mini li strong { display: block; color: var(--clair-1, var(--texte)); }
.etapes-mini li::before {
  content: counter(mini);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clair-3, var(--bleu));
  color: var(--clair-5, var(--anthracite));
  font-weight: 800;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .atouts__grille { grid-template-columns: repeat(2, 1fr); }
  .grille-cartes { grid-template-columns: repeat(2, 1fr); }
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .badge--1 { left: -2%; }
  .badge--2 { right: 0; }
}

@media (max-width: 960px) {
  .accueil__grille,
  .entreprise__grille,
  .zone__grille,
  .colonnes,
  .formulaire-grille { grid-template-columns: 1fr; }
  .accueil__visuel { max-width: 560px; width: 100%; margin-inline: auto; }
  .services__grille,
  .postes,
  .grille-cartes--3,
  .defis { grid-template-columns: repeat(2, 1fr); }
  .entreprise__photos { max-width: 520px; width: 100%; margin-inline: auto; }
  .zone__texte { order: -1; }
  .realisations__entete { flex-direction: column; align-items: flex-start; gap: 0; }
  .carrousel__boutons { margin-top: -16px; }
}

/* Parcours vertical sur tablette et téléphone : rail à gauche qui se remplit au scroll.
   (Sous 900 px, 4 colonnes deviennent trop étroites pour être lues confortablement.) */
@media (max-width: 900px) {
  .parcours__ligne { display: none; }
  .parcours__etapes { grid-template-columns: 1fr; gap: 34px; }
  .etape { display: grid; grid-template-columns: 60px 1fr; gap: 0 20px; padding: 0; text-align: left; }
  .etape__numero { width: 60px; height: 60px; margin: 0; font-size: 1.25rem; }
  .etape h3 { margin-top: 14px; }
  .parcours__rail {
    position: absolute;
    left: 29px;
    top: var(--rail-haut, 30px);
    height: var(--rail-hauteur, calc(100% - 60px));
    width: 3px;
    display: block;
    border-radius: 3px;
    background: var(--clair-37, repeating-linear-gradient(180deg, var(--bleu-filet) 0 4px, transparent 4px 11px));
  }
  .parcours__rail-trait {
    position: absolute;
    inset: 0;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--bleu-texte), var(--bleu));
    transform-origin: top center;
    transform: scaleY(var(--progression, 1));
  }
}

@media (max-width: 700px) {
  body { font-size: 1rem; }
  .services__grille,
  .postes,
  .grille-cartes,
  .grille-cartes--3,
  .defis,
  .formulaire__ligne { grid-template-columns: 1fr; }
  .atouts__grille { grid-template-columns: 1fr; }
  .compteurs { grid-template-columns: 1fr; gap: 22px; }
  .compteur { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 18px; }
  .compteur__valeur { min-width: 2.4ch; }
  .accueil__actions .bouton { width: 100%; justify-content: space-between; }
  .accueil__actions .bouton--primaire { justify-content: flex-start; }
  .badge__flotte { padding: 7px 14px 7px 7px; gap: 8px; }
  .badge__icone { width: 34px; height: 34px; }
  .badge__icone .icone { width: 1.05em; height: 1.05em; }
  .badge strong { font-size: 0.8125rem; }
  .badge small { font-size: 0.75rem; }
  .badge--1 { left: -2%; top: 4%; }
  .badge--2 { right: -2%; bottom: 14%; }
  .badge--3 { left: 2%; bottom: -2%; }
  .realisation,
  .realisation--paysage { width: 78vw; height: min(104vw, 440px); }
  .carrousel__piste { gap: 14px; }
  .carte { border-radius: var(--rayon-l); }
  .point__nom { font-size: 0.6875rem; padding: 4px 9px; }
  .carte__note { font-size: 0.6875rem; }
  .pied__grille { grid-template-columns: 1fr; gap: 32px; }
  /* Place libre en bas pour la pastille du sélecteur (gauche) et le bouton d'appel (droite). */
  .pied__bas { padding-bottom: 96px; }
  .appel-flottant,
  .appel-flottant__bouton { width: 58px; height: 58px; }
  .appel-flottant { right: 14px; bottom: 14px; }
  .appel-flottant__etiquette { display: none; }
  .carte-contact--tel strong { white-space: normal; }
  .pros { flex-direction: column; gap: 16px; }
  .cartes-contact .badge--1 { right: -6px; top: -22px; }
}

/* =====================================================================
   ANIMATIONS (images clés) — uniquement transform / opacity / clip-path
   ===================================================================== */
@keyframes mot-monte { to { transform: none; } }
@keyframes trait-dessine { to { clip-path: inset(0 0 0 0); } }
@keyframes monte-fondu {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes eclosion {
  from { opacity: 0; transform: scale(0.82) rotate(-6deg); }
  to { opacity: 1; transform: none; }
}
@keyframes badge-entree {
  from { opacity: 0; transform: translateY(18px) scale(0.6); }
  to { opacity: 1; transform: none; }
}
@keyframes flotter {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1.5deg); }
}
@keyframes tourner { to { transform: rotate(360deg); } }
@keyframes derive {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 30px, 0) scale(1.12); }
}
@keyframes vague-defile { to { transform: translateX(-50%); } }
@keyframes pulsation {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(3.2); opacity: 0; }
}
@keyframes onde {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.1); opacity: 0; }
}
@keyframes onde-unique {
  0% { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes radar {
  0% { transform: scale(0.12); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes sonnerie {
  0%, 100% { transform: rotate(0); }
  20%, 60% { transform: rotate(-14deg); }
  40%, 80% { transform: rotate(14deg); }
}
/* Même sonnerie, mais concentrée sur les 12 % du début du cycle, puis repos. */
@keyframes sonnerie-periodique {
  0%, 12%, 100% { transform: rotate(0); }
  2%, 6% { transform: rotate(-14deg); }
  4%, 8% { transform: rotate(14deg); }
}
@keyframes faq-ouvre {
  from { opacity: 0; transform: translateY(-10px); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
@keyframes faq-ferme {
  from { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
  to { opacity: 0; transform: translateY(-8px); clip-path: inset(0 0 100% 0); }
}

/* =====================================================================
   ACCESSIBILITÉ : « Réduire les animations » activé dans le système
   → on coupe TOUT (boucles, entrées, transitions) et on affiche l'état final.
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal],
  .js [data-mots]:not(.mots-prets),
  .js .mot__interieur,
  .js .carte .point,
  .js .badge__flotte,
  .js .blob { opacity: 1; transform: none; }
  .js .surligne__trait,
  .js .carte .carte__riviere { clip-path: none; }
  .js .appel-flottant { opacity: 1; transform: none; pointer-events: auto; }
  .parcours__pointe { display: none; }
  .appel-flottant__onde,
  .point__pastille::after { opacity: 0.2; transform: scale(1.4); }
}

/* ---------- Ajouts propres à la maquette D (générés par outils/fabriquer-version-d.py) ---------- */
/* Thème sombre par défaut : barres de défilement et contrôles natifs sombres eux aussi. */
:root { color-scheme: dark; }

/* Le logo blanc a un fond presque transparent (≈ 2 %) qui dessine un rectangle sur fond sombre.
   Le filtre SVG #logo-net (inséré en haut de chaque page) remet ces pixels à zéro, comme dans C. */
.svg-filtres { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo-theme--sombre,
.pied__logo { filter: url(#logo-net); }

/* En-tête : deux logos (blanc pour le sombre, couleur pour le clair), un seul affiché.
   On ne fait que MASQUER l'autre, pour garder l'affichage prévu par A. */
:root[data-theme="clair"] .logo-theme--sombre,
:root:not([data-theme="clair"]) .logo-theme--clair { display: none; }

/* ---------- Interrupteur thème sombre / clair (dans le menu) ----------
   Une « piste » arrondie et une pastille qui glisse : à droite (lune) = sombre, à gauche
   (soleil) = clair. Les couleurs passent par les jetons de D, redéfinis en clair plus bas. */
.bascule-theme {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  margin-left: 6px;
  padding: 4px;                 /* zone cliquable un peu plus large que la piste */
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--texte);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
/* Sans JavaScript, l'interrupteur ne pourrait rien faire : on le cache. */
html:not(.js) .bascule-theme { display: none; }
.bascule-theme__piste {
  position: relative;
  display: block;
  flex: none;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: var(--bleu-voile);
  box-shadow: inset 0 0 0 1px var(--bleu-filet);
  transition: background 0.4s;
}
.bascule-theme:hover .bascule-theme__piste { background: var(--bleu-voile-fort); }
.bascule-theme__pastille {
  position: absolute;
  top: 3px;
  left: 3px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bleu);
  color: var(--anthracite);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transform: translateX(26px);  /* sombre = pastille à droite */
  transition: transform 0.5s var(--ease-ressort), background 0.4s, color 0.4s;
}
/* Les deux icônes occupent la même case de grille : l'une tourne et s'efface, l'autre apparaît. */
.bascule-theme__icone {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
  transition: transform 0.5s var(--ease-ressort), opacity 0.3s;
}
.bascule-theme__icone--soleil { opacity: 0; transform: rotate(-90deg) scale(0.4); }
:root[data-theme="clair"] .bascule-theme__pastille {
  transform: none;              /* clair = pastille à gauche */
  background: #fff;
  color: var(--bleu-texte);
  box-shadow: 0 2px 6px rgba(31, 29, 28, 0.2);
}
:root[data-theme="clair"] .bascule-theme__icone--lune { opacity: 0; transform: rotate(90deg) scale(0.4); }
:root[data-theme="clair"] .bascule-theme__icone--soleil { opacity: 1; transform: none; }

/* Sur ordinateur : l'interrupteur seul ; le texte reste lu par les lecteurs d'écran. */
@media (min-width: 1080px) {
  .bascule-theme__texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* Menu mobile : l'interrupteur passe EN TÊTE du panneau (order: -1), avec son texte. En bas, il
   fallait défiler sur les petits téléphones, et le sélecteur de maquettes le recouvrait. */
@media (max-width: 1079px) {
  .js .bascule-theme {
    order: -1;
    align-self: flex-start;
    margin: 0 0 -8px;             /* rapproche un peu la liste (l'écart du panneau est de 28 px) */
    font-size: 1.0625rem;
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.4s, transform 0.6s var(--ease-douce);
  }
  .js.menu-ouvert .bascule-theme { opacity: 1; transform: none; transition-delay: 0.1s; }
}

/* Changement de thème : le navigateur photographie la page avant / après (View Transitions)
   et le script dévoile la nouvelle version en cercle depuis l'interrupteur. On coupe le fondu
   par défaut pour que seul le cercle se voie. */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }


/* ---------- Thème CLAIR (interrupteur du menu) : on remet les couleurs de la maquette A ----------
   Sur <html data-theme="clair">, ce bloc redéfinit la palette de A et donne une valeur à
   chaque --clair-N : les déclarations « var(--clair-N, <valeur sombre>) » prennent alors
   la valeur de A au lieu de la valeur sombre. En sombre, ce bloc ne s'applique pas. */
:root[data-theme="clair"] {
  color-scheme: light;
  /* Palette d'origine de A (recopiée telle quelle) */
  --bleu: #009CD4;            /* bleu du logo : accents, fonds, illustrations */
  --bleu-texte: #00739D;      /* TOUT texte bleu sur fond clair (contraste 5,3:1) */
  --bleu-profond: #005A7B;    /* teinte foncée : survols, dégradés */
  --bleu-nuit: #003D54;       /* teinte très foncée : fond du grand appel à l'action */
  --bleu-50: #F0F9FD;         /* teintes très claires : fonds de sections */
  --bleu-100: #DDF1F9;
  --bleu-200: #B8E3F4;
  --bleu-300: #7FCDEA;
  --anthracite: #54504C;      /* gris du logo : textes secondaires */
  --anthracite-profond: #1F1D1C; /* textes principaux, pied de page */
  --blanc: #FFFFFF;
  --creme: #F8F7F5;           /* gris chaud très clair */
  --gris-100: #EFEDEA;
  --gris-200: #DFDBD6;
  /* Ombres d'origine de A */
  --ombre-douce: 0 14px 36px -16px rgba(31, 29, 28, 0.22), 0 2px 6px rgba(31, 29, 28, 0.05);
  --ombre-forte: 0 26px 60px -24px rgba(31, 29, 28, 0.35);
  /* Jetons de D en version claire (interrupteur, vagues, halo de la page contact) */
  --fond: var(--blanc);
  --fond-2: var(--bleu-50);
  --fond-3: var(--blanc);
  --texte: var(--anthracite-profond);
  --texte-doux: var(--anthracite);
  --filet: var(--gris-100);
  --filet-fort: var(--gris-200);
  --bleu-voile: var(--bleu-50);
  --bleu-voile-fort: var(--bleu-100);
  --bleu-filet: var(--bleu-200);
  --halo-contact: var(--bleu-100);
  /* Valeurs d'origine de A pour les déclarations converties */
  --clair-1: var(--anthracite-profond);
  --clair-2: var(--blanc);
  --clair-3: var(--bleu-texte);
  --clair-4: 3px solid var(--bleu-texte);
  --clair-5: #fff;
  --clair-6: var(--bleu-50);
  --clair-7: inset 0 0 0 1px var(--bleu-100);
  --clair-8: var(--anthracite);
  --clair-9: var(--bleu-profond);
  --clair-10: inset 0 0 0 2px var(--gris-200);
  --clair-11: var(--bleu-100);
  --clair-12: rgba(255, 255, 255, 0.8);
  --clair-13: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 6px 24px -14px rgba(31, 29, 28, 0.25);
  --clair-14: var(--ombre-forte), inset 0 0 0 1px var(--gris-100);
  --clair-15: radial-gradient(circle at 85% 0%, var(--bleu-100), transparent 55%),
      linear-gradient(180deg, #fff 0%, var(--bleu-50) 100%);
  --clair-16: linear-gradient(180deg, #fff 0%, var(--bleu-50) 55%, var(--bleu-100) 100%);
  --clair-17: var(--bleu-200);
  --clair-18: rgba(255, 255, 255, 0.94);
  --clair-19: var(--ombre-douce), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  --clair-20: var(--ombre-douce), inset 0 0 0 1px var(--gris-100);
  --clair-21: linear-gradient(135deg, var(--bleu-50), var(--bleu-100));
  --clair-22: inset 0 0 0 1px var(--gris-100);
  --clair-23: var(--ombre-douce), inset 0 0 0 1px var(--bleu-100);
  --clair-24: 8px solid #fff;
  --clair-25: inset 0 0 0 2px var(--bleu-200), var(--ombre-douce);
  --clair-26: radial-gradient(circle at 47% 75%, rgba(0, 156, 212, 0.14), rgba(0, 156, 212, 0) 42%),
    linear-gradient(160deg, #fff 10%, var(--bleu-50) 100%);
  --clair-27: 1px solid var(--bleu-100);
  --clair-28: rgba(255, 255, 255, 0.85);
  --clair-29: 0 0 0 3px #fff, 0 3px 8px rgba(0, 115, 157, 0.45);
  --clair-30: repeating-linear-gradient(135deg, #fff 0 14px, var(--bleu-50) 14px 28px);
  --clair-31: 2px solid #fff;
  --clair-32: var(--ombre-douce), inset 0 0 0 2px var(--bleu-100);
  --clair-33: 2px solid var(--gris-200);
  --clair-34: var(--creme);
  --clair-35: 0 0 0 4px var(--bleu-100);
  --clair-36: inset 0 0 0 2px var(--bleu-200);
  --clair-37: repeating-linear-gradient(180deg, var(--bleu-200) 0 4px, transparent 4px 11px);
}

/* =============================================================================
   Pages de texte long (mentions légales…) : colonne de lecture étroite, liens visibles.
   Ajouté le 2026-12-03 (étape 2), en dehors de la maquette D.
   ============================================================================= */
.texte-courant--etroit { max-width: 760px; }
.texte-courant--etroit .sous-titre:first-child { margin-top: 0; }
.texte-courant--etroit a { color: var(--clair-3, var(--bleu)); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================================
   Pages villes construites par le gabarit inc/page-ville.php (étape 2, 2026-12-03).
   ============================================================================= */
/* Commune de la page sur la carte : point plus gros, cerclé de bleu. */
.point--vedette .point__pastille { width: 20px; height: 20px; box-shadow: 0 0 0 6px var(--clair-11, var(--bleu-voile-fort)); }
.point--siege.point--vedette .point__pastille { width: 40px; height: 40px; }

/* Chantiers réels faits dans la commune : grille de cartes « réalisation » (mêmes légendes
   que le carrousel de l'accueil), 3 colonnes, 2 sur tablette, 1 sur mobile. */
.chantiers-ville { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); justify-content: center; gap: 18px; margin: 0; padding: 0; list-style: none; }
.chantiers-ville .realisation { width: auto; height: 420px; }
.chantiers-ville__plus { margin: 28px 0 0; text-align: center; font-weight: 700; }
.chantiers-ville__plus a { color: var(--clair-3, var(--bleu)); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .chantiers-ville { grid-template-columns: minmax(0, 1fr); }
  .chantiers-ville .realisation { height: 380px; }
}

/* =============================================================================
   Bandeau des pages intérieures SANS photo (blog, articles, mentions légales) : classe
   accueil--sans-photo posée par bandeau_page() (inc/composants.php). Une seule colonne (la
   grille à deux colonnes laisserait la moitié droite vide) et un titre un peu plus petit.
   Venu de blog.css le 2026-12-03, pour servir à toutes ces pages.
   ============================================================================= */
.accueil--sans-photo .accueil__grille { grid-template-columns: minmax(0, 1fr); }
.accueil--sans-photo .accueil__texte { max-width: 900px; }
.accueil--sans-photo .accueil__titre { font-size: clamp(2.05rem, 1.25rem + 3vw, 3.5rem); }
.accueil--sans-photo .accueil__intro { max-width: 720px; margin-bottom: 0; }

/* Texte réservé aux lecteurs d'écran (titre de section sans intérêt visuel). */
.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
