/*
Theme Name: SEIA serrurerie
Author: SEIA serrurerie
Description: Thème bloc sur mesure de SEIA serrurerie, dépannage en serrurerie à Paris et en Île-de-France. Toutes les pages sont composées de blocs natifs, modifiables dans l'éditeur.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seia-serrurerie
Tags: block-theme, full-site-editing, one-column, custom-logo
*/

/* ==== Feuille de la maquette validée (site/styles.css) ==== */

:root {
  --marine: #052042;
  --marine-survol: #0D3166;
  --teinte: #E8EEF6;
  --fond: #F8FAFB;
  --blanc: #FFFFFF;
  --texte: #6E7173;
  --texte-fonce: #3A3E44;
  --gris-marques: #A6ABAE;
  --trait: #E8ECEF;

  --police: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

  --largeur: 1080px;
  --marge: clamp(20px, 4vw, 40px);
  --rayon: 6px;
  --rayon-carte: 8px;
  --ombre: 0 10px 30px rgba(5, 32, 66, 0.07);
  --ombre-forte: 0 22px 46px rgba(5, 32, 66, 0.13);
  --respiration: clamp(96px, 10vw, 150px);
  --courbe: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

main { overflow-x: clip; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  color: var(--marine);
  font-weight: 700;
  hyphens: none;
  text-wrap: balance;
}

.nw { white-space: nowrap; }

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

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

.chapo { margin-top: 18px; max-width: 30em; }

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

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 4px;
  background: var(--marine);
  color: var(--blanc);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(5, 32, 66, 0.2);
  transition: background-color 0.25s, transform 0.25s var(--courbe), box-shadow 0.25s;
}
.bouton:hover { background: var(--marine-survol); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(5, 32, 66, 0.26); }
.bouton-petit { height: 42px; padding: 0 18px; font-size: 14.5px; box-shadow: 0 6px 16px rgba(5, 32, 66, 0.16); }
.bouton-grand { height: 58px; padding: 0 30px; font-size: 16px; }
.bouton-contour { background: transparent; color: var(--marine); box-shadow: inset 0 0 0 1.5px var(--marine); }
.bouton-contour:hover { background: var(--marine); color: var(--blanc); box-shadow: inset 0 0 0 1.5px var(--marine), 0 10px 22px rgba(5, 32, 66, 0.2); }
.bouton-blanc { background: var(--blanc); color: var(--marine); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.bouton-blanc:hover { background: var(--teinte); }

.icone { width: 18px; height: 18px; fill: currentColor; flex: none; }

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

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 251, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.entete-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 92px;
}

.logo img { height: 48px; width: auto; }

.menu {
  display: flex;
  gap: clamp(22px, 3vw, 44px);
  font-size: 15px;
  color: #85898C;
}
.menu a { position: relative; padding-block: 6px; transition: color 0.2s; }
.menu a:hover { color: var(--marine); }
.menu a[aria-current="page"] { color: var(--marine); font-weight: 500; }

.burger { display: none; }

/* ---------- Badges flottants ---------- */

.badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 14px;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: 0 16px 36px rgba(5, 32, 66, 0.11);
  font-size: 13px;
  line-height: 1.45;
  white-space: nowrap;
  animation: flotte 5s ease-in-out infinite alternate;
}
.badge strong { display: block; color: var(--marine); font-size: 14.5px; font-weight: 500; }

.badge-icone {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teinte);
  color: var(--marine);
}
.badge-icone svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge-icone-plein { background: var(--marine); color: var(--blanc); }

@keyframes flotte {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}

/* Décors relevés sur la référence : cercle pâle et trame de points */
.cercle {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: var(--teinte);
}
.points {
  position: absolute;
  z-index: -1;
  width: 104px;
  height: 34px;
  background: radial-gradient(circle, var(--marine) 1.5px, transparent 1.8px) 0 0 / 8.5px 8.5px;
  opacity: 0.32;
}
.filigrane {
  position: absolute;
  fill: none;
  stroke: var(--marine);
  stroke-width: 2;
  opacity: 0.06;
  pointer-events: none;
}

/* Effet au survol des photos */
.tuile, .cadre, .carte-photo {
  overflow: hidden;
  border-radius: var(--rayon);
  background: #E9EDF0;
}
.tuile img, .cadre img, .carte-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--courbe), filter 0.8s var(--courbe);
}
.tuile:hover img, .cadre:hover img, .carte:hover .carte-photo img {
  transform: scale(1.07);
  filter: saturate(1.08);
}

/* ---------- 1 · Ouverture ---------- */

.hero {
  position: relative;
  overflow-x: clip;
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(80px, 9vw, 130px);
}

.hero-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 4.3vw, 62px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 10.5em;
}
.hero-texte p {
  margin: 26px 0 42px;
  max-width: 28em;
  font-size: 17.5px;
}

.mosaique {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
}
.mosaique-rang { display: grid; gap: 16px; }
.mosaique-rang-1 { grid-template-columns: 43fr 57fr; aspect-ratio: 433 / 176; }
.mosaique-rang-2 { grid-template-columns: 58fr 42fr; aspect-ratio: 433 / 213; margin-top: 16px; }
.mosaique .cercle { width: 300px; height: 300px; right: -78px; bottom: 26px; }
.mosaique .points { right: 46px; bottom: -40px; }
.mosaique .filigrane { width: 96px; left: -96px; top: -66px; }

.badge-dispo { top: 13%; right: -76px; }
.badge-prix { top: 64%; left: -74px; animation-delay: -2.5s; }

.cles {
  position: absolute;
  z-index: 2;
  right: -64px;
  bottom: -64px;
  width: clamp(190px, 18vw, 260px);
  filter: drop-shadow(0 18px 22px rgba(5, 32, 66, 0.18));
  pointer-events: none;
}

/* ---------- 2 · Marques ---------- */

