/* 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 { padding-bottom: 3rem; overflow: hidden; }
.hero-inner {
  padding-top: 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: end;
}
.hero .h1 + .h1 { margin-top: -0.5rem; }
.hero-content { padding-bottom: 2rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* Le portrait détouré s'assoit sur la ligne de base de la section : halo doré
   derrière le sujet pour le décoller du fond bleu nuit. */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: end;
}
.hero-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 26rem;
  height: 26rem;
  max-width: 115%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,165,43,0.28) 0%, rgba(217,165,43,0.10) 45%, transparent 70%);
  pointer-events: none;
}
.hero-visual img {
  position: relative;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 36rem;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 1.5rem 2.5rem rgba(0,0,0,0.45));
}

/* ---------- 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); }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-content { padding-bottom: 0; }
  .hero-visual img { max-height: 24rem; }
  .hero-visual::before { width: 18rem; height: 18rem; }
  .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; }
  .hero-visual img { max-height: 20rem; }
  .hero-visual::before { width: 15rem; height: 15rem; }
  .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%; }
}
