/* ==========================================================================
   Socle StarLead 1.5.0 — Bibliothèque de sections (STRUCTURE SEULEMENT)
   L'apparence vient du site : couleurs, polices et tailles par variables CSS.
   Aucune forme n'exige de JavaScript ; aucune n'anime quoi que ce soit (les effets
   vivent dans modules/effets/, 3 au plus par site). Fiches : docs/BIBLIOTHEQUE.md.
   Variables communes (valeurs par défaut entre parenthèses) :
     --sb-marge  marge latérale de page (clamp(1.25rem, 5vw, 5rem))
     --sb-gap    espace entre éléments (clamp(1rem, 2.4vw, 2rem))
     --sb-filet  couleur des filets (currentColor à 20 %)
     --sb-max    largeur maximale du contenu (1440px)
   ========================================================================== */
.sb { --_m: var(--sb-marge, clamp(1.25rem, 5vw, 5rem)); --_g: var(--sb-gap, clamp(1rem, 2.4vw, 2rem));
      --_f: var(--sb-filet, color-mix(in srgb, currentColor 20%, transparent)); box-sizing: border-box; }
.sb *, .sb *::before, .sb *::after { box-sizing: border-box; }
.sb img { display: block; max-width: 100%; height: auto; }

/* 1. Manifeste : texte seul plein écran ------------------------------------ */
.sb-manifeste { min-height: min(100svh, 62rem); display: grid; align-content: center; padding: clamp(4rem, 12vh, 9rem) var(--_m); }
.sb-manifeste-txt { max-width: var(--sb-mesure, 22ch); font-size: var(--sb-manifeste-taille, clamp(1.9rem, 5.4vw, 5.6rem)); line-height: 1.08; margin: 0; text-wrap: balance; }
.sb-manifeste-signe { margin: clamp(1.5rem, 4vh, 3rem) 0 0; }
.sb-manifeste--centre { justify-items: center; text-align: center; }

/* 2. Image qui déborde : l'image sort de la grille jusqu'au bord de l'écran -- */
.sb-deborde { display: grid; grid-template-columns: var(--_m) minmax(0, 1fr) minmax(0, 1fr) var(--_m); column-gap: var(--_g); align-items: end; padding-block: clamp(3rem, 8vw, 7rem); }
.sb-deborde-img { grid-column: 3 / 5; margin: 0; }
.sb-deborde-img img { width: 100%; aspect-ratio: var(--sb-ratio, 4 / 5); object-fit: cover; }
.sb-deborde-txt { grid-column: 2 / 3; grid-row: 1; padding-bottom: clamp(0rem, 4vw, 4rem); }
.sb-deborde--gauche .sb-deborde-img { grid-column: 1 / 3; }
.sb-deborde--gauche .sb-deborde-txt { grid-column: 3 / 4; }
@media (max-width: 759px) {
  .sb-deborde { grid-template-columns: var(--_m) minmax(0, 1fr) var(--_m); row-gap: var(--_g); }
  .sb-deborde-img, .sb-deborde--gauche .sb-deborde-img { grid-column: 1 / -1; grid-row: 1; }
  .sb-deborde-txt, .sb-deborde--gauche .sb-deborde-txt { grid-column: 2 / 3; grid-row: 2; padding: 0; }
}

/* 3. Défilement horizontal (épinglé avec l'effet « epingle ») -------------- */
/* Sans l'effet, sans JS ou sur GSM : rangée qui glisse au doigt, aimantée. */
.sb-horizontal { padding-block: clamp(3rem, 8vw, 6rem); --_c: var(--sb-carte, min(78vw, 22rem)); }
.sb-horizontal-tete { padding-inline: var(--_m); margin-bottom: var(--_g); }
.sb-horizontal-piste { display: flex; gap: var(--_g); margin: 0; padding: 0 var(--_m) .75rem; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--_m); scrollbar-width: thin; }
.sb-horizontal-piste > * { flex: 0 0 var(--_c); scroll-snap-align: start; min-width: 0; }
.sb-horizontal-piste:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* 4. Récit collant : le texte défile, l'image reste et change ------------- */
/* GSM, mouvement réduit : chaque temps porte sa propre image (aucune image fixe). */
.sb-recit { padding: clamp(3rem, 8vw, 6rem) var(--_m); }
.sb-recit-pas { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 7vw, 4rem); }
.sb-recit-pas > li { min-width: 0; }
.sb-recit-pas figure { margin: 0 0 1.25rem; }
.sb-recit-pas figure img { width: 100%; aspect-ratio: var(--sb-ratio, 4 / 3); object-fit: cover; }
.sb-recit-scene { display: none; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .sb-recit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(2rem, 6vw, 6rem); align-items: start; }
  .sb-recit--image-gauche { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .sb-recit--image-gauche .sb-recit-scene { order: -1; }
  .sb-recit-pas { gap: 0; }
  .sb-recit-pas > li { min-height: var(--sb-recit-pas, 78vh); display: flex; flex-direction: column; justify-content: center; }
  .sb-recit-pas figure { display: none; }
  .sb-recit-scene { display: block; position: sticky; top: var(--sb-haut, 0px); height: calc(100vh - var(--sb-haut, 0px)); margin: 0; }
  .sb-recit-scene > * { position: absolute; inset: var(--sb-recit-cadre, 8vh 0); margin: 0; opacity: 0; }
  .sb-recit-scene > :first-child, .sb-recit-scene > .on { opacity: 1; }
  .sb-recit-scene[data-actif] > :first-child:not(.on) { opacity: 0; }
  .sb-recit-scene img { width: 100%; height: 100%; object-fit: cover; }
}

/* 5. Liste numérotée géante ---------------------------------------------- */
.sb-liste-geante { list-style: none; margin: 0; padding: 0; counter-reset: sb-n; }
.sb-liste-geante > li { counter-increment: sb-n; display: grid; grid-template-columns: minmax(4.5rem, 1fr) minmax(0, 3fr); column-gap: var(--_g);
  align-items: baseline; padding-block: clamp(1.25rem, 3vw, 2.5rem); border-top: 1px solid var(--_f); }