.marques {
  padding-top: 24px;
  text-align: center;
}
.marques p { font-size: 14.5px; color: #9C9FA1; }
.marques ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 880px;
  margin: 30px auto 0;
  color: var(--gris-marques);
  font-size: 24px;
  line-height: 1;
}
.marques li { transition: color 0.3s; cursor: default; }
.marques li:hover { color: var(--marine); }
.marques li:nth-child(1) { font-weight: 700; letter-spacing: 0.14em; font-size: 20px; }
.marques li:nth-child(2) { font-weight: 500; letter-spacing: -0.01em; }
.marques li:nth-child(3) { font-weight: 700; letter-spacing: 0.04em; }
.marques li:nth-child(4) { font-weight: 400; letter-spacing: 0.02em; font-size: 25px; }
.marques li:nth-child(5) { font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Titres de section ---------- */

.engagement h2, .interventions h2, .zone h2, .etapes h2, .tarifs h2, .faq h2, .bloc h2 {
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.3;
  max-width: 14em;
}

/* ---------- 3 · Engagement ---------- */

.engagement {
  padding-top: var(--respiration);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(56px, 8vw, 116px);
  align-items: center;
}
.engagement-photo { position: relative; }
.engagement-photo .cadre { aspect-ratio: 508 / 445; }
.engagement-photo .cadre img { object-position: 50% 22%; }

.bulles {
  position: absolute;
  right: -48px;
  bottom: 12%;
  display: grid;
  gap: 14px;
  justify-items: start;
  pointer-events: none;
}
.bulle {
  padding: 11px 18px;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: 0 14px 30px rgba(5, 32, 66, 0.12);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--texte-fonce);
  white-space: nowrap;
}
.bulle:nth-child(1) { margin-left: 0; }
.bulle:nth-child(2) { margin-left: 26px; }
.bulle:nth-child(3) { margin-left: 10px; }

.engagement-texte .chapo { margin-bottom: 32px; }

/* ---------- Accordéon (relevé sur la référence) ---------- */

.accordeon { display: grid; gap: 14px; }
.accordeon details {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  transition: box-shadow 0.3s;
}
.accordeon details:hover { box-shadow: 0 14px 34px rgba(5, 32, 66, 0.1); }
.accordeon summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 52px 17px 20px;
  list-style: none;
  cursor: pointer;
  color: var(--marine);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
.accordeon summary::-webkit-details-marker { display: none; }
.accordeon summary::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid #8C9095;
  border-radius: 50%;
  transition: background-color 0.25s, border-color 0.25s;
}
.accordeon details[open] summary::before { background: var(--marine); border-color: var(--marine); }
.accordeon summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #A3A7AB;
  font-size: 20px;
  font-weight: 400;
}
.accordeon details[open] summary::after { content: "−"; }
.accordeon details p {
  padding: 0 24px 20px 50px;
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- 4 · Interventions ---------- */

.interventions { padding-top: var(--respiration); }

.tete-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.tete-section p { margin-top: 14px; max-width: 34em; }

.cartes {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.carte {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 24px;
  background: var(--blanc);
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre);
  transition: transform 0.4s var(--courbe), box-shadow 0.4s var(--courbe);
}
.carte:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }
.carte-photo { aspect-ratio: 4 / 3; }
.carte h3 { margin: 20px 10px 8px; font-size: 18.5px; line-height: 1.35; }
.carte p { margin: 0 10px; font-size: 14.5px; line-height: 1.7; flex: 1; }
.lien {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 10px 0;
  color: var(--marine);
  font-weight: 500;
  font-size: 15px;
}
.lien span { transition: transform 0.3s var(--courbe); }
.carte:hover .lien span, .lien:hover span { transform: translateX(5px); }

/* ---------- 5 · Zone ---------- */

.zone {
  padding-top: var(--respiration);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(56px, 8vw, 110px);
  align-items: center;
}
.departements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 38px;
}
.departements li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: 0 6px 18px rgba(5, 32, 66, 0.05);
  font-size: 14.5px;
  line-height: 1.4;
  transition: transform 0.3s var(--courbe), box-shadow 0.3s;
}
.departements li:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.departements b { min-width: 28px; color: var(--marine); font-size: 19px; font-weight: 700; }

.zone-photo { position: relative; isolation: isolate; }
.zone-photo .cadre { aspect-ratio: 1.12; }
.zone-photo .cercle { width: 260px; height: 260px; right: -64px; top: -54px; }
.zone-photo .points { left: 36px; bottom: -40px; }
.badge-zone { left: -56px; bottom: 14%; }

/* ---------- 6 · Déroulé ---------- */

.etapes { padding-top: var(--respiration); }
.etapes ol {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.etape {
  padding: 34px 30px 32px;
  background: var(--blanc);
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre);
  transition: transform 0.4s var(--courbe), box-shadow 0.4s var(--courbe);
}
.etape:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }
.etape-numero {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--marine);
  color: var(--blanc);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(5, 32, 66, 0.2);
}
.etape h3 { margin: 24px 0 10px; font-size: 19px; }
.etape p { font-size: 15px; line-height: 1.7; }

/* ---------- 7 · Tarifs ---------- */

.tarifs {
  padding-top: var(--respiration);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}
.tarifs-texte .chapo { margin-bottom: 36px; }
.tarifs-carte {
  padding: 8px 32px;
  background: var(--blanc);
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre);
}
.table-prix { width: 100%; border-collapse: collapse; }
.table-prix th, .table-prix td {
  padding: 19px 0;
  border-bottom: 1px solid var(--trait);
  vertical-align: baseline;
}
.table-prix tr:last-child th, .table-prix tr:last-child td { border-bottom: 0; }
.table-prix th { text-align: left; font-weight: 400; color: var(--texte-fonce); font-size: 16px; }
.table-prix td { text-align: right; white-space: nowrap; padding-left: 24px; color: var(--marine); font-weight: 700; font-size: 19px; }

/* ---------- 8 · FAQ ---------- */

.faq {
  padding-top: var(--respiration);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}
.faq-appel {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 14px 24px 14px 14px;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  font-size: 13.5px;
  line-height: 1.45;
}
.faq-appel a { display: block; color: var(--marine); font-size: 18px; font-weight: 700; }
.faq-appel .badge-icone svg { fill: currentColor; stroke: none; width: 18px; height: 18px; }

/* ---------- 9 · Appel ---------- */

.appel {
  position: relative;
  overflow: hidden;
  margin-top: var(--respiration);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(40px, 5vw, 64px) clamp(28px, 6vw, 72px);
  background: var(--marine);
  border-radius: var(--rayon-carte);
  color: rgba(255, 255, 255, 0.74);
}
.appel h2 { color: var(--blanc); font-size: clamp(28px, 2.8vw, 38px); line-height: 1.25; }
.appel p { margin-top: 10px; font-size: 17px; }
.appel .filigrane { width: 170px; right: 26%; top: -36px; stroke: var(--blanc); opacity: 0.07; }
.appel .points-clairs {
  z-index: 0;
  left: auto;
  right: 24px;
  bottom: 18px;
  background: radial-gradient(circle, var(--blanc) 1.5px, transparent 1.8px) 0 0 / 8.5px 8.5px;
  opacity: 0.18;
}
.appel > div, .appel > .bouton { position: relative; z-index: 1; }
.appel .icone { width: 20px; height: 20px; }

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

