/* ==========================================================================
   Smart Plombier — feuille de style
   Direction « Eau & Laiton » : pétrole profond, laiton brossé, photos plein écran.
   Les couleurs et tailles principales sont réglées ici, dans :root.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #0b2a30;          /* pétrole profond : texte et fonds sombres */
  --petrol: #113a42;
  --petrol-light: #1a4c55;
  --water: #1d6773;        /* liens */
  --brass: #d2a65a;        /* laiton : bouton Appeler */
  --brass-light: #e6c78c;
  --brass-dark: #b98c3f;
  --copper: #9a5530;       /* filets et numéros */
  --mineral: #eef1ef;      /* fond clair */
  --white: #ffffff;
  --steel: #4a5b5f;        /* texte secondaire */
  --line: #d2dad9;
  --on-dark: #e7eeee;
  --on-dark-soft: #a9bdc0;
  --line-dark: rgba(231, 238, 238, 0.16);

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 7rem);
  --section: clamp(4rem, 10vw, 9rem);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header: 5.5rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
/* Très grands écrans : tout grandit un peu pour garder les proportions. */
@media (min-width: 1800px) { html { font-size: 112.5%; } }
@media (min-width: 2300px) { html { font-size: 125%; } }

body {
  margin: 0;
  font-family: var(--text);
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.25rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--mineral);
}

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

a { color: var(--water); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--water);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .photo-head :focus-visible { outline-color: var(--brass-light); }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 7.2vw, 7.5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 4.25rem); }
h3 { font-size: clamp(1.25rem, 1.2vw + 0.9rem, 1.65rem); font-stretch: 112%; letter-spacing: -0.01em; line-height: 1.15; }