.sb-liste-geante > li::before { content: var(--sb-n-prefixe, "") counter(sb-n); font-size: var(--sb-n-taille, clamp(4rem, 13vw, 12rem)); line-height: .8; font-variant-numeric: lining-nums tabular-nums; }
.sb-liste-geante > li > * { grid-column: 2; min-width: 0; }
@media (max-width: 559px) { .sb-liste-geante > li { grid-template-columns: minmax(0, 1fr); } .sb-liste-geante > li > * { grid-column: 1; } }

/* 6. Citation pleine page ------------------------------------------------ */
.sb-citation { min-height: min(86svh, 56rem); display: grid; align-content: center; padding: clamp(4rem, 10vw, 8rem) var(--_m); margin: 0; }
.sb-citation blockquote { margin: 0; max-width: var(--sb-mesure, 24ch); font-size: var(--sb-citation-taille, clamp(1.8rem, 4.6vw, 4.6rem)); line-height: 1.1; text-wrap: balance; }
.sb-citation blockquote p { margin: 0; }
.sb-citation figcaption { margin-top: clamp(1.25rem, 3vw, 2.5rem); }

/* 7. Mosaïque serrée ------------------------------------------------------ */
/* Ordinateur : grille dense ; GSM : galerie qui glisse au doigt. */
.sb-mosaique { list-style: none; margin: 0; padding: 0 var(--_m); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: var(--sb-rang, clamp(7rem, 13vw, 13rem)); grid-auto-flow: dense; gap: var(--sb-joint, 4px); }
.sb-mosaique > * { margin: 0; min-width: 0; grid-column: span 2; position: relative; overflow: hidden; }
.sb-mosaique .sb-m-l { grid-column: span 3; grid-row: span 2; }
.sb-mosaique .sb-m-h { grid-row: span 2; }
.sb-mosaique .sb-m-w { grid-column: span 4; }
.sb-mosaique .sb-m-d { grid-column: span 3; }
.sb-mosaique img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 759px) {
  .sb-mosaique { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--_m); padding-bottom: .5rem; scrollbar-width: thin; }
  .sb-mosaique > *, .sb-mosaique .sb-m-l, .sb-mosaique .sb-m-w, .sb-mosaique .sb-m-d { flex: 0 0 78vw; height: 104vw; max-height: 30rem; scroll-snap-align: start; }
  .sb-mosaique .sb-m-h { flex-basis: 60vw; }
}

/* 8. Notice à rubriques --------------------------------------------------- */
.sb-notice { margin: 0; display: grid; grid-template-columns: minmax(7rem, var(--sb-rubrique, 13rem)) minmax(0, 1fr); }
.sb-notice > div { display: contents; }
.sb-notice dt, .sb-notice dd { margin: 0; padding-block: clamp(.9rem, 2vw, 1.4rem); border-top: 1px solid var(--_f); }
.sb-notice dt { padding-right: var(--_g); }
@media (max-width: 559px) {
  .sb-notice { grid-template-columns: minmax(0, 1fr); }
  .sb-notice dd { border-top: 0; padding-top: .25rem; }
}

/* 9. Bandeau d'informations utiles ---------------------------------------- */
.sb-infos { list-style: none; margin: 0; padding: 0 var(--_m); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  border-block: 1px solid var(--_f); }
.sb-infos > li { padding: clamp(.9rem, 2vw, 1.4rem) var(--_g) clamp(.9rem, 2vw, 1.4rem) 0; min-width: 0; }
.sb-infos > li + li { padding-left: var(--_g); border-left: 1px solid var(--_f); }
.sb-infos b, .sb-infos strong { display: block; }
@media (max-width: 759px) {
  .sb-infos { grid-auto-columns: minmax(62%, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--_m); scrollbar-width: none; }
  .sb-infos > li { scroll-snap-align: start; }
}