.pied {
  margin-top: var(--respiration);
  background: var(--marine);
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  padding-top: 72px;
}
.pied-grille {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
}
.pied-marque img { width: 180px; }
.pied-marque p { margin-top: 20px; max-width: 22em; }
.pied h4 { color: var(--blanc); font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.pied li + li { margin-top: 6px; }
.pied a { transition: color 0.2s; }
.pied a:hover { color: var(--blanc); }
.pied-bas {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  padding-block: 22px;
  font-size: 14px;
}
.pied-bas::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--marge);
  right: var(--marge);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.appel-mobile { display: none; }

/* ---------- Tablette ---------- */

@media (max-width: 1180px) {
  .badge-dispo { right: -24px; }
  .cles { display: none; }
  .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bulles { right: -24px; }
}

/* ---------- En-tête replié (tablette et mobile) ---------- */

@media (max-width: 1024px) {
  .entete-barre { height: 72px; }
  .logo img { height: 40px; }
  .menu { display: none; }

  .burger {
    display: grid;
    gap: 5px;
    place-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--marine); transition: transform 0.25s, opacity 0.25s; }
  .entete.ouvert .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .entete.ouvert .burger span:nth-child(2) { opacity: 0; }
  .entete.ouvert .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .entete.ouvert .menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: var(--marge);
    right: var(--marge);
    gap: 0;
    padding: 8px 20px;
    background: var(--blanc);
    border-radius: var(--rayon-carte);
    box-shadow: var(--ombre-forte);
    font-size: 17px;
  }
  .entete.ouvert .menu a { padding-block: 13px; border-bottom: 1px solid var(--trait); }
  .entete.ouvert .menu a:last-child { border-bottom: 0; }
  .entete-barre > .bouton { margin-left: auto; }
}

/* ---------- Mobile ---------- */

@media (max-width: 880px) {
  body { padding-bottom: 84px; }

  .entete-barre > .bouton { display: none; }

  .hero-grille,
  .engagement,
  .zone,
  .tarifs,
  .faq { grid-template-columns: 1fr; }

  .hero h1 { font-size: clamp(36px, 9.5vw, 48px); }
  .hero-texte p { font-size: 16.5px; margin: 20px 0 30px; }
  .hero-texte .bouton { width: 100%; }
  .mosaique { max-width: 100%; margin: 12px 0 0; }
  .mosaique-rang { gap: 10px; }
  .mosaique-rang-2 { margin-top: 10px; }
  .mosaique .filigrane { display: none; }
  .mosaique .cercle { width: 200px; height: 200px; right: -60px; }
  .badge { padding: 10px 14px 10px 10px; font-size: 12px; }
  .badge strong { font-size: 13px; }
  .badge-icone { width: 34px; height: 34px; }
  .badge-icone svg { width: 18px; height: 18px; }
  .badge-dispo { top: -22px; right: 10px; }
  .badge-prix { top: auto; bottom: -26px; left: 10px; }

  .marques { padding-top: 64px; }
  .marques ul { flex-wrap: wrap; justify-content: center; gap: 18px 34px; font-size: 20px; }
  .marques li:nth-child(1) { font-size: 17px; }
  .marques li:nth-child(4) { font-size: 21px; }

  .engagement { gap: 72px; }
  .bulles { right: 12px; bottom: 16px; gap: 10px; }
  .bulle { font-size: 12.5px; padding: 9px 14px; }

  .tete-section { flex-direction: column; align-items: flex-start; }
  .zone-photo { order: 2; }
  .badge-zone { left: 10px; bottom: -26px; }
  .zone-photo .cercle { width: 180px; height: 180px; right: -40px; top: -40px; }

  .etapes ol { grid-template-columns: 1fr; }

  .tarifs-carte { padding: 4px 20px; }
  .table-prix th { font-size: 15px; }
  .table-prix td { font-size: 17px; }

  .appel { flex-direction: column; align-items: flex-start; }
  .appel .bouton { width: 100%; }

  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-marque { grid-column: 1 / -1; }

  .appel-mobile {
    display: flex;
    position: fixed;
    z-index: 60;
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 54px;
    box-shadow: 0 12px 30px rgba(5, 32, 66, 0.35);
  }
}

@media (max-width: 560px) {
  .cartes { grid-template-columns: 1fr; }
  .departements li { padding: 11px 12px; gap: 10px; font-size: 13.5px; }
  .pied-grille { grid-template-columns: 1fr; }
}

/* ==========================================================
   Pages internes — mêmes composants que l'accueil
   ========================================================== */

/* ---------- En-tête de page ---------- */