p { margin: 0 0 1em; max-width: 62ch; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap { width: 100%; padding-inline: var(--gutter); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn-call { background: var(--brass); color: var(--ink); }
.btn-call:hover { background: var(--brass-light); color: var(--ink); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.on-dark .btn-outline, .photo-head .btn-outline, .hero .btn-outline { color: var(--on-dark); border-color: rgba(231, 238, 238, 0.6); }
.on-dark .btn-outline:hover, .photo-head .btn-outline:hover, .hero .btn-outline:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

/* WhatsApp : vert officiel, texte pétrole pour rester lisible (contraste AA). */
.icon-brand { fill: currentColor; stroke: none; }
.btn-sms { background: #25d366; color: var(--ink); }
.btn-sms:hover { background: #4be083; color: var(--ink); }
a.btn-sms, a.btn-sms:hover { color: var(--ink); }

/* Touche « eau » : une onde qui part des boutons d'appel, puis un reflet sur le laiton. */
.ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(210, 166, 90, 0.55);
}
.shimmer {
  background-image: linear-gradient(110deg, var(--brass) 35%, #f0dcb0 50%, var(--brass) 65%);
  background-size: 300% 100%;
  background-position: 100% 0;
}
a.shimmer:hover { background-color: var(--brass); }

.sms-float {
  position: fixed;
  right: max(0.9rem, env(safe-area-inset-right));
  bottom: calc(4.6rem + 0.9rem + env(safe-area-inset-bottom)); /* au-dessus de la barre « Appeler » */
  z-index: 59;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(11, 42, 48, 0.35);
}
.sms-float .icon { width: 1.9rem; height: 1.9rem; }
.sms-float:hover { background: #4be083; color: var(--ink); }
@media (min-width: 48rem) { .sms-float { display: none; } }

/* --- En-tête ------------------------------------------------------------ */
/* Fond sombre pour le logo original ; l’en-tête se resserre au défilement. */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--on-dark);
  background: #171d1f;
  transition: background-color 0.4s, box-shadow 0.4s;
}
.no-js .site-header, .site-header.is-scrolled {
  background: #171d1f;
  box-shadow: 0 1px 0 var(--line-dark), 0 10px 30px rgba(11, 42, 48, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header);
  transition: min-height 0.4s var(--ease);
}
.is-scrolled .header-inner { min-height: 4rem; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 48px;
  height: 48px;
  transition: transform 0.4s var(--ease);
}
.is-scrolled .brand img { transform: scale(0.84); }
.brand-name {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.05;
}
.brand-name small {
  display: block;
  font-family: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--on-dark-soft);
}
.brand:hover { color: var(--white); }
@media (max-width: 30rem) {
  .brand-name { font-stretch: 105%; font-size: 1.0625rem; }
  .brand img { width: 42px; height: 42px; }
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; }
.nav a {
  position: relative;
  display: block;
  padding: 0.6rem 0.9rem;
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 600;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-call { display: none; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: rgba(11, 42, 48, 0.35);
  border: 1.5px solid rgba(231, 238, 238, 0.5);
  color: var(--on-dark);
  border-radius: var(--radius);
  min-height: 2.75rem;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 52rem) {
  :root { --header: 4.5rem; }
  .js .menu-toggle { display: inline-flex; }
  .js .nav { display: none; }
  .js .nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav ul { flex-direction: column; }
  .nav a { padding: 0.9rem 0; font-size: 1.25rem; font-family: var(--display); font-stretch: 115%; }
  .nav a::after { left: 0; right: auto; width: 2.5rem; bottom: 0.4rem; }
  .no-js .header-inner { flex-wrap: wrap; padding-block: 0.5rem; }
  .no-js .nav ul { flex-direction: row; flex-wrap: wrap; }
  .no-js .nav a { font-size: 1rem; padding: 0.5rem 0.75rem 0.5rem 0; }
}
@media (min-width: 64rem) {
  .header-call { display: inline-flex; min-height: 2.9rem; padding-block: 0.55rem; font-variant-numeric: tabular-nums; }
}

/* --- Accueil : diaporama plein écran ------------------------------------ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--on-dark);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.slides, .slide, .slide img { position: absolute; inset: 0; }
.slides { z-index: -2; margin: 0; padding: 0; list-style: none; }
.slide { opacity: 0; transition: opacity 1.8s ease-in-out; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(11, 42, 48, 0.94) 0%, rgba(11, 42, 48, 0.78) 32%, rgba(11, 42, 48, 0.28) 62%, rgba(11, 42, 48, 0.1) 80%, rgba(11, 42, 48, 0.5) 100%);
}
@media (min-width: 60rem) {
  .hero::before {
    background:
      linear-gradient(to right, rgba(11, 42, 48, 0.9) 0%, rgba(11, 42, 48, 0.62) 38%, rgba(11, 42, 48, 0) 68%),
      linear-gradient(to top, rgba(11, 42, 48, 0.75) 0%, rgba(11, 42, 48, 0) 45%),
      linear-gradient(to bottom, rgba(11, 42, 48, 0.55) 0%, rgba(11, 42, 48, 0) 22%);
  }
}

.hero-content {
  padding-top: calc(var(--header) + 3rem);
  padding-bottom: clamp(5.5rem, 9vh, 8rem);
}
.hero h1 {
  color: var(--white);
  max-width: 15ch;
  font-size: clamp(2.4rem, min(6.4vw, 10vh), 8rem);
  margin-bottom: 0.35em;
}
@media (min-width: 60rem) {
  .hero-content {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: clamp(2rem, 3vw, 3.5rem);
    align-items: end;
  }
  .hero-content > h1, .hero-content > .lead { grid-column: 1 / -1; }
  .hero-content > div:has(.hero-phone) { grid-row: 3 / span 2; }
  .hero-content .hero-phone { margin: 0; }
  .hero-content .hero-meta { margin-bottom: 1.25rem; }
}
.hero .lead {
  font-size: clamp(1.125rem, 0.6vw + 1rem, 1.5rem);
  line-height: 1.5;
  color: var(--on-dark);
  max-width: 40ch;
  margin-bottom: 1.75rem;
}

.hero-phone {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.6rem 1.15rem;
  background: var(--brass);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 0.3s, transform 0.3s var(--ease);
}
.hero-phone:hover { background: var(--brass-light); color: var(--ink); }
a.hero-phone, a.hero-phone:hover { color: var(--ink); }
.hero-phone span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}
.hero-phone strong {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 850;
  font-size: clamp(1.85rem, 6.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  color: var(--on-dark);
  font-size: 1rem;
}
.hero-meta li { display: flex; align-items: center; gap: 0.5rem; }
.hero-meta .icon { color: var(--brass-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: none; }

.hero-foot {
  position: absolute;
  right: var(--gutter);
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9375rem;
  color: var(--on-dark);
}
.dots { display: flex; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.dots button {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dots button::before {
  content: "";
  width: 1.75rem;
  height: 3px;
  border-radius: 2px;
  background: rgba(231, 238, 238, 0.45);
  transition: background-color 0.3s, width 0.4s var(--ease);
}
.dots button[aria-current="true"]::before { background: var(--brass); width: 2.5rem; }
.no-js .dots { display: none; }
@media (max-width: 47.99rem) {
  .hero-foot { left: var(--gutter); right: auto; bottom: 0.5rem; }
  .hero-content { padding-bottom: 4.5rem; }
}

/* --- Bandeau des communes ------------------------------------------------ */

.zone {
  background: var(--petrol);
  color: var(--on-dark);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.zone-grid { display: grid; gap: 1.5rem 4rem; align-items: start; }
@media (min-width: 64rem) { .zone-grid { grid-template-columns: minmax(16rem, 1fr) 3fr; } }
.zone h2 {
  font-size: clamp(1.5rem, 2vw + 0.8rem, 2.25rem);
  color: var(--white);
  margin-bottom: 0.4em;
}
.zone .note { color: var(--on-dark-soft); font-size: 1rem; margin: 0; }
.towns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  column-gap: 2rem;
  border-top: 1px solid var(--line-dark);
}
.towns li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-weight: 600;
}
.towns .cp {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--brass-light);
}

/* --- Sections ----------------------------------------------------------- */

.section { padding-block: var(--section); }
.section-white { background: var(--white); }
.section-intro { max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-intro p { color: var(--steel); font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem); }
.section-intro-split {
  max-width: none;
  display: grid;
  gap: 0 4rem;
  align-items: end;
}
@media (min-width: 60rem) { .section-intro-split { grid-template-columns: 1.3fr 1fr; } }
.section-intro-split h2 { margin: 0; }
.section-intro-split p { margin: 0; }

.illus-note {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--steel);
}

/* Mosaïque des services (accueil) */
.tiles {
  list-style: none;
  margin: 0;
  padding: 0 clamp(0.5rem, 1.2vw, 1.25rem);
  display: grid;
  gap: clamp(0.5rem, 1.2vw, 1.25rem);
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 3;
  padding: clamp(1.25rem, 2.2vw, 2.25rem);
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  isolation: isolate;
  background: var(--petrol);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
@media (min-width: 40rem) { .tile a { aspect-ratio: 4 / 5; } }
@media (min-width: 64rem) { .tile a { aspect-ratio: 5 / 6; } }
.tile picture, .tile img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.tile img { object-fit: cover; transition: transform 1.2s var(--ease); }
.tile a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(11, 42, 48, 0.94) 0%, rgba(11, 42, 48, 0.7) 34%, rgba(11, 42, 48, 0.05) 70%);
}
.tile strong {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: clamp(1.5rem, 1.6vw + 0.9rem, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
  text-wrap: balance;
}
.tile span { color: var(--on-dark); max-width: 34ch; }
.tile .more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--brass-light);
}
.tile .more .icon { transition: transform 0.4s var(--ease); }
.tile a:hover, .tile a:focus-visible { transform: translateY(-8px); box-shadow: 0 24px 48px -16px rgba(11, 42, 48, 0.55); }
.tile a:hover img, .tile a:focus-visible img { transform: scale(1.06); }
.tile a:hover .more .icon { transform: translateX(4px); }