/* Utilitaire : masqué à l'écran, lu par les lecteurs d'écran. */
.sb-lu { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Modèle 404 dessinée (bibliotheque/404-modele.html) -------------------- */
.sb-404 { min-height: 70svh; display: grid; align-content: center; justify-items: start; gap: 1rem; padding: clamp(4rem, 10vw, 8rem) var(--_m); }
.sb-404-dessin { width: min(100%, var(--sb-404-dessin, 22rem)); height: auto; }
.sb-404-liens { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Socle StarLead 1.5.0 — effets : micro-interactions de base (incluses dès qu'un effet est activé).
   Jamais sur la barre d'appel ni sur un bouton d'action : uniquement sur les classes .fx-lien et .fx-devoile.
   Mouvement réduit ou écran tactile : rien ne bouge. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fx-lien { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .32s cubic-bezier(.2, .7, .2, 1); }
  .fx-lien:hover, .fx-lien:focus-visible { background-size: 100% 1px; }
  .fx-devoile { overflow: hidden; }
  .fx-devoile img { transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .6s cubic-bezier(.2, .7, .2, 1); }
  .fx-devoile:hover img, :is(a, li, article):hover > .fx-devoile img, :is(a, li, article):focus-within > .fx-devoile img { transform: scale(1.035); filter: var(--fx-devoile-filtre, none); }
}

/* Effet « epingle » : défilement horizontal épinglé (bibliothèque, forme 3), en CSS natif (animations liées au défilement).
   Seulement : ordinateur (≥ 1024 px), mouvement non réduit, navigateur compatible. Sinon : la rangée qui glisse au doigt.
   La hauteur réservée vient du nombre de cartes (style="--sb-n: 5") : aucun décalage de mise en page au chargement. */
@supports (animation-timeline: view()) {
  @media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .sb-horizontal[data-fx-epingle] { --_c: var(--sb-carte-epingle, clamp(18rem, 27vw, 26rem));
      --_course: max(0px, calc(var(--sb-n, 4) * var(--_c) + (var(--sb-n, 4) - 1) * var(--_g) + 2 * var(--_m) - 100vw));
      height: calc(100vh + var(--_course)); padding: 0; view-timeline: --fx-epingle block; view-timeline-inset: 0px; }
    /* view-timeline-inset: 0 — sinon le scroll-padding-top du site (en-tête fixe) décale le départ de la course */
    .sb-horizontal[data-fx-epingle] .sb-horizontal-cadre { position: sticky; top: 0; height: 100vh; overflow: hidden;
      display: flex; flex-direction: column; justify-content: center; padding-block: var(--sb-haut, 4.5rem) 3vh; }
    .sb-horizontal[data-fx-epingle] .sb-horizontal-piste { overflow: visible; scroll-snap-type: none; width: max-content; min-height: 0; flex: 0 1 auto;
      animation: fx-epingle linear both; animation-timeline: --fx-epingle; animation-range: contain 0% contain 100%; }
    .sb-horizontal[data-fx-epingle] .sb-horizontal-piste > * { flex-basis: var(--_c); }
  }
}
@keyframes fx-epingle { from { transform: none; } to { transform: translateX(calc(-1 * var(--_course))); } }

/* Socle StarLead 1.5.0 — impression (incluse par défaut ; "impression": false dans modules pour la retirer).
   Ce qui s'imprime : le contenu. Ce qui ne s'imprime pas : navigation, barres, panneaux, bandeaux de cookies.
   Le site ajoute ses règles (ex. en-tête de fiche) dans son propre @media print. */
@media print {
  @page { margin: 16mm 14mm; }
  html, body { background: #fff !important; color: #000 !important; }
  body * { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }
  nav, .socle-barre, .socle-cookies, .socle-rdv, .socle-form-box, [data-imprimer-non], video, iframe, .evitement { display: none !important; }
  main a[href^="http"]:not([href*="starlead"])::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  dl > div, figure, tr, li, blockquote { break-inside: avoid; page-break-inside: avoid; }
  img { max-width: 100% !important; }
  .sb-recit-scene { display: none !important; }
  .sb-recit-pas figure { display: block !important; }
  .sb-horizontal-piste, .sb-mosaique, .sb-infos { display: block !important; overflow: visible !important; transform: none !important; height: auto !important; }
  .sb-horizontal[data-fx-epingle] { height: auto !important; }
  .sb-horizontal-cadre { position: static !important; height: auto !important; }
}

/* Socle StarLead — CMS v1 : structure minimale des blocs publics (le site en fixe l'apparence). */
.cms-actus{list-style:none;margin:0;padding:0;display:grid;gap:22px;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}
.cms-actu article{display:flex;flex-direction:column;height:100%}
.cms-actu-img img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:var(--socle-rayon,14px)}
.cms-actu-txt time{display:block;font-size:14px;opacity:.75;margin:12px 0 4px}
.cms-actu-txt h2,.cms-actu-txt h3{margin:0 0 6px;font-size:1.2rem;line-height:1.3}
.cms-actu-txt a{color:inherit}
.cms-actu-txt p{margin:0}
.cms-actu-photo{margin:18px 0 24px}
.cms-actu-photo img{display:block;width:100%;height:auto;border-radius:var(--socle-rayon,14px)}
.cms-actu-corps{max-width:68ch}
.cms-galerie{list-style:none;margin:0;padding:0;display:grid;gap:12px;grid-template-columns:repeat(2,1fr)}
@media (min-width:760px){.cms-galerie{grid-template-columns:repeat(3,1fr);gap:16px}}
.cms-galerie figure{margin:0}
.cms-galerie a{display:block;border-radius:var(--socle-rayon,14px);overflow:hidden}
.cms-galerie img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;transition:transform .3s ease}
.cms-galerie a:hover img{transform:scale(1.03)}
.cms-galerie figcaption{font-size:14px;margin-top:6px;opacity:.85}
.cms-zoom{padding:0;border:0;background:transparent;max-width:100vw;max-height:100vh;width:100%;height:100%}
.cms-zoom::backdrop{background:rgba(10,10,12,.92)}
.cms-zoom figure{margin:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:56px 12px 24px}
.cms-zoom img{max-width:100%;max-height:calc(100vh - 130px);width:auto;height:auto;border-radius:8px}
.cms-zoom figcaption{color:#fff;margin-top:12px;text-align:center}
.cms-zoom button{position:fixed;width:52px;height:52px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:30px;line-height:1;cursor:pointer}
.cms-zoom button:focus-visible{outline:3px solid #fff}
.cms-zoom-x{top:12px;right:12px}
.cms-zoom-p{left:12px;top:50%;transform:translateY(-50%)}
.cms-zoom-n{right:12px;top:50%;transform:translateY(-50%)}
.cms-zoom.seule .cms-zoom-p,.cms-zoom.seule .cms-zoom-n{display:none}
@media (prefers-reduced-motion:reduce){.cms-galerie img{transition:none}}
/* v1.1 : réalisations et prix */
.cms-realisations{list-style:none;margin:0;padding:0;display:grid;gap:22px;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}
.cms-realisation article{display:flex;flex-direction:column;height:100%}
.cms-realisation-img img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--socle-rayon,14px)}
.cms-lieu{font-size:14px;opacity:.8;margin:12px 0 4px}
.cms-realisation-txt h2,.cms-realisation-txt h3{margin:0 0 6px;font-size:1.2rem;line-height:1.3}
.cms-realisation-txt a{color:inherit}
.cms-realisation-txt p{margin:0}
.cms-realisation-corps{max-width:68ch;margin:6px 0 22px}
.cms-realisation-photos li:first-child{grid-column:1/-1}
.cms-realisation-photos li:first-child img{aspect-ratio:auto}
.cms-prix-lignes{list-style:none;margin:0;padding:0}
.cms-prix-lignes li{margin:4px 0}
.cms-prix-montant{font-size:1.15em}
.cms-prix-precision{opacity:.8}
.cms-condition{margin:6px 0 0;font-size:.95em;opacity:.85}
.cms-dispo-non{display:inline-block;margin:0 0 6px;padding:2px 10px;border-radius:999px;background:#F2EBD9;color:#6D5310;font-size:.9em;font-weight:600}
.cms-catalogue{list-style:none;margin:0;padding:0;display:grid;gap:18px;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}
.cms-fiche-img img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--socle-rayon,14px)}
.cms-fiche-txt h2,.cms-fiche-txt h3{margin:12px 0 6px;font-size:1.15rem}
.cms-tableau{overflow-x:auto;margin:0 0 28px}
.cms-tableau-prix{width:100%;border-collapse:collapse;min-width:480px}
.cms-tableau-prix th,.cms-tableau-prix td{padding:12px 10px;border-bottom:1px solid rgba(0,0,0,.12);text-align:left;vertical-align:top}
.cms-tableau-prix thead th{font-size:.9em;opacity:.8}
@media (max-width:560px){.cms-tableau-prix{min-width:0}.cms-tableau-prix thead{display:none}.cms-tableau-prix tr{display:block;padding:10px 0;border-bottom:1px solid rgba(0,0,0,.12)}.cms-tableau-prix th,.cms-tableau-prix td{display:block;padding:2px 0;border:0}}
/* v1.3 : listes limitées à 6, archives paginées, services, albums, horaires, fermetures, bandeau d'annonce */
.cms-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cms-tout-voir{margin:20px 0 0}
.cms-tout-voir a{display:inline-flex;align-items:center;min-height:44px;font-weight:700}
.cms-pages{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:28px 0 0}
.cms-pages ol{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0}
.cms-pages a,.cms-pages span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;border-radius:10px;border:1px solid var(--socle-bordure,rgba(0,0,0,.18));text-decoration:none;font-weight:600}
.cms-pages [aria-current]{background:var(--socle-accent,#222);color:var(--socle-accent-texte,#fff);border-color:transparent}
.cms-services{list-style:none;margin:0;padding:0;display:grid;gap:20px;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}
.cms-service article{display:flex;flex-direction:column;height:100%}
.cms-service-img img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:var(--socle-rayon,14px)}
.cms-service-txt h2,.cms-service-txt h3{margin:12px 0 6px;font-size:1.2rem;line-height:1.3}
.cms-service-txt a{color:inherit}
.cms-service-txt p{margin:0 0 6px}
.cms-service-photo{margin:18px 0 24px}
.cms-service-photo img{display:block;width:100%;height:auto;border-radius:var(--socle-rayon,14px)}
.cms-service-corps{max-width:68ch}
.cms-albums{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}
.cms-albums a{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--socle-bordure,rgba(0,0,0,.18));text-decoration:none;font-weight:600;color:inherit}
.cms-albums a span{opacity:.6;font-weight:500}
.cms-albums [aria-current]{background:var(--socle-accent,#222);color:var(--socle-accent-texte,#fff);border-color:transparent}
.cms-horaires{border-collapse:collapse;width:100%;max-width:440px}
.cms-horaires th,.cms-horaires td{padding:10px 8px;border-bottom:1px solid rgba(0,0,0,.1);text-align:left;font-weight:400}
.cms-horaires th{font-weight:600;width:1%;white-space:nowrap;padding-right:20px}
.cms-plage{white-space:nowrap}
@media (max-width:380px){.cms-horaires th,.cms-horaires td{padding:9px 5px}.cms-horaires th{padding-right:12px}}
.cms-horaires th span{font-size:.8em;font-weight:600;opacity:.75}
.cms-aujourdhui th,.cms-aujourdhui td{background:rgba(0,0,0,.04)}
.cms-fermetures{list-style:none;margin:0;padding:0}
.cms-fermetures li{margin:0 0 8px}
.cms-bandeau{padding:10px 16px;text-align:center;background:var(--socle-fond-sombre,#1C1B18);color:var(--socle-texte-clair,#fff);font-weight:600}
.cms-bandeau p{margin:0 auto;max-width:72ch}
.cms-horaires-jour span{font-weight:700}

/* Démo « Faîte, couvreur » (StarLead) — direction « On monte, vous voyez tout ».
   Ardoise + zinc + un seul signal : le jaune fluo des gilets de chantier. Bevellier (titres) + Plein (texte), Fontshare, ITF FFL. */
@font-face { font-family: "Bevellier"; src: url("/assets/fonts/Bevellier-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plein"; src: url("/assets/fonts/Plein-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ardoise: #161E24; --ardoise-2: #1F2930; --ardoise-3: #2B3740;
  --zinc: #E8EBE7; --zinc-2: #D3D9D6; --gris: #8E999E; --gris-f: #5B676D;
  --fluo: #D4F53C; --fluo-f: #3E4A00;
  --titre: "Bevellier", "Arial Narrow", sans-serif; --texte: "Plein", system-ui, sans-serif;
  --m: clamp(1.25rem, 5vw, 5rem); --g: clamp(1rem, 2.4vw, 2rem);
  --sb-marge: var(--m); --sb-gap: var(--g); --sb-haut: 4rem; --sb-filet: rgba(232, 235, 231, .18);
  --sb-carte-epingle: clamp(18rem, 30vw, 27rem);
  --haut: 4rem;
  --socle-rayon: 0;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--ardoise); color: var(--zinc); font: 400 1.0625rem/1.55 var(--texte); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fluo); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; line-height: .92; letter-spacing: -.005em; margin: 0; text-transform: uppercase; font-variation-settings: "wght" 800; }
h2 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--gris); }
.evitement { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--fluo); color: var(--ardoise); padding: .6rem 1rem; }
.evitement:focus { left: 1rem; }
.lu { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bandeau démonstration + annonce du CMS */
.demo { margin: 0; padding: .4rem var(--m); background: #0D1216; color: var(--gris); font-size: .8125rem; text-align: center; }
.demo b { color: var(--zinc); font-weight: 600; }
.cms-bandeau, .annonce { background: var(--fluo); color: var(--ardoise); }
.cms-bandeau p, .annonce p { margin: 0; padding: .55rem var(--m); font-weight: 600; font-size: .95rem; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1.5rem; height: var(--haut); padding: 0 var(--m); background: var(--ardoise); border-bottom: 1px solid rgba(232,235,231,.08); }
.marque { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; }
.m-mot { font: 800 2rem/1 var(--titre); letter-spacing: .02em; }
.m-i { color: var(--fluo); }
.m-sous { font-size: .8125rem; color: var(--gris); letter-spacing: .04em; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a[aria-current="page"] { color: var(--fluo); }
.nav a:hover { text-decoration: underline; }
.nav-visite { border: 1.5px solid var(--zinc); padding: .45rem .9rem; }
.tel { text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tel span { font-weight: 400; color: var(--zinc-2); margin-right: .25rem; }
.menu-btn { display: none; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: .7rem; min-height: 3.25rem; padding: .85rem 1.4rem; background: var(--fluo); color: var(--ardoise); font: 700 1.05rem/1.1 var(--texte); text-decoration: none; border: 0; cursor: pointer; }
.btn i { font-style: normal; font-size: 1.2em; }
.btn:hover { background: #E6FF5A; }
.lien { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--fluo); padding-bottom: .1rem; }
.s-suite { margin: 2rem 0 0; }

/* ---------- Héros : le toit annoté ---------- */
/* Les repères sont placés en % de la photo : la boîte garde toujours le format exact de l'image (16:9, ou 3:4 sur GSM), jamais rognée. */
.hero { position: relative; }
.toit { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.toit-ph { position: absolute; inset: 0; }
.toit picture, .toit picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.toit::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14,19,23,.62) 0%, rgba(14,19,23,.35) 38%, rgba(14,19,23,0) 58%); pointer-events: none; }
.hero h1 { position: absolute; z-index: 2; left: var(--m); top: 8%; font-size: clamp(3rem, 7.6vw, 9.2rem); line-height: .86; max-width: 58%; }
.hero h1 span { display: block; }
.hero h1 span:first-child { color: var(--fluo); }
.hero-chapo { font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.45; }
.hero-fuite { margin: 1rem 0 0; font-size: .95rem; }
.hero-fuite a { font-weight: 700; font-variant-numeric: tabular-nums; }
.repere, .constat b { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--fluo); color: var(--ardoise); font: 800 1.15rem/1 var(--titre); box-shadow: 0 0 0 5px rgba(212,245,60,.28); }
.repere { position: absolute; z-index: 3; transform: translate(-50%, -50%); }
.r1 { left: 54.6%; top: 78.5%; } .r2 { left: 84.6%; top: 70.4%; } .r3 { left: 56.7%; top: 17.8%; } .r4 { left: 63.3%; top: 83%; }
.constat-titre { margin: 0; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--zinc-2); }
.constat ol { list-style: none; margin: 0; padding: 0; }
.constat li span strong { display: block; font-weight: 700; color: var(--zinc); }
.constat li span { color: var(--zinc-2); }
.constat li i { font: 700 .6875rem/1.4 var(--texte); font-style: normal; text-transform: uppercase; letter-spacing: .06em; padding: .1rem .45rem; background: var(--ardoise-3); color: var(--zinc); }
.constat .c1 i { background: var(--fluo); color: var(--ardoise); }
/* Ordinateur : texte et constat posés sur la photo */
@media (min-width: 1101px) {
  .hero-action { position: absolute; z-index: 2; left: var(--m); top: 52%; width: min(29rem, 34%); }
  .hero-chapo { text-shadow: 0 1px 12px rgba(10,14,17,.6); }
  .constat { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
  .constat-titre { position: absolute; right: var(--m); bottom: 2.2%; padding: .3rem .6rem; background: rgba(14,19,23,.86); }
  .constat li { position: absolute; display: flex; gap: .6rem; align-items: flex-start; width: 15.5rem; padding: .7rem .8rem; background: rgba(14,19,23,.86); font-size: .875rem; line-height: 1.35; pointer-events: auto; }
  .constat li b { display: none; }
  .constat li i { position: absolute; top: -.75rem; left: .8rem; }
  .c1 { right: calc(100% - 54.6% + 2rem); top: 73%; width: 14rem !important; } .c2 { right: calc(100% - 84.6% + 2rem); top: 60%; } .c3 { left: calc(56.7% + 2rem); top: 26%; width: 13rem !important; } .c4 { left: calc(63.3% + 2rem); top: 81%; width: 13.5rem !important; }
}
/* Tablette et GSM : photo entière, texte et constat dessous */
@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(3rem, 7.4vw, 6rem); }
  .hero-action { padding: 1.6rem var(--m) .8rem; background: var(--ardoise); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: .4rem 2rem; align-items: center; }
  .hero-chapo { grid-row: 1 / 3; margin: 0; color: var(--zinc-2); }
  .constat { padding: 0 var(--m) 2rem; background: var(--ardoise); }
  .constat-titre { margin: 1rem 0 .4rem; }
  .constat ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .constat li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .3rem .8rem; padding: .85rem 0; border-top: 1px solid var(--sb-filet); font-size: .95rem; line-height: 1.4; }
  .constat li b { width: 1.9rem; height: 1.9rem; font-size: 1rem; box-shadow: none; grid-row: 1 / 3; }
  .constat li i { justify-self: start; grid-column: 2; grid-row: 1; }
  .constat li span { grid-column: 2; }
}