.page-tete {
  padding-top: clamp(32px, 4vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}
.page-tete h1 {
  font-size: clamp(36px, 3.7vw, 54px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 12em;
}
.page-tete-texte > p { margin-top: 22px; max-width: 30em; font-size: 17px; }
.page-tete-texte .boutons { margin-top: 36px; }
.boutons { display: flex; flex-wrap: wrap; gap: 14px; }

.page-tete-simple { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }

.page-tete-visuel {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
}
.page-tete-visuel .cadre { aspect-ratio: 1.22; }
.page-tete-visuel .cadre-portrait { aspect-ratio: 1.05; }
.page-tete-visuel .cadre-portrait img { object-position: 50% 20%; }
.page-tete-visuel .cercle { width: 280px; height: 280px; right: -72px; top: -54px; }
.page-tete-visuel .points { left: 40px; bottom: -40px; }
.page-tete-visuel .badge { left: -62px; bottom: 14%; }

.fil {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #95999C;
}
.fil a { transition: color 0.2s; }
.fil a:hover { color: var(--marine); }
.fil [aria-current] { color: var(--marine); }

.bloc { padding-top: var(--respiration); }

.badge-icone svg.plein { fill: currentColor; stroke: none; width: 18px; height: 18px; }

/* ---------- Zone : arrondissements ---------- */

.arrondissements {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.arrondissements li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: 0 6px 18px rgba(5, 32, 66, 0.05);
  font-size: 13.5px;
  line-height: 1.3;
  transition: transform 0.3s var(--courbe), box-shadow 0.3s;
}
.arrondissements li:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.arrondissements b { color: var(--marine); font-size: 19px; font-weight: 700; }
.arrondissements sup { font-size: 0.6em; margin-left: 1px; }

/* ---------- Zone : départements ---------- */

.couronne-titre {
  margin-top: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--texte);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.departements-cartes {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.departements-cartes-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.carte-departement {
  padding: 28px 26px 30px;
  background: var(--blanc);
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre);
  transition: transform 0.4s var(--courbe), box-shadow 0.4s var(--courbe);
}
.carte-departement:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }
.carte-departement .numero { display: block; color: var(--marine); font-size: 40px; font-weight: 700; line-height: 1; }
.carte-departement h4 { margin: 12px 0 10px; color: var(--marine); font-size: 18px; font-weight: 500; }
.carte-departement p { font-size: 14.5px; line-height: 1.7; }

/* ---------- Cartes d'information ---------- */

.infos {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.info {
  padding: 32px 30px;
  background: var(--blanc);
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre);
  transition: transform 0.4s var(--courbe), box-shadow 0.4s var(--courbe);
}
.infos .info:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }
.info .badge-icone { width: 48px; height: 48px; }
.info .badge-icone svg { width: 23px; height: 23px; }
.info h3 { margin: 22px 0 10px; font-size: 19px; }
.info p { font-size: 15px; line-height: 1.7; }

/* ---------- Tarifs ---------- */

.tarifs-groupes {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.groupe-tarifs {
  padding: 28px 32px 10px;
  background: var(--blanc);
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre);
  transition: box-shadow 0.4s var(--courbe);
}
.groupe-tarifs:hover { box-shadow: var(--ombre-forte); }
.groupe-tarifs-tete {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
}
.groupe-tarifs-tete h3 { font-size: 20px; }
.groupe-tarifs .table-prix th, .groupe-tarifs .table-prix td { padding-block: 16px; }
.groupe-tarifs .table-prix th { font-size: 15.5px; }
.groupe-tarifs .table-prix td { font-size: 18px; }

.compris {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.compris .info h3 { margin-top: 0; }
.liste-coche { display: grid; gap: 12px; margin-top: 18px; }
.liste-coche li {
  position: relative;
  padding-left: 34px;
  font-size: 15.5px;
  line-height: 1.55;
}
.liste-coche li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--marine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.liste-coche-vide li::before {
  background: var(--teinte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052042' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.note {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--teinte);
  border-radius: var(--rayon);
  color: var(--texte-fonce);
  font-size: 15px;
}

/* ---------- FAQ ---------- */

.page-tete-simple .faq-appel { margin-top: 0; }

.faq-page {
  padding-top: clamp(64px, 7vw, 100px);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.faq-sommaire {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 6px;
}
.faq-sommaire a {
  padding: 12px 18px;
  border-radius: var(--rayon);
  font-size: 15px;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.faq-sommaire a:hover, .faq-sommaire a.actif {
  background: var(--blanc);
  color: var(--marine);
  box-shadow: var(--ombre);
}
.faq-sommaire a.actif { font-weight: 500; }
.faq-groupe { scroll-margin-top: 116px; }
.faq-groupe + .faq-groupe { margin-top: 56px; }
.faq-groupe h2 { margin-bottom: 20px; font-size: 24px; }
.accordeon details p a { color: var(--marine); text-decoration: underline; text-underline-offset: 3px; }

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(32px, 4vw, 48px);
  align-items: start;
  scroll-margin-top: 80px;
}
.coordonnees { display: grid; gap: 14px; }
.coordonnee {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  transition: transform 0.3s var(--courbe), box-shadow 0.3s;
}
a.coordonnee:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.coordonnee small { display: block; font-size: 13px; line-height: 1.4; }
.coordonnee strong { display: block; color: var(--marine); font-size: 16.5px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }

.formulaire {
  padding: clamp(28px, 4vw, 44px);
  background: var(--blanc);
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre);
}
.formulaire h2 { font-size: 26px; line-height: 1.3; max-width: none; }
.formulaire-intro { margin-top: 8px; font-size: 15px; }
.champs {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.champ { display: grid; gap: 8px; }
.champ-large { grid-column: 1 / -1; }
.champ label { color: var(--texte-fonce); font-size: 14px; font-weight: 500; line-height: 1.3; }
.champ input, .champ select, .champ textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--trait);
  border-radius: 4px;
  background: var(--fond);
  color: var(--texte-fonce);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.champ textarea { min-height: 140px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none;
  border-color: var(--marine);
  background: var(--blanc);
  box-shadow: 0 0 0 3px rgba(5, 32, 66, 0.08);
}
.consentement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  cursor: pointer;
}
.consentement input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--marine); }
.consentement a, .urgence a { color: var(--marine); text-decoration: underline; text-underline-offset: 3px; }
.formulaire-bas {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 20px 28px;
  flex-wrap: wrap;
}
.formulaire-bas .bouton { border: 0; cursor: pointer; font-family: inherit; }
.urgence { flex: 1 1 220px; font-size: 13.5px; line-height: 1.6; }
.formulaire-merci {
  display: none;
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--teinte);
  border-radius: var(--rayon);
  color: var(--marine);
  font-weight: 500;
}
.formulaire.envoye .formulaire-merci { display: block; }

/* ---------- Mentions légales ---------- */

.mentions { padding-top: 48px; }
.prose {
  max-width: 880px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--blanc);
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre);
}
.prose h2 { margin-top: 44px; font-size: 22px; line-height: 1.3; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 12px; font-size: 15.5px; }
.prose a { color: var(--marine); text-decoration: underline; text-underline-offset: 3px; }
.prose dl {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  font-size: 15.5px;
}
.prose dt, .prose dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--trait); }
.prose dt { color: var(--texte-fonce); font-weight: 500; }
.a-completer {
  padding: 1px 8px;
  border: 1px dashed rgba(5, 32, 66, 0.35);
  border-radius: 4px;
  background: var(--teinte);
  color: var(--marine);
  font-size: 0.94em;
}

/* ---------- Zone : carte ----------
   Composition reprise d'une référence fournie par le client (contour, pointillés
   depuis la ville principale, points cerclés, pastille), transposée à sa demande
   dans les couleurs du site : région blanche ombrée sur le fond, marine pour Paris.
   Le dessin (contour réel de l'Île-de-France + pointillés) est généré par
   scripts/carte.rb ; les noms de villes sont du texte, positionnés en % du plan. */