/* Pourquoi : photo et engagements côte à côte */
.split {
  display: grid;
  background: var(--ink);
  color: var(--on-dark);
}
@media (min-width: 60rem) { .split { grid-template-columns: 1fr 1fr; min-height: 85vh; } }
.split-media {
  position: relative;
  margin: 0;
  min-height: 22rem;
  overflow: hidden;
}
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media figcaption, .band figcaption {
  position: absolute;
  left: 1rem;
  bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--white);
  background: rgba(11, 42, 48, 0.72);
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
}
.split-body {
  padding: var(--section) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-body h2 { color: var(--white); max-width: 14ch; }
.facts { display: grid; gap: 2rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.facts li { border-top: 1px solid var(--line-dark); padding-top: 1.5rem; }
.facts h3 { display: flex; align-items: center; gap: 0.75rem; color: var(--white); margin-bottom: 0.4em; }
.facts h3 .icon { color: var(--brass); width: 1.1em; height: 1.1em; stroke-width: 1.75; }
.facts p { color: var(--on-dark-soft); margin: 0; }
.facts a { color: var(--white); }

/* Parallaxe : l'image dépasse un peu de son cadre pour pouvoir glisser. */
.parallax { overflow: hidden; }
.js .parallax img { top: -9%; height: 118%; will-change: transform; }

/* Ruban photo plein écran */
.band {
  position: relative;
  margin: 0;
  height: clamp(16rem, 42vw, 46rem);
  overflow: hidden;
  background: var(--petrol);
}
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Étapes : une vraie séquence, donc numérotée. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
  counter-reset: step;
}
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 5rem); } }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(3.5rem, 6vw, 6rem);
  line-height: 1;
  color: var(--copper);
  margin-bottom: 1rem;
}
.steps h3 { margin-bottom: 0.4em; }
.steps p { color: var(--steel); margin: 0; }

