/* =============================================================================
   BATI-CORP — Système de design « Bleu de plan & acier »
   Entreprise du bâtiment & toiture, premium. OKLCH, mobile-first, WCAG AA.
   Sommaire : 1.Reset  2.Tokens  3.Base  4.Layout  5.Header  6.Boutons
   7.Héro  8.Composants  9.Formulaire  10.Footer  11.Motion  12.Utilitaires
   ============================================================================= */

/* ---------- 1. Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body { min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class] { list-style: none; padding: 0; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p, li) { text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- 2. Tokens ---------- */
:root {
  /* Couleurs (OKLCH) */
  --bg: oklch(1 0 0);
  --surface: oklch(0.972 0.004 250);
  --surface-2: oklch(0.945 0.006 250);
  --ink: oklch(0.23 0.02 260);
  --muted: oklch(0.50 0.02 260);
  --line: oklch(0.90 0.006 260);
  --line-strong: oklch(0.83 0.008 260);
  --primary: oklch(0.50 0.15 258);
  --primary-strong: oklch(0.42 0.14 260);
  --primary-deep: oklch(0.26 0.07 262);
  --primary-deep-2: oklch(0.185 0.055 264);
  --accent: oklch(0.72 0.12 78);
  --accent-strong: oklch(0.64 0.12 70);
  --accent-soft: oklch(0.86 0.075 82);

  /* Sur fond sombre */
  --on-dark: oklch(0.97 0.005 260);
  --on-dark-muted: oklch(0.80 0.02 262);
  --line-on-dark: oklch(1 0 0 / 0.14);

  /* Typographie */
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.32rem + 0.66vw, 1.85rem);
  --step-3:  clamp(1.75rem, 1.55rem + 1vw, 2.4rem);
  --step-4:  clamp(2.1rem, 1.78rem + 1.6vw, 3.1rem);
  --step-5:  clamp(2.5rem, 2rem + 2.5vw, 3.9rem);

  /* Espacements */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --container: 74rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  /* Formes & ombres */
  --r-sm: 4px; --r-md: 8px; --r-lg: 14px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px oklch(0.26 0.07 262 / 0.06), 0 2px 8px oklch(0.26 0.07 262 / 0.05);
  --shadow-md: 0 6px 18px oklch(0.26 0.07 262 / 0.09), 0 2px 6px oklch(0.26 0.07 262 / 0.06);
  --shadow-lg: 0 20px 48px oklch(0.26 0.07 262 / 0.16), 0 6px 16px oklch(0.26 0.07 262 / 0.08);

  /* Z-index sémantique */
  /* --z-header au-dessus de l'overlay : le drawer mobile est imbriqué dans l'en-tête
     sticky (qui crée un contexte d'empilement), il doit donc monter avec lui au-dessus du voile. */
  --z-header: 250; --z-overlay: 200; --z-drawer: 210; --z-toast: 300;

  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* ease-out-expo-ish */
  --t-fast: 140ms; --t-med: 260ms; --t-slow: 480ms;
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: var(--step-5); letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: var(--step-4); letter-spacing: -0.025em; }
h3 { font-size: var(--step-2); line-height: 1.15; }
h4 { font-size: var(--step-1); line-height: 1.2; }
p { max-width: 68ch; }
a:not([class]) { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in oklch, var(--primary) 45%, transparent); }
a:not([class]):hover { text-decoration-color: var(--primary); }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--primary); color: #fff; }
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: var(--z-toast);
  background: var(--primary); color: #fff; padding: 0.6rem 1rem; border-radius: var(--r-sm);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

/* Icônes en ligne (taille par défaut + variations par contexte) */
.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.btn .icon, .link-arrow .icon, .footer-contact .icon, .hero__trust .icon { width: 1.12rem; height: 1.12rem; }
.review__stars .icon { width: 1.05rem; height: 1.05rem; }
.breadcrumb .icon { width: 1rem; height: 1rem; }
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; }
.service__icon .icon { width: 1.5rem; height: 1.5rem; }
.checklist .icon, .prose ul .icon, .contact-list .ci .icon, .assurance__icon .icon { width: 1.3rem; height: 1.3rem; }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 52rem; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--primary-deep); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--on-dark-muted); }

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }

/* En-tête de section réutilisable (pas d'eyebrow majuscule répétée) */
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: var(--step-1); margin-top: var(--space-4); }
.section--dark .section-head p { color: var(--on-dark-muted); }