.carte-zone {
  position: relative;
  margin-top: 28px;
  overflow: hidden;
}
.carte-plan {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 620;
  background: url("assets/img/carte-idf.svg") center / 100% 100% no-repeat;
}

.ville {
  position: absolute;
  margin: 0;
  padding-left: 20px;
  transform: translateY(-50%);
  color: var(--texte);
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: default;
  transition: color 0.25s;
}
/* le point */
.ville::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--marine);
  box-shadow: 0 0 0 1.5px var(--blanc);
}
/* l'anneau */
.ville::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  box-sizing: border-box;
  width: 21px;
  height: 21px;
  margin: -10.5px 0 0 -10.5px;
  border: 3px solid var(--teinte);
  border-radius: 50%;
  transition: border-color 0.25s, transform 0.25s var(--courbe);
}
.ville:hover { color: var(--marine); }
.ville:hover::after { border-color: #CFDAE8; transform: scale(1.25); }

/* étiquette à gauche du point */
.ville-gauche { padding: 0 20px 0 0; transform: translate(-100%, -50%); }
.ville-gauche::before { left: auto; right: 0; margin: -3.5px -3.5px 0 0; }
.ville-gauche::after { left: auto; right: 0; margin: -10.5px -10.5px 0 0; }

/* la ville principale : pastille marine et point blanc */
.ville-principale { padding-right: 21px; color: var(--marine); font-weight: 500; }
.ville-principale::before {
  width: 24px;
  height: 24px;
  margin: -12px -12px 0 0;
  background: radial-gradient(circle, var(--blanc) 0 3.4px, var(--marine) 4px);
  box-shadow: 0 6px 14px rgba(5, 32, 66, 0.28);
}
.ville-principale::after { content: none; }
.ville-principale:hover::before { background: radial-gradient(circle, var(--blanc) 0 3.4px, var(--marine-survol) 4px); }

.ville-paris      { left: 45.48%; top: 36.04%; }
.ville-cergy      { left: 37.17%; top: 21.76%; }
.ville-mantes     { left: 26.37%; top: 25.38%; }
.ville-versailles { left: 38.79%; top: 40.15%; }
.ville-evry       { left: 48.15%; top: 54.12%; }
.ville-melun      { left: 54.77%; top: 61.24%; }
.ville-meaux      { left: 61.31%; top: 27.82%; }
.ville-provins    { left: 73.98%; top: 59.69%; }

/* Petits écrans : le plan garde une taille lisible et se recadre sur Paris ;
   les villes les plus éloignées sortent du cadre et sont masquées. */
@media (max-width: 720px) {
  .carte-zone { margin-inline: calc(-1 * var(--marge)); }
  .carte-plan { width: 640px; left: 50%; transform: translateX(-50%); }
  .ville { font-size: 13px; }
  .ville-loin { display: none; }
}

/* ---------- Pages internes : tablette ---------- */

@media (max-width: 1180px) {
  .arrondissements { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .departements-cartes-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-tete-visuel .badge { left: -24px; }
}

/* ---------- Pages internes : mobile ---------- */

@media (max-width: 880px) {
  .page-tete,
  .page-tete-simple { grid-template-columns: 1fr; gap: 56px; }
  .page-tete-simple { gap: 28px; }
  .page-tete-texte .boutons .bouton { flex: 1 1 100%; }
  .page-tete-visuel { max-width: 100%; margin: 0; }
  .page-tete-visuel .cercle { width: 200px; height: 200px; right: -50px; top: -40px; }
  .page-tete-visuel .badge { left: 10px; bottom: -26px; }

  .arrondissements { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .arrondissements li { flex-direction: column; gap: 2px; padding: 12px 14px; }
  .departements-cartes, .departements-cartes-4, .infos, .tarifs-groupes, .compris { grid-template-columns: 1fr; }
  .groupe-tarifs { padding: 22px 20px 6px; }

  .faq-page { grid-template-columns: 1fr; gap: 32px; }
  .faq-sommaire {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--marge));
    padding: 4px var(--marge) 12px;
    scrollbar-width: none;
  }
  .faq-sommaire a { flex: none; background: var(--blanc); box-shadow: 0 4px 12px rgba(5, 32, 66, 0.05); }

  .contact { grid-template-columns: 1fr; }
  .champs { grid-template-columns: 1fr; }
  .formulaire-bas .bouton { width: 100%; }

  .prose dl { grid-template-columns: 1fr; }
  .prose dt { padding-bottom: 0; border-bottom: 0; }
}

@media (max-width: 340px) {
  .arrondissements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

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

/* ==========================================================================
   Adaptations au balisage de WordPress (blocs natifs)
   --------------------------------------------------------------------------
   La feuille de la maquette ci-dessus est reprise telle quelle. Ces règles
   transposent ses composants sur le DOM produit par Gutenberg, à spécificité
   supérieure : le CSS des blocs est imprimé APRÈS celui du thème.
   ========================================================================== */

/* ---------- Socle ---------- */

/* Espacement automatique : coupé à la source dans theme.json (blockGap 0px),
   et ici en filet de sécurité À SPÉCIFICITÉ NULLE — jamais en .wp-block-group > *,
   qui écraserait toutes les marges des composants. */
:where(.wp-block-group) > :where(*),
:where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image,
figure.wp-block-table { margin: 0; }

.wp-site-blocks { overflow-x: clip; }

/* ---------- Boutons (core/button) ---------- */

/* La classe du bouton atterrit sur le conteneur : on le neutralise,
   et le style de la maquette passe sur le lien. */
.wp-block-buttons.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.wp-block-button.bouton {
  display: inline-flex;
  height: auto;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  transition: none;
}
.wp-block-button.bouton:hover { background: none; box-shadow: none; transform: none; }

.wp-block-button.bouton > .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 4px;
  background: var(--marine);
  color: var(--blanc);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(5, 32, 66, 0.2);
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--courbe), box-shadow 0.25s;
}
.wp-block-button.bouton > .wp-block-button__link:hover {
  background: var(--marine-survol);
  color: var(--blanc);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(5, 32, 66, 0.26);
}
.wp-block-button.bouton-petit > .wp-block-button__link { height: 42px; padding: 0 18px; font-size: 14.5px; box-shadow: 0 6px 16px rgba(5, 32, 66, 0.16); }
.wp-block-button.bouton-grand > .wp-block-button__link { height: 58px; padding: 0 30px; font-size: 16px; }
.wp-block-button.bouton-contour > .wp-block-button__link { background: transparent; color: var(--marine); box-shadow: inset 0 0 0 1.5px var(--marine); }
.wp-block-button.bouton-contour > .wp-block-button__link:hover { background: var(--marine); color: var(--blanc); box-shadow: inset 0 0 0 1.5px var(--marine), 0 10px 22px rgba(5, 32, 66, 0.2); }
.wp-block-button.bouton-blanc > .wp-block-button__link { background: var(--blanc); color: var(--marine); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.wp-block-button.bouton-blanc > .wp-block-button__link:hover { background: var(--teinte); color: var(--marine); }

/* Pictogramme téléphone : masque CSS, aucun SVG dans le contenu. */
.wp-block-button.avec-tel > .wp-block-button__link::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--masque-tel) center / contain no-repeat;
  mask: var(--masque-tel) center / contain no-repeat;
}
.wp-block-button.bouton-grand.avec-tel > .wp-block-button__link::before { width: 20px; height: 20px; }