/* Emplacements photo (vos propres chantiers) */
.photos { display: grid; gap: clamp(0.75rem, 1.5vw, 1.5rem); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .photos { grid-template-columns: repeat(3, 1fr); } }
.photo-slot {
  aspect-ratio: 4 / 3;
  margin: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1rem;
  border: 2px dashed #9fb0b2;
  border-radius: var(--radius);
  background: var(--mineral);
  color: var(--steel);
}
.photo-slot .icon { width: 2rem; height: 2rem; stroke-width: 1.5; color: var(--copper); }
.photo-slot strong { color: var(--ink); font-weight: 700; }
.photo-slot figcaption { font-size: 0.9375rem; }
.photo-slot-wide { aspect-ratio: 16 / 10; }

/* Questions fréquentes */
.faq-grid { display: grid; gap: 1rem 5rem; }
@media (min-width: 60rem) { .faq-grid { grid-template-columns: 1fr 1.6fr; } .faq-grid .section-intro { position: sticky; top: 6rem; align-self: start; } }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0;
  font-weight: 600;
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  transform: translateY(-0.2rem) rotate(45deg);
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: translateY(0.15rem) rotate(-135deg); }
.faq summary:hover { color: var(--water); }
.faq details p { color: var(--steel); margin: 0 0 1.5rem; }

/* Bandeau contact sur photo */
.contact-band {
  position: relative;
  padding-block: var(--section);
  color: var(--on-dark);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.contact-band > picture img, .contact-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(11, 42, 48, 0.95) 0%, rgba(11, 42, 48, 0.86) 45%, rgba(11, 42, 48, 0.55) 100%);
}
.contact-band-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .contact-band-grid { grid-template-columns: 1.2fr 1fr; gap: 5rem; } }
.contact-band h2 { color: var(--white); max-width: 16ch; }
.contact-band p { color: var(--on-dark); font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem); }
.contact-band a:not(.btn):not(.hero-phone) { color: var(--white); }
.contact-band .hero-phone { margin: 0 0 1rem; }

/* --- En-têtes photo des pages intérieures -------------------------------- */

.photo-head {
  position: relative;
  min-height: clamp(26rem, 62vh, 44rem);
  display: grid;
  align-items: end;
  color: var(--on-dark);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.photo-head-short { min-height: clamp(20rem, 46vh, 32rem); }
.photo-head > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.photo-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(11, 42, 48, 0.94) 0%, rgba(11, 42, 48, 0.6) 45%, rgba(11, 42, 48, 0.25) 75%, rgba(11, 42, 48, 0.6) 100%);
}
.photo-head .wrap { padding-top: calc(var(--header) + 2rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.photo-head a:not(.btn) { color: var(--white); }
.photo-head h1 { color: var(--white); margin-bottom: 0.3em; max-width: 16ch; }
.photo-head p { color: var(--on-dark); font-size: clamp(1.125rem, 0.6vw + 1rem, 1.5rem); margin: 0; max-width: 46ch; }
.photo-head .illus {
  position: absolute;
  right: var(--gutter);
  bottom: 1rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--on-dark);
}
@media (max-width: 47.99rem) { .photo-head .illus { display: none; } }

/* Ancienne bannière sombre (pages sans photo) */
.on-dark { background: var(--ink); color: var(--on-dark); }
.on-dark a:not(.btn):not(.hero-phone) { color: var(--white); }
.page-head { padding-block: calc(var(--header) + 2rem) clamp(2.25rem, 6vw, 4rem); }
.page-head h1 { color: var(--white); margin-bottom: 0.4em; }
.page-head p { color: var(--on-dark); font-size: 1.1875rem; margin: 0; }

/* --- Page Services ------------------------------------------------------ */

.service-nav-bar {
  position: sticky;
  top: 4rem;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  padding-block: 0.75rem;
}
.no-js .service-nav-bar { top: 0; position: relative; }
.service-nav {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.service-nav a {
  display: inline-block;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.service-nav a:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }

.services-list { background: var(--white); }
.service {
  display: grid;
  gap: clamp(2rem, 4vw, 5rem);
  padding: var(--section) var(--gutter);
  border-top: 1px solid var(--line);
  align-items: start;
}
.service:first-child { border-top: 0; }
@media (min-width: 60rem) {
  .service { grid-template-columns: 1.1fr 1fr; }
  .service:nth-child(even) .service-media { order: -1; }
}
.service h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service h2 .icon { color: var(--copper); width: 2.5rem; height: 2.5rem; stroke-width: 1.5; }
.service .lead { font-size: clamp(1.1875rem, 0.6vw + 1rem, 1.5rem); line-height: 1.5; }
.service-media { display: grid; gap: 1rem; }
@media (min-width: 60rem) { .service-media { position: sticky; top: 8.5rem; } }
.service-media figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.service-media .photo-slot figcaption { font-size: 0.9375rem; }
.service-media figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.service-media figure:not(.photo-slot) figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--white);
  background: rgba(11, 42, 48, 0.72);
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
}
.service-media .photo-slot { aspect-ratio: auto; padding: 1.25rem; grid-auto-flow: column; justify-content: start; text-align: left; gap: 0.75rem; }
.service-media .photo-slot figcaption { grid-column: 2; }
.service-media .photo-slot .icon { grid-row: span 2; }

