/* ==========================================================================
   MRT'PLOMB — pages « plombier + ville » (complète societe.css, mêmes couleurs)
   ========================================================================== */

.defs { position: absolute; }
h3 {
  margin: 0 0 8px;
  font-family: var(--f-display); font-weight: 400; font-stretch: 125%;
  font-size: 15px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
}

/* ---------------------------------------------------------------- accroche */
.intro { padding-top: clamp(32px, 6vh, 60px); padding-bottom: clamp(36px, 6vh, 64px); }
.intro .story__lead { margin-bottom: 28px; }
.intro__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.intro__points {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
}
.intro__points li::before { content: "✓"; margin-right: 8px; color: var(--blue-deep); }

/* ---------------------------------------------------------------- les trois métiers */
.offres { padding-bottom: clamp(44px, 8vh, 80px); }
.offres__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offre { display: flex; flex-direction: column; }
.offre .card { aspect-ratio: 16 / 10; }
.offre .card figcaption { left: 20px; bottom: 16px; }
.offre ul { list-style: none; margin: 18px 0 16px; padding: 0; }
.offre li {
  position: relative; padding: 9px 0 9px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px; line-height: 1.4; color: var(--ink-2);
}
.offre li::before {
  content: ""; position: absolute; left: 2px; top: 17px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
}
.offre__lien {
  margin-top: auto;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-deep); text-decoration: none;
}
.offre__lien:hover { text-decoration: underline; text-underline-offset: 4px; }
.offres__grid .offre:nth-child(2) { transition-delay: .08s; }
.offres__grid .offre:nth-child(3) { transition-delay: .16s; }

/* ---------------------------------------------------------------- bloc local */
.local { background: var(--surface); padding: clamp(44px, 8vh, 80px) 0; }
.local__inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.local__zones { margin: 18px 0 14px; color: var(--ink-2); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 14px; border-radius: 100px; background: #fff; border: 1px solid var(--line);
  font-size: 13px;
}
.faits { display: grid; gap: 14px; }
.fait {
  padding: 22px 24px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line);
}
.fait p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------------------------------------------------------------- questions */
.questions { padding-top: clamp(44px, 8vh, 80px); padding-bottom: clamp(44px, 8vh, 80px); }
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 18px 44px 18px 0;
  font-family: var(--f-display); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--blue-deep); color: var(--blue-deep); font-family: var(--f-body); font-size: 16px;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; max-width: 700px; color: var(--ink-2); }

/* ---------------------------------------------------------------- autres villes */
.zones { padding-bottom: clamp(36px, 6vh, 56px); }
.zones ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.zones a {
  display: inline-block; padding: 8px 14px; border-radius: 100px; background: var(--surface);
  font-size: 13px; text-decoration: none; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.zones a:hover { color: var(--blue-deep); background: rgba(143, 208, 236, .22); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .offres__grid { grid-template-columns: 1fr; gap: 32px; }
  .ville .offre .card { aspect-ratio: 16 / 8; border-radius: 16px; }
  .ville .offre .card figcaption { left: 20px; right: 20px; bottom: 16px; gap: 6px; font-size: 18px; letter-spacing: .06em; }
  .local__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ville .hero__card .kicker { font-size: 11px; letter-spacing: .18em; }
  .intro .story__lead { font-size: 18px; line-height: 1.45; margin-bottom: 22px; }
  .ville .offre .card { aspect-ratio: 16 / 6.5; }
  .offre ul { margin: 10px 0 14px; }
  .offre li { padding: 7px 0 7px 20px; }
  .offre li::before { top: 15px; }
  .intro__actions .btn { flex: 1 1 100%; text-align: center; }
  .intro__points { gap: 8px 16px; font-size: 10px; letter-spacing: .14em; }
  .cta__actions .btn { flex: 1 1 100%; }
  .fait { padding: 18px; }
  /* le pop-up « Contactez-nous » ne doit pas cacher le bas de page */
  .ville .foot { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 90px); }
}