/* Signature : filet laiton court sous un titre */
.rule-brass { width: 3rem; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 1.25rem; }
.section-head--center .rule-brass { margin-inline: auto; }

/* Petit label métier (usage rare, pas au-dessus de chaque section) */
.tag {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-head); font-weight: 600; font-size: var(--step--1);
  color: var(--primary); background: color-mix(in oklch, var(--primary) 9%, var(--bg));
  padding: 0.32rem 0.7rem; border-radius: var(--r-pill); letter-spacing: 0.01em;
}
.section--dark .tag { color: var(--accent-soft); background: oklch(1 0 0 / 0.08); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  /* Pas de backdrop-filter : il créait un bloc conteneur qui piégeait le drawer
     mobile (position:fixed) à l'intérieur de l'en-tête. Fond quasi opaque à la place. */
  background: color-mix(in oklch, var(--bg) 94%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); background: var(--bg); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: var(--space-5); min-height: 4.75rem; }

/* Logo typographique */
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); color: var(--ink); }
.logo:hover .logo-mark { transform: translateY(-1px); }
.logo-mark { width: 34px; height: 34px; flex: none; transition: transform var(--t-med) var(--ease); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-weight: 800; font-size: 1.16rem; letter-spacing: -0.02em; }
.logo-sub { font-family: var(--font-body); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(0.5rem, 1.6vw, 1.6rem); list-style: none; margin: 0; padding: 0; }
.primary-nav a { position: relative; font-family: var(--font-head); font-weight: 600; font-size: 0.97rem; color: var(--ink); padding: 0.4rem 0.15rem; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.header-tel { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-head); font-weight: 700; color: var(--ink); white-space: nowrap; }
.header-tel svg { color: var(--primary); }
.header-tel span small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle:hover { background: var(--surface-2); }

/* Logo : chevron indigo + filet laiton */
.logo-mark .rm { stroke: var(--primary); }
.logo-mark .ra { stroke: var(--accent); }
.footer-brand .logo-mark .rm { stroke: #fff; }

/* Le bouton Devis du menu mobile n'apparaît que dans le drawer */
.nav-cta { display: none; }
/* Garder le texte blanc du bouton CTA malgré la règle de couleur des liens de nav */
.primary-nav .nav-cta a { color: #fff; }

/* ---------- 6. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; line-height: 1;
  padding: 0.9rem 1.4rem; border-radius: var(--r-sm); border: 1.5px solid transparent;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 1px 0 oklch(1 0 0 / 0.25) inset, var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-strong); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--lg { padding: 1.05rem 1.7rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.section--dark .btn--ghost, .hero .btn--ghost, .cta-band .btn--ghost { color: #fff; border-color: var(--line-on-dark); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .cta-band .btn--ghost:hover { border-color: var(--accent-soft); color: var(--accent-soft); }
.btn--accent { background: var(--accent); color: oklch(0.28 0.05 70); box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--accent-soft); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-head); font-weight: 700; color: var(--primary); }
.link-arrow svg { transition: transform var(--t-med) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--accent-soft); }

/* ---------- 7. Héro ---------- */
.hero { position: relative; color: var(--on-dark); overflow: clip; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, oklch(0.18 0.05 264 / 0.58) 0%, oklch(0.18 0.05 264 / 0.78) 52%, oklch(0.15 0.045 264 / 0.96) 100%),
    linear-gradient(100deg, oklch(0.15 0.045 264 / 0.90) 0%, oklch(0.15 0.045 264 / 0.55) 42%, transparent 70%);
}
.hero__inner { padding-block: clamp(4.5rem, 12vw, 8.5rem); max-width: 44rem; }
.hero h1 { color: #fff; }
.hero__lead { font-size: var(--step-1); color: oklch(0.93 0.014 264); margin-top: var(--space-5); max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line-on-dark); }
.hero__trust li { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--on-dark); }
.hero__trust svg { color: var(--accent-soft); flex: none; }

/* ---------- 8. Composants ---------- */