/* ---------- Il pleut chez vous ---------- */
.pluie { background: var(--fluo); color: var(--ardoise); padding: clamp(3rem, 7vw, 6rem) var(--m); }
.pluie-gestes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--g); margin-top: clamp(1.5rem, 3vw, 2.5rem) !important; }
.pluie h2, .pluie h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.pluie-num { display: block; margin: .35em 0 .25em; font: 800 min(13.2vw, 15rem)/.85 var(--titre); text-decoration: none; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pluie-num:hover { text-decoration: underline; text-decoration-thickness: .06em; }
.pluie-sous { font-size: 1.1rem; font-weight: 500; max-width: 34rem; margin: 0; }
.pluie em { color: var(--fluo-f); }
.pluie-gestes { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ardoise); }
.pluie-gestes li { padding-right: 1rem; }
.pluie-gestes li { padding: 1rem 0; border-bottom: 1px solid rgba(22,30,36,.35); font-size: 1rem; }
.pluie-gestes b { display: block; font: 800 1.35rem/1 var(--titre); text-transform: uppercase; margin-bottom: .2rem; }
.pluie .s-suite { margin: 1.5rem 0 0; }
.pluie .lien { border-color: var(--ardoise); }
.fil { font-size: .875rem; color: inherit; opacity: .75; margin-bottom: 1.2rem; }
.fil a { text-decoration: none; } .fil a:hover { text-decoration: underline; }