/* ---------------------------------------------------------------- titre : les noms de ville longs passent à la ligne */
.ville .title__line > span, .ville .title__accent { white-space: normal; }
.ville .title__line { max-width: 100%; }
@media (max-width: 560px) {
  .ville .title { font-size: clamp(21px, 6.2vw, 34px); }
}

/* ---------------------------------------------------------------- « et ses alentours » sous le titre */
.hero__sous {
  margin: 10px 0 0;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2);
}

/* ---------------------------------------------------------------- carte de la ville, floue, derrière le texte d'accroche
   (fond OpenStreetMap : garder la mention « Carte © OpenStreetMap ») */
.intro { position: relative; overflow: hidden; padding: 0; }
.intro__carte {
  position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); max-width: none;
  object-fit: cover; filter: blur(1.4px) saturate(1.7) contrast(1.18);
}
.intro::after { /* voile blanc : le texte reste lisible, la carte se fond dans la page en haut et en bas */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 78%, #fff 100%),
    linear-gradient(to right, rgba(255, 255, 255, .46) 0%, rgba(255, 255, 255, .4) 55%, rgba(255, 255, 255, .12) 100%);
}
@media (max-width: 900px) {
  .intro::after { background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0) 84%, #fff 100%), rgba(255, 255, 255, .36); }
}
.intro__texte { position: relative; z-index: 1; padding-top: clamp(40px, 7vh, 72px); padding-bottom: clamp(48px, 8vh, 84px); }
.intro__source {
  position: absolute; z-index: 1; right: var(--gutter); bottom: 10px;
  font-size: 10px; color: var(--ink-3); text-decoration: none;
}
.intro__source:hover { color: var(--blue-deep); }

/* texte posé sur la carte : halo blanc pour rester lisible */
.intro .story__lead, .intro__points { text-shadow: 0 0 3px #fff, 0 0 10px #fff, 0 0 22px #fff; }
.intro .story__lead { font-weight: 400; }
.intro__points { color: var(--ink); }
.intro .btn--ghost { background: rgba(255, 255, 255, .82); }

/* ---------------------------------------------------------------- titre du haut : le nom de la ville d'abord
   « Plombier à » en petit au-dessus, la ville en grand, bleu foncé plein (plus de dégradé pâle) */
.ville .hero__card {
  background: rgba(255, 255, 255, .92);
  border-color: #fff;
  padding: clamp(20px, 2.6vw, 32px) clamp(22px, 3vw, 40px);
}
.ville .hero__card .kicker { color: var(--ink-2); margin-bottom: 14px; }
.ville .title { font-size: clamp(38px, 5.4vw, 68px); line-height: 1; }
.ville .title__line { display: block; margin-right: 0; padding-bottom: .1em; }
.ville .title__line:first-child > span {
  font-size: .36em; font-weight: 400; letter-spacing: .22em; color: var(--ink);
}
.ville .title__accent {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: #1c6c9e; font-weight: 500; letter-spacing: .01em;
}
.ville .title__drop { fill: var(--blue); width: .34em; height: .6em; }
.ville .hero__sous { margin-top: 12px; color: var(--ink); letter-spacing: .26em; }
@media (max-width: 560px) {
  /* la ville la plus grande possible, sans jamais dépasser de la carte */
  .ville .title { font-size: min(36px, calc((100vw - 96px) / (var(--n, 12) * .9))); }
  .ville .title__line:first-child > span { font-size: .46em; }
}

/* très petits écrans (320 px) : l'en-tête ne doit pas dépasser */
@media (max-width: 350px) {
  .ville .top { padding-left: 12px; padding-right: 12px; }
  .ville .pill { padding: 8px 10px; font-size: 9px; letter-spacing: .1em; }
  .ville .logo__word { font-size: 12px; letter-spacing: .3em; margin-right: -.3em; }
}
@media (max-width: 350px) {
  .ville h2 { overflow-wrap: break-word; }
  .ville .cta h2 { font-size: 23px; }
}

@media (max-width: 560px) { .ville .cta h2 { font-size: clamp(20px, 6.2vw, 26px); } }