.checks { list-style: none; padding: 0; margin: 1.5rem 0 1.75rem; display: grid; gap: 0.75rem; }
.checks li { display: flex; gap: 0.75rem; align-items: flex-start; }
.checks .icon { color: var(--copper); margin-top: 0.25em; }
.tip {
  background: var(--mineral);
  border-left: 3px solid var(--brass);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  max-width: 62ch;
}
.tip h3 { font-family: var(--text); font-size: 1.125rem; font-weight: 700; font-stretch: 100%; letter-spacing: 0; margin-bottom: 0.3em; }
.tip p { margin: 0; }

/* Tarifs */
.prices {
  width: 100%;
  max-width: 56rem;
  border-collapse: collapse;
  background: var(--white);
  margin-bottom: 1.25rem;
  border-top: 2px solid var(--ink);
}
.prices th, .prices td {
  text-align: left;
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prices th { font-weight: 600; width: 45%; }

/* --- Contact ------------------------------------------------------------ */

.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: clamp(3rem, 6vw, 7rem); } }

.coords { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.5rem; }
.coords li { display: flex; gap: 1rem; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.coords .icon { color: var(--copper); margin-top: 0.15em; width: 1.5rem; height: 1.5rem; }
.coords strong { display: block; }
.coords a { font-weight: 700; font-size: clamp(1.1875rem, 0.6vw + 1rem, 1.5rem); overflow-wrap: anywhere; }

.hours { border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 0.15rem 1.25rem 0.15rem 0; font-weight: 400; }

.form-card {
  background: var(--white);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 30px 60px -30px rgba(11, 42, 48, 0.3);
}
.form-card h2 { font-size: clamp(1.75rem, 2.4vw, 2.5rem); }
.field { display: grid; gap: 0.35rem; margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 36rem) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; }
.req { color: #9b2c1f; }
.hint { font-size: 0.9375rem; color: var(--steel); margin: 0; }
input, select, textarea {
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  width: 100%;
  min-height: 3.1rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #869598;
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s;
}
textarea { min-height: 9rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; border-color: var(--water); }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.form-status { margin: 1rem 0 0; font-weight: 600; color: var(--water); min-height: 1.6em; }
.form-error { color: #9b2c1f; }

/* --- Pages légales ------------------------------------------------------ */

.prose { max-width: 50rem; }
.prose h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2.1rem); margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose dl { margin: 0 0 1em; display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; }
.prose dt { font-weight: 600; }
.prose dd { margin: 0; }
@media (max-width: 36rem) { .prose dl { grid-template-columns: 1fr; } .prose dd { margin-bottom: 0.5rem; } }

/* Les champs à compléter sont surlignés pour être repérés facilement. */
.todo {
  background: #fff1c7;
  color: #5c4300;
  padding: 0.05em 0.35em;
  border-radius: 3px;
  font-weight: 600;
}
.notice {
  border-left: 4px solid var(--brass);
  background: var(--mineral);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  max-width: 50rem;
}
.notice p:last-child { margin: 0; }

/* --- 404 ---------------------------------------------------------------- */

.photo-head.notfound { min-height: 100vh; min-height: 100svh; }
.notfound .wrap > p { margin-bottom: 1rem; }
.notfound .code {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 850;
  font-size: clamp(5rem, 20vw, 14rem);
  line-height: 0.9;
  color: var(--brass);
  margin-bottom: 0.25rem;
}

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

.site-footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2rem;
  font-size: 1rem;
}
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.125rem; color: var(--white); font-stretch: 112%; margin-bottom: 1rem; letter-spacing: 0; }
.footer-brand h2 { margin-bottom: 1.25rem; }
.footer-brand h2 img { width: auto; height: clamp(4.5rem, 6vw, 6rem); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* --- Barre d'appel mobile ----------------------------------------------- */

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
}
.callbar .btn { justify-content: center; width: 100%; }
.callbar .btn-outline { color: var(--on-dark); border-color: rgba(231, 238, 238, 0.6); }
@media (max-width: 47.99rem) { body { padding-bottom: 4.6rem; } }
@media (min-width: 48rem) { .callbar { display: none; } }