/* ---------- Le rapport, photo par photo (défilement épinglé) ---------- */
.rapport { background: var(--ardoise); }
.rapport-tete { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--g) clamp(2rem, 5vw, 5rem); align-items: end; }
.rapport-tete p { margin: 0; color: var(--zinc-2); max-width: 32rem; }
.fiche-r { margin: 0; height: 100%; background: var(--ardoise-2); display: flex; flex-direction: column; }
.fiche-r img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fiche-r figcaption { position: relative; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.r-n { position: absolute; top: -1.35rem; left: 1.2rem; width: 2.7rem; height: 2.7rem; display: grid; place-items: center; border-radius: 50%; background: var(--zinc); color: var(--ardoise); font: 800 1.1rem/1 var(--titre); }
.r-statut { display: inline-block; margin: .8rem 0 .55rem; padding: .15rem .5rem; border: 1px solid var(--gris); font: 700 .7rem/1.4 var(--texte); text-transform: uppercase; letter-spacing: .07em; }
.r-statut.s-urgent { background: var(--fluo); border-color: var(--fluo); color: var(--ardoise); }
.r-statut.s-ok { border-style: dashed; color: var(--zinc-2); }
.fiche-r b { display: block; font: 800 1.7rem/1 var(--titre); text-transform: uppercase; margin-bottom: .45rem; }
.fiche-r p { margin: 0; color: var(--zinc-2); font-size: .975rem; }
.fiche-fin { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; padding: 1.4rem; border: 1.5px solid var(--zinc); }
.ff-total { margin: 0; font-size: 1rem; }
.ff-total b { display: block; font: 800 7rem/.8 var(--titre); color: var(--fluo); }
.ff-total span { display: block; color: var(--zinc-2); margin-top: .5rem; }
.fiche-fin .btn { align-self: flex-start; }

/* ---------- Ce qu'on fait là-haut : liste à filets, photo au survol ---------- */
.travaux { background: var(--zinc); color: var(--ardoise); padding: clamp(3.5rem, 8vw, 7rem) var(--m); }
.travaux h2 { margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.travaux-liste { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ardoise); }
.travaux-liste li { border-bottom: 1px solid rgba(22,30,36,.25); }
.travaux-liste a { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 3rem; gap: var(--g); align-items: center; padding: clamp(1rem, 2.2vw, 1.6rem) 0; text-decoration: none; }
.tl-nom { font: 800 clamp(1.9rem, 3.6vw, 3.4rem)/.95 var(--titre); text-transform: uppercase; }
.tl-txt { color: var(--gris-f); font-size: 1rem; }
.tl-fl { justify-self: end; font-size: 1.6rem; transition: transform .2s; }
.tl-img { position: absolute; right: 4.5rem; top: 50%; width: 13rem; aspect-ratio: 4 / 3; object-fit: cover; transform: translateY(-50%) scale(.96); opacity: 0; pointer-events: none; transition: opacity .18s, transform .25s; z-index: 2; }
@media (hover: hover) and (min-width: 1000px) {
  .travaux-liste a:hover .tl-img, .travaux-liste a:focus-visible .tl-img { opacity: 1; transform: translateY(-50%) scale(1); }
  .travaux-liste a:hover .tl-txt { opacity: .25; }
  .travaux-liste a:hover .tl-fl { transform: translateX(.3rem); }
}
@media (hover: none), (max-width: 999px) { .tl-img { display: none; } }

/* ---------- Derniers chantiers (CMS) : la seule grille de cartes ---------- */
.chantiers { background: var(--zinc); color: var(--ardoise); padding: 0 var(--m) clamp(3.5rem, 8vw, 7rem); }
.ch-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--g); align-items: end; padding-top: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid rgba(22,30,36,.25); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.ch-tete p { margin: 0; color: var(--gris-f); max-width: 30rem; }
.chantiers em, .p-chantiers-p em, .page em { color: var(--gris-f); }
.cms-realisations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2rem) var(--g); }
.cms-realisation article { display: flex; flex-direction: column; height: 100%; }
.cms-realisation-img { display: block; overflow: hidden; background: var(--zinc-2); border-radius: 0 !important; }
.cms-realisation-img img, .cms-realisation-photos img { border-radius: 0 !important; }
.cms-realisation-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s; }
.cms-realisation:hover .cms-realisation-img img { transform: scale(1.03); }
.cms-realisation-txt { padding-top: .9rem; }
.cms-lieu { margin: 0 0 .35rem; font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--gris-f); }
.cms-realisation h2, .cms-realisation h3 { font-size: 1.6rem; line-height: 1; margin-bottom: .45rem; }
.cms-realisation h2 a, .cms-realisation h3 a { text-decoration: none; }
.cms-realisation h2 a:hover, .cms-realisation h3 a:hover { text-decoration: underline; }
.cms-realisation-txt p:last-child { margin: 0; color: var(--gris-f); font-size: .95rem; }
.cms-tout-voir { margin: 2rem 0 0; }
.cms-tout-voir a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--ardoise); padding-bottom: .1rem; }

