/* ==========================================================================
   HB+ HABITAT — Feuille de style
   Direction artistique : « la chaux et le cordeau ».
   Fond chaux chaude, encre anthracite, un seul accent terracotta tiré du logo.
   Titres en Bricolage Grotesque (affirmés), texte courant en Public Sans (lisible).
   Toutes les animations passent par transform / opacity et sont coupées
   si l'utilisateur a demandé à réduire les animations.
   ========================================================================== */

:root {
  /* Couleurs */
  --paper: #F5F2EC;        /* chaux */
  --paper-2: #EDE8DF;      /* chaux ombrée */
  --surface: #FFFFFF;
  --line: #DCD5C9;
  --line-strong: #8C8377;  /* contours des champs et boutons : 3,6:1 sur blanc (WCAG 1.4.11) */
  --ink: #1B1E22;          /* anthracite */
  --ink-2: #33383E;
  --muted: #565B62;        /* 6,0:1 sur --paper */
  --accent: #B4540F;       /* terracotta (orange du logo, assombri pour l'AA) — 4,9:1 avec du blanc */
  --accent-hover: #93430A;
  --accent-soft: #F7E7D8;
  --accent-ink: #8A3E08;   /* texte terracotta sur fond clair — 7:1 */
  --pool: #17708D;         /* bleu du logo, assombri — réservé aux piscines */
  --pool-soft: #DDEEF3;
  --brown: #76644F;        /* cadre du logo */
  --olive: #A6A35E;        /* toit du logo, décoratif uniquement */
  --night: #17191C;
  --on-night: #F1EEE8;
  --on-night-muted: #B9B4AA;
  --ok: #24693F;
  --ok-soft: #E2F0E6;
  --error: #A3221A;
  --error-soft: #FBE9E7;
  --warn-soft: #FFF3D6;
  --warn-ink: #5C4300;

  /* Typographie */
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Public Sans', 'Segoe UI', system-ui, sans-serif;
  --fs-hero: clamp(2.25rem, 1.2rem + 3.1vw, 3.85rem);
  --fs-h2: clamp(1.85rem, 1.3rem + 2.2vw, 3rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .45vw, 1.45rem);
  --fs-lede: clamp(1.06rem, 1rem + .35vw, 1.25rem);

  /* Mise en page */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(27, 30, 34, .06), 0 2px 8px rgba(27, 30, 34, .05);
  --shadow-2: 0 2px 6px rgba(27, 30, 34, .06), 0 18px 40px -12px rgba(27, 30, 34, .22);
  --header-h: 72px;

  /* Mouvement */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .45s;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.on-night :focus-visible, .site-footer :focus-visible { outline-color: #F2A766; }

.need__grid > *, .split > *, .zone > *, .quote > *, .hero__grid > *, .serie > * { min-width: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--paper2 { background: var(--paper-2); }
.section--white { background: var(--surface); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* Mention « à compléter » (visible uniquement dans les pages légales) */
.todo { background: var(--warn-soft); color: var(--warn-ink); padding: .05em .4em; border-radius: 4px; font-weight: 600; }

/* ---------- Petits éléments de texte ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; transform-origin: left; }
.on-night .eyebrow { color: #F2A766; }
.lede { font-size: var(--fs-lede); color: var(--ink-2); line-height: 1.6; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

.section-head { display: grid; gap: 20px 56px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { color: var(--muted); max-width: 56ch; margin: 0; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr .9fr; align-items: end; }
}

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .25s var(--ease);
}
.btn:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(180, 84, 15, .7); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .ico { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover .ico--arrow { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); box-shadow: 0 10px 22px -12px rgba(27, 30, 34, .6); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--on-night); --btn-bd: rgba(241, 238, 232, .4); }
.btn--ghost-light:hover { --btn-bg: var(--on-night); --btn-fg: var(--ink); --btn-bd: var(--on-night); }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: .95rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--accent-ink); text-decoration: none;
}
.link-arrow .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .ico, a:hover .link-arrow .ico { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(12px); } }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(27, 30, 34, .5); }
.header-bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; flex: none; }
.brand img { width: 46px; height: auto; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; line-height: 1; }
.brand-name sup { font-size: .62em; vertical-align: .55em; line-height: 0; }

.main-nav ul { list-style: none; display: flex; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 10px 12px; text-decoration: none; font-weight: 550; font-size: .98rem; color: var(--ink-2);
}
.main-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--ink); }
.header-cta { flex: none; white-space: nowrap; }
.main-nav a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1180px) { .main-nav a { padding-inline: 8px; font-size: .94rem; } .header-bar { gap: 14px; } }

.menu-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: 999px; font-weight: 650;
}
.burger { position: relative; width: 18px; height: 12px; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 5px; }
.burger span:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1023px) { .header-bar { gap: 12px; } }
@media (max-width: 359px) {
  .menu-toggle__label { display: none; }
  .menu-toggle { padding: 8px 13px; }
  .brand img { width: 38px; }
  .brand-name { font-size: 1.05rem; }
}

/* Panneau mobile */
.mobile-panel { display: none; }
@media (max-width: 1023px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-panel {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 90; visibility: hidden; pointer-events: none;
  }
  .mobile-panel.is-open { visibility: visible; pointer-events: auto; }
  .mobile-panel__scrim { position: absolute; inset: 0; background: rgba(23, 25, 28, .45); opacity: 0; transition: opacity .35s var(--ease); }
  .mobile-panel__sheet {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
    background: var(--paper); padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: 22px; overflow-y: auto;
    transform: translateX(100%); transition: transform .45s var(--ease-out);
    box-shadow: -20px 0 40px -20px rgba(0, 0, 0, .35);
  }
  .mobile-panel.is-open .mobile-panel__scrim { opacity: 1; }
  .mobile-panel.is-open .mobile-panel__sheet { transform: none; }
  .mobile-panel nav ul { list-style: none; border-top: 1px solid var(--line); }
  .mobile-panel nav li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(16px); transition: opacity .35s, transform .45s var(--ease-out); }
  .mobile-panel.is-open nav li { opacity: 1; transform: none; }
  .mobile-panel.is-open nav li:nth-child(2) { transition-delay: .04s; }
  .mobile-panel.is-open nav li:nth-child(3) { transition-delay: .08s; }
  .mobile-panel.is-open nav li:nth-child(4) { transition-delay: .12s; }
  .mobile-panel.is-open nav li:nth-child(5) { transition-delay: .16s; }
  .mobile-panel.is-open nav li:nth-child(6) { transition-delay: .2s; }
  .mobile-panel nav a {
    display: flex; justify-content: space-between; align-items: center; padding: 16px 2px;
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-decoration: none; letter-spacing: -.02em;
  }
  .mobile-panel nav a[aria-current="page"] { color: var(--accent-ink); }
  .mobile-panel nav a .ico { width: 20px; height: 20px; color: var(--muted); }
  .mobile-panel .btn { width: 100%; }
  .mobile-panel__contact { font-size: .95rem; color: var(--muted); }
  .mobile-panel__contact a { color: var(--ink); font-weight: 600; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Icônes ---------- */
.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Hero (accueil) ---------- */
.hero { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(56px, 7vw, 104px); position: relative; }
.hero__grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--accent-ink); }
.hero .lede { margin-bottom: 32px; }
.hero__points { list-style: none; display: grid; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .hero__points { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.hero__points li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
.hero__points .ico { color: var(--accent); margin-top: 1px; }
.hero__points b { display: block; color: var(--ink); font-weight: 650; }

.hero__media { position: relative; padding: 0 0 48px 0; }
@media (min-width: 960px) { .hero__media { padding: 0 0 56px 56px; } }
.hero__main { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); box-shadow: var(--shadow-2); }
.hero__main img { width: 100%; height: 100%; object-fit: cover; }
.hero__inset {
  position: absolute; left: 0; bottom: 0; width: 46%; border-radius: var(--radius-sm); overflow: hidden;
  border: 6px solid var(--paper); box-shadow: var(--shadow-2); aspect-ratio: 16 / 10; background: var(--paper-2);
}
@media (max-width: 959px) { .hero__inset { left: auto; right: 12px; width: 52%; } }
.hero__inset img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(23, 25, 28, .78); color: #fff; font-size: .78rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; letter-spacing: .01em;
}
@supports (backdrop-filter: blur(4px)) { .photo-tag { background: rgba(23, 25, 28, .6); backdrop-filter: blur(6px); } }
.photo-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #F2A766; }
.photo-tag--pool::before { background: #7CCBE2; }

/* Cordeau décoratif (ligne de traçage du maçon) */
.cordeau { position: absolute; pointer-events: none; color: var(--line-strong); }

/* Entrée du hero */
.hero-enter { animation: rise .9s var(--ease-out) both; }
.hero-enter--2 { animation-delay: .08s; }
.hero-enter--3 { animation-delay: .16s; }
.hero-enter--4 { animation-delay: .24s; }
.hero-photo-enter { animation: photo-in 1.1s var(--ease-out) both .1s; }
.hero-inset-enter { animation: rise .9s var(--ease-out) both .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* ---------- Questions du visiteur (accès rapide) ---------- */
.questions { display: grid; gap: 12px; }
@media (min-width: 640px) { .questions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .questions { grid-template-columns: repeat(5, 1fr); } }
.question {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 20px; min-height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.question:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.question__n { font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--accent-ink); letter-spacing: .06em; }
.question h3 { font-size: 1.12rem; }
.question .link-arrow { margin-top: auto; font-size: .92rem; }

/* ---------- Cartes de prestations ---------- */
.services { display: grid; gap: 20px; }
@media (min-width: 720px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: transparent; }
.service-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.service-card:hover .service-card__media img { transform: scale(1.045); }
.service-card__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 24px; flex: 1; }
.service-card__need { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.service-card p { color: var(--muted); margin: 0; font-size: .98rem; }
.service-card .link-arrow { margin-top: auto; padding-top: 6px; }
.service-card--text { background: var(--ink); color: var(--on-night); border-color: var(--ink); }
.service-card--text .service-card__need { color: #F2A766; }
.service-card--text p { color: var(--on-night-muted); }
.service-card--text .link-arrow { color: #F2A766; }
.service-card--text .chips { margin-top: 4px; }
.service-card--text .chip-static { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: var(--on-night); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip-static { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .88rem; font-weight: 550; color: var(--ink-2); }

/* ---------- Rôle HB+ (section sombre) ---------- */
.on-night { background: var(--night); color: var(--on-night); }
.on-night .lede, .on-night .section-head p { color: var(--on-night-muted); }
.role { display: grid; gap: 16px; position: relative; }
@media (min-width: 900px) { .role { grid-template-columns: 1fr 1.15fr 1fr; gap: 0; align-items: stretch; } }
.role__col { position: relative; padding: 28px 26px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
@media (min-width: 900px) {
  .role__col { border-radius: 0; }
  .role__col:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .role__col:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
  .role__col + .role__col { border-left: 0; }
}
.role__col--hb { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (min-width: 900px) { .role__col--hb { margin-block: -16px; padding-block: 44px; z-index: 1; border-radius: var(--radius) !important; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); } }
.role__who { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-muted); margin-bottom: 10px; }
.role__col--hb .role__who { color: rgba(255, 255, 255, .85); }
.role__col h3 { margin-bottom: 14px; font-size: 1.35rem; }
.role__col ul { list-style: none; display: grid; gap: 9px; font-size: .97rem; }
.role__col li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.role__col li .ico { width: 18px; height: 18px; margin-top: 2px; color: #F2A766; }
.role__col--hb li .ico { color: #fff; }
.role__note { margin-top: 28px; font-size: .95rem; color: var(--on-night-muted); max-width: 70ch; }

/* ---------- Déroulement (étapes) ---------- */
.steps { list-style: none; display: grid; gap: 0; position: relative; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 0 20px; padding-bottom: 34px; }
.step:last-child { padding-bottom: 0; }
.step__n {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--line-strong); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  transition: background-color .4s, color .4s, border-color .4s;
}
.step.is-in .step__n { background: var(--accent); color: #fff; border-color: var(--accent); }
.step::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--line); }
.step::after { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .9s var(--ease) .2s; }
.step.is-in::after { transform: scaleY(1); }
.step:last-child::before, .step:last-child::after { display: none; }
.step h3 { margin: 12px 0 8px; }
.step p { color: var(--muted); margin: 0; max-width: 60ch; }
.step__meta { display: inline-block; margin-top: 10px; font-size: .85rem; font-weight: 600; color: var(--accent-ink); }
@media (min-width: 1000px) {
  .steps--row { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps--row .step { grid-template-columns: 1fr; padding-bottom: 0; }
  .steps--row .step::before, .steps--row .step::after { left: 56px; right: -24px; top: 27px; bottom: auto; width: auto; height: 2px; }
  .steps--row .step::after { transform: scaleX(0); transform-origin: left; }
  .steps--row .step.is-in::after { transform: scaleX(1); }
  .steps--row .step h3 { margin-top: 20px; }
}

/* ---------- Zone d'intervention ---------- */
.zone { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 960px) { .zone { grid-template-columns: 1fr 1fr; } }
.zone__places { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 14px; }
.zone__places li { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .98rem; }
.zone__places li.is-main { background: var(--ink); color: #fff; border-color: var(--ink); }
.zone-check { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-1); }
.zone-check h3 { margin-bottom: 8px; }
.zone-check form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.zone-check .field { flex: 1 1 220px; margin: 0; }
.zone-result {
  margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm); font-size: .98rem; line-height: 1.5;
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease);
}
.zone-result.is-visible { opacity: 1; transform: none; }
.zone-result--ok { background: var(--ok-soft); color: #173F27; }
.zone-result--maybe { background: var(--warn-soft); color: var(--warn-ink); }

/* ---------- Réalisations : grille & galerie ---------- */
.mosaic { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; } .mosaic .shot:nth-child(1) { grid-column: span 2; grid-row: span 2; } .mosaic .shot:nth-child(4) { grid-row: span 2; } }
.mosaic .shot { aspect-ratio: 1; }
@media (min-width: 900px) { .mosaic .shot { aspect-ratio: auto; } }

.shot {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--paper-2); text-align: left; cursor: zoom-in;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17, 18, 20, .7), transparent 55%); opacity: .85; transition: opacity .35s; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); }
.shot__cap {
  position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.3;
  transform: translateY(4px); transition: transform .35s var(--ease);
}
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { transform: none; }
.shot__zoom {
  position: absolute; right: 10px; top: 10px; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink); opacity: 0; transform: scale(.8); transition: opacity .25s, transform .3s var(--ease);
}
.shot__zoom .ico { width: 18px; height: 18px; }
.shot:hover .shot__zoom, .shot:focus-visible .shot__zoom { opacity: 1; transform: none; }
@media (hover: none) { .shot__zoom { opacity: 1; transform: none; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: .95rem;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.filter:hover { border-color: var(--ink); transform: translateY(-1px); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter small { font-size: .78rem; opacity: .7; font-weight: 600; }

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery .shot { aspect-ratio: 4 / 5; }
.gallery .shot.is-entering { animation: shot-in .5s var(--ease-out) both; }
@keyframes shot-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.gallery-status { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }

/* Séries de chantier (étapes en images) */
.series { display: grid; gap: clamp(40px, 5vw, 72px); }
.serie { display: grid; gap: 24px; }
@media (min-width: 960px) { .serie { grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; } }
.serie__text h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 12px; }
.serie__text ol { list-style: none; counter-reset: s; display: grid; gap: 10px; margin-top: 18px; }
.serie__text ol li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; color: var(--ink-2); line-height: 1.5; }
.serie__text ol li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .85rem; }
.serie__shots { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .serie__shots { grid-template-columns: repeat(4, 1fr); } }
.serie__shots .shot { aspect-ratio: 3 / 4; }
.serie__shots .shot .step-badge { position: absolute; left: 10px; top: 10px; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-weight: 700; font-size: .85rem; }

/* Avant / après */
.ba-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }
.ba { margin: 0; }
.ba__frame { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); --pos: 50%; user-select: none; touch-action: pan-y; }
.ba__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__frame .ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-2); pointer-events: none; transition: transform .2s var(--ease); }
.ba__knob .ico { width: 22px; height: 22px; color: var(--ink); }
.ba__frame:hover .ba__knob { transform: scale(1.06); }
.ba__label { position: absolute; top: 12px; z-index: 1; padding: 5px 10px; border-radius: 999px; background: rgba(23, 25, 28, .72); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
.ba__label--l { left: 12px; }
.ba__label--r { right: 12px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba__frame:has(.ba__range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.ba figcaption { margin-top: 14px; }
.ba figcaption b { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.ba figcaption span { color: var(--muted); font-size: .95rem; }

/* Visionneuse */
.lightbox {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: rgba(14, 15, 17, .96); color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(14, 15, 17, .6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade .3s var(--ease) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px var(--gutter); }
.lightbox__count { font-size: .92rem; color: #CFCAC0; font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; animation: lb-img .4s var(--ease-out) both; }
@keyframes lb-img { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lightbox__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom)); }
.lightbox__cap { margin: 0; font-size: .98rem; line-height: 1.45; color: #E9E5DD; flex: 1; }
.lightbox__cap small { display: block; color: #ABA59A; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.icon-btn {
  width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 50%; flex: none;
  border: 1.5px solid rgba(255, 255, 255, .28); background: transparent; color: #fff; transition: background-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .12); transform: scale(1.05); }
.icon-btn .ico { width: 22px; height: 22px; }
.lightbox__nav { display: flex; gap: 10px; }

/* ---------- Bloc photo + texte (pages intérieures) ---------- */
.split { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
@media (min-width: 960px) { .sticky-desktop { position: sticky; top: calc(var(--header-h) + 24px); } }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--duo { aspect-ratio: auto; overflow: visible; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-radius: 0; background: none; }
.split__media--duo > div { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--paper-2); }
.split__media--duo > div:nth-child(2) { margin-top: 48px; }
.split__media--duo img { width: 100%; height: 100%; object-fit: cover; }

.checklist { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; line-height: 1.5; }
.checklist li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A3E08' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.on-night .checklist li::before { background-color: rgba(242, 167, 102, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2A766' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }

/* ---------- En-tête de page intérieure ---------- */
.page-hero { padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2.2rem, 1.5rem + 3.2vw, 4rem); margin-bottom: 20px; max-width: 18ch; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); text-decoration: none; font-weight: 600; font-size: .95rem; background: var(--surface); transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.toc a:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-1px); }

/* ---------- Pages prestations : blocs par besoin ---------- */
.need { padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line); }
.need:first-of-type { border-top: 0; }
.need__grid { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 1000px) { .need__grid { grid-template-columns: .95fr 1.05fr; align-items: start; } .need--rev .need__media { order: 2; } }
.need__media { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.need__media .shot:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.need__media .shot { aspect-ratio: 1; }
@media (min-width: 1000px) { .need__media { position: sticky; top: calc(var(--header-h) + 24px); } }
.need__label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .85rem; font-weight: 700; margin-bottom: 16px; }
.need__label--pool { background: var(--pool-soft); color: var(--pool); }
.need h2 { margin-bottom: 16px; }
.need__cols { display: grid; gap: 28px; margin: 28px 0 32px; }
@media (min-width: 640px) { .need__cols { grid-template-columns: 1fr 1fr; } }
.need__cols h3 { font-size: 1.1rem; margin-bottom: 4px; }
.need__cols .checklist { margin-top: 10px; font-size: .98rem; }
.trades { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin: 28px 0 32px; list-style: none; }
.trade { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; transition: transform .25s var(--ease), border-color .25s; }
.trade:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.trade .ico { color: var(--accent); }
.notice { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); font-size: .97rem; line-height: 1.55; }
.notice .ico { color: var(--accent); margin-top: 2px; }
.notice--demo { background: var(--warn-soft); border-color: #EBD9A8; border-left-color: #C79A1A; color: var(--warn-ink); }
.notice--demo .ico { color: #8A6A00; }
.notice b { color: inherit; }

/* ---------- Professionnels ---------- */
.audiences { display: grid; gap: 16px; }
@media (min-width: 800px) { .audiences { grid-template-columns: repeat(3, 1fr); } }
.audience { padding: 28px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.audience:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.audience__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px; }
.audience h3 { margin-bottom: 10px; }
.audience p { color: var(--muted); font-size: .98rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .25s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 650; font-size: 1.04rem; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .35s var(--ease); color: var(--accent); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq .faq__body { padding: 0 20px 20px; color: var(--ink-2); }
.faq details[open] .faq__body { animation: rise .4s var(--ease-out) both; }

/* ---------- Bandeau d'appel ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--accent); color: #fff; border-radius: var(--radius); padding: clamp(32px, 5vw, 64px); display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin-bottom: 10px; }
.cta-band p { color: #fff; margin: 0; max-width: 54ch; }
.cta-band .cordeau { right: -40px; top: -40px; width: 260px; color: rgba(255, 255, 255, .16); }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field > label, .field > .label, legend.label { font-weight: 650; font-size: 1rem; color: var(--ink); padding: 0; }
.field .hint { font-size: .9rem; color: var(--muted); margin-top: -2px; }
.req { color: var(--accent-ink); font-weight: 700; }
.opt { font-weight: 500; color: var(--muted); font-size: .92rem; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line-strong);
  background: var(--surface); font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.select { appearance: none; -webkit-appearance: none; padding-right: 42px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1E22' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(180, 84, 15, .18); }
[aria-invalid="true"].input, [aria-invalid="true"].select, [aria-invalid="true"].textarea { border-color: var(--error); background-color: #FFFBFA; }
.error-msg { display: flex; gap: 8px; align-items: flex-start; color: var(--error); font-weight: 600; font-size: .93rem; line-height: 1.4; }
.error-msg::before { content: "!"; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--error); color: #fff; font-size: .75rem; display: grid; place-items: center; font-weight: 800; }
.error-msg:empty { display: none; }
.row-2 { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Choix sous forme de cartes */
.choices { display: grid; gap: 10px; }
.choices--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.choices--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: flex; gap: 14px; align-items: flex-start; height: 100%; min-height: 56px; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; line-height: 1.35;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.choice label:hover { border-color: var(--ink); transform: translateY(-1px); }
.choice label .ico { color: var(--muted); margin-top: 1px; transition: color .2s; }
.choice label b { display: block; font-weight: 650; }
.choice label span.d { display: block; font-size: .88rem; color: var(--muted); margin-top: 3px; }
.choice label::after {
  content: ""; flex: none; margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.choice input:checked + label { border-color: var(--accent); background: #FFFAF5; box-shadow: 0 0 0 1px var(--accent) inset; }
.choice input:checked + label .ico { color: var(--accent); }
.choice input:checked + label::after { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px #fff; }
.choice input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice--pool input:checked + label { border-color: var(--pool); background: #F5FBFD; box-shadow: 0 0 0 1px var(--pool) inset; }
.choice--pool input:checked + label .ico { color: var(--pool); }
.choice--pool input:checked + label::after { border-color: var(--pool); background: var(--pool); }
.choices[aria-invalid="true"] .choice label { border-color: #D9A7A2; }

/* Assistant de devis */
.quote { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 1040px) { .quote { grid-template-columns: 1fr 360px; } }
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow-1); min-width: 0; }
.progress { margin-bottom: 30px; }
.progress__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: .92rem; }
.progress__top b { font-weight: 700; }
.progress__top span { color: var(--muted); }
.progress__bar { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.progress__fill { height: 100%; width: 100%; background: var(--accent); border-radius: 99px; transform-origin: left; transform: scaleX(.2); transition: transform .6s var(--ease); }
.progress__steps { list-style: none; display: none; gap: 6px; margin-top: 14px; }
@media (min-width: 700px) { .progress__steps { display: flex; } }
.progress__steps li { flex: 1; font-size: .8rem; color: var(--muted); font-weight: 600; }
.progress__steps li.is-done { color: var(--ink-2); }
.progress__steps li.is-current { color: var(--accent-ink); }

.wizard-step { animation: none; }
.wizard-step.is-entering { animation: step-in .45s var(--ease-out) both; }
.wizard-step.is-entering.from-left { animation-name: step-in-left; }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes step-in-left { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.wizard-step h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 8px; outline: none; }
.wizard-step > p.intro { color: var(--muted); margin-bottom: 26px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--line); }
.wizard-nav .btn--next { margin-left: auto; }

.error-summary { border: 2px solid var(--error); background: var(--error-soft); border-radius: 10px; padding: 16px 18px; margin-bottom: 24px; }
.error-summary h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--error); margin-bottom: 6px; letter-spacing: 0; }
.error-summary ul { padding-left: 18px; }
.error-summary a { color: var(--error); font-weight: 600; }
.error-summary:focus { outline: 3px solid var(--error); outline-offset: 2px; }

/* Dépôt de photos */
.drop {
  position: relative; display: grid; place-items: center; gap: 6px; text-align: center; padding: 24px 18px; border-radius: 12px;
  border: 1.5px dashed var(--line-strong); background: var(--paper); transition: border-color .2s, background-color .2s;
}
.drop.is-over { border-color: var(--accent); background: #FFF6EE; }
.drop .ico { width: 30px; height: 30px; color: var(--accent); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.drop b { font-weight: 650; }
.drop small { color: var(--muted); }
.thumbs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper-2); animation: shot-in .35s var(--ease-out) both; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(23, 25, 28, .82); color: #fff; display: grid; place-items: center; }
.thumb button .ico { width: 16px; height: 16px; }

.recap { background: var(--paper); border-radius: 12px; padding: 18px 20px; margin-bottom: 24px; }
.recap h3 { font-family: var(--font-body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.recap dl { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 8px 16px; margin: 0; font-size: .96rem; }
.recap dt { color: var(--muted); }
.recap dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; white-space: pre-line; }
.recap .link-btn { margin-top: 10px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--accent-ink); font-weight: 650; text-decoration: underline; text-underline-offset: .18em; }

.privacy-note { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }

.result { text-align: left; }
.result.is-entering { animation: rise .55s var(--ease-out) both; }
.result__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; }
.result__icon .ico { width: 32px; height: 32px; }
.result__icon--demo { background: var(--warn-soft); color: #8A6A00; }
.result__icon--ok { background: var(--ok-soft); color: var(--ok); }
.result h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-bottom: 12px; outline: none; }
.result .textarea { min-height: 200px; font-size: .92rem; background: var(--paper); }
.result .btn-row { margin-top: 20px; }
.copy-status { min-height: 1.5em; font-size: .92rem; color: var(--ok); font-weight: 600; margin-top: 8px; }

/* Encadré latéral contact */
.aside-card { background: var(--ink); color: var(--on-night); border-radius: var(--radius); padding: 28px 26px; }
.aside-card + .aside-card { margin-top: 16px; }
.aside-card--light { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.aside-card h2, .aside-card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.contact-lines { display: grid; gap: 14px; margin: 0; }
.contact-lines div { display: grid; gap: 2px; }
.contact-lines dt { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-muted); }
.aside-card--light .contact-lines dt { color: var(--muted); }
.contact-lines dd { margin: 0; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; font-size: .97rem; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
@media (min-width: 1040px) { .quote__aside { position: sticky; top: calc(var(--header-h) + 24px); } }

/* ---------- Texte légal ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: var(--on-night); padding-top: clamp(56px, 7vw, 96px); margin-top: var(--section); }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; } }
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 14px; }
.footer-logo img { width: 112px; }
.footer-about { margin-top: 18px; color: var(--on-night-muted); font-size: .97rem; max-width: 40ch; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-contact { display: grid; gap: 12px; font-size: .98rem; }
.footer-contact p { margin: 0; }
.footer-contact .k { display: block; font-size: .78rem; color: var(--on-night-muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; color: var(--on-night-muted); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a { color: var(--on-night-muted); }

/* Barre d'action mobile */
.mobile-bar { display: none; }
@media (max-width: 1023px) {
  .mobile-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px; border-radius: 999px;
    background: rgba(27, 30, 34, .94); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
    transform: translateY(0); transition: transform .4s var(--ease-out), opacity .3s;
  }
  .mobile-bar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 999px; font-weight: 650; text-decoration: none; color: #fff; font-size: .98rem; }
  .mobile-bar a .ico { width: 18px; height: 18px; }
  .mobile-bar a.is-primary { background: var(--accent); }
  .has-mobile-bar .site-footer { padding-bottom: 84px; }
}

/* ---------- Apparition des sections (activée par JS) ---------- */
.reveal.is-pending { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }

/* ---------- Réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
  .step::after { transform: none !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Impression ---------- */
@media print {
  .site-header, .mobile-bar, .mobile-panel, .site-footer, .btn, .wizard-nav { display: none !important; }
  body { background: #fff; }
}