/* ---------- Images (core/image) ---------- */

.wp-block-image.tuile img,
.wp-block-image.cadre img,
.wp-block-image.carte-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Pictogrammes en pseudo-élément ---------- */

.a-icone::before {
  content: "";
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  background: var(--icone) center / contain no-repeat;
}

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

/* Le conteneur collant est la template part : .entete est déjà à sa hauteur. */
header.site-entete {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 50;
}
.site-entete .entete { position: relative; top: auto; }

.wp-block-site-logo.logo { line-height: 0; }
.wp-block-site-logo.logo img { height: 48px; width: auto; }

.wp-block-navigation.menu { font-size: 15px; color: #85898C; }
.wp-block-navigation.menu .wp-block-navigation__container { gap: clamp(22px, 3vw, 44px); }
.wp-block-navigation.menu .wp-block-navigation-item__content { padding-block: 6px; color: inherit; transition: color 0.2s; }
.wp-block-navigation.menu .wp-block-navigation-item__content:hover,
.wp-block-navigation.menu .current-menu-item > .wp-block-navigation-item__content { color: var(--marine); }
.wp-block-navigation.menu .current-menu-item > .wp-block-navigation-item__content { font-weight: 500; }

.wp-block-navigation.menu .wp-block-navigation__responsive-container-open,
.wp-block-navigation.menu .wp-block-navigation__responsive-container-close { color: var(--marine); }
.wp-block-navigation.menu .wp-block-navigation__responsive-container-open svg,
.wp-block-navigation.menu .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }

/* Le panneau mobile s'ouvre blanc sur blanc sans ceci : le CSS du bloc est
   imprimé après cette feuille. Seul endroit du thème où !important se justifie. */
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--blanc) !important;
  color: var(--marine) !important;
  padding: 24px var(--marge) !important;
}
.wp-block-navigation.menu .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px; align-items: stretch; }
.wp-block-navigation.menu .is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; align-items: stretch; }
.wp-block-navigation.menu .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--trait); }
.wp-block-navigation.menu .is-menu-open .wp-block-navigation-item__content { padding-block: 16px; font-size: 22px; font-weight: 500; color: var(--marine); }

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

.pied-marque .wp-block-site-logo { line-height: 0; }
.wp-block-site-logo.pied-logo img { width: 180px; height: auto; filter: brightness(0) invert(1); }
.pied-bas a:hover { color: var(--blanc); }

.wp-block-buttons.appel-mobile { display: none; }

/* ---------- 1 · Ouverture ---------- */

/* Trousseau qui dépasse du bord : décor, donc fond CSS et non bloc image. */
.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: -64px;
  bottom: -64px;
  width: clamp(190px, 18vw, 260px);
  aspect-ratio: 520 / 222;
  background: url("assets/img/cles-detourees.webp") center / contain no-repeat;
  filter: drop-shadow(0 18px 22px rgba(5, 32, 66, 0.18));
  pointer-events: none;
}

/* Décors de la mosaïque : cercle pâle, trame de points, cadenas en filigrane. */
.mosaique::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  right: -78px;
  bottom: 26px;
  border-radius: 50%;
  background: var(--teinte);
}
.mosaique::after,
.zone-photo::after,
.page-tete-visuel::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 104px;
  height: 34px;
  background: radial-gradient(circle, var(--marine) 1.5px, transparent 1.8px) 0 0 / 8.5px 8.5px;
  opacity: 0.32;
}
.mosaique::after { right: 46px; bottom: -40px; }
.mosaique-rang-1 { position: relative; }
.mosaique-rang-1::before {
  content: "";
  position: absolute;
  width: 96px;
  height: 120px;
  left: -96px;
  top: -66px;
  background: var(--marine);
  opacity: 0.06;
  -webkit-mask: var(--masque-cadenas) center / contain no-repeat;
  mask: var(--masque-cadenas) center / contain no-repeat;
  pointer-events: none;
}

/* ---------- 3 · Cartes d'intervention ---------- */

.carte p.lien { flex: none; margin: 18px 10px 0; font-size: 15px; }
.lien a { display: inline-flex; align-items: center; gap: 8px; color: var(--marine); font-size: 15px; font-weight: 500; }
.lien a::after { content: "→"; display: inline-block; transition: transform 0.3s var(--courbe); }
.carte:hover .lien a::after,
.lien a:hover::after { transform: translateX(5px); }

/* ---------- Zone ---------- */

.departements strong { min-width: 28px; color: var(--marine); font-size: 19px; font-weight: 700; }
.zone-photo::before,
.page-tete-visuel::before {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: var(--teinte);
}
.zone-photo::before { width: 260px; height: 260px; right: -64px; top: -54px; }
.zone-photo::after { left: 36px; bottom: -40px; }

/* ---------- Étapes ---------- */

