/* A.U.G PLOMBERIE CHAUFFAGE ET CLIMATISATION — feuille de style
   Structure et rythme inspirés du template BERB, palette or/bleu nuit du logo A.U.G */

:root {
  --dark-blue: #161723;
  --dark-blue-2: #1e2030;
  --white: #ffffff;
  --grey: #a5a8b8;
  --dark-grey: #4a4d5e;
  --gold: #d9a52b;
  --gold-light: #f0c860;
  --light: #f4f4f6;
  --radius: 0.25rem;
}

* { box-sizing: border-box; }

html { font-size: 1.125rem; scroll-behavior: smooth; }
@media screen and (max-width: 1920px) { html { font-size: calc(0.625rem + 0.4167vw); } }
@media screen and (max-width: 1440px) { html { font-size: calc(0.8127rem + 0.2081vw); } }
@media screen and (max-width: 479px)  { html { font-size: calc(0.7495rem + 0.8368vw); } }

body {
  margin: 0;
  background-color: var(--dark-blue);
  color: var(--white);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }

/* ---------- utilitaires de mise en page ---------- */
.padding-global { padding-left: 2.5rem; padding-right: 2.5rem; }
.container { width: 100%; max-width: 80rem; margin: 0 auto; }
.container-small { width: 100%; max-width: 48rem; margin: 0 auto; }
.section { padding-top: 6rem; padding-bottom: 6rem; }
.section-small { padding-top: 3rem; padding-bottom: 3rem; }
.text-grey { color: var(--grey); }
.text-gold { color: var(--gold); }
.allcaps { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.center { text-align: center; }
.max-medium { max-width: 34rem; }
.max-small { max-width: 26rem; }

h1, h2, h3 { font-weight: 700; line-height: 1.05; margin: 0; }
.h1 {
  font-size: 5rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.h2 {
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.h3 { font-size: 1.6rem; text-transform: uppercase; }
.lead { font-size: 1.15rem; }

/* ---------- boutons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.9rem;
  background-color: var(--gold);
  color: var(--dark-blue);
  font-weight: 600;
  text-transform: lowercase;
  border-radius: var(--radius);
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.button:hover { background-color: var(--gold-light); transform: translateY(-2px); }

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.9rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background-color .25s ease, color .25s ease;
}
.button-secondary:hover { background-color: var(--gold); color: var(--dark-blue); }

/* WhatsApp : vert de la marque, mêmes dimensions que les autres boutons */
.button-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  background-color: #25d366;
  color: #08331a;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background-color .25s ease, transform .25s ease;
}
.button-whatsapp:hover { background-color: #1fb855; transform: translateY(-2px); }
.button-whatsapp svg { width: 1.05rem; height: 1.05rem; fill: currentColor; flex: none; }

/* ---------- navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(22, 23, 35, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 3.2rem; width: auto; }
.brand-text { font-weight: 700; letter-spacing: 0.12em; font-size: 0.95rem; }
.brand-text span { display: block; font-size: 0.6rem; font-weight: 300; color: var(--grey); letter-spacing: 0.18em; }

.nav-menu { display: flex; align-items: center; gap: 1.75rem; }
.nav-link { font-size: 0.95rem; color: var(--grey); transition: color .2s ease; }
.nav-link:hover { color: var(--gold); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- barre d'infos ---------- */
.infos-bar { display: flex; flex-wrap: wrap; gap: 2rem; padding: 1.5rem 0 0; }
.info-item { display: flex; align-items: center; gap: 0.5rem; color: var(--grey); font-size: 0.85rem; }
.info-item svg { height: 0.9rem; width: auto; color: var(--gold); }
.info-item:hover { color: var(--white); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 5rem;
  min-height: 40rem;
  display: flex;
  align-items: center;
}
.hero > .container { position: relative; z-index: 2; width: 100%; }

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Le sujet vit dans le tiers droit de la bannière : on l'ancre à droite
     pour qu'il survive au recadrage sur les formats étroits. */
  object-position: right center;
  z-index: 0;
  /* Les deux bannières se superposent ; seule celle qui porte .is-active
     est visible. Le fondu reste lent pour ne pas capter l'attention. */
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-bg.is-active { opacity: 1; }

/* Sans JavaScript, aucune classe n'est commutée : la première bannière,
   marquée .is-active dans le HTML, reste affichée. */
@media (prefers-reduced-motion: reduce) {
  .hero-bg { transition: none; }
}

/* Voile dégradé : le titre doit rester lisible quel que soit le recadrage.
   Opaque à gauche, presque transparent à droite sur le sujet. */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,
      rgba(22,23,35,0.97) 0%,
      rgba(22,23,35,0.93) 30%,
      rgba(22,23,35,0.55) 60%,
      rgba(22,23,35,0.15) 85%,
      rgba(22,23,35,0.05) 100%),
    linear-gradient(to bottom, rgba(22,23,35,0.7) 0%, transparent 25%, transparent 70%, rgba(22,23,35,0.65) 100%);
}

.hero-inner { padding-top: 2rem; }
.hero .h1 + .h1 { margin-top: -0.5rem; }
.hero-content { max-width: 40rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* ---------- chiffres ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 3rem 0;
}
.number-value { font-size: 3rem; font-weight: 700; line-height: 1; }

/* ---------- présentation ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* ---------- services ---------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.service-row:last-child { border-bottom: 0; }
.service-media {
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--dark-blue-2);
}
.service-media img { width: 100%; height: 22rem; object-fit: cover; transition: transform .5s ease; }
.service-media:hover img { transform: scale(1.04); }
.service-list { margin: 0 0 1.5rem; padding-left: 1.1rem; color: var(--grey); }
.service-list li { margin-bottom: 0.35rem; }

/* image absente : espace réservé, à remplacer par une <img> */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 22rem;
  padding: 1rem;
  border: 2px dashed rgba(217, 165, 43, 0.55);
  border-radius: var(--radius);
  background-color: var(--dark-blue-2);
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}
.image-placeholder small {
  display: block;
  margin-top: 0.5rem;
  color: var(--grey);
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
}
.gallery .image-placeholder { height: 18rem; }