/* ---------- Combien ? (image qui déborde) ---------- */
.combien { background: var(--ardoise); --sb-ratio: 3 / 2; }
.combien h2 { margin-bottom: 1.2rem; }
.combien p { max-width: 33rem; color: var(--zinc-2); }
.combien .note { color: var(--gris); font-size: .9rem; border-left: 3px solid var(--fluo); padding-left: .9rem; }

/* ---------- Demande de visite ---------- */
.visite-bloc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--g) clamp(2rem, 6vw, 6rem); padding: clamp(3.5rem, 8vw, 7rem) var(--m); background: var(--ardoise-2); border-top: 6px solid var(--fluo); }
.vb-txt h2, .vb-txt h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); margin-bottom: 1rem; }
.vb-txt > p { color: var(--zinc-2); max-width: 28rem; }
.vb-deroule { margin: 2rem 0 0; }
.vb-deroule div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--sb-filet); }
.vb-deroule dt { font: 800 1.2rem/1.1 var(--titre); text-transform: uppercase; color: var(--fluo); }
.vb-deroule dd { margin: 0; color: var(--zinc-2); font-size: .975rem; }
.vb-tel { margin-top: 1.5rem; } .vb-tel a { font-weight: 700; }
.f-visite { display: grid; gap: 1.1rem; align-content: start; }
.f-quoi { border: 0; margin: 0; padding: 0; }
.f-quoi legend, .f-champ > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.f-champ em { color: var(--gris); font-weight: 400; }
.puces { display: flex; flex-wrap: wrap; gap: .5rem; }
.puces label { position: relative; }
.puces input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.puces span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem .95rem; border: 1.5px solid var(--gris); font-size: .95rem; cursor: pointer; }
.puces input:checked + span { background: var(--fluo); color: var(--ardoise); border-color: var(--fluo); font-weight: 600; }
.puces input:focus-visible + span { outline: 3px solid var(--fluo); outline-offset: 2px; }
.f-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-champ input { width: 100%; min-height: 3.1rem; padding: .7rem .85rem; background: var(--ardoise); color: var(--zinc); border: 1.5px solid var(--gris); font: inherit; border-radius: 0; }
.f-champ input::placeholder { color: var(--gris); }
.f-champ input:focus { border-color: var(--fluo); outline: none; }
.btn-plein { width: 100%; justify-content: center; font-size: 1.1rem; min-height: 3.6rem; }
.btn-plein:disabled { opacity: .5; cursor: default; }
.f-note { margin: 0; font-size: .8125rem; color: var(--gris); }
.form-ok { margin: 0; padding: 1rem; background: var(--fluo); color: var(--ardoise); font-weight: 600; }