.etapes-liste {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.etape p.etape-numero { font-size: 18px; }

/* WordPress remet à zéro la marge haute du premier enfant d’un groupe
   (:root :where(.is-layout-flow) > :first-child, spécificité 0,2,0). */
.enveloppe > .wp-block-group.appel { margin-top: var(--respiration); }

/* ---------- Tableaux de prix (core/table) ---------- */

.wp-block-table.table-prix,
.wp-block-table.table-infos { overflow: visible; }
.wp-block-table.table-prix table,
.wp-block-table.table-infos table { width: 100%; border-collapse: collapse; }
.wp-block-table.table-prix td {
  padding: 19px 0;
  border: 0;
  border-bottom: 1px solid var(--trait);
  vertical-align: baseline;
}
.wp-block-table.table-prix tr:last-child td { border-bottom: 0; }
.wp-block-table.table-prix td:first-child { text-align: left; white-space: normal; padding-left: 0; color: var(--texte-fonce); font-weight: 400; font-size: 16px; }
.wp-block-table.table-prix td:last-child { text-align: right; white-space: nowrap; padding-left: 24px; color: var(--marine); font-weight: 700; font-size: 19px; }
h3.groupe-tarifs-tete { font-size: 20px; }
.groupe-tarifs .wp-block-table.table-prix td { padding-block: 16px; }
.groupe-tarifs .wp-block-table.table-prix td:first-child { font-size: 15.5px; }
.groupe-tarifs .wp-block-table.table-prix td:last-child { font-size: 18px; }

.wp-block-table.table-infos { margin-top: 16px; }
.wp-block-table.table-infos td {
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--trait);
  font-size: 15.5px;
  vertical-align: top;
}
.wp-block-table.table-infos td:first-child { width: 230px; padding-right: 24px; color: var(--texte-fonce); font-weight: 500; }

/* ---------- Pages internes ---------- */

