/* ==========================================================================
   Luka Jouffrais — électricien, Gattières
   Direction : « Clair technique — structure encre, or fonctionnel » (DESIGN.md)
   Contrastes mesurés en Phase 1, pas estimés. Voir le tableau de DESIGN.md.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces claires */
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --sand: #F0EBE0;

  /* Encre (structure, bandes d'impact) */
  --ink: #15130F;
  --ink-800: #22201A;
  --muted: #5B5648;

  /* Or — DEUX tons, ce n'est pas un caprice :
     --gold en texte sur fond clair donne 2,27:1 → interdit.
     --gold-deep sur --bg donne 5,63:1 → c'est le seul or lisible sur clair. */
  --gold: #CFA02C;       /* aplats de CTA (texte encre dessus : 7,70:1), texte sur encre */
  --gold-deep: #7D5F0F;  /* texte et traits fins sur fond clair */

  --on-dark: #F5F1E8;
  --on-dark-muted: #B9B3A4;
  --line: #E4DDCE;
  --line-dark: rgba(245, 241, 232, .16);

  /* Typo */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
  --fs-display: clamp(38px, 5.2vw, 78px);
  --fs-h2: clamp(28px, 3.4vw, 46px);
  --fs-h3: clamp(19px, 1.5vw, 23px);
  --fs-lead: clamp(17px, 1.35vw, 20px);
  --fs-body: 16.5px;
  --fs-small: 14.5px;
  --fs-eyebrow: 12px;

  /* Formes */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(21, 19, 15, .05);
  --shadow: 0 2px 6px rgba(21, 19, 15, .06), 0 16px 40px -18px rgba(21, 19, 15, .16);
  --shadow-lg: 0 30px 60px -24px rgba(21, 19, 15, .26);

  /* Rythme */
  --container: 1180px;
  --gutter: 24px;
  --section-y: clamp(72px, 9vw, 132px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --z-header: 100;
  --z-overlay: 200;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: 'tnum' 0;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.018em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* Masquage accessible par clip : pas de left:-9999px, qui élargit la page. */
.skip-link {
  position: absolute; top: 8px; left: 8px;
  background: var(--ink); color: var(--on-dark);
  padding: 12px 18px; z-index: 999;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { clip-path: none; }

/* ---------- Motif signature : l'équerre d'or ----------
   Un angle droit. Lit comme le « L » du logo et comme un coude de chemin de câbles.
   Seuls emplois autorisés : eyebrow, angle du hero, jalon d'étape. */
.equerre {
  display: inline-block;
  width: 14px; height: 14px;
  border-left: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  flex: none;
  translate: 0 2px;
}
.on-ink .equerre, .equerre--light {
  border-color: var(--gold);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold-deep);
  margin: 0 0 18px;
}
.on-ink .eyebrow { color: var(--gold); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: scale(.985); }

/* Encre sur aplat or : 7,70:1 — mesuré */
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #B98D22; }

.btn--ink { background: var(--ink); color: var(--on-dark); }
.btn--ink:hover { background: var(--ink-800); }

.btn--outline { border-color: rgba(21, 19, 15, .28); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: rgba(21, 19, 15, .04); }

/* Sur photo / fond encre */
.btn--ghost-light { border-color: rgba(245, 241, 232, .5); color: var(--on-dark); }
.btn--ghost-light:hover { border-color: var(--on-dark); background: rgba(245, 241, 232, .1); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0;
  z-index: var(--z-header);
  background: rgba(250, 248, 243, .94);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex: none;
}
/* Logo client détouré. Il porte déjà « LUKA JOUFFRAIS » et « ÉLECTRICIEN
   INDÉPENDANT » : ⛔ ne jamais réécrire le nom à côté (doublon interdit).
   52 px de haut en desktop (fourchette doctrine 48–64), 44 px en mobile (≥ 40).
   Plafonné à 52 et non 56 : le lockup est très large (807×120, ratio 6,7:1),
   à 56 px il ne reste que 20 px avant la nav au point le plus serré (1024 px). */
.brand__logo {
  height: 52px;
  width: auto;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand__role {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current='page']::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { font-weight: 600; }

.header__cta { display: flex; align-items: center; gap: 12px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  color: var(--ink); white-space: nowrap;
}
.header__phone:hover { color: var(--gold-deep); }

/* Burger — morphe en croix, marge droite garantie */
.burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0;
  padding: 0;
  position: relative;
  flex: none;
}
.burger span {
  position: absolute; left: 11px;
  width: 22px; height: 1.8px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21.5px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Overlay mobile */
.mobile-nav {
  position: fixed; inset: 0;
  z-index: var(--z-overlay);
  background: var(--ink);
  padding: 96px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
  overflow-y: auto;
}
.mobile-nav[data-open='true'] { opacity: 1; visibility: visible; }
.mobile-nav__link {
  color: var(--on-dark);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mobile-nav[data-open='true'] .mobile-nav__link { opacity: 1; transform: none; }
.mobile-nav[data-open='true'] .mobile-nav__link:nth-child(1) { transition-delay: .06s; }
.mobile-nav[data-open='true'] .mobile-nav__link:nth-child(2) { transition-delay: .10s; }
.mobile-nav[data-open='true'] .mobile-nav__link:nth-child(3) { transition-delay: .14s; }
.mobile-nav[data-open='true'] .mobile-nav__link:nth-child(4) { transition-delay: .18s; }
.mobile-nav[data-open='true'] .mobile-nav__link:nth-child(5) { transition-delay: .22s; }
.mobile-nav[data-open='true'] .mobile-nav__link:nth-child(6) { transition-delay: .26s; }
.mobile-nav[data-open='true'] .mobile-nav__link:nth-child(7) { transition-delay: .30s; }
.mobile-nav__actions { margin-top: 28px; display: grid; gap: 12px; }
.mobile-nav__close {
  position: absolute; top: 16px; right: var(--gutter);
  width: 44px; height: 44px;
  background: none; border: 0; color: var(--on-dark);
  font-size: 30px; line-height: 1;
}
body.is-locked { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  padding: clamp(120px, 18vw, 190px) 0 clamp(48px, 6vw, 76px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Voile : ≥ .55 d'opacité sous la zone de texte (règle dure) */
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(21, 19, 15, .86) 0%, rgba(21, 19, 15, .70) 38%, rgba(21, 19, 15, .28) 72%, rgba(21, 19, 15, .18) 100%),
    linear-gradient(to top, rgba(21, 19, 15, .60) 0%, rgba(21, 19, 15, 0) 45%);
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  font-size: var(--fs-display);
  color: #FFFDF8;
  text-shadow: 0 2px 30px rgba(10, 9, 7, .55);
  margin-bottom: 22px;
}
.hero__lead {
  font-size: var(--fs-lead);
  color: rgba(248, 245, 238, .95);
  text-shadow: 0 1px 18px rgba(10, 9, 7, .5);
  max-width: 60ch;
  margin-bottom: 30px;
}
.hero .btn-row { margin-bottom: 36px; }
.hero__proof {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(245, 241, 232, .22);
}
.hero__proof li {
  display: flex; align-items: center; gap: 9px;
  color: rgba(248, 245, 238, .94);
  font-size: var(--fs-small);
  font-weight: 500;
}

/* Page-hero (pages intérieures) */
.page-hero {
  position: relative;
  padding: clamp(112px, 15vw, 168px) 0 clamp(52px, 7vw, 84px);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(21, 19, 15, .88) 0%, rgba(21, 19, 15, .72) 45%, rgba(21, 19, 15, .40) 100%);
}
.page-hero__inner { position: relative; z-index: 1; max-width: 720px; }
.page-hero h1 {
  font-size: clamp(32px, 4.2vw, 58px);
  color: #FFFDF8;
  text-shadow: 0 2px 26px rgba(10, 9, 7, .55);
  margin-bottom: 18px;
}
.page-hero__lead {
  font-size: var(--fs-lead);
  color: rgba(248, 245, 238, .95);
  text-shadow: 0 1px 16px rgba(10, 9, 7, .5);
  max-width: 58ch;
}
.page-hero .eyebrow { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(56px, 6.5vw, 92px); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--ink h2, .section--ink h3 { color: var(--on-dark); }
.section--ink p { color: var(--on-dark-muted); }

.section__head { max-width: 62ch; margin-bottom: clamp(38px, 4.5vw, 60px); }
.section__head h2 { font-size: var(--fs-h2); margin-bottom: 16px; }
.section__head p { color: var(--muted); font-size: var(--fs-lead); }
.section--ink .section__head p { color: var(--on-dark-muted); }

/* ---------- Grille prestations (asymétrique, jamais 4 cartes identiques) ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.svc {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D9CFB8; }
.svc__media { overflow: hidden; background: var(--sand); }
.svc__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.svc:hover .svc__media img { transform: scale(1.04); }
.svc__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.svc__body h3 { font-size: var(--fs-h3); }
.svc__body p { color: var(--muted); font-size: 15.5px; }
.svc__more {
  margin-top: auto; padding-top: 14px;
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 14.5px; color: var(--gold-deep);
}
.svc__more span:last-child { transition: transform .3s var(--ease); }
.svc:hover .svc__more span:last-child { transform: translateX(4px); }

/* Tailles inégales : 1 carte large + 3 plus étroites */
.svc--wide { grid-column: span 6; }
.svc--wide { flex-direction: row; }
.svc--wide .svc__media { flex: 0 0 46%; }
.svc--wide .svc__body { padding: 34px 34px 36px; justify-content: center; }
.svc--wide .svc__body h3 { font-size: clamp(22px, 2vw, 28px); }
/* Sur la carte large, le bloc est centré : le margin-top:auto du lien mangeait
   tout l'espace libre et laissait un trou entre le texte et « Voir cette prestation ». */
.svc--wide .svc__more { margin-top: 0; }
.svc--third { grid-column: span 2; }
.svc--third .svc__media { aspect-ratio: 4 / 3; }

/* ---------- Split texte / photo ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media { position: relative; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
}
/* L'équerre en cadre d'angle — emploi n°2 du motif signature */
.split__media::before {
  content: '';
  position: absolute;
  top: -12px; left: -12px;
  width: 68px; height: 68px;
  border-left: 2px solid var(--gold-deep);
  border-top: 2px solid var(--gold-deep);
  border-radius: 3px 0 0 0;
  pointer-events: none;
}
.split__body h2 { font-size: var(--fs-h2); margin-bottom: 20px; }
.split__body p { color: var(--muted); margin-bottom: 16px; }
.split__body p:last-of-type { margin-bottom: 26px; }
.section--ink .split__body p { color: var(--on-dark-muted); }
.section--ink .split__media::before { border-color: var(--gold); }

/* ---------- Avant / après ---------- */
.ba {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* APRÈS dessous (à droite), AVANT au-dessus découpé depuis la gauche */
.ba__before { clip-path: inset(0 50% 0 0); z-index: 2; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: var(--gold);
  z-index: 3; transform: translateX(-1px);
}
.ba__handle::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 4px 18px rgba(21, 19, 15, .35);
}
.ba__tag {
  position: absolute; bottom: 16px;
  z-index: 4;
  background: rgba(21, 19, 15, .82);
  color: var(--on-dark);
  font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
}
.ba__tag--before { left: 16px; }
.ba__tag--after { right: 16px; }
.ba__range {
  position: absolute; inset: 0;
  z-index: 5;
  width: 100%; margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* ---------- Étapes (jalons à l'équerre, PAS de numérotation) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { padding-top: 26px; border-top: 1px solid var(--line-dark); }
.step__mark {
  width: 16px; height: 16px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 15px; }

/* ---------- Zone d'intervention ---------- */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
/* Le titre de zone n'est ni .section__head ni .prose : sans cette marge, le
   chapô se collait à la deuxième ligne du titre. */
.zone__body h2 { font-size: var(--fs-h2); margin-bottom: 16px; }
.zone__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg); }
.communes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.communes li {
  font-size: 13.5px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}

/* ---------- Bande CTA ---------- */
.cta-band { background: var(--ink); color: var(--on-dark); }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 28px;
  padding-block: clamp(48px, 6vw, 76px);
}
.cta-band h2 { font-size: clamp(26px, 3vw, 40px); color: var(--on-dark); max-width: 20ch; }
.cta-band p { color: var(--on-dark-muted); max-width: 46ch; margin-top: 12px; }

/* ---------- Contenu long (pages services / à-propos / légal) ---------- */
.prose { max-width: 68ch; }
/* Respiration AVANT chaque sous-titre : sans marge haute, un h2 collait au
   paragraphe précédent autant qu'au sien, et la hiérarchie se lisait mal. */
.prose h2 { font-size: var(--fs-h2); margin: 52px 0 18px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-h3); margin: 34px 0 12px; }
.prose p { color: var(--muted); margin-bottom: 16px; }
.prose ul { margin: 0 0 20px; display: grid; gap: 10px; }
.prose ul li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--muted);
}
.prose ul li::before {
  content: '';
  flex: none;
  width: 10px; height: 10px;
  margin-top: 8px;
  border-left: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
}
.prose a { color: var(--gold-deep); font-weight: 600; }

