/* =============================================================
   ASConcept77 — feuille de style
   Fil conducteur : le plan de chantier (quadrillage, traits nets),
   les couleurs du logo sur beaucoup de blanc, une typographie franche.
   ============================================================= */

/* ---------- Polices (hébergées sur le site, sous licence OFL) ---------- */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic.woff") format("woff"); font-style: italic; font-weight: 400 500; font-display: swap; }

/* ---------- Jetons ---------- */
:root {
  /* couleurs du logo */
  --nuit: #171B47;
  --bleu: #2E8FDB;
  --bleu-clair: #36A7EA;
  --signature: #2EA3D6;
  /* dérivées, pour l'accessibilité (texte et boutons sur blanc) */
  --action: #1B66AD;
  --action-fonce: #14508A;
  --encre: #22264A;
  --ardoise: #545B78;
  --trait: #DCE3ED;
  --trait-fort: #9AA6BA;
  --craie: #F4F7FA;
  --teinte: #EAF4FB;
  --blanc: #fff;
  --etoile: #E39B2C;
  --plan: rgba(46, 143, 219, 0.075);
  --focus: #1B66AD;

  --f-titre: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-texte: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-voix: "Lora", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --rayon: 8px;
  --section: clamp(56px, 7vw, 104px);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
/* Défilement doux uniquement pour les ancres de la page en cours (activé après le chargement) :
   à l'arrivée sur une page, l'ancre est atteinte immédiatement. */
html.defilement-doux { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, picture { display: block; max-width: 100%; height: auto; }
img { font-style: italic; }
a { color: var(--action); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--action-fonce); text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

h1, h2, h3, h4, .h3, .h4 { font-family: var(--f-titre); color: var(--nuit); margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 1.35rem + 2.7vw, 3.45rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.45vw, 2.35rem); line-height: 1.14; font-weight: 700; letter-spacing: -0.016em; }
h3, .h3 { font-size: clamp(1.18rem, 1.05rem + 0.45vw, 1.42rem); line-height: 1.25; font-weight: 700; letter-spacing: -0.008em; }
h4, .h4 { font-size: 1.06rem; line-height: 1.35; font-weight: 500; }
h3 a, h2 a { color: inherit; text-decoration: none; }
h3 a:hover { color: var(--action); text-decoration: underline; }
.lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.24rem); line-height: 1.55; color: var(--ardoise); max-width: 62ch; }
.muted { color: var(--ardoise); font-size: 0.94em; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(800px + 2 * var(--gutter)); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--nuit); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; color: #fff; }

.ic { width: 1.15em; height: 1.15em; flex: none; }

/* Placeholder visible en recette */
.todo { display: inline; background: #FFF4CC; color: #5E4500; border: 1px dashed #C9A227; padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.92em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7em 1.35em;
  font-family: var(--f-titre); font-weight: 500; font-size: 1rem; line-height: 1.2;
  border-radius: 6px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-fonce); color: #fff; }
.btn-secondary { border-color: var(--nuit); color: var(--nuit); background: transparent; }
.btn-secondary:hover { background: var(--nuit); color: #fff; }
.btn-ghost { border-color: var(--trait-fort); color: var(--nuit); background: #fff; }
.btn-ghost:hover { border-color: var(--nuit); color: var(--nuit); }
.btn-light { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--nuit); }
.btn-light-strong { background: #fff; color: var(--nuit); }
.btn-light-strong:hover { background: var(--teinte); color: var(--nuit); }
.btn-sm { min-height: 42px; padding: 0.5em 1.05em; font-size: 0.95rem; }
.btn-lg { min-height: 56px; padding: 0.8em 1.8em; font-size: 1.06rem; }
.btn[disabled] { opacity: .65; cursor: progress; }

.link-more { display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--f-titre); font-weight: 500; text-decoration: none; }
.link-more .ic-arrow { transition: transform .15s; }
.link-more:hover .ic-arrow { transform: translateX(3px); }
.link-light { color: #fff; }
.link-light:hover { color: var(--bleu-clair); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--trait); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-list > li > a, .nav-sub-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 12px; border-radius: 6px; border: 0; background: none; cursor: pointer;
  font-family: var(--f-titre); font-weight: 500; font-size: 0.98rem; color: var(--nuit); text-decoration: none;
}
.nav-list > li > a:hover, .nav-sub-toggle:hover { background: var(--craie); color: var(--nuit); }
.nav-list a[aria-current="page"], .has-sub.is-current > .nav-sub-toggle { box-shadow: inset 0 -3px 0 var(--signature); border-radius: 6px 6px 0 0; }
.nav-sub-toggle .ic-chev { width: 18px; height: 18px; transition: transform .15s; }
.nav-sub-toggle[aria-expanded="true"] .ic-chev { transform: rotate(180deg); }
.has-sub { position: relative; }
.sub { list-style: none; }
.sub a { display: block; padding: 12px 14px; border-radius: 6px; text-decoration: none; color: var(--encre); }
.sub a strong { display: block; font-family: var(--f-titre); font-weight: 500; color: var(--nuit); font-size: 1rem; }
.sub a span { display: block; color: var(--ardoise); font-size: 0.9rem; line-height: 1.4; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--teinte); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-tel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-titre); font-weight: 500; color: var(--nuit); text-decoration: none; white-space: nowrap; }
.nav-tel:hover { color: var(--action); }
.nav-tel .ic { color: var(--signature); }
.nav-li-contact { display: none; }
.nav-toggle { display: none; }

@media (min-width: 1140px) {
  .sub {
    position: absolute; top: calc(100% + 10px); left: -12px; width: 600px;
    display: none; grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px;
    background: #fff; border: 1px solid var(--trait); border-radius: 10px;
    box-shadow: 0 18px 40px -18px rgba(23,27,71,.35);
  }
  .sub::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { display: grid; }
  .js .has-sub:not(.is-open):not(:hover) .sub { display: none; }
  .sub-extra { grid-column: 1 / -1; border-top: 1px solid var(--trait); margin-top: 4px; padding-top: 4px; }
}

@media (max-width: 1139.98px) {
  :root { --header-h: 66px; }
  .brand img { height: 42px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--trait-fort); border-radius: 6px;
    background: #fff; font-family: var(--f-titre); font-weight: 500; color: var(--nuit); cursor: pointer;
  }
  .no-js .nav-toggle { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; display: block; margin: 0; padding: 12px var(--gutter) 120px; background: #fff; overflow-y: auto; border-top: 1px solid var(--trait); }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .no-js .nav { position: static; padding: 0 0 16px; border: 0; }
  .no-js .header-inner { flex-wrap: wrap; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--trait); }
  .nav-list > li > a, .nav-sub-toggle { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.12rem; border-radius: 0; }
  .nav-list a[aria-current="page"], .has-sub.is-current > .nav-sub-toggle { box-shadow: inset 4px 0 0 var(--signature); padding-left: 14px; border-radius: 0; }
  .sub { padding: 0 0 12px; }
  .js .has-sub:not(.is-open) .sub { display: none; }
  .nav-li-contact { display: block; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 24px; }
  .nav-tel { justify-content: center; min-height: 52px; border: 2px solid var(--nuit); border-radius: 6px; font-size: 1.1rem; }
  .nav-actions .btn { min-height: 52px; font-size: 1.05rem; }
  body.menu-ouvert { overflow: hidden; }
}

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { padding-top: 18px; font-size: 0.9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--ardoise); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: var(--trait-fort); }
.breadcrumb a { color: var(--ardoise); }
.breadcrumb a:hover { color: var(--action); }
.breadcrumb [aria-current] { color: var(--encre); }
.breadcrumb + .page-hero { padding-top: clamp(20px, 3vw, 36px); }