/* Bandeau de réassurance */
.assurance { border-block: 1px solid var(--line); background: var(--bg); }
.assurance__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.assurance__item { display: flex; align-items: center; gap: 0.85rem; padding: 1.3rem var(--gutter); }
.assurance__item + .assurance__item { border-left: 1px solid var(--line); }
.assurance__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm); background: color-mix(in oklch, var(--primary) 9%, var(--bg)); color: var(--primary); }
.assurance__item b { font-family: var(--font-head); font-size: 0.98rem; display: block; letter-spacing: -0.01em; }
.assurance__item span { color: var(--muted); font-size: var(--step--1); }

/* Prestations : liste éditoriale variée (pas une grille de cartes clonées) */
.services { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(6, 1fr); }
.service {
  position: relative; grid-column: span 2; display: flex; flex-direction: column;
  padding: clamp(1.4rem, 2.4vw, 2rem); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: clip; transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.service:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.service h3 { font-size: var(--step-1); }
.service p { color: var(--muted); font-size: 0.98rem; margin-top: 0.5rem; flex: 1; }
.service .link-arrow { margin-top: 1.1rem; font-size: 0.95rem; }
.service__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-sm); background: color-mix(in oklch, var(--primary) 9%, var(--bg)); color: var(--primary); margin-bottom: 1.1rem; }
/* La prestation phare occupe plus de place */
.service--feature { grid-column: span 6; flex-direction: row; align-items: stretch; padding: 0; border: 0; background: var(--primary-deep); color: var(--on-dark); }
.service--feature .service__body { padding: clamp(1.8rem, 3.4vw, 2.8rem); display: flex; flex-direction: column; justify-content: center; flex: 1; }
.service--feature h3 { color: #fff; font-size: var(--step-2); }
.service--feature p { color: var(--on-dark-muted); font-size: var(--step-0); max-width: 44ch; }
.service--feature .service__media { flex: 1; min-height: 240px; }
.service--feature .service__media img { width: 100%; height: 100%; object-fit: cover; }
.service--feature:hover { transform: none; box-shadow: var(--shadow-lg); }
.service--feature .link-arrow { color: var(--accent-soft); }

/* Bloc « pourquoi nous » en deux colonnes texte + visuel */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr 1fr; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; border-radius: var(--r-lg); overflow: clip; box-shadow: var(--shadow-lg); }
.split__media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.split__media--tall img { aspect-ratio: 3 / 3.4; }

/* Liste d'atouts avec puce laiton */
.checklist { display: grid; gap: 1rem; }
.checklist li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.7rem; align-items: start; }
.checklist svg { color: var(--accent-strong); margin-top: 3px; }
.checklist b { font-family: var(--font-head); display: block; font-size: 1.05rem; letter-spacing: -0.01em; }
.checklist span { color: var(--muted); font-size: 0.97rem; }
.section--dark .checklist svg { color: var(--accent-soft); }
.section--dark .checklist span { color: var(--on-dark-muted); }

/* Points forts qualitatifs : affirmation lisible + preuve, en liste (sans faux gros chiffres décoratifs) */
.stats { display: flex; flex-direction: column; }
.stat { display: grid; grid-template-columns: 2.5rem 1fr; align-items: baseline; column-gap: 1rem; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.stat:first-child { padding-top: 0.25rem; border-top: none; }
.section--dark .stat { border-color: oklch(1 0 0 / 0.14); }
.stat::before { content: ""; align-self: center; height: 3px; border-radius: 2px; background: var(--accent); }
.stat b { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink); }
.section--dark .stat b { color: oklch(1 0 0); }
.stat span { grid-column: 2; display: block; margin-top: 0.25rem; color: var(--muted); font-size: 1rem; line-height: 1.5; max-width: 46ch; }
.section--dark .stat span { color: var(--on-dark-muted); }

/* Galerie de réalisations */
.gallery { display: grid; gap: clamp(0.8rem, 1.6vw, 1.2rem); grid-template-columns: repeat(3, 1fr); }
.project { position: relative; border-radius: var(--r-md); overflow: clip; background: var(--primary-deep); box-shadow: var(--shadow-sm); }
.project img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; transition: transform var(--t-slow) var(--ease), opacity var(--t-med) var(--ease); }
.project:hover img { transform: scale(1.05); opacity: 0.85; }
.project__cap { position: absolute; inset-inline: 0; bottom: 0; padding: 1.4rem 1.2rem 1.1rem; color: #fff;
  background: linear-gradient(0deg, oklch(0.185 0.055 264 / 0.9), transparent); }