.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.aside-card h3 { font-size: 18px; margin-bottom: 14px; }
.aside-card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.aside-card__media { border-radius: var(--r); overflow: hidden; margin-bottom: 20px; }
.aside-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Cross-sell */
.cross { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cross__item {
  display: flex; align-items: center; gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  text-decoration: none; color: var(--ink);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.cross__item:hover { border-color: #D9CFB8; transform: translateY(-2px); }
.cross__item img { width: 84px; height: 64px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.cross__item strong { font-family: var(--font-display); font-size: 16px; display: block; margin-bottom: 3px; }
.cross__item span { color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact-list { display: grid; gap: 22px; margin-bottom: 30px; }
.contact-list dt {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--gold-deep); margin-bottom: 5px;
}
.contact-list dd { margin: 0; font-size: 17px; font-weight: 500; }
.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { color: var(--gold-deep); }
.contact-list small { display: block; color: var(--muted); font-size: 14px; font-weight: 400; margin-top: 5px; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font: inherit;
  color: var(--ink);
  transition: border-color .25s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-deep); outline: none; }
.field--inline { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

.map-frame {
  margin-top: 28px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sand);
}
.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-muted); padding-block: clamp(56px, 7vw, 88px) 34px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
/* Logo en grand dans le footer (variante claire sur fond encre) */
.footer__logo {
  width: min(300px, 78%);
  height: auto;
  margin-bottom: 18px;
}
.footer__tag { font-size: 14.5px; margin-bottom: 22px; }
.footer h3 {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--gold);
  margin-bottom: 16px;
}
.footer ul { display: grid; gap: 10px; }
.footer a { color: var(--on-dark-muted); text-decoration: none; font-size: 15px; }
.footer a:hover { color: var(--on-dark); }
.footer__bottom {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  font-size: 13.5px;
}

/* ---------- Barre d'appel fixe (mobile) ----------
   Un particulier en panne appelle, il ne remplit pas un formulaire (PRODUCT.md).
   Sur mobile, le numéro ne tient pas dans le header sans le faire déborder :
   il descend donc en barre fixe, à portée de pouce, visible sur toutes les pages. */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: calc(var(--z-header) - 1);
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(21, 19, 15, .97);
  border-top: 1px solid var(--line-dark);
}
.mobile-cta .btn { flex: 1; width: auto; min-width: 0; padding-inline: 14px; font-size: 15px; }