/* ---------- réalisations ---------- */
.section-light { background-color: var(--light); color: var(--dark-blue); }
.section-light .text-grey { color: var(--dark-grey); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gallery img { width: 100%; height: 18rem; object-fit: cover; border-radius: var(--radius); }

/* ---------- zone d'intervention : carte Mapbox ---------- */
.zone {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 2.5rem;
}

.zone__mapwrap {
  position: relative;
  height: 30rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  background-color: #0d0e18;
}
/* mapbox-gl.css impose position:relative à .mapboxgl-map : deux classes pour l'emporter */
.zone__mapwrap .zone__map { position: absolute; inset: 0; }

.zone__loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--grey);
  background: radial-gradient(600px 300px at 30% 20%, rgba(217,165,43,0.18), transparent 65%), var(--dark-blue-2);
}
.zone__loader strong { display: block; color: var(--white); font-size: 1rem; }
.zone__loader.is-error .zone__spinner { display: none; }
.zone__spinner {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.2);
  border-top-color: var(--gold);
  animation: zone-spin .9s linear infinite;
}
@keyframes zone-spin { to { transform: rotate(360deg); } }

.zone__legend {
  position: absolute;
  left: 0.85rem;
  bottom: 2.2rem; /* laisse le logo Mapbox visible : ses conditions l'exigent */
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  max-width: calc(100% - 1.7rem);
  padding: 0.6rem 0.85rem;
  border-radius: 0.7rem;
  background: rgba(22,23,35,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.72rem;
  color: var(--white);
}
.zone__legend span { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.zone__dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; flex: none; }
.zone__dot--base    { background: var(--gold-light); box-shadow: 0 0 0 3px rgba(240,200,96,0.22); }
.zone__dot--express { background: var(--gold);       box-shadow: 0 0 0 3px rgba(217,165,43,0.22); }
.zone__dot--large   { background: #4d94ff;           box-shadow: 0 0 0 3px rgba(77,148,255,0.22); }

.zone__recenter {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(22,23,35,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.zone__recenter svg { width: 0.85rem; height: 0.85rem; fill: var(--gold); }
.zone__recenter:hover { background: var(--gold); border-color: var(--gold); color: var(--dark-blue); }
.zone__recenter:hover svg { fill: var(--dark-blue); }

.zone__panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  background-color: var(--dark-blue-2);
  border: 1px solid rgba(255,255,255,0.12);
}
.zone__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; text-align: center; }
.zone__stats div {
  padding: 0.7rem 0.35rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.zone__stats strong { display: block; font-size: 1.1rem; color: var(--gold); line-height: 1.2; }
.zone__stats small { display: block; font-size: 0.65rem; color: var(--grey); line-height: 1.35; margin-top: 0.2rem; }

.zone__hint { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--grey); margin: 0; }
.zone__hint svg { width: 0.85rem; height: 0.85rem; fill: var(--gold); flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.4;
  transition: background-color .2s ease, border-color .2s ease;
}
.chip svg { width: 0.75rem; height: 0.75rem; fill: var(--gold); flex: none; }
.zone__chips {
  overflow-y: auto;
  max-height: 14rem;
  padding-right: 0.25rem;
  align-content: flex-start;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.zone__chips::-webkit-scrollbar { width: 6px; }
.zone__chips::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.22); border-radius: 999px; }
button.chip { cursor: default; }
button.chip.is-linked { cursor: pointer; }
button.chip.is-linked:hover,
button.chip.is-linked:focus-visible {
  background: rgba(255,255,255,0.14);
  border-color: var(--gold);
  outline: none;
}
.chip.is-active {
  background: var(--gold);
  border-color: transparent;
  color: var(--dark-blue);
  font-weight: 600;
}
.chip.is-active svg { fill: var(--dark-blue); }
.chip--muted { opacity: 0.7; }

.zone__cta { margin-top: auto; justify-content: center; text-align: center; }

/* habillage des contrôles Mapbox */
.zone__mapwrap .mapboxgl-ctrl-group {
  background: rgba(22,23,35,0.85);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 0.6rem;
  overflow: hidden;
}
.zone__mapwrap .mapboxgl-ctrl-group button + button { border-top-color: rgba(255,255,255,0.14); }
.zone__mapwrap .mapboxgl-ctrl-group button span { filter: invert(1); }
.zone__mapwrap .mapboxgl-ctrl-attrib { background: rgba(22,23,35,0.7); }
.zone__mapwrap .mapboxgl-ctrl-attrib a { color: var(--grey); }

.zone-popup .mapboxgl-popup-content {
  background: #1e2030;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 0.7rem;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 16px 36px rgba(0,0,0,0.45);
  color: var(--white);
}
.zone-popup .mapboxgl-popup-tip { display: none; }
.zone-popup strong { display: block; font-size: 0.95rem; }
.zone-popup__meta { display: block; font-size: 0.75rem; color: var(--grey); margin-top: 0.15rem; }
.zone-popup__cta { display: inline-block; margin-top: 0.5rem; font-weight: 700; font-size: 0.78rem; color: var(--gold); }

.zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.zone-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.75rem;
  background-color: var(--dark-blue-2);
}
.zone-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }

/* ---------- CTA ---------- */
.cta { background-color: var(--gold); color: var(--dark-blue); }
.cta .text-grey { color: rgba(22,23,35,0.75); }
.cta .button { background-color: var(--dark-blue); color: var(--white); }
.cta .button:hover { background-color: #000; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.form-field { display: block; margin-bottom: 1rem; }
.form-field span { display: block; font-size: 0.85rem; color: var(--grey); margin-bottom: 0.35rem; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background-color: var(--dark-blue-2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--white);
  font: inherit;
}
.form-field textarea { min-height: 8rem; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* ---------- pied de page ---------- */
.footer { background-color: var(--light); color: var(--dark-blue); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.footer a { color: var(--dark-grey); display: inline-block; margin-bottom: 0.5rem; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--dark-grey);
}

/* ---------- pages légales ---------- */
.legal { padding-top: 4rem; padding-bottom: 5rem; }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; text-transform: none; }
.legal h1 { margin-bottom: 1rem; }
.legal p, .legal li { color: var(--grey); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal th, .legal td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 400;
  vertical-align: top;
}
.legal th { color: var(--grey); width: 45%; }

/* ---------- visionneuse des réalisations ---------- */
.gallery img.is-zoomable { cursor: zoom-in; transition: transform .3s ease, opacity .3s ease; }
.gallery img.is-zoomable:hover,
.gallery img.is-zoomable:focus-visible { transform: scale(1.02); opacity: 0.92; outline: none; }
.gallery img.is-zoomable:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3.5rem 1rem 4.5rem;
  background-color: rgba(10, 11, 18, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
/* [hidden] est écrasé par display:flex : il faut le réaffirmer */
.lightbox[hidden] { display: none; }
.lightbox { animation: lb-fade .18s ease both; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .lightbox { animation: none; }
  .lightbox__figure img { transition: none; }
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  /* La figure occupe toute la place disponible AVANT que la photo n'arrive :
     sans cela, l'image mesure 0x0 le temps du décodage et la visionneuse
     s'ouvre repliée sur sa légende avant de se déplier d'un coup. */
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  max-width: 62rem;
  height: 100%;
}
.lightbox__figure img {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Révélée seulement une fois décodée : pas de cadre vide clignotant */
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox__figure img.is-loaded { opacity: 1; }

/* Attente du décodage. Le pseudo-élément se cale sur .lightbox, seul ancêtre
   positionné : c'est le centre de la visionneuse, là où la photo apparaîtra. */
.lightbox__figure.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.2);
  border-top-color: var(--gold);
  animation: zone-spin .9s linear infinite;
}
.lightbox__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  color: var(--grey);
}
.lightbox__count { color: var(--gold); font-weight: 600; }