.project__cap b { font-family: var(--font-head); font-size: 1.05rem; display: block; }
.project__cap span { font-size: 0.85rem; color: var(--on-dark-muted); }
.project__tag { position: absolute; top: 0.85rem; left: 0.85rem; font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; color: oklch(0.28 0.05 70); background: var(--accent-soft); padding: 0.28rem 0.6rem; border-radius: var(--r-pill); }
.project--wide { grid-column: span 2; }
.project--wide img { aspect-ratio: 16 / 9; }

/* Avis clients */
.reviews { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(3, 1fr); }
.review { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 2.4vw, 2rem); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); }
.review__stars { display: inline-flex; gap: 2px; color: var(--accent); }
.review blockquote { font-size: 1.05rem; line-height: 1.5; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 0.75rem; }
.review__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-deep); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; flex: none; }
.review cite { font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: 0.97rem; display: block; }
.review figcaption span { color: var(--muted); font-size: 0.85rem; }

/* Bande d'appel au devis */
.cta-band { position: relative; overflow: clip; isolation: isolate; background: var(--primary-deep); color: var(--on-dark); border-radius: var(--r-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 140% at 88% 0%, oklch(0.5 0.15 258 / 0.55), transparent 55%); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); padding: clamp(2rem, 5vw, 3.4rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-muted); margin-top: 0.5rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* Fil d'Ariane */
.breadcrumb { padding-block: 1rem; font-size: 0.88rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; list-style: none; padding: 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li[aria-current] { color: var(--ink); }
.breadcrumb svg { color: var(--line-strong); }

/* En-tête de page interne */
.page-hero { background: var(--primary-deep); color: var(--on-dark); position: relative; overflow: clip; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(90% 120% at 100% 0%, oklch(0.5 0.15 258 / 0.4), transparent 60%); }
.page-hero__inner { position: relative; padding-block: clamp(2.5rem, 6vw, 4.5rem); max-width: 52rem; }
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--on-dark-muted); font-size: var(--step-1); margin-top: var(--space-4); }

/* Contenu riche (pages prestations) */
.prose { max-width: 42rem; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: var(--step-3); margin-top: 2.4rem; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8rem; }
.prose ul { display: grid; gap: 0.6rem; padding-left: 0; }
.prose ul li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.5rem; }
.prose ul svg { color: var(--accent-strong); margin-top: 5px; }

/* Checklist en 2 colonnes (pages prestations) */
.checklist--2col { grid-template-columns: 1fr 1fr; gap: 1.15rem 2.5rem; }
@media (max-width: 680px) { .checklist--2col { grid-template-columns: 1fr; } }

/* Liens « autres prestations » */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; }
.related a { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); font-family: var(--font-head); font-weight: 600; color: var(--ink); background: var(--bg); transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.related a:hover { border-color: var(--primary); background: color-mix(in oklch, var(--primary) 5%, var(--bg)); }
.related a .icon:first-child { color: var(--primary); }
.related a span { flex: 1; }
.related a .icon:last-child { color: var(--muted); width: 1.05rem; height: 1.05rem; }

/* ---------- 9. Formulaire ---------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; }
.field .req { color: var(--accent-strong); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.8rem 0.95rem; background: var(--bg); color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 22%, transparent); }
.field textarea { min-height: 8rem; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: 3px; accent-color: var(--primary); }
.consent label { font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 0.85rem; color: var(--muted); }

/* Encart contact (aside) */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.5rem, 2.5vw, 2rem); }
.contact-card h3 { font-size: var(--step-1); }
.contact-list { display: grid; gap: 1.1rem; margin-top: 1.2rem; }
.contact-list li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.8rem; align-items: start; }
.contact-list .ci { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); background: color-mix(in oklch, var(--primary) 10%, var(--bg)); color: var(--primary); }
.contact-list b { font-family: var(--font-head); display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact-list a, .contact-list span { font-size: 1.02rem; }

/* ---------- 10. Footer ---------- */
.site-footer { background: var(--primary-deep-2); color: var(--on-dark-muted); }
.footer-main { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: 1.6fr 1fr 1fr 1.2fr; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-brand .logo { color: #fff; }
.footer-brand .logo-sub { color: var(--on-dark-muted); }
.footer-brand p { margin-top: 1rem; font-size: 0.95rem; max-width: 32ch; }
.footer-col h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; font-family: var(--font-head); }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.96rem; color: var(--on-dark-muted); transition: color var(--t-fast) var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.96rem; margin-bottom: 0.7rem; }
.footer-contact svg { color: var(--accent-soft); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid var(--line-on-dark); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }

/* Étiquette sur la prestation phare (fond sombre) */
.service--feature .tag { color: var(--accent-soft); background: oklch(1 0 0 / 0.1); margin-bottom: 0.9rem; }

/* Puces de communes (zone d'intervention — SEO local) */
.commune-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 1rem; }
.commune-chips li { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; padding: 0.35rem 0.85rem; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink); background: var(--surface); }

