/* ==========================================================
   Mpiscines — feuille de style
   Palette : blanc, travertin (pierre des margelles), bleu Mpiscines,
   cyan des vagues du logo, encre (eau profonde).
   ========================================================== */

:root {
  --blanc: #ffffff;
  --travertin: #f3eee6;
  --travertin-fonce: #e6ddd0;
  --bleu: #0890d8;
  --bleu-fonce: #0673ad;
  --cyan: #1ed0ff;
  --encre: #0b2a3c;
  --texte: #1c3443;
  --texte-doux: #536673;
  --trait: #dfe5e9;

  --police: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;

  --mesure: 66ch;
  --largeur: 1200px;
  --gouttiere: clamp(20px, 5vw, 48px);
  --rayon-l: 28px;
  --rayon-m: 18px;
  --rayon-s: 12px;
  --entete: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete) + 16px);
}

body {
  margin: 0;
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--bleu-fonce); text-underline-offset: 3px; }
a:hover { color: var(--bleu); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.lien-evitement {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--encre); color: #fff; padding: 10px 16px; border-radius: var(--rayon-s);
}
.lien-evitement:focus { top: 12px; color: #fff; }

/* ---------- Typographie ---------- */

h1, h2, h3, h4 {
  color: var(--encre);
  margin: 0;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.titre-1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); letter-spacing: -0.035em; line-height: 1.02; }
.titre-2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.titre-3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.015em; line-height: 1.2; }

p { margin: 0 0 1em; max-width: var(--mesure); }
p:last-child { margin-bottom: 0; }

.chapeau {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--texte-doux);
  max-width: 44ch;
}

.discret { color: var(--texte-doux); }

/* ---------- Mise en page ---------- */

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