/* ---------- Pied ---------- */
.pied { background: #0F1519; padding: clamp(3rem, 6vw, 5rem) var(--m) 6rem; }
.pied-haut { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--sb-filet); }
.pied-mot { margin: 0; font: 800 clamp(5rem, 17vw, 15rem)/.78 var(--titre); letter-spacing: .01em; }
.pied-tel { font: 800 clamp(2rem, 4vw, 3.4rem)/1 var(--titre); text-decoration: none; color: var(--fluo); font-variant-numeric: tabular-nums; }
.pied-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); padding-top: 2rem; font-size: .925rem; color: var(--zinc-2); }
.pied-grille h2 { font: 700 .8rem/1.4 var(--texte); text-transform: uppercase; letter-spacing: .08em; color: var(--gris); margin-bottom: .6rem; }
.pied-grille a { text-decoration: none; } .pied-grille a:hover { text-decoration: underline; }
.pied-demo { margin: 2.5rem 0 0; font-size: .8125rem; color: var(--gris); max-width: 52rem; }
.cms-horaires-jour { margin: 0 0 1em; }

/* ---------- Barre GSM + toast ---------- */
.bas-mob { display: none; }
.toast { position: fixed; left: 50%; bottom: 5.5rem; z-index: 60; transform: translate(-50%, 1rem); max-width: min(28rem, 92vw); padding: .9rem 1.1rem; background: var(--zinc); color: var(--ardoise); font-weight: 600; font-size: .95rem; opacity: 0; transition: opacity .2s, transform .2s; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Pages intérieures ---------- */
.page { padding: clamp(2.5rem, 6vw, 5rem) var(--m); }
.page h1 { font-size: clamp(3rem, 8vw, 7rem); margin-bottom: 1.2rem; }
.chapo { font-size: 1.2rem; max-width: 40rem; color: var(--zinc-2); }
.note { color: var(--gris); font-size: .925rem; }
.page-tete { padding-bottom: 1rem; }
.sommaire { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.sommaire a { padding: .45rem .8rem; border: 1px solid var(--gris-f); text-decoration: none; font-size: .925rem; }
.sommaire a:hover { border-color: var(--fluo); }
.fiches { padding: 0 var(--m) clamp(3rem, 6vw, 5rem); }
.fiche { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-areas: "ph t" "ph dl"; gap: 0 var(--g); padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--sb-filet); scroll-margin-top: 5rem; }
.fiche-ph { grid-area: ph; margin: 0; }
.fiche-ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fiche h2 { grid-area: t; font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 1rem; }
.fiche h2 span { color: var(--fluo); margin-right: .2em; }
.fiche .sb-notice { grid-area: dl; --sb-rubrique: 9rem; }
.fiche dt { font-weight: 700; color: var(--zinc); }
.fiche dd { color: var(--zinc-2); }
.p-chantiers-p main, .chantier { background: var(--zinc); color: var(--ardoise); }
.p-chantiers-p main .chapo, .chantier .chapo { color: var(--gris-f); }
.p-chantiers-p .note { color: var(--gris-f); }
.chantier h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); max-width: 18ch; }
.cms-realisation-corps { max-width: 40rem; font-size: 1.1rem; margin: 1rem 0 2rem; }
.cms-realisation-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.cms-realisation-photos li:first-child { grid-column: 1 / -1; }
.cms-realisation-photos figure { margin: 0; }
.cms-realisation-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.encart { margin-top: 2.5rem; padding: 1.5rem; background: var(--ardoise); color: var(--zinc); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.encart p { margin: 0; max-width: 32rem; }
.cms-pagination, nav.cms-pages { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; }
.cms-pages a, .cms-pages span { border-radius: 0 !important; border-color: currentColor !important; }
.legal { max-width: 52rem; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.legal h2 { font-size: 1.8rem; margin: 2rem 0 .6rem; }
.legal ul { padding-left: 1.2rem; }
.gestes h2 { margin-bottom: 1.5rem; }
.gestes .sb-liste-geante > li { align-items: baseline; padding: 1.4rem 0; border-top: 1px solid var(--sb-filet); }
.gestes .sb-liste-geante > li::before { font-family: var(--titre); font-weight: 800; color: var(--fluo); --sb-n-taille: clamp(4rem, 10vw, 8.5rem); }
.gestes h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: .5rem; }
.gestes p { color: var(--zinc-2); max-width: 36rem; }
.p404-corps { padding: clamp(3rem, 8vw, 6rem) var(--m); max-width: 60rem; }
.p404-dessin { width: min(26rem, 80vw); color: var(--zinc); margin-bottom: 1rem; }
.p404-trou { fill: var(--fluo); }
.p404-corps h1 { font-size: clamp(3rem, 8vw, 7rem); margin-bottom: 1rem; }
.p404-liens { list-style: none; padding: 0; margin: 1.5rem 0; border-top: 1px solid var(--sb-filet); }
.p404-liens a { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--sb-filet); text-decoration: none; font-weight: 600; font-size: 1.15rem; }