/* ---------- FAQ ----------
   En <details>/<summary> natifs : zéro JS, accessible au clavier et ouvrable
   par la recherche du navigateur. Le marqueur est l'équerre signature. */
.faq { max-width: 78ch; }
.faq__item {
  border-top: 1px solid var(--line);
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16.5px, 1.4vw, 19px);
  line-height: 1.35;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-deep); }
/* équerre qui pivote à l'ouverture : un seul mouvement, pas un jeu d'icônes */
.faq__item summary::before {
  content: '';
  flex: none;
  width: 12px; height: 12px;
  margin-top: 6px;
  border-left: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::before { transform: rotate(-90deg); }
.faq__answer {
  padding: 0 0 24px 26px;
  color: var(--muted);
  max-width: 62ch;
}
.faq__answer p + p { margin-top: 12px; }

/* ---------- Formulaire en étapes ----------
   Progressive enhancement : sans JS, les 3 groupes sont visibles et le
   formulaire s'envoie normalement. Le JS ne fait que masquer et paginer. */
.fsteps__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}
.fsteps__seg {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  transition: background-color .35s var(--ease);
}
.fsteps__seg[data-done='true'] { background: var(--gold); }
.fsteps__legend {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}
.fsteps__legend strong {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}
.fstep { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.fstep > legend {
  padding: 0;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
/* Sans JS, on ANNULE l'attribut hidden posé dans le HTML : les 3 groupes
   s'affichent et le formulaire s'envoie d'un bloc. Le masquage n'existe que
   lorsque le JS a pris la main et pagine réellement (classe .js-steps).
   Sans cette règle, un visiteur sans JS ne pourrait jamais remplir les
   étapes 2 et 3, et le formulaire serait inutilisable. */
.fstep[hidden] { display: block; }
.js-steps .fstep[hidden] { display: none; }
.fstep + .fstep { margin-top: 26px; }
.js-steps .fstep + .fstep { margin-top: 0; }
.js-steps .fstep > legend { position: absolute; clip-path: inset(50%); }
.fsteps__nav { display: flex; gap: 10px; margin-top: 6px; }
.fsteps__nav .btn { flex: 1; }
.fsteps__nav [hidden] { display: none; }

/* ---------- Carte dépliable ----------
   L'embed OpenStreetMap tire ~1,9 Mo de JS tiers. Tant qu'on ne clique pas,
   on n'affiche qu'un aperçu léger : rien n'est chargé. */
.map-open {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--sand);
  text-align: left;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.map-open:hover { border-color: #D9CFB8; background: #EBE4D5; }
.map-open__mark {
  flex: none;
  width: 18px; height: 18px;
  border-left: 2px solid var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
}
.map-open small {
  display: block;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
}
.map-frame[hidden] { display: none; }

/* ---------- Reveals ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Bascule burger AVANT que la barre ne casse. Le lockup est large (350 px à
   52 px de haut) : avec 4 liens + téléphone + bouton, « À propos » et « Devis
   gratuit » passaient à la ligne dès 1024 px (et déjà à 960 px avec l'ancien
   logo 44 px). On passe donc au burger sous 1080 px, où tout tient encore. */
@media (max-width: 1080px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: block; }
}

@media (max-width: 1024px) {
  /* On garde la grille à 6 colonnes : en 4 colonnes, les 3 cartes étroites
     tombaient 2 + 1 et laissaient une carte orpheline avec un trou à sa droite.
     En 6 colonnes elles restent 3 de front jusqu'au passage en pleine largeur. */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 900px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: block; }
  .header__inner { min-height: 68px; }
  .layout-2col, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .brand__logo { height: 44px; }
  /* Le numéro en toutes lettres ne tient pas à côté du burger : il passe en barre fixe. */
  .header__phone { display: none; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
  .mobile-nav { padding-bottom: 96px; }
  .split, .zone { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .svc--wide { flex-direction: column; }
  .svc--wide .svc__media { flex: none; aspect-ratio: 16 / 9; }
  .svc--wide .svc__more { margin-top: auto; } /* en colonne, on réaligne les liens en bas */
  .svc--third { grid-column: span 6; }
  .cross { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: clamp(104px, 26vw, 150px); }
  .field--inline { grid-template-columns: 1fr; }
  .split__media::before { width: 48px; height: 48px; top: -8px; left: -8px; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__proof { gap: 10px 18px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band .btn-row { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