/* ---------- Motif « plan » ---------- */
.page-hero, .hero {
  background-color: #fff;
  background-image:
    linear-gradient(var(--plan) 1px, transparent 1px),
    linear-gradient(90deg, var(--plan) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}

/* ---------- Accueil : hero ---------- */
.hero { position: relative; padding-top: clamp(32px, 5vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(24px, 3vw, 40px); }
.hero-text h1 { max-width: 19ch; font-size: clamp(2.05rem, 1.3rem + 2.4vw, 3.15rem); }
.hero-text .lead { color: var(--encre); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-avis { display: inline-flex; align-items: center; gap: 8px; color: var(--encre); text-decoration: none; font-size: 0.97rem; }
.hero-avis .ic-star { color: var(--etoile); }
.hero-avis:hover span { text-decoration: underline; }
.hero .vague { width: 100%; height: 34px; margin-top: 8px; }

/* ---------- Comparateur avant / après ---------- */
.ba { margin: 0; }
.ba-stage {
  position: relative; overflow: hidden; width: 100%;
  border: 1.5px solid var(--nuit); border-radius: var(--rayon); background: #fff;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.ba-layer { position: absolute; inset: 0; }
.ba-layer > svg, .ba-layer > img, .ba-layer picture, .ba-layer picture img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--nuit); }
.ba-handle span {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2.5px solid var(--nuit);
  box-shadow: 0 4px 14px rgba(23,27,71,.25);
}
.ba-handle span::before, .ba-handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; margin-top: -6px;
}
.ba-handle span::before { left: 6px; border-right: 7px solid var(--nuit); border-left: 0; }
.ba-handle span::after { right: 6px; border-left: 7px solid var(--nuit); border-right: 0; }
.ba-stage:has(.ba-range:focus-visible) .ba-handle span { outline: 3px solid var(--focus); outline-offset: 3px; }
.ba-range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ba-tag {
  position: absolute; top: 12px; z-index: 2; padding: 4px 10px; border-radius: 4px;
  font-family: var(--f-titre); font-weight: 500; font-size: 0.82rem; pointer-events: none;
}
.ba-tag-before { left: 12px; background: #fff; color: var(--nuit); border: 1.5px solid var(--nuit); }
.ba-tag-after { right: 12px; background: var(--nuit); color: #fff; border: 1.5px solid var(--nuit); }
.ba figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--ardoise); line-height: 1.45; }

/* ---------- Repères ---------- */
.reperes { border-bottom: 1px solid var(--trait); background: #fff; }
.reperes-list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.reperes-list > div { padding: 22px 24px 22px 0; }
.reperes-list > div + div { padding-left: 24px; border-left: 1px solid var(--trait); }
.reperes dt { font-family: var(--f-titre); font-weight: 700; color: var(--nuit); font-size: 1.12rem; }
.reperes dd { margin: 2px 0 0; color: var(--ardoise); font-size: 0.97rem; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.section-alt { background: var(--craie); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head .lead { margin-bottom: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }
.section-head-row > div { max-width: 720px; }
.section-head-row > div .lead { margin-bottom: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.two-col-wide { grid-template-columns: 1.05fr 0.95fr; }
.prose { max-width: 66ch; }
.prose h2 { margin-top: 0; }
.prose h3, .prose .h4 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }

.cols-listes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.liste-check { list-style: none; display: grid; gap: 8px; }
.liste-check li { position: relative; padding-left: 28px; line-height: 1.45; }
.liste-check li::before {
  content: ""; position: absolute; left: 2px; top: 0.32em; width: 16px; height: 9px;
  border-left: 2.5px solid var(--signature); border-bottom: 2.5px solid var(--signature); transform: rotate(-45deg) scale(.8);
}
.liste-liens { padding-left: 1.2em; display: grid; gap: 6px; }

.encadre { background: var(--teinte); border-left: 4px solid var(--signature); padding: 24px 28px; border-radius: 0 var(--rayon) var(--rayon) 0; }
.encadre > :last-child { margin-bottom: 0; }
.encadre-hero { background: #fff; border: 1px solid var(--trait); border-left: 4px solid var(--signature); }

.cas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px 40px; }
.cas-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cas-grid article { border-top: 2px solid var(--nuit); padding-top: 18px; }
.cas-grid article p { margin: 0; color: var(--ardoise); }

/* ---------- Prestations (accueil) ---------- */
.prest-feature {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 64px); align-items: center;
  background: var(--teinte); border-radius: 12px; padding: clamp(28px, 4.5vw, 56px);
}
.prest-feature h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.prest-feature-text p { max-width: 58ch; }
.prest-feature-text .btn { margin-top: 8px; }

.sequence, .prest-sequence, .anatomie { list-style: none; counter-reset: etape; position: relative; display: grid; gap: 0; }
.prest-sequence li, .anatomie li { counter-increment: etape; position: relative; padding: 0 0 18px 52px; min-height: 36px; display: flex; flex-direction: column; justify-content: center; }
.prest-sequence li::before, .anatomie li::before {
  content: counter(etape); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--signature); color: var(--nuit);
  font-family: var(--f-titre); font-weight: 700; font-size: 0.92rem; z-index: 1;
}
.prest-sequence li::after, .anatomie li::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--signature); opacity: .5; }
.prest-sequence li:last-child::after, .anatomie li:last-child::after { display: none; }
.prest-sequence li { font-family: var(--f-titre); font-weight: 500; color: var(--nuit); padding-top: 5px; justify-content: flex-start; }
.anatomie li strong { font-family: var(--f-titre); font-weight: 500; color: var(--nuit); padding-top: 4px; }
.anatomie li span { color: var(--ardoise); font-size: 0.95rem; line-height: 1.45; }

.prest-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); margin-top: clamp(20px, 3vw, 32px); }
.prest-panel { border: 1px solid var(--trait); border-top: 4px solid var(--bleu); border-radius: 0 0 var(--rayon) var(--rayon); padding: clamp(24px, 3vw, 36px); background: #fff; }
.prest-panel + .prest-panel { border-top-color: var(--nuit); }
.prest-panel > p:not(.prest-note) { color: var(--ardoise); }
.prest-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding-top: 14px; border-top: 1px dashed var(--trait); font-size: 0.96rem; }
.prest-note .ic { color: var(--signature); margin-top: 3px; }
.prest-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap;
  margin-top: clamp(20px, 3vw, 32px); padding: clamp(24px, 3vw, 36px); background: var(--craie);
  border-left: 4px solid var(--nuit); border-radius: 0 var(--rayon) var(--rayon) 0;
}
.prest-band > div { max-width: 70ch; }
.prest-band p { margin: 0; color: var(--ardoise); }
.prest-aussi { margin-top: clamp(28px, 4vw, 44px); max-width: 80ch; }
.prest-aussi h3 { margin-bottom: 6px; }
.prest-aussi p { color: var(--ardoise); margin: 0; }