.section { padding-block: clamp(64px, 10vw, 128px); }
.section--pierre { background: var(--travertin); }
.section--encre { background: var(--encre); color: #d5e3eb; }
.section--encre h2, .section--encre h3 { color: #fff; }
.section--serree { padding-block: clamp(48px, 7vw, 88px); }

.entete-section { margin-bottom: clamp(32px, 5vw, 56px); }
.entete-section .titre-2 { max-width: 20ch; }
.entete-section p { margin-top: 18px; }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 0;
  font: 600 1rem/1 var(--police);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.bouton--plein { background: var(--bleu); color: #fff; }
.bouton--plein:hover { background: var(--bleu-fonce); color: #fff; }
.bouton--clair { background: #fff; color: var(--encre); }
.bouton--clair:hover { background: var(--travertin); color: var(--encre); }
.bouton--contour { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--encre); }
.bouton--contour:hover { background: var(--encre); color: #fff; }
.bouton--verre { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bouton--verre:hover { background: rgba(255,255,255,.3); color: #fff; }
.bouton--petit { min-height: 38px; padding: 0 16px; font-size: .9rem; }

.groupe-boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- En-tête ---------- */

.entete {
  position: sticky; top: 0; z-index: 50;
  height: var(--entete);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(11,42,60,.08);
  transition: background-color .3s ease, border-color .3s ease;
}
.entete__interieur {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.entete__logo { display: block; flex-shrink: 0; }
.entete__logo img { height: 40px; width: auto; }
.entete__logo .logo-blanc { display: none; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav__liens { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav__liens a {
  color: var(--texte); text-decoration: none; font-size: .875rem; font-weight: 500;
  padding: 6px 0; white-space: nowrap;
}
.nav__liens a:hover { color: var(--bleu); }
.nav__liens a[aria-current="page"] { color: var(--bleu); box-shadow: inset 0 -2px 0 var(--bleu); }

.menu-bouton {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: transparent; cursor: pointer; color: var(--encre);
}
.menu-bouton svg { width: 24px; height: 24px; }

/* En-tête transparent au-dessus de la photo d'accueil */
.entete--sur-photo { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.entete--sur-photo .logo-couleur { display: none; }
.entete--sur-photo .logo-blanc { display: block; }
.entete--sur-photo .nav__liens a { color: #fff; }
.entete--sur-photo .menu-bouton { color: #fff; }
.entete--sur-photo .bouton--plein { background: #fff; color: var(--encre); }
.entete--sur-photo.est-opaque {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-color: rgba(11,42,60,.08);
}
.entete--sur-photo.est-opaque .logo-couleur { display: block; }
.entete--sur-photo.est-opaque .logo-blanc { display: none; }
.entete--sur-photo.est-opaque .nav__liens a { color: var(--texte); }
.entete--sur-photo.est-opaque .nav__liens a:hover { color: var(--bleu); }
.entete--sur-photo.est-opaque .menu-bouton { color: var(--encre); }
.entete--sur-photo.est-opaque .bouton--plein { background: var(--bleu); color: #fff; }

@media (max-width: 1180px) {
  .menu-bouton { display: inline-flex; align-items: center; justify-content: center; }
  .nav__devis { display: none; }
  .nav__liens {
    position: fixed; inset: var(--entete) 0 auto 0;
    flex-direction: column; gap: 0;
    background: #fff; padding: 8px var(--gouttiere) 24px;
    border-bottom: 1px solid var(--trait);
    box-shadow: 0 24px 40px -24px rgba(11,42,60,.25);
    max-height: calc(100dvh - var(--entete)); overflow-y: auto;
    display: none;
  }
  .nav__liens.est-ouvert { display: flex; }
  .nav__liens li { border-bottom: 1px solid var(--trait); }
  .nav__liens li:last-child { border-bottom: 0; }
  .nav__liens a, .entete--sur-photo .nav__liens a {
    display: block; padding: 15px 0; font-size: 1.05rem; color: var(--texte);
  }
  .nav__liens a[aria-current="page"] { box-shadow: none; }
  .entete.menu-ouvert { background: #fff; }
  .entete--sur-photo.menu-ouvert .logo-couleur { display: block; }
  .entete--sur-photo.menu-ouvert .logo-blanc { display: none; }
  .entete--sur-photo.menu-ouvert .menu-bouton { color: var(--encre); }
}

/* ---------- Accueil : grande photo ---------- */

.couverture {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--encre);
}
.couverture__image {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%;
  animation: respiration 2.4s cubic-bezier(.2,.7,.2,1) both;
}
.couverture::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,42,60,.45) 0%, rgba(11,42,60,0) 22%),
    linear-gradient(0deg, rgba(11,42,60,.78) 0%, rgba(11,42,60,.35) 38%, rgba(11,42,60,0) 62%);
}
.couverture__contenu {
  position: relative; z-index: 1;
  padding-top: calc(var(--entete) + 48px);
  padding-bottom: clamp(48px, 9vh, 96px);
}
.couverture h1 { color: #fff; max-width: 15ch; }
.couverture .chapeau { color: rgba(255,255,255,.9); margin-top: 20px; max-width: 40ch; }
.couverture__legende {
  position: absolute; z-index: 1; right: var(--gouttiere); bottom: 22px;
  font-size: .8rem; color: rgba(255,255,255,.75); margin: 0;
}
@keyframes respiration { from { transform: scale(1.06); opacity: .6; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 760px) {
  .couverture__image { object-position: 22% 50%; }
  .couverture__legende { left: var(--gouttiere); right: auto; bottom: 14px; }
}

/* ---------- En-tête des pages intérieures ---------- */

.page-titre { padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(32px, 5vw, 56px); }
.page-titre .titre-1 { max-width: 16ch; }
.page-titre .chapeau { margin-top: 24px; }
.fil-ariane { font-size: .85rem; margin-bottom: 20px; color: var(--texte-doux); }
.fil-ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.fil-ariane li + li::before { content: "/"; margin-right: 6px; color: #9aa9b3; }
.fil-ariane a { color: var(--texte-doux); text-decoration: none; }
.fil-ariane a:hover { color: var(--bleu); }

.bandeau-photo { padding-bottom: clamp(16px, 3vw, 32px); }
.bandeau-photo figure { margin: 0; }
.bandeau-photo img {
  width: 100%; height: clamp(320px, 62vh, 680px); object-fit: cover;
  border-radius: var(--rayon-l);
}
.bandeau-photo figcaption { margin-top: 12px; font-size: .85rem; color: var(--texte-doux); }

/* ---------- Grille des services (accueil) ---------- */

.mosaique {
  display: grid; gap: 14px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 210px;
}
.tuile {
  position: relative; overflow: hidden; border-radius: var(--rayon-m);
  display: flex; align-items: flex-end;
  text-decoration: none; color: #fff; background: var(--encre);
  grid-column: span 2;
}
.tuile--large { grid-column: span 3; grid-row: span 2; }
.tuile--haute { grid-row: span 2; }
.tuile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.tuile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,42,60,.82) 0%, rgba(11,42,60,.2) 50%, rgba(11,42,60,0) 70%);
}
.tuile:hover img { transform: scale(1.04); }
.tuile__texte { position: relative; z-index: 1; padding: 22px 24px; }
.tuile h3 { color: #fff; font-size: 1.35rem; letter-spacing: -0.015em; }
.tuile--large h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.tuile p { margin: 6px 0 0; font-size: .95rem; color: rgba(255,255,255,.85); max-width: 34ch; }
.tuile:hover, .tuile:focus-visible { color: #fff; }

.tuile--urgence { background: var(--bleu); }
.tuile--urgence::after { display: none; }
.tuile--urgence .tuile__texte { display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
.tuile--urgence .numero { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; }

@media (max-width: 980px) {
  .mosaique { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .tuile, .tuile--haute { grid-column: span 1; grid-row: span 1; }
  .tuile--large { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 560px) {
  .mosaique { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .tuile, .tuile--large { grid-column: span 1; grid-row: span 1; }
  .tuile--large { grid-row: span 1; min-height: 300px; }
}

/* ---------- Bloc texte + image ---------- */

.duo {
  display: grid; gap: clamp(32px, 6vw, 88px);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.duo--inverse .duo__media { order: -1; }
.duo__media img { width: 100%; border-radius: var(--rayon-l); object-fit: cover; }
.duo__media--portrait img { aspect-ratio: 4 / 5; }
.duo__media figcaption { margin-top: 10px; font-size: .85rem; color: var(--texte-doux); }
.duo__media figure { margin: 0; }
.duo .titre-2 { margin-bottom: 24px; max-width: 16ch; }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .duo--inverse .duo__media { order: 0; }
}

/* ---------- Avant / après ---------- */

.comparateur {
  position: relative; overflow: hidden; border-radius: var(--rayon-l);
  aspect-ratio: 9 / 13; max-height: 82vh; margin-inline: auto;
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
  background: var(--travertin-fonce);
}
.comparateur img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.comparateur__avant { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.comparateur__ligne {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px;
  background: #fff; pointer-events: none;
}
.comparateur__poignee {
  position: absolute; top: 50%; left: var(--pos, 50%);
  width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: #fff; box-shadow: 0 6px 20px rgba(11,42,60,.3);
  display: grid; place-items: center; pointer-events: none; color: var(--encre);
}
.comparateur__poignee svg { width: 26px; height: 26px; }
.comparateur input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.comparateur input[type="range"]:focus-visible + .comparateur__poignee { outline: 3px solid var(--cyan); outline-offset: 3px; }
.comparateur__etiquette {
  position: absolute; top: 16px; z-index: 1;
  background: rgba(11,42,60,.6); color: #fff; font-size: .85rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; pointer-events: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.comparateur__etiquette--avant { left: 16px; }
.comparateur__etiquette--apres { right: 16px; }

/* ---------- Paires d'images ---------- */

.paire { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.paire figure { margin: 0; }
.paire img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--rayon-m); }
.paire figcaption { margin-top: 10px; font-size: .9rem; color: var(--texte-doux); }
.paire--paysage img { aspect-ratio: 4 / 3; }
@media (max-width: 600px) { .paire { grid-template-columns: 1fr; } }

/* ---------- Étapes (séquences réelles) ---------- */

.etapes { list-style: none; margin: 0; padding: 0; counter-reset: etape; display: grid; gap: 0; }
.etapes li {
  counter-increment: etape;
  display: grid; grid-template-columns: 64px 1fr; gap: 8px 20px;
  padding: 26px 0; border-top: 1px solid var(--trait);
}
.etapes li:last-child { border-bottom: 1px solid var(--trait); }
.etapes li::before {
  content: counter(etape);
  grid-row: span 2;
  font-size: 2rem; font-weight: 700; line-height: 1; color: var(--bleu); letter-spacing: -0.03em;
}
.etapes h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.etapes p { margin: 0; color: var(--texte-doux); }
.section--pierre .etapes li { border-color: var(--travertin-fonce); }

/* ---------- Listes de prestations ---------- */

.prestations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 5vw, 72px); }
.prestation { padding: 28px 0; border-top: 1px solid var(--trait); }
.prestation h3 { font-size: 1.3rem; margin-bottom: 10px; letter-spacing: -0.015em; }
.prestation p { color: var(--texte-doux); }
.section--pierre .prestation { border-color: var(--travertin-fonce); }
@media (max-width: 760px) { .prestations { grid-template-columns: 1fr; } }

/* Revêtements : éléments de comparaison */
.revetements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.revetement { background: #fff; border-radius: var(--rayon-m); padding: 26px; }
.section--pierre .revetement { background: #fff; }
.revetement h3 { font-size: 1.2rem; margin-bottom: 8px; }
.revetement p { font-size: .97rem; color: var(--texte-doux); }
.revetement--phare { background: var(--encre); color: #cfe0ea; grid-column: span 2; }
.section--pierre .revetement--phare { background: var(--encre); }
.revetement--phare h3 { color: #fff; font-size: 1.5rem; }
.revetement--phare p { color: #cfe0ea; }
@media (max-width: 900px) { .revetements { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .revetements { grid-template-columns: 1fr; } .revetement--phare { grid-column: span 1; } }

/* ---------- Zone d'intervention ---------- */

.communes { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.communes li {
  padding: 10px 18px; border-radius: 999px; background: #fff; font-weight: 500; font-size: .95rem;
  color: var(--encre);
}
.section--encre .communes li { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Réalisations ---------- */

.cartes-projets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.carte-projet { text-decoration: none; color: inherit; display: block; }
.carte-projet__image { overflow: hidden; border-radius: var(--rayon-m); }
.carte-projet img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.carte-projet:hover img { transform: scale(1.03); }
.carte-projet h3 { font-size: 1.2rem; margin-top: 16px; letter-spacing: -0.01em; }
.carte-projet p { margin-top: 4px; font-size: .95rem; color: var(--texte-doux); }
.carte-projet:hover h3 { color: var(--bleu); }
@media (max-width: 900px) { .cartes-projets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cartes-projets { grid-template-columns: 1fr; } }

.sommaire-projets { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.sommaire-projets a {
  display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--travertin);
  color: var(--encre); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.sommaire-projets a:hover { background: var(--encre); color: #fff; }

.projet { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--trait); }
.projet:first-of-type { border-top: 0; }
.projet__entete { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 36px; }
.projet__entete .titre-2 { max-width: 18ch; }
.projet__infos { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.projet__infos li { font-size: .88rem; padding: 6px 12px; border-radius: 999px; background: var(--travertin); color: var(--encre); font-weight: 500; }
@media (max-width: 860px) { .projet__entete { grid-template-columns: 1fr; } }

.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.galerie--4 { grid-template-columns: repeat(4, 1fr); }
.galerie figure { margin: 0; }
.galerie a { display: block; overflow: hidden; border-radius: var(--rayon-m); }
.galerie img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s ease; }
.galerie a:hover img { transform: scale(1.03); }
.galerie figcaption { margin-top: 10px; font-size: .9rem; color: var(--texte-doux); }
.galerie figcaption strong { color: var(--encre); font-weight: 600; display: block; }
.galerie .galerie__grand { grid-column: span 2; grid-row: span 2; }
.galerie .galerie__grand img { aspect-ratio: auto; height: 100%; min-height: 100%; }
.galerie .galerie__grand a { height: calc(100% - 52px); }
@media (max-width: 900px) {
  .galerie, .galerie--4 { grid-template-columns: 1fr 1fr; }
  .galerie .galerie__grand { grid-column: span 2; grid-row: span 1; }
  .galerie .galerie__grand a { height: auto; }
  .galerie .galerie__grand img { aspect-ratio: 4 / 5; height: auto; }
}

/* Visionneuse */
.visionneuse {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.visionneuse::backdrop { background: rgba(6,20,30,.92); }
.visionneuse__corps { width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 16px 24px; }
.visionneuse img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; border-radius: var(--rayon-s); }
.visionneuse p { color: #e3edf3; text-align: center; margin: 14px auto 0; font-size: .95rem; }
.visionneuse__fermer {
  position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.visionneuse__fermer svg { width: 22px; height: 22px; }

/* ---------- Encadrés ---------- */

.encadre {
  background: var(--travertin); border-radius: var(--rayon-l);
  padding: clamp(28px, 4vw, 48px);
}
.encadre h2, .encadre h3 { margin-bottom: 14px; }
.encadre--bleu { background: var(--bleu); color: #eaf6fd; }
.encadre--bleu h2, .encadre--bleu h3 { color: #fff; }

.signes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.signes li { background: #fff; border-radius: var(--rayon-m); padding: 22px 24px; }
.signes strong { display: block; color: var(--encre); font-size: 1.08rem; margin-bottom: 4px; }
.signes span { color: var(--texte-doux); font-size: .97rem; }
@media (max-width: 700px) { .signes { grid-template-columns: 1fr; } }

/* ---------- Urgence ---------- */

.urgence-appel {
  background: var(--encre); color: #d5e3eb; border-radius: var(--rayon-l);
  padding: clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.urgence-appel h1, .urgence-appel h2 { color: #fff; }
.urgence-appel .chapeau { color: #b9cfdc; margin-top: 18px; }
.urgence-appel__numero {
  display: block; text-decoration: none; color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1;
}
.urgence-appel__numero:hover { color: var(--cyan); }
.urgence-appel__actions p { margin-top: 14px; color: #b9cfdc; font-size: .95rem; }
@media (max-width: 860px) { .urgence-appel { grid-template-columns: 1fr; } }

/* ---------- Appel à l'action de fin de page ---------- */

.appel-final { text-align: left; }
.appel-final .titre-2 { max-width: 18ch; }
.appel-final__grille { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.appel-final__coordonnees { font-size: 1.05rem; }
.appel-final__coordonnees a { color: #fff; text-decoration: none; font-weight: 600; }
.appel-final__coordonnees a:hover { color: var(--cyan); }
.appel-final__coordonnees p { margin: 0 0 6px; }
@media (max-width: 860px) { .appel-final__grille { grid-template-columns: 1fr; } }

/* ---------- Formulaire ---------- */

.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.champ { display: flex; flex-direction: column; gap: 8px; }
.champ--large { grid-column: span 2; }
.champ label { font-weight: 600; font-size: .95rem; color: var(--encre); }
.champ .facultatif { font-weight: 400; color: var(--texte-doux); }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: 1rem; color: var(--texte);
  background: #fff; border: 1.5px solid var(--trait); border-radius: var(--rayon-s);
  padding: 13px 14px; width: 100%;
  transition: border-color .2s ease;
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--bleu); outline: none; box-shadow: 0 0 0 3px rgba(30,208,255,.35); }
.formulaire__mention { grid-column: span 2; font-size: .85rem; color: var(--texte-doux); margin: 0; }
.formulaire .bouton { justify-self: start; }
.cache { display: none; }
@media (max-width: 640px) {
  .formulaire { grid-template-columns: 1fr; }
  .champ--large, .formulaire__mention { grid-column: span 1; }
}

.contact-grille { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-carte { background: var(--travertin); border-radius: var(--rayon-l); padding: 32px; }
.contact-carte h2 { font-size: 1.3rem; margin-bottom: 18px; letter-spacing: -0.015em; }
.contact-carte dl { margin: 0; display: grid; gap: 16px; }
.contact-carte dt { font-size: .85rem; color: var(--texte-doux); }
.contact-carte dd { margin: 2px 0 0; font-weight: 600; color: var(--encre); }
.contact-carte dd a { color: var(--encre); text-decoration: none; }
.contact-carte dd a:hover { color: var(--bleu); }
@media (max-width: 860px) { .contact-grille { grid-template-columns: 1fr; } }

/* ---------- Texte long (mentions légales) ---------- */

.texte-long h2 { font-size: 1.4rem; margin: 40px 0 12px; letter-spacing: -0.015em; }
.texte-long h2:first-child { margin-top: 0; }
.texte-long ul { padding-left: 1.2em; max-width: var(--mesure); }

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

.pied { background: var(--encre); color: #a9c0cd; padding-block: 64px 32px; font-size: .95rem; }
.pied a { color: #d5e3eb; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.pied__logo img { height: 64px; width: auto; }
.pied__logo p { margin-top: 18px; max-width: 30ch; }
.pied h2 { color: #fff; font-size: 1rem; margin-bottom: 14px; letter-spacing: 0; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pied__bas { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; }
@media (max-width: 900px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied__grille { grid-template-columns: 1fr; } }

/* ---------- Barre d'action mobile ---------- */

.barre-mobile { display: none; }
@media (max-width: 760px) {
  .barre-mobile {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid rgba(11,42,60,.08);
  }
  .barre-mobile .bouton { min-height: 46px; padding: 0 12px; }
  body { padding-bottom: 72px; }
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Tuile demi-largeur (ajout) */
.tuile--moitie { grid-column: span 3; }
@media (max-width: 980px) { .tuile--moitie { grid-column: span 1; } }
@media (max-width: 560px) { .tuile--moitie { grid-column: span 1; } }

/* Pied de page légèrement plus profond que les sections encre */
.pied { background: #071f2d; }

/* Cartes de formules (entretien) */
.formules { display: grid; gap: 14px; margin-top: 28px; }
.formule { background: var(--travertin); border-radius: var(--rayon-m); padding: 24px 26px; }
.formule h3 { font-size: 1.25rem; margin-bottom: 6px; }
.formule p { color: var(--texte-doux); margin: 0; }

/* Pastilles de communes sur fond blanc */
.communes--fond li { background: var(--travertin); }

/* En-tête de section sur deux colonnes (titre / texte) */
@media (min-width: 900px) {
  .entete-section--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
  .entete-section--duo p { margin-top: 0; }
}

figure.duo__media { margin: 0; }
.duo .titre-2 { max-width: 18ch; }
.insecable { white-space: nowrap; }

figcaption strong { display: block; color: var(--encre); font-weight: 600; }
.signes li { background: var(--travertin); }
.section--pierre .signes li { background: #fff; }
.projet { border-top: 0; background: linear-gradient(var(--trait), var(--trait)) var(--gouttiere) 0 / calc(100% - 2 * var(--gouttiere)) 1px no-repeat; }
.projet:first-of-type { background: none; }
@media (min-width: 861px) {
  .colle { position: sticky; top: calc(var(--entete) + 32px); }
}

/* Correctif mobile : tuiles empilées sans chevauchement */
@media (max-width: 560px) {
  .mosaique { grid-auto-rows: auto; }
  .tuile, .tuile--moitie, .tuile--haute { min-height: 220px; }
  .tuile--large { min-height: 320px; }
}