/* --- Mouvement ----------------------------------------------------------
   Tout est désactivé si le visiteur a demandé de réduire les animations,
   et rien n'est masqué sans JavaScript. */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Zoom lent sur la photo affichée */
  .slide.is-active img { animation: kenburns 9s ease-out both; }
  @keyframes kenburns {
    from { transform: scale(1.12) translate3d(1.5%, 1%, 0); }
    to { transform: scale(1.02) translate3d(0, 0, 0); }
  }

  /* Arrivée du texte d'accueil, en une seule séquence */
  .hero-content > * { animation: rise 1.1s var(--ease) both; }
  .hero-content > :nth-child(2) { animation-delay: 0.12s; }
  .hero-content > :nth-child(3) { animation-delay: 0.24s; }
  .hero-content > :nth-child(4) { animation-delay: 0.36s; }
  .hero-content > :nth-child(5) { animation-delay: 0.48s; }
  .photo-head .wrap > * { animation: rise 1s var(--ease) both; }
  .photo-head .wrap > :nth-child(2) { animation-delay: 0.12s; }
  .photo-head > picture img { animation: settle 2.4s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
  @keyframes settle { from { transform: scale(1.08); } }

  /* Apparition au défilement (activée par main.js) */
  .js .reveal { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .tiles > .reveal:nth-child(3n + 2), .js .steps > .reveal:nth-child(2), .js .photos > .reveal:nth-child(2), .js .facts > .reveal:nth-child(2) { transition-delay: 0.12s; }
  .js .tiles > .reveal:nth-child(3n + 3), .js .steps > .reveal:nth-child(3), .js .photos > .reveal:nth-child(3), .js .facts > .reveal:nth-child(3) { transition-delay: 0.24s; }

  /* Onde sur les boutons d'appel : trois fois au chargement, puis au survol */
  .ripple::after { animation: ripple 2.4s ease-out 1.4s 3; }
  .ripple:hover::after { animation: ripple 1.4s ease-out infinite; }
  @keyframes ripple {
    0% { box-shadow: 0 0 0 0 rgba(210, 166, 90, 0.55); }
    100% { box-shadow: 0 0 0 18px rgba(210, 166, 90, 0); }
  }
  .shimmer { transition: background-position 1.1s var(--ease), transform 0.3s var(--ease); }
  .shimmer:hover { background-position: 0 0; }
  .hero-phone:hover { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

@media print {
  .site-header, .callbar, .sms-float, .site-footer, .form-card, .slides, .dots { display: none; }
  body { background: #fff; }
  .hero, .photo-head, .contact-band { color: var(--ink); min-height: 0; background: none; }
  .hero::before, .photo-head::before, .contact-band::before { display: none; }
}

/* Logo original d’Alexandre, sur le fond sombre de l’en-tête. */
.brand img.brand-logo { width: 76px; height: 76px; object-fit: contain; border-radius: 50%; }
.footer-brand h2 img.footer-logo { width: 112px; height: 112px; border-radius: 50%; }
@media (max-width: 30rem) { .brand img.brand-logo { width: 60px; height: 60px; } }

/* Pages locales : liens lisibles et actions adaptées au mobile. */
.towns a { color: inherit; text-underline-offset: .2em; }
.local-actions { display:flex; flex-wrap:wrap; gap:1rem; margin:2rem 0; }
.local-footer-nav { padding:1.5rem 0; line-height:2; }
.local-footer-nav a { color:inherit; text-underline-offset:.2em; }
.prose details { border-bottom:1px solid var(--line); padding:1rem 0; }
.prose summary { font-weight:700; cursor:pointer; }