/* ---------- Histoire (bande sombre) ---------- */
.section-histoire { background: var(--nuit); color: #DCE3F5; --focus: #7CC8F2; }
.section-histoire h2 { color: #fff; }
.section-histoire a:not(.btn) { color: #fff; }
.histoire-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.histoire-grid p { max-width: 60ch; }
.principe { margin: 0; position: relative; padding-top: 44px; }
.principe::before { content: "«"; position: absolute; top: -18px; left: -4px; font-family: var(--f-voix); font-size: 5rem; line-height: 1; color: var(--bleu-clair); }
.principe p { font-family: var(--f-voix); font-style: italic; font-size: clamp(1.6rem, 1.05rem + 2.1vw, 2.5rem); line-height: 1.25; color: #fff; margin: 0; }
.principe-clair p { color: var(--nuit); }
.principe-clair::before { color: var(--signature); }

/* ---------- Réalisations ---------- */
.real-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.real-attente { margin-top: 24px; color: var(--ardoise); max-width: 72ch; }
.real-card { border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; background: #fff; }
.real-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.real-card-link:hover h3 { color: var(--action); text-decoration: underline; }
.real-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--craie); }
.real-card-media img, .real-card-media picture { width: 100%; height: 100%; object-fit: cover; }
.real-card-media .slot { border: 0; border-radius: 0; height: 100%; }
.real-card-body { padding: 18px 20px 22px; }
.real-card-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.real-card-body p:last-child { margin: 0; color: var(--ardoise); font-size: 0.96rem; }
.real-card.is-exemple { border-style: dashed; border-color: #C9A227; }
.real-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 0.88rem; color: var(--ardoise); margin-bottom: 10px; }
.real-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 4px; background: var(--teinte); color: var(--nuit); font-family: var(--f-titre); font-weight: 500; font-size: 0.82rem; text-decoration: none; }
a.tag:hover { background: var(--nuit); color: #fff; }

.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filtres button { min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--trait-fort); border-radius: 6px; background: #fff; cursor: pointer; font-family: var(--f-titre); font-weight: 500; color: var(--nuit); }
.filtres button[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.no-js .filtres { display: none; }

/* Emplacements photo / vidéo (placeholders assumés) */
.slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 20px; text-align: center; color: #4A6688;
  border: 1.5px dashed #9FB8D3; border-radius: var(--rayon);
  background-color: var(--craie);
  background-image: linear-gradient(rgba(46,143,219,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(46,143,219,.11) 1px, transparent 1px);
  background-size: 24px 24px;
}
.slot svg { color: var(--signature); }
.slot-titre { font-family: var(--f-titre); font-weight: 500; color: var(--nuit); font-size: 0.98rem; }
.slot-note { font-size: 0.86rem; }
.slot-certif { aspect-ratio: auto; align-items: flex-start; text-align: left; padding: 24px; }
.slot-portrait { max-width: 340px; justify-self: end; }

/* Fiche chantier */
.bandeau-demo { background: #FFF4CC; color: #5E4500; border-bottom: 1px solid #E8CF7A; padding: 12px var(--gutter); text-align: center; font-size: 0.95rem; }
.page-hero-chantier h1 { max-width: 24ch; }
.chantier-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "medias fiche" "texte fiche"; gap: clamp(28px, 4vw, 56px); padding-block: clamp(32px, 4vw, 56px) var(--section); }
.chantier-medias { grid-area: medias; display: grid; gap: 24px; }
.chantier-texte { grid-area: texte; }
.fiche { grid-area: fiche; align-self: start; position: sticky; top: calc(var(--header-h) + 20px); border: 1.5px solid var(--nuit); border-radius: var(--rayon); padding: 24px; background: #fff; }
.fiche dl { margin: 0 0 20px; display: grid; gap: 14px; }
.fiche dt { font-size: 0.85rem; color: var(--ardoise); }
.fiche dd { margin: 0; font-family: var(--f-titre); font-weight: 500; color: var(--nuit); font-size: 1.05rem; }
.fiche .btn { width: 100%; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.galerie figure { margin: 0; }
.galerie img { border-radius: var(--rayon); width: 100%; }
.galerie figcaption { font-size: 0.88rem; color: var(--ardoise); margin-top: 6px; }
video { width: 100%; border-radius: var(--rayon); background: var(--nuit); }
.video-lite { position: relative; display: grid; place-items: center; background: var(--nuit); border-radius: var(--rayon); color: #fff; }
.video-play { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 22px; border: 2px solid #fff; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; font-family: var(--f-titre); font-weight: 500; }
.video-note { position: absolute; bottom: 10px; left: 0; right: 0; margin: 0; text-align: center; font-size: 0.82rem; color: #C8D2EA; }
.video-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--rayon); }

/* ---------- Avis ---------- */
.section-avis { background: var(--craie); }
.avis-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 18px 0 0; }
.avis-note { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-titre); font-size: 1.1rem; color: var(--nuit); }
.avis-note .ic-star { color: var(--etoile); width: 1.3em; height: 1.3em; }
.avis-note strong { font-weight: 700; }
.link-ext { font-weight: 600; }
.avis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: clamp(16px, 2vw, 24px); align-items: start; }
.avis-grid-all { display: block; columns: 3 300px; column-gap: 24px; }
.avis-grid-all .avis { break-inside: avoid; margin-bottom: 24px; }
.avis { margin: 0; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px 24px 20px; }
.avis blockquote { margin: 0 0 16px; font-family: var(--f-voix); font-style: italic; font-size: 1.04rem; line-height: 1.6; color: var(--encre); }
.avis blockquote p { margin: 0 0 0.6em; }
.avis blockquote p:last-child { margin: 0; }
.avis .avis-tronque { font-family: var(--f-texte); font-style: normal; font-size: 0.85rem; margin-top: 6px; }
.avis figcaption { display: flex; flex-direction: column; font-size: 0.88rem; color: var(--ardoise); border-top: 1px solid var(--trait); padding-top: 12px; }
.avis figcaption strong { color: var(--nuit); font-size: 0.98rem; font-family: var(--f-titre); font-weight: 500; }

/* ---------- Étapes ---------- */
.etapes { list-style: none; counter-reset: etape; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; position: relative; }
.etapes::before { content: ""; position: absolute; top: 20px; left: 20px; right: 10%; height: 2px; background: var(--signature); opacity: .45; }
.etapes li { counter-increment: etape; position: relative; padding-top: 60px; }
.etapes li::before {
  content: counter(etape); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--signature);
  font-family: var(--f-titre); font-weight: 700; color: var(--nuit);
}
.etapes h3 { font-size: 1.08rem; }
.etapes p { color: var(--ardoise); font-size: 0.96rem; margin: 0; }

/* ---------- Liens croisés ---------- */
.duo-liens { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.duo-liens p { color: var(--ardoise); }
.section-liens { border-top: 1px solid var(--trait); }
.liens-prest { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.liens-prest a { position: relative; display: block; height: 100%; padding: 20px 48px 20px 20px; border: 1px solid var(--trait); border-radius: var(--rayon); text-decoration: none; color: var(--encre); }
.liens-prest a:hover { border-color: var(--nuit); }
.liens-prest strong { display: block; font-family: var(--f-titre); font-weight: 500; color: var(--nuit); margin-bottom: 4px; }
.liens-prest span { display: block; font-size: 0.93rem; color: var(--ardoise); line-height: 1.45; }
.liens-prest .ic-arrow { position: absolute; right: 18px; top: 22px; color: var(--signature); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--trait); margin-top: 24px; }
.faq-item { border-bottom: 1px solid var(--trait); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--f-titre); font-weight: 500; font-size: 1.08rem; color: var(--nuit); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic-chev { width: 22px; height: 22px; color: var(--signature); transition: transform .2s; }
.faq-item[open] summary .ic-chev { transform: rotate(180deg); }
.faq-a { padding: 0 0 20px; max-width: 70ch; color: var(--encre); }
.faq-a p:last-child { margin: 0; }

/* ---------- CTA final ---------- */
.cta-final { background: #1A5E99; color: #E3EEFA; --focus: #fff; }
.cta-final h2 { color: #fff; }
.cta-final a:not(.btn) { color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px 56px; flex-wrap: wrap; }
.cta-inner > div:first-child { max-width: 640px; }
.cta-inner p { margin: 0; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-final .btn-primary { background: #fff; color: var(--nuit); }
.cta-final .btn-primary:hover { background: var(--teinte); color: var(--nuit); }

/* ---------- Fuite / appel direct ---------- */
.fuite { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; padding: 22px 24px; border-radius: var(--rayon); background: var(--teinte); border: 1.5px solid var(--signature); }
.fuite-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--signature); color: #fff; }
.fuite-ic .ic { width: 24px; height: 24px; }
.fuite-titre { font-family: var(--f-titre); font-weight: 700; font-size: 1.2rem; color: var(--nuit); margin: 0 0 4px; }
.fuite-body p:not(.fuite-titre) { margin: 0 0 4px; }
.fuite-hours { font-size: 0.9rem; color: var(--ardoise); }
.fuite .btn { grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
.btn-fuite { background: var(--action); color: #fff; font-size: 1.1rem; min-height: 54px; }
.btn-fuite:hover { background: var(--action-fonce); color: #fff; }
.fuite-fort { background: var(--nuit); border-color: var(--nuit); color: #DCE3F5; --focus: #7CC8F2; }
.fuite-fort .fuite-titre { color: #fff; }
.fuite-fort .fuite-hours { color: #B8C3E0; }
.fuite-fort .fuite-ic { background: var(--bleu-clair); color: var(--nuit); }
.fuite-fort .btn-fuite { background: var(--bleu-clair); color: var(--nuit); }
.fuite-fort .btn-fuite:hover { background: #fff; color: var(--nuit); }

/* ---------- En-têtes de page ---------- */
.page-hero { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 5.5vw, 72px); border-bottom: 1px solid var(--trait); }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero-grid > :only-child { grid-column: 1 / -1; }
.page-hero-text h1 { max-width: 20ch; }
.page-hero-text .lead { color: var(--encre); }
.page-hero-visuel .page-hero-grid { grid-template-columns: 1fr 1fr; }
.page-hero-fuite .page-hero-grid { align-items: stretch; }
.page-hero-fuite .fuite { align-self: center; }
.page-hero-aside > p { font-family: var(--f-titre); font-weight: 500; color: var(--nuit); }
.page-hero-sobre { background-image: none; }
.page-hero-contact { border-bottom: 0; padding-bottom: 24px; }

.infos-pratiques { margin: 0; border-top: 2px solid var(--nuit); }
.infos-pratiques > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.infos-pratiques dt { color: var(--ardoise); }
.infos-pratiques dd { margin: 0; font-family: var(--f-titre); font-weight: 500; color: var(--nuit); text-align: right; }

.equip-table { border-top: 2px solid var(--nuit); }
.equip-row { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 8px 40px; padding: 22px 0; border-bottom: 1px solid var(--trait); }
.equip-row h3 { margin: 0; font-size: 1.15rem; }
.equip-row p { margin: 0; color: var(--ardoise); max-width: 70ch; }

/* ---------- Pros / à propos / zone ---------- */
.pros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.pros-grid article { border-top: 4px solid var(--bleu); padding-top: 22px; }
.pros-grid article + article { border-top-color: var(--nuit); }
.apropos-hero { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.certif-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.certif-list li { border: 1px solid var(--trait); border-radius: var(--rayon); padding: 18px; display: grid; gap: 4px; }
.certif-list span { color: var(--ardoise); font-size: 0.92rem; }
.reseaux-links { display: flex; flex-wrap: wrap; gap: 12px; }
.zone-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.zone-schema { margin: 0; }
.zone-schema svg { border: 1.5px solid var(--nuit); border-radius: var(--rayon); background: #fff; width: 100%; }
.zone-schema text { font-family: var(--f-texte); font-size: 13.5px; fill: var(--encre); }
.zone-schema .zone-base text { font-family: var(--f-titre); font-size: 16px; fill: var(--nuit); }
.zone-schema .zone-legende { fill: var(--action); font-size: 13px; font-weight: 600; }
.zone-schema .zone-paris text { fill: var(--ardoise); }
.zone-schema figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--ardoise); }

/* ---------- Formulaire de devis ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 72px); padding-bottom: var(--section); align-items: start; }
.contact-main > .fuite { margin-bottom: 32px; }
.contact-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 0; border-top: 2px solid var(--nuit); }
.coord { padding: 18px 0; border-bottom: 1px solid var(--trait); }
.coord h2 { margin-bottom: 6px; }
.coord p, .coord address { margin: 0 0 6px; font-style: normal; color: var(--ardoise); }
.coord a { display: inline-flex; align-items: center; gap: 8px; }
.coord-tel { font-family: var(--f-titre); font-weight: 700; font-size: 1.35rem; color: var(--nuit); text-decoration: none; }
.coord-social { display: flex; flex-direction: column; gap: 8px; }

.devis { display: grid; gap: 8px; }
.etape { border: 0; margin: 0; padding: 0 0 28px; min-width: 0; }
.etape + .etape { padding-top: 28px; background: linear-gradient(var(--trait), var(--trait)) top / 100% 1px no-repeat; }
.etape legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 20px; font-family: var(--f-titre); font-weight: 700; font-size: 1.32rem; color: var(--nuit); }
.etape-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--signature); font-size: 0.95rem; }
.champ { margin-bottom: 22px; }
.label { display: block; margin: 0 0 8px; font-weight: 600; color: var(--nuit); }
.req { color: #B3261E; }
.facultatif { font-weight: 400; color: var(--ardoise); }
.aide { font-size: 0.92rem; color: var(--ardoise); margin: -2px 0 10px; line-height: 1.45; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: #fff;
  border: 1.5px solid var(--trait-fort); border-radius: 6px; font-size: 1rem; line-height: 1.4;
}
textarea { min-height: 170px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--nuit) 50%), linear-gradient(135deg, var(--nuit) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { border-color: var(--action); outline: 3px solid rgba(27,102,173,.25); outline-offset: 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #B3261E; }
.champs-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.champs-ligne .champ-court { max-width: 220px; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.choix-item { position: relative; display: block; cursor: pointer; }
.choix-item input { position: absolute; z-index: 1; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choix-item span { display: flex; align-items: center; min-height: 48px; padding: 10px 16px 10px 40px; border: 1.5px solid var(--trait-fort); border-radius: 6px; background: #fff; line-height: 1.3; position: relative; }
.choix-item span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid var(--trait-fort); background: #fff; }
.choix-item:hover span { border-color: var(--nuit); }
.choix-item input:checked + span { border-color: var(--action); background: var(--teinte); color: var(--nuit); font-weight: 600; }
.choix-item input:checked + span::before { border-color: var(--action); background: radial-gradient(circle, var(--action) 0 4px, #fff 4.5px); }
.choix-item input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.choix[aria-invalid="true"] .choix-item span, [role="radiogroup"][aria-invalid="true"] .choix-item span { border-color: #B3261E; }
.aide-fuite { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 6px; background: var(--nuit); color: #DCE3F5; font-size: 0.97rem; }
.aide-fuite a { color: #fff; font-weight: 600; }
.aide-fuite .ic { color: var(--bleu-clair); margin-top: 3px; }
input[type="file"] { width: 100%; padding: 14px; border: 1.5px dashed var(--trait-fort); border-radius: 6px; background: var(--craie); cursor: pointer; }
.fichiers { list-style: none; display: grid; gap: 6px; margin-top: 10px; font-size: 0.92rem; }
.fichiers li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--craie); border-radius: 6px; }
.fichiers li.is-erreur { background: #FCE8E6; color: #8C1D18; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rgpd { font-size: 0.9rem; color: var(--ardoise); padding: 16px 18px; background: var(--craie); border-radius: 6px; }
.rgpd p { margin: 0; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 12px; }
.form-actions .aide { margin: 0; }
.form-erreurs { padding: 16px 18px; border-radius: 6px; background: #FCE8E6; color: #8C1D18; border: 1.5px solid #E2A49F; }
.form-erreurs p { margin: 0 0 6px; font-weight: 600; }
.form-erreurs ul { padding-left: 1.2em; }
.form-erreurs a { color: #8C1D18; }
.erreur-champ { display: block; margin-top: 6px; color: #B3261E; font-size: 0.92rem; font-weight: 600; }
.form-statut:empty { display: none; }
.form-statut { padding: 20px 22px; border-radius: var(--rayon); }
.form-statut.is-ok { background: #E7F5EC; border: 1.5px solid #6DBB8A; color: #14532D; }
.form-statut.is-erreur { background: #FCE8E6; border: 1.5px solid #E2A49F; color: #8C1D18; }
.form-statut strong { display: block; font-family: var(--f-titre); font-size: 1.15rem; margin-bottom: 4px; }
.form-statut p { margin: 0 0 6px; }
.form-statut a { color: inherit; font-weight: 600; }

/* ---------- Pages légales ---------- */
.legal { padding-block: 40px var(--section); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--nuit); color: #C3CCE4; padding-bottom: 28px; --focus: #7CC8F2; }
.site-footer .vague { width: 100%; height: 30px; transform: translateY(-1px); }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 36px 40px; }
.footer-brand img { width: 190px; height: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.94rem; max-width: 34ch; }
.footer-title { font-family: var(--f-titre); font-weight: 500; font-size: 1rem; color: #fff; margin-bottom: 14px; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #C3CCE4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact p { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; margin-bottom: 12px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .ic { color: var(--bleu-clair); margin-top: 3px; }
.footer-tel { font-family: var(--f-titre); font-weight: 700; color: #fff !important; font-size: 1.2rem; }
.footer-social { gap: 18px !important; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; font-size: 0.88rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(255,255,255,.14); }
.footer-bottom p { margin: 0; display: flex; gap: 20px; }

/* ---------- Barre de contact mobile ---------- */
.mobile-bar { display: none; }
@media (max-width: 899.98px) {
  html { scroll-padding-bottom: 96px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.page-merci { padding-bottom: 0; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff;
    border-top: 1px solid var(--trait); box-shadow: 0 -6px 20px -12px rgba(23,27,71,.35);
  }
  .mobile-bar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 6px; font-family: var(--f-titre); font-weight: 500; text-decoration: none; font-size: 1rem; }
  .mb-call { border: 2px solid var(--nuit); color: var(--nuit); background: #fff; }
  .mb-devis { background: var(--action); color: #fff; border: 2px solid var(--action); }
  .mobile-bar.is-call-first .mb-call, .mobile-bar.is-call-only .mb-call { background: var(--action); color: #fff; border-color: var(--action); }
  .mobile-bar.is-call-first .mb-devis { background: #fff; color: var(--nuit); border-color: var(--nuit); }
  .menu-ouvert .mobile-bar { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .etapes { grid-template-columns: 1fr; gap: 0; }
  .etapes::before { top: 20px; bottom: 30px; left: 20px; right: auto; width: 2px; height: auto; }
  .etapes li { padding: 4px 0 26px 64px; }
  .etapes h3 { margin-bottom: 4px; }
  .liens-prest { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cas-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .page-hero-grid, .page-hero-visuel .page-hero-grid, .two-col, .two-col-wide, .histoire-grid,
  .prest-feature, .prest-duo, .duo-liens, .pros-grid, .zone-grid, .apropos-hero, .contact-grid { grid-template-columns: 1fr; }
  .hero-text h1 { max-width: 20ch; }
  .slot-portrait { justify-self: start; max-width: 260px; }
  .contact-side { position: static; }
  .chantier-grid { grid-template-columns: 1fr; grid-template-areas: "medias" "fiche" "texte"; }
  .fiche { position: static; }
  .equip-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1.03rem; }
  .reperes-list { grid-template-columns: 1fr; }
  .reperes-list > div, .reperes-list > div + div { padding: 14px 0; border-left: 0; }
  .reperes-list > div + div { border-top: 1px solid var(--trait); }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .cols-listes, .champs-ligne, .cas-grid-3 { grid-template-columns: 1fr; }
  .champs-ligne .champ-court { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .fuite { padding: 18px; }
  .fuite .btn { width: 100%; justify-self: stretch; }
  .ba-handle span { width: 42px; height: 42px; }
  .section-head-row { align-items: flex-start; }
  .avis-grid-all { columns: 1; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html, html.defilement-doux { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Impression ---------- */
@media print {
  .site-header, .mobile-bar, .site-footer .vague, .cta-final, .ba-handle, .hp { display: none !important; }
  body { padding: 0; }
}

/* Fiche chantier : rythme des intertitres */
.chantier-texte h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); margin-top: 1.7em; }
.chantier-texte h2:first-child { margin-top: 0; }

/* =============================================================
   Passe « personnalité » — chaleur, photos au centre, mises en page variées
   ============================================================= */
:root {
  --pierre: #F2EEE8;        /* ton pierre très clair */
  --pierre-fonce: #E4DCD0;  /* gris chaud */
  --blanc-casse: #FAF8F5;
  --brun-texte: #4D4A57;    /* texte secondaire sur fond pierre */
}

/* Photos réelles (emplacements nommés) */
.media { margin: 0; overflow: hidden; border-radius: var(--rayon); width: 100%; max-width: 100%; background: var(--pierre); }
.media img, .media picture { width: 100%; height: 100%; object-fit: cover; }
.slot.media { border-radius: var(--rayon); }

/* Preuves sous le hero */
.preuves { background: #fff; border-bottom: 1px solid var(--trait); }
.preuves-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.preuves-list > div { padding: 22px 20px 24px 0; }
.preuves-list > div + div { padding-left: 22px; border-left: 1px solid var(--trait); }
.preuves dt { font-family: var(--f-titre); font-weight: 700; color: var(--nuit); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.15; }
.preuves dd { margin: 4px 0 0; color: var(--ardoise); font-size: 0.95rem; line-height: 1.4; }

/* Hero : micro-preuve et lien fuite */
.hero-cibles { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 4px; font-size: 0.95rem; color: var(--ardoise); }
/* Séparateur placé après chaque mot : au retour à la ligne, aucun point ne commence une ligne */
.hero-cibles > span:not(:last-child)::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--signature); margin-left: 14px; vertical-align: middle; }
.hero-sous { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 0.95rem; }
.hero-fuite { display: inline-flex; align-items: center; gap: 6px; color: var(--encre); }
.hero-fuite .ic { color: var(--signature); }

/* Split 50/50 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split-reverse > :first-child { order: 2; }
.split-texte > :last-child { margin-bottom: 0; }
.split-texte .lead { margin-bottom: 1em; }

/* Prestations de l'accueil */
.prest-sdb { margin-bottom: clamp(40px, 6vw, 80px); }
.prest-sdb h3 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); }
.prest-sdb .lead { color: var(--encre); }
.tags-ligne { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 24px; }
.tags-ligne li { padding: 6px 12px; border: 1px solid var(--trait-fort); border-radius: 4px; font-size: 0.92rem; color: var(--nuit); background: #fff; }
.prest-duo-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.prest-duo-media article h3 { margin-top: 18px; }
.prest-duo-media article p { color: var(--ardoise); margin-bottom: 12px; }
.prest-reno { margin-top: clamp(40px, 6vw, 80px); background: var(--pierre); border-radius: 12px; padding: clamp(24px, 4vw, 48px); }
.prest-reno p { color: var(--brun-texte); }

/* Réalisations en mosaïque (section phare) */
.section-real-phare { background: var(--blanc-casse); }
.section-real-phare .section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); }
.real-mosaic { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(16px, 2.5vw, 28px); }
.real-mosaic > :first-child { grid-row: 1 / span 2; }
.real-mosaic > :first-child .real-card-media, .real-mosaic > .slot:first-child { aspect-ratio: auto !important; height: 100%; min-height: 360px; }
.real-mosaic .slot { height: 100%; }
.real-mosaic-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.real-mosaic-pied p { margin: 0; color: var(--ardoise); max-width: 62ch; }
.real-card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--f-titre); font-weight: 500; color: var(--action); }

/* Alexandre / philosophie */
.section-alexandre { background: var(--pierre); }
.section-alexandre .split { grid-template-columns: 0.8fr 1.2fr; }
.section-alexandre p { color: var(--brun-texte); max-width: 60ch; }
.signature { margin: 0 0 22px; padding: 0; }
.signature p { font-family: var(--f-voix); font-style: italic; font-weight: 500; font-size: clamp(1.55rem, 1.05rem + 1.9vw, 2.35rem); line-height: 1.22; color: var(--nuit); margin: 0; text-wrap: balance; }
.signature footer { margin-top: 12px; font-size: 1rem; color: var(--brun-texte); }
.signature-bande { background: var(--nuit); color: #DCE3F5; --focus: #7CC8F2; }
.signature-bande .signature p { color: #fff; }
.signature-bande .signature footer { color: #C3CCE4; }

/* Étapes resserrées (4) */
.etapes { grid-template-columns: repeat(4, 1fr); }
.etapes p { max-width: 32ch; }

/* Bandeau pros + zone */
.duo-pros { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.duo-pros > article { padding: clamp(24px, 3.5vw, 40px); border-radius: 12px; }
.duo-pros .pros-bloc { background: var(--nuit); color: #DCE3F5; --focus: #7CC8F2; }
.duo-pros .pros-bloc h2 { color: #fff; }
.duo-pros .pros-bloc .link-more { color: #fff; }
.duo-pros .zone-bloc { background: #fff; border: 1px solid var(--trait); }
.duo-pros p { margin-bottom: 16px; }

/* Avis : fond blanc cassé */
.section-avis { background: var(--blanc-casse); }
.section-avis .avis { border-color: var(--pierre-fonce); }

/* Études de cas */
.cas-intro { font-family: var(--f-titre); font-weight: 500; color: var(--nuit); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); line-height: 1.4; max-width: 46ch; }
.probleme-solution { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--nuit); border-radius: var(--rayon); overflow: hidden; margin: 1.6em 0; }
.probleme-solution > div { padding: 22px 24px; }
.probleme-solution > div + div { background: var(--teinte); border-left: 1.5px solid var(--nuit); }
.probleme-solution h2 { font-size: 1.15rem !important; margin: 0 0 10px !important; }
.probleme-solution p:last-child, .probleme-solution ul:last-child { margin-bottom: 0; }
.pendant { list-style: none; display: grid; gap: 22px; counter-reset: pendant; }
.pendant li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.pendant li img { border-radius: var(--rayon); width: 100%; }
.pendant li p { margin: 0; color: var(--ardoise); }
.resultat { background: var(--pierre); border-radius: var(--rayon); padding: 22px 24px; }
.resultat p:last-child { margin: 0; }

/* Documents pros */
.docs-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; border-top: 2px solid var(--nuit); }
.docs-list li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.docs-list span { color: var(--ardoise); font-size: 0.92rem; }

/* Rénovation : tonalité habitat */
.page-renovation .page-hero { background-color: var(--blanc-casse); }
.page-renovation .section-alt { background: var(--pierre); }

/* À propos */
.apropos-hero { grid-template-columns: 1.25fr 0.75fr; }
.apropos-hero .lead + .lead { margin-top: -0.2em; }
.page-apropos .section-alt { background: var(--pierre); }
.methode { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin: 0; }
.methode > div { padding: 18px 0; border-top: 1px solid var(--pierre-fonce); }
.methode dt { font-family: var(--f-titre); font-weight: 700; color: var(--nuit); font-size: 1.1rem; margin-bottom: 4px; }
.methode dd { margin: 0; color: var(--brun-texte); }

/* Formulaire conditionnel */
.bloc-cond { margin-top: 20px; padding: 20px 22px 6px; border-radius: var(--rayon); background: var(--blanc-casse); border: 1px solid var(--pierre-fonce); }
.bloc-cond > .label-bloc { font-family: var(--f-titre); font-weight: 500; color: var(--nuit); margin: 0 0 14px; }
.choix-check .choix-item span::before { border-radius: 4px; }
.choix-check .choix-item input:checked + span::before { background: var(--action); box-shadow: inset 0 0 0 3px #fff; }
.alerte-fuite { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 4px 0 18px; padding: 16px 18px; border-radius: var(--rayon); background: var(--nuit); color: #fff; }
.alerte-fuite p { margin: 0; font-weight: 600; flex: 1 1 220px; }
.alerte-fuite .btn { background: var(--bleu-clair); color: var(--nuit); }
.contact-ou { font-size: 0.92rem; color: var(--ardoise); margin: -10px 0 18px; }

/* Mobile : plus court, footer allégé */
@media (max-width: 900px) {
  .split, .split-reverse, .section-alexandre .split, .prest-duo-media, .duo-pros, .probleme-solution, .methode { grid-template-columns: 1fr; }
  .split-reverse > :first-child { order: 0; }
  .real-mosaic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .real-mosaic > :first-child { grid-column: 1 / -1; grid-row: auto; }
  .real-mosaic > :first-child .real-card-media, .real-mosaic > .slot:first-child { min-height: 0; aspect-ratio: 4 / 3 !important; height: auto; }
  .probleme-solution > div + div { border-left: 0; border-top: 1.5px solid var(--nuit); }
  .etapes { grid-template-columns: 1fr; }
  .preuves-list { grid-template-columns: 1fr 1fr; }
  .preuves-list > div, .preuves-list > div + div { padding: 16px 12px 16px 0; border-left: 0; }
  .preuves-list > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--trait); }
  .preuves-list > div:nth-child(n+3) { border-top: 1px solid var(--trait); }
  .section-alexandre .media, .section-alexandre .slot { max-width: 420px; }
}
@media (max-width: 640px) {
  .footer-col-liens { display: none; }
  .footer-brand img { width: 140px; }
  .footer-grid { gap: 20px; padding-block: 24px 20px; }
  .real-mosaic { grid-template-columns: 1fr; }
  .real-mosaic > .slot:not(:first-child) { display: none; }
  .pendant li { grid-template-columns: 1fr; }
  .prest-sdb .media, .prest-sdb .slot { aspect-ratio: 4 / 3 !important; }
  .section-alexandre .media, .section-alexandre .slot { aspect-ratio: 1 / 1 !important; max-width: 280px; }
  .tags-ligne li { font-size: 0.86rem; padding: 5px 10px; }
}
.visually-h { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Correctifs : centrage de la bande de preuves, menu sur une ligne */
.preuves-list { margin-block: 0; margin-inline: auto; }
.nav-list > li > a, .nav-sub-toggle, .nav-tel, .btn-sm { white-space: nowrap; }
@media (min-width: 1140px) and (max-width: 1320px) {
  .nav { gap: 16px; }
  .nav-list > li > a, .nav-sub-toggle { padding-inline: 8px; font-size: 0.94rem; }
  .nav-tel span { display: none; }
  .nav-tel { padding: 8px; }
}
@media (max-width: 640px) {
  .page-accueil .section-avis .avis:nth-child(3) { display: none; }
  .prest-duo-media .media, .prest-duo-media .slot { aspect-ratio: 16 / 9 !important; }
  .section-avis .section-head-row .btn { width: 100%; }
}
.chantier-texte section > h2 { margin-top: 1.7em; }
.avant-apres { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.avant-apres figure { margin: 0; }
.avant-apres img { border-radius: var(--rayon); width: 100%; }
.aa-titre { font-family: var(--f-titre); font-weight: 500; color: var(--nuit); margin-bottom: 8px; }
.avant-apres > p { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) { .avant-apres { grid-template-columns: 1fr; } }
.filtres-vide { padding: 28px; border: 1.5px dashed var(--trait-fort); border-radius: var(--rayon); background: var(--blanc-casse); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.filtres-vide p { margin: 0; color: var(--encre); }


/* =====================================================================
   Recette GO / NO-GO — corrections responsive, tactiles et mobiles
   ===================================================================== */
/* Boutons : un libellé long passe à la ligne au lieu de déborder (jamais raccourci) */
.btn { white-space: normal; text-align: center; text-wrap: balance; height: auto; }
.btn > span { min-width: 0; }
.site-header .btn-sm, .nav-list > li > a, .nav-sub-toggle, .nav-tel { white-space: nowrap; }

/* Cibles tactiles : 44 × 44 px minimum */
.brand { display: flex; align-items: center; min-height: 44px; }
.site-header .btn-sm, .nav-tel { min-height: 44px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 24px; }
.hero-avis, .hero-fuite, .link-more { min-height: 44px; }
.sub a { display: flex; flex-direction: column; justify-content: center; min-height: 44px; }
a.tag { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
.site-footer .footer-links { gap: 0; }
.footer-links a, .footer-contact a, .footer-bottom a, .coord a, .contact-express a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact p { margin-bottom: 4px; }
.coord-social { gap: 0; }
.footer-bottom p { flex-wrap: wrap; column-gap: 20px; row-gap: 0; }

/* Résumé de contact (affiché quand la colonne de coordonnées passe sous le formulaire) */
.contact-express { display: none; }
@media (max-width: 900px) {
  .contact-express { display: grid; gap: 0; margin: 0 0 18px; border-top: 2px solid var(--nuit); }
  .contact-express p { display: flex; align-items: center; gap: 12px; margin: 0; min-height: 46px; border-bottom: 1px solid var(--trait); font-size: 0.97rem; flex-wrap: wrap; }
  .contact-express .ce-label { flex: 0 0 5.6em; font-family: var(--f-titre); font-weight: 500; color: var(--nuit); }
  .contact-express a { font-weight: 600; overflow-wrap: anywhere; }
  .contact-side .coord-doublon { display: none; }
}

/* Barre mobile : retirée pendant la saisie (clavier virtuel) */
@media (max-width: 899.98px) {
  body.saisie .mobile-bar { display: none; }
}

/* Rythme vertical et titres sur téléphone */
@media (max-width: 599.98px) {
  :root { --section: 44px; }
  h1, .hero-text h1 { font-size: 1.95rem; line-height: 1.12; }
  .choix-grid { grid-template-columns: 1fr; }
}
@media (max-width: 479.98px) {
  .choix-grid { grid-template-columns: 1fr; }
}
@media (max-width: 379.98px) {
  h1, .hero-text h1 { font-size: 1.8rem; }
  .brand img { height: 34px; }
  .nav-toggle { padding: 8px 12px; }
}

/* Pied de page sur téléphone : liens essentiels conservés, en deux colonnes compactes */
@media (max-width: 640px) {
  .footer-col-liens { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 24px; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-title { margin-bottom: 4px; }
  .footer-links a { font-size: 0.95rem; }
}
/* À propos : la grille héro (règle plus haut) doit repasser sur une colonne en mobile */
@media (max-width: 900px) {
  .apropos-hero { grid-template-columns: 1fr; }
}
/* Liens isolés (titres de cartes, listes de liens, coordonnées) : cible tactile de 44 px */
main :is(h2, h3) > a, .liste-liens a, .infos-pratiques dd > a { display: inline-flex; align-items: center; min-height: 44px; }
/* Bouton Menu : largeur stable entre « Menu » et « Fermer » (pas de débordement à 320 px) */
.nav-toggle { justify-content: center; }
@media (max-width: 379.98px) {
  .brand img { height: 32px; }
  .nav-toggle { min-width: 0; gap: 6px; padding: 8px 10px; }
  .header-inner { gap: 10px; }
}
/* Barre mobile : libellé centré s'il passe sur deux lignes (écrans de 320 px) */
.mobile-bar a { text-align: center; line-height: 1.15; padding-inline: 8px; }

/* Pied de page : liens sur deux lignes nettement séparés (audit visuel 320 px) */
.footer-links a { padding-block: 6px; line-height: 1.3; }
/* Signature : la citation « C’est bien comme ça » n’est jamais coupée (audit visuel) */
.sig-cite { white-space: nowrap; }
@media (max-width: 359.98px) { .sig-cite { white-space: normal; } }
/* Tablette : la photo principale « Salle de bain » ne doit pas occuper toute la hauteur d’écran (audit visuel 768 px) */
@media (min-width: 640.02px) and (max-width: 900px) {
  .prest-sdb .media, .prest-sdb .slot { aspect-ratio: 3 / 2 !important; }
}
.footer-bottom { align-items: center; }
/* Emplacements de réalisations (3 visuels à venir) sur deux colonnes : le premier occupe toute la largeur, pas de case vide (audit visuel 768 px) */
@media (min-width: 640.02px) and (max-width: 999.98px) {
  .real-grid > .slot:first-child:nth-last-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 9 !important; }
}
/* Grilles de choix : cases d’une même ligne à hauteur égale (audit visuel 1440 px) */
.choix-grid > .choix-item { display: flex; }
.choix-grid > .choix-item > span { flex: 1; }
/* Grilles de choix : colonnes d’au moins 200 px (libellés longs lisibles sur tablette et ordinateur, audit visuel 768 / 1440 px) */
@media (min-width: 480px) {
  .choix-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
}
/* Mot composé insécable : simple enveloppe de texte, immunisée contre les styles « span » des composants */
.insec { display: inline !important; white-space: nowrap; font: inherit !important; color: inherit !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; min-height: 0 !important; }
.insec::before, .insec::after { content: none !important; }
/* Avis sur tablette : deux colonnes équilibrées (pas de grand vide sous un avis court, audit visuel 768 px) */
@media (min-width: 640.02px) and (max-width: 999.98px) {
  .avis-grid { display: block; columns: 2; column-gap: 20px; }
  .avis-grid > .avis { break-inside: avoid; margin-bottom: 20px; }
}

/* ---------- Carrousel des avis (accueil) ---------- */
.carrousel-barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.carrousel-etat { margin: 0; font-size: 0.92rem; color: var(--ardoise); }
.carrousel-fleches { display: flex; gap: 10px; }
.no-js .carrousel-fleches { display: none; }
.carrousel-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--nuit); background: #fff; color: var(--nuit); cursor: pointer; transition: background-color .15s, color .15s, opacity .15s; }
.carrousel-btn .ic { width: 22px; height: 22px; }
.carrousel-btn:hover { background: var(--nuit); color: #fff; }
.carrousel-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.carrousel-btn[aria-disabled="true"] { opacity: .35; cursor: default; background: #fff; color: var(--nuit); }
.carrousel-piste {
  list-style: none; margin: 0; padding: 4px 2px 14px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px; align-items: start;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  scrollbar-width: thin; scrollbar-color: var(--trait-fort) transparent;
}
.carrousel-piste:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: var(--rayon); }
.carrousel-item { scroll-snap-align: start; min-width: 0; }
.carrousel-item .avis { height: auto; }
@media (max-width: 999.98px) { .carrousel-piste { grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; } }
@media (max-width: 640px) { .carrousel-piste { grid-auto-columns: 86%; gap: 14px; } .carrousel-item .avis { padding: 20px 18px 16px; } }
@media (prefers-reduced-motion: reduce) { .carrousel-btn { transition: none; } }
/* Accueil : blocs Plomberie et Chauffage — titre, photo, description, lien (même ordre à toutes les tailles) */
.prest-duo-media article { display: flex; flex-direction: column; }
.prest-duo-media article h3 { order: 0; margin: 0 0 14px; }
.prest-duo-media article > .media, .prest-duo-media article > .slot { order: 1; margin: 0 0 16px; }
.prest-duo-media article p { order: 2; }
.prest-duo-media article .link-more { order: 3; align-self: flex-start; }
/* Accueil : intitulé « Rénovation, salle de bain, plomberie et chauffage… » tenu en 4 lignes de 380 à 599 px, sans couper « salle de bain » */
@media (min-width: 380px) and (max-width: 599.98px) {
  .page-accueil .hero-text h1 { font-size: 1.85rem; }
}

/* Page contact sur téléphone : l'arrivée en haut montre l'introduction ET le début du formulaire.
   Bloc compact (même contenu), sans doublon : les horaires figurent déjà dans le résumé juste au-dessus. */
@media (max-width: 640px) {
  .page-contact .breadcrumb { padding-top: 10px; }
  .page-contact .page-hero-contact { padding-top: 12px; padding-bottom: 12px; }
  .page-contact .page-hero-contact h1 { margin-bottom: 0.3em; }
  .page-contact .page-hero-contact .lead { font-size: 1rem; line-height: 1.5; margin-bottom: 0; }
  .contact-express { grid-template-columns: 1fr 1fr; column-gap: 12px; margin-bottom: 12px; }
  .contact-express p { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; min-height: 52px; padding-block: 4px; }
  .contact-express p:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .contact-express .ce-label { flex: none; font-size: 0.78rem; line-height: 1.2; color: var(--ardoise); }
  .contact-express p > span:last-child { font-size: 0.95rem; }
  .contact-express a { font-size: 0.95rem; min-height: 44px; display: inline-flex; align-items: center; margin-top: -8px; margin-bottom: -6px; }
  .page-contact .contact-main > .fuite { margin-bottom: 16px; padding: 12px 14px; grid-template-columns: 1fr; gap: 2px; }
  .page-contact .contact-main > .fuite .fuite-ic, .page-contact .contact-main > .fuite .fuite-hours { display: none; }
  .page-contact .contact-main > .fuite .fuite-titre { font-size: 1.02rem; margin: 0; }
  .page-contact .contact-main > .fuite .fuite-body p:not(.fuite-titre) { font-size: 0.93rem; }
  .page-contact .contact-main > .fuite .btn { margin-top: 8px; min-height: 46px; }
  .page-contact .devis .etape:first-of-type { padding-top: 0; margin-top: 0; }
}
@media (max-width: 640px) {
  .page-contact .devis .etape legend { margin-bottom: 12px; font-size: 1.2rem; }
  .page-contact .contact-main > .fuite { margin-bottom: 12px; }
  .page-contact .contact-main > .fuite .btn { min-height: 44px; padding-block: 6px; }
}
@media (max-width: 379.98px) {
  .page-contact .page-hero-contact .lead { font-size: 0.95rem; }
}

/* V14 — corrections issues de l’audit visuel indépendant (aucune refonte) */
/* Étapes sur 4 colonnes : le trait s’arrête au centre de la 4e pastille */
@media (min-width: 900px) { .etapes::before { right: calc(25% - 41px); } }
/* Barre mobile : « Appeler » à sa largeur, « Demander un devis » prend le reste et tient sur une ligne */
@media (max-width: 899.98px) {
  .mobile-bar a { flex: 1 1 auto; } /* largeur selon le libellé, place restante partagée ; seul, le bouton occupe toute la barre */
  .mobile-bar .mb-call { padding-inline: 16px; }
  .mobile-bar .mb-devis { white-space: nowrap; }
}
@media (max-width: 379.98px) {
  .mobile-bar .mb-call { padding-inline: 12px; }
  .mobile-bar a { font-size: 0.94rem; }
}
/* Résumé de contact (téléphone) : libellés alignés en haut de chaque case */
@media (max-width: 640px) { .page-contact .contact-express p { justify-content: flex-start; } }
/* V15 : accroche salle de bain sous le H1 de l'accueil, puis présentation d'Alexandre en texte courant */
.hero-text .hero-accroche { color: var(--nuit); font-weight: 600; margin-bottom: 10px; }
.hero-text .hero-intro { color: var(--ardoise); margin: 0 0 16px; }
/* V15 : page Salle de bain, deux possibilités (création complète / rénovation) */
.sdb-deux { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); margin-top: 20px; }
.sdb-deux > article { background: #fff; border: 1px solid var(--trait); border-radius: 12px; padding: clamp(20px, 3vw, 32px); }
.sdb-deux h3 { margin-bottom: 8px; }
.sdb-deux p { margin: 0; }
@media (max-width: 900px) { .sdb-deux { grid-template-columns: 1fr; } }
/* V15 : formulaire — trait de séparation entre deux étapes placé sous l'étape précédente
   (en haut d'un fieldset, il traversait la légende « 2 Votre projet ») */
.etape + .etape { background: none; }
.etape:has(+ .etape) { background: linear-gradient(var(--trait), var(--trait)) bottom / 100% 1px no-repeat; }
/* V15 : résumé de contact (tablette) : libellé « Horaires d'appel » sur une ligne */
@media (min-width: 641px) { .contact-express .ce-label { flex: 0 0 8.6em; white-space: nowrap; } }
/* V15 : Salle de bain sur une colonne : le titre « De la préparation jusqu'aux finitions » avant ses listes */
@media (max-width: 900px) { .split-reverse > .cols-listes { order: 2; } }
/* V16 : logo officiel (raster fourni par l’entreprise, proportions d’origine).
   En-tête : l’icône officielle (petit format, le texte du logo complet y serait illisible).
   Pied de page : logo complet sur fond blanc (la version couleur n’est pas lisible sur le fond foncé ;
   la variante blanche vectorisée attend la validation d’Alexandre). Largeur ≤ 250 px (rendu 2×). */
.brand img { width: auto; height: 52px; }
@media (max-width: 1139.98px) { .brand img { height: 48px; } }
@media (max-width: 640px) { .brand img { height: 44px; } }
.footer-logo { display: inline-block; margin: 0 0 18px; padding: 12px 16px; background: #fff; border-radius: 10px; line-height: 0; }
.footer-brand .footer-logo img { width: 220px; max-width: 100%; height: auto; margin: 0; }
@media (max-width: 640px) { .footer-brand .footer-logo img { width: 200px; } }
/* V16 : logos de qualification / adhésion (affichés seulement une fois activés) : fond blanc, marges, jamais recadrés */
.badges-qualif { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0 20px; padding: 0; }
.badge-qualif { display: grid; justify-items: center; gap: 8px; padding: 14px; background: #fff; border: 1px solid var(--trait); border-radius: 10px; font-size: 0.85rem; text-align: center; max-width: 220px; }
.badge-qualif img { width: 100%; height: auto; object-fit: contain; }
/* V16 : offre secondaire (entretien, dépannage, chaudières, chauffage, plomberie, pompes à chaleur) */
.section-services2 .muted { margin: -4px 0 18px; }
.services2 a { padding-block: 16px; }
@media (min-width: 641px) and (max-width: 900px) { .liens-prest.services2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services2 a { padding: 14px 44px 14px 16px; } .services2 span { font-size: 0.9rem; } }
.services2-compact { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; padding: 0; }
.services2-compact a { display: inline-flex; align-items: center; min-height: 44px; }
.coord-interlocuteur p + p { margin-top: 8px; }
/* V16 : résumé de contact — horaires sur deux lignes (lun.–ven. / sam.) ; téléphone : une rangée par information */
.ce-plages > span { display: block; }
@media (max-width: 640px) {
  .contact-express { grid-template-columns: 1fr; }
  .contact-express p { flex-direction: row; align-items: center; gap: 10px; min-height: 40px; padding-block: 2px; }
  .contact-express p:nth-child(2) { grid-column: auto; order: 0; }
  .contact-express .ce-label { flex: 0 0 5.4em; font-size: 0.8rem; }
  .contact-express a { margin-top: -3px; margin-bottom: -3px; }
  .contact-express .ce-plages { font-size: 0.92rem; line-height: 1.35; }
  .brand img { height: 50px; }
}
/* V16 (audit visuel) : rangée « Horaires » sur deux lignes aussi aérée que les autres ; marque « à compléter » détachée des cartes ;
   petite mention sous les horaires du pied de page plus serrée */
.contact-express p.ce-horaires { padding-block: 9px; }
.section-services2 .todo { display: inline-block; margin-top: 16px; }
.footer-hours small { display: block; margin-top: 4px; line-height: 1.4; }

/* Real project media: preserve portrait framing in project pages. */
.chantier-medias > img, .chantier-medias > picture { display:block; width:100%; max-height:680px; object-fit:contain; border-radius:var(--rayon); background:var(--pierre); }
.chantier-texte video { display:block; max-height:640px; object-fit:contain; margin-inline:auto; }
.galerie img { display:block; aspect-ratio:3/4; object-fit:contain; background:var(--pierre); }
@media(max-width:640px) { .chantier-medias > img { max-height:520px; } .chantier-texte video { max-height:560px; } }
/* V18: larger header mark, with matching sticky-header offsets. */
:root { --header-h: 96px; }
.brand img { height: 80px; width: auto; }
@media (max-width:1139.98px) {
  :root { --header-h: 84px; }
  .brand img { height: 68px; }
}
@media (max-width:640px) {
  :root { --header-h: 80px; }
  .brand img { height: 64px; }
}

/* ---------- V19 : comparateur photo et paires avant / après ---------- */
.ba-layer img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.ba figcaption a { white-space: nowrap; }
.hero-visuel .ba, .page-hero-visuel .ba { max-width: 520px; margin-inline: auto; }
.aa-cote { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); max-width: 980px; }
.aa-photo { margin: 0; }
.aa-cadre { position: relative; overflow: hidden; border-radius: var(--rayon); border: 1.5px solid var(--nuit); aspect-ratio: 3 / 4; background: var(--pierre); }
.aa-cadre img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aa-cadre .ba-tag { font-size: 0.95rem; padding: 5px 12px; }
.aa-cadre .ba-tag-after { left: 12px; right: auto; }
.aa-photo figcaption { margin-top: 8px; font-size: 0.92rem; color: var(--ardoise); }
.aa-photo figcaption strong { color: var(--nuit); font-family: var(--f-titre); font-weight: 500; }
.aa-legende { grid-column: 1 / -1; margin: 0; font-size: 0.9rem; }
.aa-lien { margin-top: 14px; }
@media (max-width: 520px) { .aa-cote { gap: 10px; } .aa-cadre .ba-tag { font-size: 0.8rem; padding: 3px 8px; top: 8px; left: 8px; } .aa-photo figcaption { font-size: 0.82rem; } }
.real-card-media img { object-position: var(--cadrage, 50% 50%); }
.chantier-une { margin: 0; }
.chantier-une img { display: block; width: 100%; max-height: 680px; object-fit: contain; border-radius: var(--rayon); background: var(--pierre); }
.chantier-une figcaption { margin-top: 8px; font-size: 0.9rem; color: var(--ardoise); }
.chantier-texte > section { margin-top: 1.8em; }
.pendant { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 18px; padding: 0; }
.pendant li { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 8px; }
.pendant li p { font-size: 0.9rem; }
@media (max-width: 640px) { .pendant { grid-template-columns: 1fr 1fr; gap: 12px; } .pendant li p { font-size: 0.82rem; } }
.chantier-medias .ba { max-width: 640px; }
.media img { object-position: var(--cadrage, 50% 50%); }
/* Crédit du créateur du site (pied de page) */
.footer-credit a { gap: 10px; color: #C3CCE4; text-decoration: none; }
.footer-credit a:hover > span:first-child, .footer-credit a:focus-visible > span:first-child { text-decoration: underline; }
.credit-logo { display: inline-flex; align-items: center; padding: 6px 10px; background: #FEFDF8; border-radius: 8px; line-height: 0; transition: box-shadow .15s; }
.credit-logo img { height: 24px; width: auto; display: block; }
.footer-credit a:hover .credit-logo { box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
@media (max-width: 640px) { .footer-bottom .footer-credit { order: 3; width: 100%; } .credit-logo img { height: 22px; } }
.galerie .galerie-large { grid-column: 1 / -1; }
.galerie .galerie-large img { aspect-ratio: auto; object-fit: cover; background: none; }
/* étapes : vignettes de même format ; une photo panoramique occupe deux colonnes */
.pendant li img { aspect-ratio: 2 / 3; object-fit: cover; background: var(--pierre); }
.pendant li.pendant-large { grid-column: span 2; }
.pendant li.pendant-large img { aspect-ratio: auto; height: auto; max-height: none; }

/* ---------- V19 : dimensions sur grands écrans et écrans peu hauts ---------- */
/* Comparateurs 4:5 : largeur limitée pour que la hauteur tienne dans la fenêtre (en-tête et légende compris) */
.hero-visuel .ba, .page-hero-visuel .ba { max-width: min(520px, calc((100vh - 230px) * 0.8)); }
.chantier-medias .ba { max-width: min(560px, calc((100vh - 200px) * 0.8)); }
@media (min-width: 901px) {
  /* Mosaïque de l'accueil : la grande carte prend la hauteur des deux cartes voisines, sans dépasser */
  .real-mosaic > :first-child .real-card-link { display: flex; flex-direction: column; }
  .real-mosaic > :first-child .real-card-media { position: relative; flex: 1 1 auto; height: auto; min-height: 360px; }
  .real-mosaic > :first-child .real-card-media img, .real-mosaic > :first-child .real-card-media picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  /* Accueil, Plomberie / Chauffage côte à côte : format carré sur ordinateur (4:5 conservé sur mobile) */
  .prest-duo-media .media { aspect-ratio: 1 / 1 !important; }
  /* Photos pleine largeur des galeries : jamais plus hautes que la fenêtre */
  .galerie .galerie-large img { max-height: 80vh; }
}
@media (min-width: 901px) {
  .real-mosaic > :not(:first-child) .real-card-media { aspect-ratio: 16 / 10; }
  /* Photos des sections texte + image (format portrait) : hauteur limitée à la fenêtre, recadrage centré */
  .split .media, .split-texte .media { max-height: min(76vh, 640px); }
  .split .media img, .split-texte .media img { height: 100%; }
  /* Fiches chantier : visuel principal et vidéo jamais plus hauts que la fenêtre */
  .chantier-medias > img, .chantier-medias > picture, .chantier-une img { max-height: min(76vh, 680px); }
  .chantier-texte video { max-height: min(76vh, 640px); }
  .aa-cote { max-width: min(980px, calc((76vh) * 1.5 + 24px)); }
}

/* ---------- V19 : grands écrans (≥ 1680 px et ≥ 2200 px) ----------
   Colonne de contenu plus large et texte légèrement agrandi, pour éviter une page étroite
   perdue au milieu de l'écran ; les médias restent bornés par la hauteur de la fenêtre. */
@media (min-width: 1680px) {
  :root { --max: 1360px; }
  html { font-size: 106.25%; }
  .hero-visuel .ba, .page-hero-visuel .ba { max-width: min(600px, calc((100vh - 250px) * 0.8)); }
  .chantier-medias .ba { max-width: min(640px, calc((100vh - 200px) * 0.8)); }
}
@media (min-width: 2200px) {
  :root { --max: 1520px; }
  html { font-size: 112.5%; }
  .hero-visuel .ba, .page-hero-visuel .ba { max-width: min(680px, calc((100vh - 270px) * 0.8)); }
  .chantier-medias .ba { max-width: min(720px, calc((100vh - 220px) * 0.8)); }
}
@media (min-width: 1680px) { .section-head { max-width: 900px; } }
/* Écrans d'ordinateur peu hauts (portables 1366 × 768, 1440 × 900) : mosaïque en trois colonnes égales */
@media (min-width: 901px) and (max-height: 960px) {
  .real-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; }
  .real-mosaic > :first-child { grid-row: auto; }
  .real-mosaic > :first-child .real-card-link { display: block; }
  .real-mosaic > :first-child .real-card-media, .real-mosaic > :not(:first-child) .real-card-media { position: relative; aspect-ratio: 4 / 3 !important; min-height: 0; height: auto; }
  .real-mosaic > :first-child .real-card-media img, .real-mosaic > :first-child .real-card-media picture { position: static; }
}
.certif-assurance { max-width: 62ch; margin: 4px 0 20px; color: var(--ardoise); }
.services2-zone { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; font-size: 0.92rem; color: var(--ardoise); }
.services2-zone svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--action); }

/* ---------- Avis Google : cartes redessinées (V20) ---------- */
.avis-resume { gap: 6px 18px; }
.avis-note { gap: 10px; font-size: 1rem; }
.avis-note strong { font-size: 2rem; line-height: 1; color: var(--nuit); }
.avis-note .avis-etoiles .ic { width: 20px; height: 20px; }
.avis-nombre { color: var(--encre); font-weight: 500; }
.avis {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 22px 24px 20px; border-radius: 14px; background: #fff;
  border: 1px solid var(--trait); box-shadow: 0 1px 2px rgba(23, 27, 71, .04), 0 8px 24px -12px rgba(23, 27, 71, .14);
}
.avis::after {
  content: "\201D"; position: absolute; right: 16px; bottom: -22px; font-family: var(--f-voix); font-size: 6rem; line-height: 1;
  color: var(--teinte); pointer-events: none;
}
.avis-tete { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.avis-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-titre); font-weight: 600; font-size: 0.95rem; letter-spacing: .02em; color: #fff; background: var(--nuit);
}
.avis-teinte-1 { background: var(--action); }
.avis-teinte-2 { background: #1F7A8C; }
.avis-teinte-3 { background: #B5651D; }
.avis-teinte-4 { background: #5B4B8A; }
.avis-qui { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.avis-qui strong { font-family: var(--f-titre); font-weight: 600; font-size: 1rem; color: var(--nuit); }
.avis-qui span { font-size: 0.86rem; color: var(--ardoise); }
.avis-source { margin-left: auto; display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--craie); color: var(--action); }
.avis-source .ic { width: 18px; height: 18px; }
.avis-etoiles { display: inline-flex; gap: 2px; color: var(--etoile); }
.avis-etoiles .ic { width: 18px; height: 18px; }
.avis-etoiles .ic-star-vide { color: var(--trait); }
.avis blockquote.avis-texte { margin: 0; font-size: 1rem; line-height: 1.62; position: relative; z-index: 1; }
.js .avis-texte.replie { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden; }
.js .avis-texte.replie p { margin-bottom: 0; display: inline; }
.js .avis-texte.replie p + p::before { content: " "; }
.avis-plus {
  align-self: flex-start; margin-top: -2px; padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: 600 0.92rem var(--f-texte); color: var(--action); text-decoration: underline; text-underline-offset: 3px;
}
.avis-plus:hover { color: var(--action-fonce); }
.avis-plus:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.carrousel-piste { align-items: stretch; }
.carrousel-item { display: flex; }
.carrousel-item .avis { height: auto; flex: 1; }
.section-avis .avis { border-color: var(--trait); }
@media (max-width: 640px) {
  .avis { padding: 18px 18px 16px; }
  .avis::after { font-size: 4.6rem; right: 12px; bottom: -16px; }
  .avis-note strong { font-size: 1.7rem; }
}

/* ---------- Accroche du logo, à côté de l'icône dans l'en-tête ---------- */
.brand { gap: 12px; text-decoration: none; }
.brand-accroche { display: flex; flex-direction: column; justify-content: center; font-family: var(--f-titre); line-height: 1.25; color: var(--action); white-space: nowrap; }
.acc-metiers { font-weight: 600; font-size: 0.9rem; }
.acc-phrase { font-weight: 500; font-size: 0.84rem; color: var(--action); }
@media (min-width: 1140px) and (max-width: 1679.98px) {
  .header-inner { gap: 14px; }
  .brand { gap: 10px; }
  .brand img { height: 64px; }
  .acc-metiers { font-size: 0.8rem; }
  .acc-phrase { font-size: 0.75rem; }
}
@media (max-width: 640px) {
  .brand { gap: 10px; flex: 1 1 auto; min-width: 0; }
  .brand img { height: 52px; flex: none; }
  .brand picture { flex: none; }
  .brand-accroche { white-space: normal; min-width: 0; }
  .acc-metiers { font-size: 0.74rem; }
  .acc-phrase { font-size: 0.7rem; }
}
@media (max-width: 480px) {
  /* bouton Menu réduit à son icône (libellé conservé pour les lecteurs d'écran) pour laisser la place à l'accroche */
  .nav-toggle { min-width: 44px; padding: 8px 10px; }
  .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-inner { gap: 10px; }
}
@media (max-width: 359.98px) {
  .brand img { height: 44px; }
  .acc-metiers { font-size: 0.68rem; }
  .acc-phrase { font-size: 0.66rem; }
}