/* ---------- 11. Motion (révélations progressives) ---------- */
/* Entrée du héro au chargement (indépendante du scroll, jamais de page blanche) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__inner > * { animation: heroIn 0.72s var(--ease) both; }
  .js .hero__inner > *:nth-child(2) { animation-delay: 0.09s; }
  .js .hero__inner > *:nth-child(3) { animation-delay: 0.18s; }
  .js .hero__inner > *:nth-child(4) { animation-delay: 0.27s; }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* Force l'affichage quand la page n'est pas visible (voir main.js) : jamais de page blanche */
.reveal-now [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
.reveal-now .hero__inner > * { animation: none !important; opacity: 1 !important; transform: none !important; }

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); will-change: opacity, transform; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal][data-reveal-delay="1"] { transition-delay: 80ms; }
.js [data-reveal][data-reveal-delay="2"] { transition-delay: 160ms; }
.js [data-reveal][data-reveal-delay="3"] { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- 12. Utilitaires ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.no-scroll { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .header-tel .tel-label, .devis-btn { display: none; }
  /* Icône-seule : garantir une cible tactile d'au moins 44px */
  .header-tel { min-width: 44px; min-height: 44px; justify-content: center; border-radius: var(--r-sm); }
  .header-tel:hover { background: var(--surface-2); }
  .nav-cta { display: block; }
  .nav-toggle { display: inline-flex; }
  .header-inner { min-height: 4.25rem; }

  /* Drawer mobile */
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px); z-index: var(--z-drawer);
    background: var(--bg); box-shadow: var(--shadow-lg); padding: 5rem 1.6rem 2rem; margin: 0;
    transform: translateX(100%); visibility: hidden;
    transition: transform var(--t-med) var(--ease), visibility var(--t-med) var(--ease); overflow-y: auto;
  }
  .primary-nav[data-open="true"] { transform: translateX(0); visibility: visible; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: 0.9rem 0.2rem; font-size: 1.1rem; }
  .primary-nav a::after { display: none; }
  .nav-cta { margin-top: 1.4rem; }
  .nav-backdrop { position: fixed; inset: 0; z-index: var(--z-overlay); background: oklch(0.185 0.055 264 / 0.5); opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease); }
  .nav-backdrop[data-open="true"] { opacity: 1; visibility: visible; }

  .assurance__grid { grid-template-columns: 1fr 1fr; }
  .assurance__item:nth-child(2) { border-left: 0; }
  .assurance__item:nth-child(odd) { border-left: 0; }
  .assurance__item:nth-child(n+3) { border-top: 1px solid var(--line); }

  .services { grid-template-columns: 1fr 1fr; }
  .service { grid-column: span 1; }
  .service--feature { grid-column: 1 / -1; flex-direction: column; }
  .service--feature .service__media { min-height: 200px; width: 100%; }

  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .project--wide { grid-column: span 2; }
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .assurance__grid { grid-template-columns: 1fr; }
  .assurance__item { border-left: 0 !important; }
  .assurance__item + .assurance__item { border-top: 1px solid var(--line); }
  .services { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .project--wide { grid-column: span 1; }
  .field--row { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .footer-main { grid-template-columns: 1fr; }
}

.nav-backdrop { display: none; }
@media (max-width: 860px) { .nav-backdrop { display: block; } }

/* ---------- Barre d'appel collante (mobile) ---------- */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header);
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in oklch, var(--bg) 90%, transparent);
    backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .mobile-cta .btn { padding-block: 0.85rem; }
  /* Masquer la barre d'appel quand le menu drawer est ouvert (évite le chevauchement) */
  body.no-scroll .mobile-cta { display: none; }
  /* Réserver l'espace pour ne pas masquer le bas du pied de page */
  .site-footer { padding-bottom: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) { .mobile-cta { backdrop-filter: none; background: var(--bg); } }