.page-tete-texte > p.fil { margin: 0 0 18px; max-width: none; font-size: 14px; color: #95999C; }
.fil strong { color: var(--marine); font-weight: 400; }
.fil a { color: #95999C; transition: color 0.2s; }
.fil a:hover { color: var(--marine); }
.page-tete-texte .wp-block-buttons { margin-top: 36px; }

.page-tete-visuel::before { width: 280px; height: 280px; right: -72px; top: -54px; }
.page-tete-visuel::after { left: 40px; bottom: -40px; }

.arrondissements strong { color: var(--marine); font-size: 19px; font-weight: 700; }

.info.a-icone::before { width: 48px; height: 48px; margin-bottom: 22px; }
.info.a-icone h3 { margin-top: 0; }

.coordonnee:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.coordonnee p { font-size: 13px; line-height: 1.4; }
.coordonnee strong { display: block; color: var(--marine); font-size: 16.5px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }

.faq-sommaire a { display: block; }
.faq-groupe h2 { scroll-margin-top: 116px; }
.contact { scroll-margin-top: 80px; }

/* Mentions légales : les mentions en gras sont les champs restant à compléter. */
.prose strong {
  padding: 1px 8px;
  border: 1px dashed rgba(5, 32, 66, 0.35);
  border-radius: 4px;
  background: var(--teinte);
  color: var(--marine);
  font-weight: 400;
  font-size: 0.94em;
}

/* ---------- Formulaire (Contact Form 7) ---------- */

.formulaire .wpcf7 { margin-top: 0; }
.formulaire .wpcf7-form-control-wrap,
.formulaire .wpcf7-form-control-wrap > input,
.formulaire .wpcf7-form-control-wrap > select,
.formulaire .wpcf7-form-control-wrap > textarea { display: block; }
/* Pas de pastille de chargement à côté du bouton : le bouton s’estompe pendant l’envoi. */
.formulaire .wpcf7-spinner { display: none; }
.formulaire .wpcf7 form.submitting .bouton-cf7 { opacity: 0.6; cursor: progress; }
.formulaire .consentement .wpcf7-list-item { margin: 0; }
.formulaire .consentement label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.formulaire .bouton-cf7 {
  height: 58px;
  padding: 0 30px;
  border: 0;
  border-radius: 4px;
  background: var(--marine);
  color: var(--blanc);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(5, 32, 66, 0.2);
  transition: background-color 0.25s, transform 0.25s var(--courbe), box-shadow 0.25s;
}
.formulaire .bouton-cf7:hover { background: var(--marine-survol); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(5, 32, 66, 0.26); }
.formulaire .wpcf7 form .wpcf7-response-output {
  margin: 22px 0 0;
  padding: 16px 20px;
  border: 0 !important;
  border-radius: var(--rayon);
  background: var(--teinte);
  color: var(--marine);
  font-weight: 500;
}
.formulaire .wpcf7-not-valid { border-color: #B42318; }
.formulaire .wpcf7-not-valid-tip { margin-top: 6px; color: #B42318; font-size: 13px; }

/* ---------- Encart d'appel ---------- */

.appel::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 212px;
  right: 26%;
  top: -36px;
  background: var(--blanc);
  opacity: 0.07;
  -webkit-mask: var(--masque-cadenas) center / contain no-repeat;
  mask: var(--masque-cadenas) center / contain no-repeat;
  pointer-events: none;
}
.appel::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: 104px;
  height: 34px;
  background: radial-gradient(circle, var(--blanc) 1.5px, transparent 1.8px) 0 0 / 8.5px 8.5px;
  opacity: 0.18;
  pointer-events: none;
}
.appel > .wp-block-group,
.appel > .wp-block-buttons { position: relative; z-index: 1; }

/* ---------- Tablette ---------- */

@media (max-width: 1180px) {
  .hero::after { display: none; }
}

/* ---------- En-tête replié (tablette et mobile) ---------- */

@media (max-width: 1024px) {
  /* Le menu natif passe en panneau sous 1024 px, comme la maquette (et non 600 px). */
  .wp-block-navigation.menu .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .wp-block-navigation.menu .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
  .wp-block-navigation.menu { order: 3; }
  .wp-block-buttons.entete-bouton { margin-left: auto; }
  .wp-block-site-logo.logo img { height: 40px; }
}

/* ---------- Mobile ---------- */

@media (max-width: 880px) {
  .wp-block-buttons.entete-bouton { display: none; }

  .hero-texte .wp-block-buttons,
  .hero-texte .wp-block-button,
  .hero-texte .wp-block-button__link,
  .page-tete-texte .wp-block-button,
  .page-tete-texte .wp-block-button__link,
  .appel .wp-block-buttons,
  .appel .wp-block-button,
  .appel .wp-block-button__link { width: 100%; }
  .page-tete-texte .wp-block-button { flex: 1 1 100%; }

  .mosaique::before { width: 200px; height: 200px; right: -60px; }
  .mosaique-rang-1::before { display: none; }
  .badge.a-icone::before { width: 34px; height: 34px; }
  .zone-photo::before { width: 180px; height: 180px; right: -40px; top: -40px; }
  .page-tete-visuel::before { width: 200px; height: 200px; right: -50px; top: -40px; }

  .etapes-liste { grid-template-columns: 1fr; }

  .wp-block-table.table-prix td:first-child { font-size: 15px; }
  .wp-block-table.table-prix td:last-child { font-size: 17px; }
  .wp-block-table.table-infos td { display: block; width: auto; }
  .wp-block-table.table-infos td:first-child { width: auto; padding-bottom: 0; border-bottom: 0; }

  .faq-sommaire p { flex: none; }

  .formulaire .bouton-cf7 { width: 100%; }

  .wp-block-buttons.appel-mobile {
    display: flex;
    position: fixed;
    z-index: 60;
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: auto;
    box-shadow: none;
  }
  .wp-block-buttons.appel-mobile .wp-block-button,
  .wp-block-buttons.appel-mobile .wp-block-button__link { width: 100%; }
  .wp-block-buttons.appel-mobile .wp-block-button__link { height: 54px; box-shadow: 0 12px 30px rgba(5, 32, 66, 0.35); }
}

/* ---------- Pictogrammes (générés par scripts/theme.rb) ---------- */

:root {
  --masque-tel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' stroke='none' d='M6.6 3.5 9 3l1.6 4-1.9 1.4a12 12 0 0 0 6.9 6.9l1.4-1.9 4 1.6-.5 2.4a2 2 0 0 1-2 1.6A16.5 16.5 0 0 1 3 5.5a2 2 0 0 1 1.6-2z'/%3E%3C/svg%3E");
  --masque-cadenas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 80' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='6' y='32' width='52' height='44' rx='9'/%3E%3Cpath d='M17 32V20a15 15 0 0 1 30 0v12'/%3E%3Ccircle cx='32' cy='50' r='5'/%3E%3Cpath d='M30 54h4l2 10h-8z'/%3E%3C/svg%3E");
}
.icone-horloge { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23E8EEF6'/%3E%3Cg transform='translate(9.5 9.5) scale(.875)' fill='none' stroke='%23052042' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2.5 2M5 4 2.5 6.5M19 4l2.5 2.5'/%3E%3C/g%3E%3C/svg%3E"); }
.icone-plein.icone-horloge { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23052042'/%3E%3Cg transform='translate(9.5 9.5) scale(.875)' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2.5 2M5 4 2.5 6.5M19 4l2.5 2.5'/%3E%3C/g%3E%3C/svg%3E"); }
.icone-bouclier { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23E8EEF6'/%3E%3Cg transform='translate(9.5 9.5) scale(.875)' fill='none' stroke='%23052042' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5.5c0 4.3 3 8 7 9.5 4-1.5 7-5.2 7-9.5V6z'/%3E%3Cpath d='m9 12 2.2 2.2L15.5 10'/%3E%3C/g%3E%3C/svg%3E"); }
.icone-plein.icone-bouclier { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23052042'/%3E%3Cg transform='translate(9.5 9.5) scale(.875)' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5.5c0 4.3 3 8 7 9.5 4-1.5 7-5.2 7-9.5V6z'/%3E%3Cpath d='m9 12 2.2 2.2L15.5 10'/%3E%3C/g%3E%3C/svg%3E"); }
.icone-repere { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23E8EEF6'/%3E%3Cg transform='translate(9.5 9.5) scale(.875)' fill='none' stroke='%23052042' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/g%3E%3C/svg%3E"); }
.icone-plein.icone-repere { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23052042'/%3E%3Cg transform='translate(9.5 9.5) scale(.875)' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/g%3E%3C/svg%3E"); }
.icone-tel { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23E8EEF6'/%3E%3Cg transform='translate(9.5 9.5) scale(.875)' fill='none' stroke='%23052042' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath fill='%23052042' stroke='none' d='M6.6 3.5 9 3l1.6 4-1.9 1.4a12 12 0 0 0 6.9 6.9l1.4-1.9 4 1.6-.5 2.4a2 2 0 0 1-2 1.6A16.5 16.5 0 0 1 3 5.5a2 2 0 0 1 1.6-2z'/%3E%3C/g%3E%3C/svg%3E"); }
.icone-plein.icone-tel { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23052042'/%3E%3Cg transform='translate(9.5 9.5) scale(.875)' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath fill='%23FFFFFF' stroke='none' d='M6.6 3.5 9 3l1.6 4-1.9 1.4a12 12 0 0 0 6.9 6.9l1.4-1.9 4 1.6-.5 2.4a2 2 0 0 1-2 1.6A16.5 16.5 0 0 1 3 5.5a2 2 0 0 1 1.6-2z'/%3E%3C/g%3E%3C/svg%3E"); }
.icone-mail { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23E8EEF6'/%3E%3Cg transform='translate(9.5 9.5) scale(.875)' fill='none' stroke='%23052042' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%3E%3C/g%3E%3C/svg%3E"); }
.icone-plein.icone-mail { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23052042'/%3E%3Cg transform='translate(9.5 9.5) scale(.875)' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%3E%3C/g%3E%3C/svg%3E"); }
.icone-porte { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23E8EEF6'/%3E%3Cg transform='translate(9.5 9.5) scale(.875)' fill='none' stroke='%23052042' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V4a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v17'/%3E%3Cpath d='M2 21h20M13.5 12.5h.01'/%3E%3C/g%3E%3C/svg%3E"); }
.icone-plein.icone-porte { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23052042'/%3E%3Cg transform='translate(9.5 9.5) scale(.875)' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V4a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v17'/%3E%3Cpath d='M2 21h20M13.5 12.5h.01'/%3E%3C/g%3E%3C/svg%3E"); }
.icone-cle { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23E8EEF6'/%3E%3Cg transform='translate(9.5 9.5) scale(.875)' fill='none' stroke='%23052042' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='m10.8 12.2 8.7-8.7M17 6l2.5 2.5M14.5 8.5 16.5 10.5'/%3E%3C/g%3E%3C/svg%3E"); }
.icone-plein.icone-cle { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23052042'/%3E%3Cg transform='translate(9.5 9.5) scale(.875)' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='m10.8 12.2 8.7-8.7M17 6l2.5 2.5M14.5 8.5 16.5 10.5'/%3E%3C/g%3E%3C/svg%3E"); }