.lightbox__close,
.lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  background-color: rgba(255,255,255,0.08);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: background-color .2s ease, border-color .2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background-color: var(--gold); border-color: var(--gold); color: var(--dark-blue); }

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.8rem;
}
.lightbox__nav { flex: none; width: 2.8rem; height: 2.8rem; font-size: 1.9rem; }

/* ---------- barre d'action mobile ---------- */
/* Sur un site d'artisan, l'appel est l'action nº1 : elle reste à portée de pouce
   en permanence. Masquée au-dessus de 767 px, où le bouton de la navbar suffit. */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  /* Trois cellules égales, bord à bord : une barre d'onglets, pas trois pavés */
  grid-template-columns: 1fr 1fr 1fr;
  background-color: var(--dark-blue);
  box-shadow: 0 -6px 24px rgba(0,0,0,0.4);
  padding-bottom: env(safe-area-inset-bottom);
}
/* Tailles en pixels et non en rem : la barre garde les mêmes proportions
   quelle que soit la largeur d'écran, la racine étant en taille fluide. */
.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 11px 6px 13px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}
.mobile-bar svg { width: 20px; height: 20px; fill: var(--gold); flex: none; }
.mobile-bar__call { background-color: var(--gold); color: var(--dark-blue); }
.mobile-bar__call svg { fill: var(--dark-blue); }
.mobile-bar__wa svg { fill: #25d366; }

/* ---------- responsive ---------- */

/* Tablette */
@media screen and (max-width: 991px) {
  .padding-global { padding-left: 1.5rem; padding-right: 1.5rem; }
  .section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .h1 { font-size: 3.4rem; }
  .h2 { font-size: 2.2rem; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .intro-grid,
  .service-row,
  .contact-grid { grid-template-columns: 1fr; }
  .service-media img,
  .image-placeholder { height: 18rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .zone-grid { grid-template-columns: 1fr; }
  .zone { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .zone__mapwrap { height: 22rem; }
  .zone__chips { max-height: none; overflow: visible; padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Menu replié. La navbar reste collée en haut : « sticky » est déjà un contexte
     de positionnement, le panneau déroulant s'y ancre sans passer en relative. */
  .menu-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.5rem 1.5rem;
    background-color: var(--dark-blue);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.4);
  }
  .nav-menu.is-open { display: flex; }
  /* Cibles tactiles : 44 px minimum recommandés */
  .nav-link { padding: 0.7rem 0; font-size: 1rem; }
  .nav-menu .button { margin-top: 0.5rem; }
}

/* Mobile */
@media screen and (max-width: 767px) {
  .padding-global { padding-left: 1.25rem; padding-right: 1.25rem; }
  .section { padding-top: 3.25rem; padding-bottom: 3.25rem; }
  .section-small { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .h1 { font-size: 3rem; }
  .h2 { font-size: 1.9rem; }
  .h3 { font-size: 1.35rem; }
  .lead { font-size: 1rem; }

  /* La barre d'action fixe ne doit jamais masquer la fin du contenu */
  body { padding-bottom: 68px; }
  .mobile-bar { display: grid; }
  .hero-buttons > a { width: 100%; }
  /* WhatsApp est déjà dans la barre fixe, visible en permanence : un troisième
     gros bouton vert dans le hero ferait doublon. */
  .hero-buttons .button-whatsapp { display: none; }
  .button-whatsapp { padding: 0.8rem 1.4rem; }
  .button-whatsapp svg { width: 0.95rem; height: 0.95rem; }

  .brand img { height: 2.6rem; }
  .brand-text { font-size: 0.85rem; }

  /* Coordonnées en ligne plutôt qu'empilées : trois lignes de moins avant le titre */
  .hero { padding-bottom: 1.5rem; }
  .hero-inner { padding-top: 2rem; }
  .infos-bar { flex-direction: row; flex-wrap: wrap; gap: 0.4rem 1.1rem; padding-top: 1rem; }
  .info-item { font-size: 0.75rem; }
  .max-medium { max-width: none; }

  /* Boutons pleine largeur : plus faciles à viser au pouce */
  .hero-buttons { gap: 0.6rem; margin-top: 1.75rem; }
  .hero-buttons > a,
  .cta .button,
  form .button { width: 100%; }
  .button, .button-secondary { min-height: 2.9rem; padding: 0.8rem 1.4rem; }

  .numbers { padding: 2rem 0; gap: 1.5rem 1rem; }
  .number-value { font-size: 2.1rem; }
  .allcaps { font-size: 0.7rem; }

  .service-row { padding: 2rem 0; gap: 1.5rem; }
  .service-media img,
  .image-placeholder { height: 15rem; }
  .image-placeholder { font-size: 0.8rem; }

  /* Deux colonnes de vignettes : la section réalisations passe de 12 à 6 rangées */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .gallery img,
  .gallery .image-placeholder { height: 9.5rem; }
  .gallery .image-placeholder { font-size: 0.65rem; letter-spacing: 0.06em; padding: 0.5rem; }
  .gallery .image-placeholder small { display: none; }

  .zone__mapwrap { height: 18rem; }
  .zone__legend {
    flex-direction: column;
    gap: 0.3rem;
    left: 0.6rem;
    bottom: 1.9rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.68rem;
  }
  .zone__recenter { left: 0.6rem; top: 0.6rem; padding: 0.4rem 0.7rem; font-size: 0.72rem; }
  .zone__panel { padding: 1.25rem 1rem; }
  .zone__stats strong { font-size: 0.95rem; }

  /* Les tableaux des pages légales s'empilent au lieu de comprimer deux colonnes */
  .legal th, .legal td { display: block; width: auto; padding: 0 0 0.15rem; border: 0; }
  .legal td { padding-bottom: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .legal h2 { font-size: 1.25rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* Petit mobile */
@media screen and (max-width: 479px) {
  .padding-global { padding-left: 1.1rem; padding-right: 1.1rem; }
  .h1 { font-size: 2.5rem; }
  .chip { font-size: 0.72rem; padding: 0.4rem 0.7rem; }
}

/* Visionneuse sur mobile : les flèches passent sous la photo pour ne pas
   rogner sa largeur, et deviennent des cibles tactiles confortables. */
@media screen and (max-width: 767px) {
  .lightbox { padding: 3rem 0.75rem 8rem; gap: 0; }
  .lightbox__caption { bottom: 4.9rem; }
  .lightbox__nav {
    position: absolute;
    bottom: 1rem;
    width: 3.1rem;
    height: 3.1rem;
  }
  .lightbox__nav--prev { left: 25%; transform: translateX(-50%); }
  .lightbox__nav--next { right: 25%; transform: translateX(50%); }
  .lightbox__close { top: 0.75rem; right: 0.75rem; width: 3rem; height: 3rem; }
}

/* ---------- Blocs repliables (listes longues sur mobile) ---------- */
.collapse-mobile > summary {
  display: none;                 /* desktop : le contenu est simplement affiché */
  cursor: pointer;
  list-style: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  background-color: rgba(255,255,255,0.05);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
}
.collapse-mobile > summary::-webkit-details-marker { display: none; }
.collapse-mobile > summary::after {
  content: "";
  margin-left: auto;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.collapse-mobile[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.swipe-hint { display: none; }

/* ---------- Galerie : carrousel plein écran sur mobile ---------- */
@media screen and (max-width: 767px) {
  .collapse-mobile > summary { display: flex; }

  /* 15 vignettes en grille faisaient huit écrans de défilement vertical.
     En carrousel horizontal la section tient sur un seul écran, et le
     balayage est le geste naturel du téléphone. */
  .gallery {
    display: flex;
    grid-template-columns: none;
    gap: 0.6rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* débord jusqu'aux bords de l'écran : on annule le retrait de la section */
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 0 1.25rem;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery img {
    flex: 0 0 78%;
    height: 15rem;
    scroll-snap-align: center;
  }
  .swipe-hint { display: inline; color: var(--gold); }
}

@media screen and (max-width: 479px) {
  .gallery { margin-left: -1.1rem; margin-right: -1.1rem; padding: 0 1.1rem; }
  .gallery img { flex: 0 0 82%; }
}

/* ==========================================================================
   Finitions d'interface
   ========================================================================== */

/* --- Ancres : la navbar collante masquait le titre visé --- */
section[id], #plomberie, #chauffage, #climatisation {
  scroll-margin-top: 5.5rem;
}

/* --- Focus clavier visible partout, pas seulement sur les champs --- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Surtitre de section : repère de lecture avant le grand titre --- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background-color: var(--gold);
  flex: none;
}
.section-light .eyebrow { color: #8a6a12; }
.section-light .eyebrow::before { background-color: #8a6a12; }
.cta .eyebrow { color: rgba(22,23,35,0.75); }
.cta .eyebrow::before { background-color: rgba(22,23,35,0.55); }
.cta .eyebrow { justify-content: center; }

/* --- Navbar : se resserre dès que la page défile --- */
.navbar { transition: padding .25s ease, box-shadow .25s ease, background-color .25s ease; }
.navbar.is-scrolled {
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.35);
  background-color: rgba(22, 23, 35, 0.97);
}
.navbar.is-scrolled .navbar-wrapper { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.navbar.is-scrolled .brand img { height: 2.6rem; }
.navbar-wrapper { transition: padding .25s ease; }
.brand img { transition: height .25s ease; }

/* --- Lien de navigation actif : trait doré sous la rubrique en cours --- */
.nav-link { position: relative; padding-bottom: 2px; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover::after,
.nav-link.is-current::after { transform: scaleX(1); }
.nav-link.is-current { color: var(--white); }

/* --- Apparition au défilement --- */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Les éléments d'une même rangée entrent en cascade */
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* --- Retour en haut, sur les écrans sans barre d'action --- */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background-color: rgba(22,23,35,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background-color: var(--gold); border-color: var(--gold); color: var(--dark-blue); }
.to-top svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

/* --- Micro-interactions --- */
.button:active, .button-secondary:active, .button-whatsapp:active { transform: translateY(1px); }
.zone-card { transition: border-color .25s ease, transform .25s ease; }
.zone-card:hover { border-color: rgba(217,165,43,0.5); transform: translateY(-3px); }
.footer a { transition: color .2s ease; }
.info-item { transition: color .2s ease; }
.service-media { position: relative; }

/* --- Points de progression du carrousel (mobile) --- */
.gallery-dots { display: none; }

@media screen and (max-width: 767px) {
  section[id], #plomberie, #chauffage, #climatisation { scroll-margin-top: 4.5rem; }
  .to-top { display: none; }          /* la barre d'action occupe déjà le bas */
  .eyebrow { font-size: 0.68rem; letter-spacing: 0.14em; }

  .gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
  }
  .gallery-dots span {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background-color: rgba(22,23,35,0.25);
    transition: background-color .2s ease, transform .2s ease;
  }
  .gallery-dots span.is-active { background-color: #8a6a12; transform: scale(1.5); }
}

/* --- Respect du réglage système « animations réduites » --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .navbar, .navbar-wrapper, .brand img, .nav-link::after { transition: none; }
  .button:hover, .button-whatsapp:hover, .zone-card:hover { transform: none; }
  .service-media:hover img { transform: none; }
}

/* --- Formulaire : bouton WhatsApp pleine largeur et messages d'état --- */
.form-send { width: 100%; text-transform: none; }
.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--grey);
  text-align: center;
}
.form-sent {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(37, 211, 102, 0.5);
  background-color: rgba(37, 211, 102, 0.1);
  color: var(--white);
  font-size: 0.82rem;
}
.form-sent a { color: var(--gold); font-weight: 600; }
.form-sent[hidden] { display: none; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.faq-item > summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--white);
  transition: color .2s ease;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--gold); }
.faq-item > summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s ease;
}
.faq-item[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-item > p { margin: 0 0 1.2rem; max-width: 46rem; }

@media screen and (max-width: 767px) {
  .faq-item > summary { font-size: 0.95rem; padding: 0.95rem 0; }
}

/* ==========================================================================
   Prestations : alternance photo / texte, traitement éditorial
   ========================================================================== */
.service-row { gap: 4rem; padding: 4rem 0; }

/* Une rangée sur deux inverse l'ordre visuel. L'ordre du DOM ne bouge pas :
   la photo reste avant son texte, ce qui garde la lecture correcte à la
   voix et l'empilement mobile cohérent. */
.service-row.is-reversed .service-media { order: 2; }
.service-row.is-reversed .service-content { order: 1; }

/* Décalage vertical : casse l'alignement au cordeau des trois rangées.
   En marge et non en transform, sinon il écraserait celui de l'animation
   d'apparition, appliqué au même élément avec une spécificité plus faible. */
.service-row .service-media { margin-top: -2.5rem; }
.service-row.is-reversed .service-media { margin-top: 2.5rem; }

.service-media img { height: 26rem; }

.service-content {
  position: relative;
  padding-left: 1.75rem;
  border-left: 2px solid rgba(217, 165, 43, 0.35);
}
/* Numéro d'ordre en contour doré, posé derrière le titre */
.service-content::before {
  content: attr(data-num);
  position: absolute;
  top: -3.2rem;
  left: 0.75rem;
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(217, 165, 43, 0.28);
  text-stroke: 1.5px rgba(217, 165, 43, 0.28);
  pointer-events: none;
  z-index: 0;
}
/* Le contenu repasse au-dessus du chiffre sans recourir à un z-index négatif,
   qui l'aurait fait disparaître derrière le fond de la section. */
.service-content > * { position: relative; z-index: 1; }

/* Navigateurs sans -webkit-text-stroke : on retombe sur un aplat très discret */
@supports not (-webkit-text-stroke: 1px red) {
  .service-content::before { color: rgba(217, 165, 43, 0.14); }
}

@media screen and (max-width: 991px) {
  /* Empilé : la photo passe toujours en premier, quelle que soit l'alternance */
  .service-row.is-reversed .service-media,
  .service-row.is-reversed .service-content { order: 0; }
  .service-row .service-media,
  .service-row.is-reversed .service-media { margin-top: 0; }
  .service-row { gap: 1.75rem; }
  .service-media img { height: 18rem; }
}

@media screen and (max-width: 767px) {
  .service-media img { height: 15rem; }
  .service-content { padding-left: 1.1rem; border-left-width: 2px; }
  .service-content::before { font-size: 4.5rem; top: -1.9rem; left: 0.4rem; }
}

/* ---------- Bannière du hero : formats étroits ---------- */
@media screen and (max-width: 991px) {
  .hero { min-height: 34rem; padding-bottom: 3.5rem; }
  /* En portrait le cadrage se resserre : on décale le point d'ancrage vers
     l'intérieur pour garder la douche et les dorures dans le champ. */
  .hero-bg { object-position: 72% center; }
  .hero-veil {
    background:
      linear-gradient(to bottom,
        rgba(22,23,35,0.94) 0%,
        rgba(22,23,35,0.88) 45%,
        rgba(22,23,35,0.72) 75%,
        rgba(22,23,35,0.9) 100%);
  }
}

@media screen and (max-width: 767px) {
  .hero { min-height: 30rem; padding-bottom: 2.5rem; }
  .hero-inner { padding-top: 1rem; }
  .hero-bg { object-position: 68% center; }
}

/* --- Étendue des interventions, sous l'accroche du hero --- */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.hero-tags li {
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background-color: rgba(255,255,255,0.05);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
}
@media screen and (max-width: 767px) {
  .hero-tags { gap: 0.4rem; margin-top: 1.1rem; }
  .hero-tags li { font-size: 0.72rem; padding: 0.3rem 0.7rem; }
}