/* ---------- Tablette et GSM ---------- */
@media (max-width: 1000px) {
  .nav a:not(.nav-visite) { display: none; }
  .cms-realisations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pluie-gestes { grid-template-columns: 1fr; }
  .visite-bloc { grid-template-columns: 1fr; }
  .rapport-tete { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { --haut: 3.5rem; }
  body { font-size: 1rem; padding-bottom: 4.5rem; }
  .entete { gap: .8rem; }
  .m-mot { font-size: 1.7rem; } .m-sous { display: none; }
  .tel span { display: none; }
  .tel { margin-left: auto; font-size: .95rem; }
  .menu-btn { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .9rem; background: none; color: var(--zinc); border: 1.5px solid var(--gris-f); font: 600 .95rem var(--texte); }
  .nav { display: none; position: fixed; inset: var(--haut) 0 0; z-index: 40; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--m) 6rem; background: var(--ardoise); overflow: auto; }
  .nav.ouvert { display: flex; }
  .nav a, .nav a:not(.nav-visite) { display: block; padding: 1rem 0; border-bottom: 1px solid var(--sb-filet); font: 800 2.2rem/1 var(--titre); text-transform: uppercase; }
  .nav-visite { order: -1; border: 0; color: var(--fluo); }
  .menu-ouvert body { overflow: hidden; }

  .toit { aspect-ratio: auto; display: flex; flex-direction: column; overflow: visible; }
  .toit::before { display: none; }
  .toit-ph { position: relative; aspect-ratio: 810 / 693; order: 2; }
  .hero h1 { position: static; order: 1; max-width: none; padding: 1.1rem var(--m) 1.2rem; font-size: clamp(3rem, 15vw, 4.6rem); }
  .r1 { left: 24.8%; top: 83.9%; } .r2 { left: 74.5%; top: 75%; } .r3 { left: 28.3%; top: 17.7%; } .r4 { left: 39.2%; top: 88.7%; }
  .repere { width: 1.9rem; height: 1.9rem; font-size: 1.05rem; }
  .hero-action { display: block; padding-top: 1.4rem; }
  .hero .btn { width: 100%; justify-content: center; margin-top: 1rem; }
  .constat ol { grid-template-columns: 1fr; }
  .pluie-num { font-size: 15.5vw; }
  .travaux-liste a { grid-template-columns: minmax(0, 1fr) 2rem; }
  .tl-txt { grid-column: 1; font-size: .925rem; }
  .tl-fl { grid-row: 1 / 3; grid-column: 2; }
  .ch-tete { grid-template-columns: 1fr; }
  .cms-realisations { grid-template-columns: 1fr; }
  .f-ligne { grid-template-columns: 1fr; }
  .fiche { grid-template-columns: 1fr; grid-template-areas: "t" "ph" "dl"; }
  .fiche-ph { margin-bottom: 1rem; }
  .pied-grille { grid-template-columns: 1fr; }
  .cms-realisation-photos { grid-template-columns: 1fr 1fr; }
  .bas-mob { display: grid; grid-template-columns: 1fr 1.35fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--ardoise); border-top: 1px solid rgba(232,235,231,.12); padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom)); gap: .5rem; }
  .bas-mob a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.1rem; text-decoration: none; font-weight: 700; }
  .bas-mob { transform: translateY(110%); transition: transform .2s; }
  .bas-mob.vue { transform: none; }
  .bm-tel { border: 1.5px solid var(--zinc); }
  .bm-tel svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
  .bm-visite { background: var(--fluo); color: var(--ardoise); }
  .bm-visite i { font-style: normal; }
}
@media (max-width: 380px) { .hero h1 { font-size: 2.85rem; } .pluie-num { font-size: 3.3rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
