/* ==========================================================================
   DAR — Design Agencement Rénovation
   Feuille de styles unique — mobile-first, sans framework
   Palette : bleu gris (ardoise) + beige (sable / lin)
   ========================================================================== */

:root {
  --ink: #23282c;          /* anthracite — texte principal */
  --ink-soft: #3b4246;     /* anthracite adouci — texte courant */
  --slate: #6c92a5;        /* bleu gris clair — couleur principale (fonds) */
  --slate-600: #47697b;    /* bleu gris foncé — titres et liens sur beige */
  --slate-400: #8fadbd;
  --slate-100: #d5e1e7;
  --sand: #c2a986;         /* beige sable — accent */
  --sand-600: #a88d68;
  --linen: #e5dccc;        /* beige lin — sections alternées */
  --cream: #efe8dc;        /* beige clair — fond de page */
  --paper: #f5f0e7;        /* beige très clair — cartes */
  --white: #f8f4ec;        /* texte clair sur photo uniquement */
  --success: #2f6b4f;
  --error: #9b3b2f;

  --font: "Inter", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 10px 30px rgba(35, 40, 44, .1);
  --max: 1180px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  padding-bottom: 76px; /* place pour le bouton d'appel flottant mobile */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--slate-600); text-underline-offset: 3px; }
a:hover { color: var(--sand-600); }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 700px) { .container { padding: 0 32px; } }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; color: var(--white); }

.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;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.5em;
  font: 600 .98rem/1.2 var(--font); letter-spacing: .01em;
  border: 1.5px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sand); color: var(--ink); }
.btn-primary:hover { background: var(--sand-600); color: var(--ink); }
.btn-dark { background: var(--slate); color: var(--ink); }
.btn-dark:hover { background: var(--slate-600); color: var(--cream); }
.btn-outline { border-color: currentColor; color: var(--slate-600); background: transparent; }
.btn-outline:hover { background: var(--slate-600); color: var(--cream); border-color: var(--slate-600); }
.btn-ghost-light { border-color: rgba(35,40,44,.55); color: var(--ink); background: transparent; }
.btn-ghost-light:hover { border-color: var(--ink); color: var(--cream); background: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(239, 232, 220, .96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid rgba(52, 68, 79, .1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 50px; width: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: var(--radius);
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.main-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--cream);
  padding: 24px 20px 120px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}
.main-nav.is-open { transform: none; visibility: visible; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { border-bottom: 1px solid var(--slate-100); }
.main-nav a:not(.btn) {
  display: block; padding: 16px 4px; font-size: 1.15rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.main-nav a[aria-current="page"] { color: var(--sand-600); }
.main-nav .nav-cta { border: 0; padding-top: 24px; }
.main-nav .nav-cta .btn { width: 100%; }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static; transform: none; visibility: visible; padding: 0; background: none; overflow: visible;
  }
  .main-nav ul { display: flex; align-items: center; gap: 4px; }
  .main-nav li { border: 0; }
  .main-nav a:not(.btn) { padding: 8px 12px; font-size: .95rem; position: relative; }
  .main-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1.5px;
    background: var(--sand); transform: scaleX(0); transition: transform .2s;
  }
  .main-nav a:not(.btn):hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .main-nav a[aria-current="page"] { color: var(--ink); }
  .main-nav .nav-cta { padding: 0 0 0 12px; }
  .main-nav .nav-cta .btn { width: auto; min-height: 44px; }
  .header-wa { display: inline-flex !important; }
}
.header-wa {
  display: none; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; min-height: 44px; padding: 0 16px 0 12px;
  color: #fff; background: #25d366; border-radius: 999px; text-decoration: none; white-space: nowrap; margin-left: 8px;
  transition: transform .2s, box-shadow .2s;
}
.header-wa:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 211, 102, .35); }
.header-wa svg { width: 20px; height: 20px; }
@media (min-width: 1040px) { .wa-float { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--slate); color: var(--ink);
  padding: 48px 0 56px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../images/plan-hero.svg") right -120px center / auto 120% no-repeat;
  opacity: .08; pointer-events: none; filter: brightness(0) invert(.12);
}
.hero .container { position: relative; }
.hero h1, .hero h2 { color: var(--ink); }
.hero .eyebrow { color: var(--ink); }
.hero-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-actions .btn { flex: 1 1 220px; }
@media (min-width: 600px) { .hero-actions .btn { flex: 0 0 auto; } }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-soft); font-size: .95rem; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; }
.hero-points svg { width: 18px; height: 18px; color: var(--ink); flex: none; margin-top: 3px; }
@media (min-width: 700px) {
  .hero { padding: 88px 0 96px; }
  .hero-points { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 32px; }
  .hero::before { background-position: right -40px center; opacity: .3; }
}
.hero-compact { padding: 40px 0 44px; }
@media (min-width: 700px) { .hero-compact { padding: 64px 0 64px; } }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--slate-600); margin-bottom: 14px;
}

.breadcrumb { font-size: .85rem; margin-bottom: 18px; color: var(--ink-soft); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-white { background: var(--paper); }
.section-linen { background: var(--linen); }
.section-dark { background: var(--slate); color: var(--ink-soft); }
.section-dark h2, .section-dark h3 { color: var(--ink); }
.section-dark .eyebrow { color: var(--ink); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-dark .section-head p { color: var(--ink-soft); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--paper); border: 1px solid rgba(71, 105, 123, .16); border-radius: var(--radius-lg);
  padding: 28px 24px; height: 100%;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.section-white .card { background: var(--cream); }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--sand); color: inherit; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: .92rem; color: var(--slate); }
.card .more svg { width: 16px; height: 16px; }
.icon-box {
  width: 52px; height: 52px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--slate-100); color: var(--slate-600); margin-bottom: 18px;
}
.icon-box svg { width: 26px; height: 26px; }

/* Étapes */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 28px 24px; border-top: 2px solid var(--ink); background: rgba(239,232,220,.18); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-size: 2rem; font-weight: 300; color: var(--ink); margin-bottom: 10px; letter-spacing: .02em;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; font-size: .97rem; }

/* Bloc texte + visuel */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; gap: 64px; } .split-reverse > :first-child { order: 2; } }
.split-top { align-items: start; }
.steps-stack { grid-template-columns: 1fr !important; }
.mt { margin-top: 24px; }
.h-sm { font-size: 1.5rem; }
.split-visual { border-radius: var(--radius-lg); overflow: hidden; background: var(--slate); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; color: var(--slate-600); flex: none; margin-top: 3px; }

.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li a, .tag-list li span {
  display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: .92rem; text-decoration: none;
  border: 1px solid rgba(71, 105, 123, .3); color: var(--slate-600); background: var(--paper);
}
.tag-list li a:hover { border-color: var(--sand); background: var(--linen); color: var(--ink); }

/* Pages services */
.service-block { padding: 48px 0; border-top: 1px solid rgba(52, 68, 79, .12); scroll-margin-top: calc(var(--header-h) + 16px); }
.service-block:first-of-type { border-top: 0; padding-top: 0; }
.service-block .split { align-items: start; }
.service-aside { background: var(--paper); border-radius: var(--radius-lg); padding: 24px; border: 1px solid rgba(52,68,79,.1); }
.service-aside h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-600); }
.service-aside ul { margin: 0; padding-left: 1.1em; }
.service-aside li { margin-bottom: 6px; }

.service-nav { position: sticky; top: var(--header-h); z-index: 50; background: var(--cream); border-bottom: 1px solid rgba(52,68,79,.1); }
.service-nav ul { list-style: none; margin: 0; padding: 12px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.service-nav ul::-webkit-scrollbar { display: none; }
.service-nav a { display: block; white-space: nowrap; padding: 6px 14px; border-radius: 999px; font-size: .9rem; text-decoration: none; color: var(--slate-600); border: 1px solid rgba(71,105,123,.25); background: var(--paper); }
.service-nav a:hover { background: var(--linen); }

/* Bandeau CTA */
.cta-band { background: var(--slate); color: var(--ink); padding: 56px 0; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--ink); margin-bottom: .3em; }
.cta-band p { color: var(--ink-soft); margin: 0; }
.cta-band a:not(.btn), .hero a:not(.btn), .section-dark a:not(.btn) { color: var(--ink); }
.cta-band .container { display: grid; gap: 24px; align-items: center; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 1fr auto; } }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

/* FAQ */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid rgba(52, 68, 79, .15); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; font-size: 1.08rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--sand-600); border-bottom: 2px solid var(--sand-600);
  transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item .faq-answer { padding: 0 0 22px; color: var(--ink-soft); }
.faq-item .faq-answer p:last-child { margin: 0; }

/* Formulaires */
.form-card { background: var(--paper); border-radius: var(--radius-lg); padding: 28px 22px; box-shadow: var(--shadow); border: 1px solid rgba(52,68,79,.08); }
@media (min-width: 700px) { .form-card { padding: 40px; } }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--slate-400); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: var(--cream); border: 1.5px solid #d4d9dd; border-radius: var(--radius);
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--slate-600); background: var(--paper); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--error); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row label {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 0;
  padding: 10px 14px; border: 1.5px solid #d4d9dd; border-radius: var(--radius); background: var(--cream); cursor: pointer;
}
.choice-row input { width: auto; min-height: 0; accent-color: var(--slate); }
.choice-row label:has(input:checked) { border-color: var(--slate); background: var(--linen); }
.form-note { font-size: .85rem; color: var(--slate-400); margin: 14px 0 0; }
.hidden-field { display: none; }

.form-status { border-radius: var(--radius-lg); padding: 28px; margin-top: 0; }
.form-success { background: #eaf3ee; border: 1px solid #b9d7c5; color: var(--success); }
.form-success h3 { color: var(--success); display: flex; align-items: center; gap: 10px; }
.form-success h3 svg { width: 28px; height: 28px; }
.form-success p { color: var(--ink); margin-bottom: .6em; }
.form-error { background: #f8ece9; border: 1px solid #e3bfb8; color: var(--error); margin-top: 18px; padding: 16px 18px; }
.form-error p { margin: 0; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-box { margin: 0; width: 44px; height: 44px; flex: none; }
.contact-list .icon-box svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-600); font-weight: 600; }
.contact-list a, .contact-list span { font-size: 1.08rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--sand-600); }
.map-frame { border: 0; width: 100%; height: 340px; border-radius: var(--radius-lg); background: var(--slate-100); }
.map-placeholder {
  display: grid; place-items: center; text-align: center; gap: 12px; padding: 32px;
  height: 340px; border-radius: var(--radius-lg); background: var(--slate-100); color: var(--slate);
}

/* Galerie */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: 500 .92rem var(--font); padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(71, 105, 123, .3); background: var(--paper); color: var(--slate-600);
}
.filters button[aria-pressed="true"] { background: var(--slate); color: var(--ink); border-color: var(--slate); }
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(52,68,79,.1); }
.gallery figure[hidden] { display: none; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--slate-100); }
.gallery figcaption { padding: 14px 18px; font-size: .92rem; color: var(--ink-soft); }
.gallery figcaption strong { display: block; color: var(--ink); font-size: 1rem; }

/* Emplacement avis (vide) */
.trust-slot:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate); color: var(--ink-soft); font-size: .95rem; padding: 64px 0 28px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand img { height: 56px; width: auto; margin-bottom: 16px; }
.footer-title { color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; font-weight: 600; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--ink); flex: none; margin-top: 4px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(35,40,44,.35); border-radius: 50%; }
.socials a:hover { border-color: var(--ink); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(35,40,44,.18);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem;
}
.footer-bottom ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; text-decoration: none; }
.link-button:hover { color: var(--cream); }

/* ---------- Bouton d'appel flottant (mobile) ---------- */
.call-float {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; border-radius: 999px;
  background: var(--sand); color: var(--ink); font-weight: 700; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 10px 24px rgba(31, 42, 51, .3);
}
.call-float svg { width: 22px; height: 22px; }
.call-float:hover { color: var(--ink); }
@media (min-width: 900px) { .call-float { display: none; } }

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 150; left: 12px; right: 12px; bottom: 12px;
  max-width: 560px; margin-left: auto;
  background: var(--paper); color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(35, 40, 44, .25); padding: 22px;
  font-size: .92rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.05rem; margin-bottom: .4em; }
.cookie-banner p { color: var(--ink-soft); margin-bottom: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { min-height: 44px; padding: .6em 1.1em; font-size: .9rem; flex: 1 1 auto; }
.cookie-prefs { margin: 0 0 14px; padding: 14px; background: var(--cream); border-radius: var(--radius); }
.cookie-prefs[hidden] { display: none; }
.cookie-prefs label { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; cursor: pointer; }
.cookie-prefs label:last-child { margin-bottom: 0; }
.cookie-prefs input { margin-top: 4px; accent-color: var(--slate); }
.cookie-prefs span { color: var(--ink-soft); font-size: .85rem; display: block; }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-page .hero-actions, .error-page .tag-list { justify-content: center; }
.error-code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 200; color: var(--sand); line-height: 1; margin-bottom: 12px; }

/* ==========================================================================
   Animations, hero « Du trait à la matière », réalisations, avant / après
   ========================================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.65, 0, .35, 1); }

/* ---------- Header au scroll ---------- */
.site-header { transition: box-shadow .3s, background-color .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(31, 42, 51, .08); }

/* ---------- Apparitions au scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="mask"] { transform: none; transition: opacity .6s ease; transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-reveal="mask"] > img { clip-path: inset(100% 0 0 0); scale: 1.15; transition: clip-path 1.3s var(--ease-out), scale 1.6s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="mask"].is-in > img { clip-path: inset(0 0 0 0); scale: 1; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal], .js [data-reveal="mask"] > img { opacity: 1; transform: none; clip-path: none; scale: none; } }

/* ---------- Hero accueil ---------- */
.hero-home {
  background: var(--slate); color: var(--ink); padding: 40px 0 0; isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column;
}
.hero-home::before { display: none; }
.hero-blueprint {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(239,232,220,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,232,220,.22) 1px, transparent 1px),
    linear-gradient(rgba(239,232,220,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,232,220,.1) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 85%);
}
.hero-plan {
  position: absolute; z-index: -1; pointer-events: none; width: min(860px, 140vw); height: auto;
  right: -14%; top: 46%; translate: 0 -50%; opacity: .13;
  transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .6s var(--ease-out);
}
.hero-plan path, .hero-plan rect, .hero-plan circle, .hero-plan line {
  fill: none; stroke: var(--ink); stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.4s var(--ease-io) forwards; animation-delay: var(--d, 0s);
}
.hero-plan text { fill: var(--ink); font: 500 11px/1 var(--font); letter-spacing: .12em; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-plan path, .hero-plan rect, .hero-plan circle, .hero-plan line { stroke-dashoffset: 0; } .hero-plan text { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-plan path, .hero-plan rect, .hero-plan circle, .hero-plan line { stroke-dashoffset: 0; } .hero-plan text { opacity: 1; } }
@keyframes fadein { to { opacity: 1; } }

.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; flex: 1; padding-bottom: 40px; }
@media (min-width: 980px) { .hero-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; padding-bottom: 56px; } }

.hero-home .eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.hero-home .eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; transform-origin: left; animation: grow 1s var(--ease-out) .2s both; }
@keyframes grow { from { transform: scaleX(0); } }

.hero-home h1 { margin-bottom: 22px; }
.h1-display { display: block; font-size: clamp(2.6rem, 8.6vw, 4.6rem); font-weight: 300; line-height: .98; letter-spacing: -.045em; }
.h1-display .line { display: block; overflow: hidden; padding-bottom: .08em; }
.h1-display .line > span { display: inline-block; animation: rise 1.1s var(--ease-out) both; animation-delay: calc(.15s + var(--l, 0) * .14s); }
.h1-display em { font-style: normal; font-weight: 700; color: var(--ink); background: linear-gradient(transparent 78%, rgba(239,232,220,.5) 78%, rgba(239,232,220,.5) 90%, transparent 90%); }
@keyframes rise { from { transform: translateY(105%); } }
.h1-sub { display: block; margin-top: 22px; font-size: clamp(1rem, 2.2vw, 1.2rem); font-weight: 500; letter-spacing: .01em; color: var(--ink); animation: fadeup 1s var(--ease-out) .6s both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } }
.hero-home .hero-lead { animation: fadeup 1s var(--ease-out) .75s both; max-width: 34em; color: var(--ink-soft); }
.hero-home .hero-actions { animation: fadeup 1s var(--ease-out) .9s both; }

.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 14px 40px; margin: 8px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(35,40,44,.2); animation: fadeup 1s var(--ease-out) 1.05s both; }
.hero-stats div { display: grid; }
@media (min-width: 600px) { .hero-stats dt { white-space: nowrap; } }
@media (max-width: 599px) { .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; } .hero-stats dt { font-size: .68rem; letter-spacing: .08em; } }
.hero-stats dt { order: 2; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.hero-stats dd { order: 1; margin: 0; font-size: 2rem; font-weight: 300; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }

/* Visuel : croquis -> réalisation */
.hero-visual { position: relative; margin: 0 auto; width: min(100%, 460px); animation: fadeup 1.2s var(--ease-out) .4s both; }
@media (min-width: 980px) { .hero-visual { width: min(100%, 440px); margin-right: 0; } }
.hv-stage { position: relative; padding: 0 24px 24px 0; }
.hv-frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--slate-600);
  outline: 1px solid rgba(35,40,44,.28); outline-offset: 10px; cursor: ew-resize; touch-action: pan-y;
}
.hv-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.hv-slide.is-active { opacity: 1; z-index: 1; }
.hv-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-before { transform: scale(1.04); transition: transform 5s linear; }
.hv-slide.is-active .hv-before { transform: scale(1); }
.hv-photo { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease-io), transform 5s linear; transform: scale(1.06); }
.hv-slide.is-built .hv-photo { clip-path: inset(0 0 0 0); transform: scale(1); }
.hv-frame.is-scrub .hv-photo { transition: none; clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0) !important; transform: scale(1); }
.hv-scan {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 3; width: 2px; pointer-events: none;
  background: var(--sand); box-shadow: 0 0 18px 2px rgba(194,169,134,.7); opacity: 0;
}
.hv-frame.is-scanning .hv-scan { opacity: 1; left: 100%; transition: left 1.2s var(--ease-io), opacity .3s; }
.hv-frame.is-scrub .hv-scan { opacity: 1; left: var(--x, 50%); transition: none; }
.hv-tag {
  position: absolute; z-index: 4; top: 14px; left: 14px; padding: 6px 10px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(35,40,44,.78); color: var(--cream); backdrop-filter: blur(6px); border-radius: 2px;
}
.hv-frame.is-real .hv-tag { background: var(--sand); color: var(--ink); }
.hv-tag span { display: none; } .hv-tag [data-state="plan"] { display: inline; }
.hv-frame.is-real .hv-tag [data-state="plan"] { display: none; } .hv-frame.is-real .hv-tag [data-state="real"] { display: inline; }
.hv-hint { position: absolute; z-index: 4; right: 14px; bottom: 14px; font-size: .75rem; color: var(--cream); background: rgba(35,40,44,.7); padding: 6px 10px; border-radius: 2px; }
@media (hover: none) { .hv-hint { display: none; } }
.hv-desc { margin: 6px 0 0; font-size: .9rem; color: var(--ink-soft); min-height: 2.9em; }
.hv-desc a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.hv-desc svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.hv-desc a:hover svg { transform: translateX(3px); }
/* Repères de cote */
.hv-dim { position: absolute; color: var(--ink); font-size: .7rem; letter-spacing: .1em; }
.hv-dim::before { content: ""; position: absolute; background: currentColor; opacity: .7; }
.hv-dim-x { left: 0; right: 24px; bottom: 0; height: 12px; border-left: 1px solid; border-right: 1px solid; }
.hv-dim-x::before { left: 0; right: 0; top: 50%; height: 1px; transform-origin: left; animation: grow 1.4s var(--ease-out) 1s both; }
.hv-dim-x span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--slate); padding: 0 8px; }
.hv-dim-y { top: 0; bottom: 24px; right: 0; width: 12px; border-top: 1px solid; border-bottom: 1px solid; }
.hv-dim-y::before { top: 0; bottom: 0; left: 50%; width: 1px; transform-origin: top; animation: growy 1.4s var(--ease-out) 1.2s both; }
@keyframes growy { from { transform: scaleY(0); } }
.hv-dim-y span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(90deg); background: var(--slate); padding: 0 8px; white-space: nowrap; }
.hv-caption { display: flex; align-items: baseline; gap: 14px; margin: 14px 0 0; color: var(--ink-soft); font-size: .92rem; min-height: 1.6em; }
.hv-caption strong { color: var(--ink); font-weight: 600; }
.hv-count { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); font-size: .8rem; letter-spacing: .1em; }
.hv-progress { display: flex; gap: 6px; margin-top: 12px; }
.hv-progress button { flex: 1; height: 18px; padding: 8px 0; border: 0; background: none; cursor: pointer; position: relative; }
.hv-progress button::before, .hv-progress button::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgba(35,40,44,.2); }
.hv-progress button::after { background: var(--ink); transform: scaleX(0); transform-origin: left; }
.hv-progress button.is-done::after { transform: scaleX(1); }
.hv-progress button.is-active::after { animation: progress var(--dur, 5.2s) linear forwards; }
.hv-frame:hover ~ .hv-progress button.is-active::after, .hero-visual.is-paused .hv-progress button.is-active::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

/* Réticule de dessinateur (souris) */
.hero-cross { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s; }
.hero-home:hover .hero-cross { opacity: 1; }
.hero-cross::before, .hero-cross::after { content: ""; position: absolute; background: rgba(35,40,44,.18); }
.hero-cross::before { left: 0; right: 0; height: 1px; top: var(--cy, 50%); }
.hero-cross::after { top: 0; bottom: 0; width: 1px; left: var(--cx, 50%); }
.hero-cross span { position: absolute; left: var(--cx, 50%); top: var(--cy, 50%); transform: translate(10px, 8px); font: 500 .68rem/1 var(--font); letter-spacing: .12em; color: rgba(35,40,44,.7); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: none), (max-width: 979px) { .hero-cross { display: none; } }

.hero-coords { position: absolute; right: 20px; top: 24px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(35,40,44,.55); writing-mode: vertical-rl; }
@media (max-width: 979px) { .hero-coords { display: none; } }

/* Bandeau défilant des chantiers */
.marquee { position: relative; overflow: hidden; border-top: 1px solid rgba(35,40,44,.15); background: rgba(35,40,44,.08); padding: 16px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { display: flex; align-items: center; gap: 12px; padding: 0 22px; white-space: nowrap; color: var(--ink-soft); font-size: .92rem; }
.marquee li strong { color: var(--ink); font-weight: 600; }
.marquee li::after { content: ""; width: 7px; height: 7px; margin-left: 22px; border: 1px solid var(--ink); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Réalisations (accueil) ---------- */
.section-head-row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.section-head-row .section-head { margin-bottom: 0; }
.bento { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.bento .tile:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 160px; gap: 16px; }
  .bento .tile:nth-child(1) { grid-column: 1 / 6; grid-row: span 4; }
  .bento .tile:nth-child(2) { grid-column: 6 / 9; grid-row: span 2; }
  .bento .tile:nth-child(3) { grid-column: 9 / 13; grid-row: span 3; }
  .bento .tile:nth-child(4) { grid-column: 6 / 9; grid-row: span 2; }
  .bento .tile:nth-child(5) { grid-column: 9 / 13; grid-row: span 1; }
}
.tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--slate);
  color: var(--white); text-decoration: none; aspect-ratio: 4 / 5; isolation: isolate;
}
.bento .tile:first-child { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .bento .tile, .bento .tile:first-child { aspect-ratio: auto; } }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20,28,34,.85)); transition: opacity .5s; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile-info { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 18px 18px 16px; }
.tile-info small { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); margin-bottom: 4px; }
.tile-info strong { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.25; }
@media (min-width: 900px) { .bento .tile:first-child .tile-info strong { font-size: 1.5rem; } }
@media (max-width: 899px) { .bento .tile:not(:first-child) .tile-info small { display: none; } .bento .tile:not(:first-child) .tile-info { padding: 14px; } .bento .tile:not(:first-child) .tile-info strong { font-size: .95rem; } }
.tile-arrow { position: absolute; z-index: 1; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--ink); transform: scale(.6) rotate(-45deg); opacity: 0; transition: transform .5s var(--ease-out), opacity .4s; }
.tile-arrow svg { width: 18px; height: 18px; }
.tile:hover .tile-arrow, .tile:focus-visible .tile-arrow { transform: none; opacity: 1; }
.tile:hover, .tile:focus-visible { color: var(--white); }

/* ---------- Avant / après ---------- */
.ba { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; background: var(--slate-100); --pos: 50%; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,.3); }
.ba-line::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2a33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 3 12 9 18'/%3E%3Cpolyline points='15 6 21 12 15 18'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .3s var(--ease-out);
}
.ba:hover .ba-line::after { transform: translate(-50%, -50%) scale(1.08); }
.ba-label { position: absolute; top: 14px; padding: 5px 10px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; pointer-events: none; }
.ba-label-avant { left: 14px; background: rgba(31,42,51,.8); color: var(--white); }
.ba-label-apres { right: 14px; background: var(--sand); color: var(--ink); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible + .ba-line::after { outline: 3px solid var(--sand); outline-offset: 3px; }
.ba-wrap figcaption { margin-top: 12px; font-size: .92rem; color: var(--ink-soft); }
.ba-wrap figcaption strong { color: var(--ink); }
.ba-wrap { margin: 0; }
.ba-grid { display: grid; gap: 28px 20px; }
@media (min-width: 640px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ba-grid { grid-template-columns: repeat(4, 1fr); } }
.ba-feature { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .ba-feature { grid-template-columns: .9fr 1.1fr; gap: 72px; } .ba-feature .ba { max-width: 520px; margin-left: auto; } }

/* ---------- Concept 3D -> réalisation ---------- */
.concept { position: relative; padding: 0 0 18% 18%; }
.concept figure { margin: 0; position: relative; }
.concept img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.concept-render { position: absolute; left: 0; bottom: 0; width: 64%; z-index: 2; transform: translateY(var(--shift, 0px)); transition: transform .2s linear; }
.concept-render img { aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper); border: 6px solid var(--paper); }
.concept-real img { aspect-ratio: 4 / 5; object-fit: cover; }
.concept figcaption { position: absolute; top: 12px; left: 12px; padding: 5px 10px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; background: var(--ink); color: var(--cream); }
.concept-render figcaption { top: auto; bottom: 16px; left: 16px; background: var(--sand); color: var(--ink); }
.concept-note { margin-top: 18px; font-size: .9rem; color: var(--ink-soft); }

/* Étapes : trait qui se dessine */
.js .steps li[data-reveal] { border-top-color: transparent; }
.steps li::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--sand); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 160ms + .2s); }
.steps li.is-in::after { transform: scaleX(1); }

/* Bandeau CTA avec photo */
.cta-band-photo { background: var(--slate); }
.cta-band-photo::before { content: ""; position: absolute; inset: 0; background: var(--cta-img) center / cover no-repeat; opacity: .16; mix-blend-mode: luminosity; transform: scale(1.05); }
.cta-band-photo .container { position: relative; }

/* ---------- Galerie : projets ---------- */
.projects { display: grid; gap: 24px; }
@media (min-width: 680px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project { position: relative; scroll-margin-top: calc(var(--header-h) + 24px); }
.project-open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project[hidden] { display: none; }
.project-open { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; border-radius: var(--radius-lg); }
.project-open:focus-visible { outline: 3px solid var(--sand); outline-offset: 4px; }
.project-cover { display: block; position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; background: var(--slate-100); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.project-open:hover .project-cover img { transform: scale(1.05); }
.project-cover .badge { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(31,42,51,.82); color: var(--white); font-size: .8rem; font-weight: 600; backdrop-filter: blur(6px); }
.project-cover .badge svg { width: 16px; height: 16px; }
.project-cover .peek { position: absolute; right: 14px; bottom: 14px; width: 30%; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; border: 3px solid var(--white); box-shadow: 0 8px 20px rgba(0,0,0,.3); transform: translateY(6px) scale(.92); transform-origin: bottom right; transition: transform .5s var(--ease-out), opacity .4s; }
.project-cover .peek img { width: 100%; height: 100%; object-fit: cover; }
.project-cover .peek span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(31,42,51,.8); color: var(--white); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 3px 0; }
.project-open:hover .peek, .project-open:focus-visible .peek { transform: none; opacity: 1; }
@media (hover: none) { .project-cover .peek { transform: none; } }
.project-body { padding: 16px 4px 0; }
.project-body small { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-600); font-weight: 600; margin-bottom: 4px; }
.project-body h3 { margin-bottom: .35em; }
.project-body p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.filters button { transition: background-color .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--slate); }

/* ---------- Lightbox ---------- */
.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20,28,34,.97); color: var(--white); }
.lightbox::backdrop { background: rgba(20,28,34,.6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fadein .3s ease; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 10px; }
.lb-title { margin: 0; font-size: 1rem; color: var(--white); font-weight: 600; }
.lb-title small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); font-weight: 600; }
.lb-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); color: var(--white); cursor: pointer; flex: none; transition: background-color .2s, border-color .2s; }
.lb-btn:hover { background: rgba(255,255,255,.12); border-color: var(--sand); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 12px; }
.lb-stage figure { margin: 0; height: 100%; width: 100%; display: grid; grid-template-rows: 1fr auto; justify-items: center; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: 4px; animation: lbin .5s var(--ease-out); }
@keyframes lbin { from { opacity: 0; transform: scale(.98); } }
.lb-stage figcaption { padding: 12px 8px 0; text-align: center; color: #c7d0d7; font-size: .92rem; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.lb-phase { padding: 3px 8px; border-radius: 2px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--sand); color: var(--ink); }
.lb-phase[data-phase="avant"], .lb-phase[data-phase="chantier"] { background: #4b5d6b; color: var(--white); }
.lb-phase[data-phase="3d"] { background: var(--linen); color: var(--ink); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(20,28,34,.6); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 18px; scrollbar-width: thin; justify-content: safe center; }
.lb-thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; opacity: .5; background: none; transition: opacity .2s, border-color .2s; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--sand); }
.lb-thumbs button:hover { opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
body.lb-open { overflow: hidden; }

/* Hero galerie : bande de photos */
.hero-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 36px; }
.hero-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.hero-strip img:nth-child(even) { transform: translateY(18px); }
@media (max-width: 640px) { .hero-strip { grid-template-columns: repeat(3, 1fr); } .hero-strip img:nth-child(n+4) { display: none; } }
.nowrap { white-space: nowrap; }
body { overflow-x: clip; }
@media (max-width: 979px) { .hv-stage { padding-left: 12px; } }

/* ---------- Avis Google (À propos) ---------- */
.reviews { columns: 1; column-gap: 20px; }
@media (min-width: 700px) { .reviews { columns: 2; } }
@media (min-width: 1040px) { .reviews { columns: 3; } }
.review { break-inside: avoid; margin: 0 0 20px; padding: 24px; background: var(--paper); border: 1px solid rgba(71,105,123,.16); border-radius: var(--radius-lg); }
.review-stars { display: flex; gap: 3px; margin: 0 0 12px; }
.review-stars span { display: inline-flex; width: 18px; height: 18px; fill: rgba(35,40,44,.18); }
.review-stars span.on { fill: var(--sand-600); }
.review-stars svg { width: 100%; height: 100%; }
.review blockquote { margin: 0 0 14px; color: var(--ink); font-size: .98rem; }
.review blockquote p { margin: 0; }
.review blockquote p::before { content: "« "; color: var(--slate-600); }
.review blockquote p::after { content: " »"; color: var(--slate-600); }
.review figcaption { font-size: .88rem; color: var(--ink-soft); }
.review figcaption strong { color: var(--slate-600); }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Pages villes : chantiers en photos ---------- */
.nearby { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.nearby .tile:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
@media (min-width: 800px) { .nearby { grid-template-columns: repeat(3, 1fr); gap: 18px; } .nearby .tile:first-child:nth-last-child(odd) { grid-column: auto; aspect-ratio: 4 / 5; } }
@media (max-width: 799px) { .nearby .tile:not(:first-child) .tile-info small { display: none; } .nearby .tile-info strong { font-size: .95rem; } }
.chantier-proof { display: grid; gap: 28px; margin-top: 40px; align-items: start; }
@media (min-width: 800px) { .chantier-proof { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.chantier-proof .ba { max-width: 460px; }
.review-solo { margin: 0; }
.review-solo figcaption a { color: var(--slate-600); }

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 91; right: 12px; bottom: 12px; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 10px 24px rgba(35, 40, 44, .3); transition: transform .3s var(--ease-out);
}
.wa-float:hover { color: #fff; transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 899px) { .call-float { right: 80px; } }
@media (min-width: 900px) {
  .wa-float { right: 24px; bottom: 24px; width: auto; height: 52px; padding: 0 20px 0 16px; border-radius: 999px; display: flex; gap: 10px; font-weight: 700; }
  .wa-float span { position: static; width: auto; height: auto; clip: auto; }
  .wa-float svg { width: 24px; height: 24px; }
}
.footer-contact .wa-ico { width: 18px; height: 18px; color: var(--ink); flex: none; margin-top: 4px; }

/* ---------- Avis : accueil ---------- */
.reviews-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 360px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; scrollbar-width: thin; }
.reviews-scroller .review { scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; }
.reviews-scroller .review blockquote { flex: 1; }
.hero-reviews { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; animation: fadeup 1s var(--ease-out) 1s both; }
.hero-reviews-stars { color: var(--cream); letter-spacing: 2px; font-size: 1.05rem; }
.hero-reviews:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Hero : avant / après en premier sur mobile ---------- */
@media (max-width: 979px) {
  .hero-home .hero-visual { order: -1; }
  .hero-home { padding-top: 24px; }
}
.hero-visual { animation-delay: 0s; }
@media (min-width: 900px) { .reviews-scroller { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 12%; } }

/* ---------- Parcours de chantier (défilement) ---------- */
.parcours { position: relative; height: calc(var(--steps) * 48vh + 100vh); background: var(--paper); }
.parcours-alt { background: var(--linen); }
.parcours-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.parcours-inner { display: grid; gap: 18px; align-items: center; width: 100%; }
@media (min-width: 900px) { .parcours-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }
.parcours-frame { position: relative; margin: 0 auto; width: 100%; max-width: 440px; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--slate-100); box-shadow: var(--shadow); }
@media (max-width: 899px) { .parcours-frame { max-width: none; aspect-ratio: auto; height: 50svh; } }
.parcours-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .5s ease, transform 1.2s var(--ease-out); }
.parcours-frame img.is-active { opacity: 1; transform: none; }
.parcours-tag { position: absolute; top: 14px; left: 14px; padding: 5px 10px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; background: rgba(35,40,44,.8); color: var(--cream); }
.parcours-tag.is-done { background: var(--sand); color: var(--ink); }
.parcours-hint { position: absolute; right: 14px; bottom: 14px; font-size: .75rem; color: var(--cream); background: rgba(35,40,44,.7); padding: 6px 10px; border-radius: 2px; transition: opacity .4s, visibility .4s; }
.parcours.is-moving .parcours-hint { opacity: 0; visibility: hidden; }
.parcours-text h2 { margin-bottom: .3em; }
.parcours-count { margin: 0 0 8px; font-size: 2.4rem; font-weight: 300; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.parcours-count span { font-weight: 600; color: var(--slate-600); }
.parcours-bar { height: 3px; background: rgba(71,105,123,.18); margin-bottom: 18px; border-radius: 3px; overflow: hidden; }
.parcours-bar span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--slate-600); }
.parcours-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 2px; }
.parcours-steps button { all: unset; box-sizing: border-box; display: flex; gap: 14px; width: 100%; padding: 7px 10px; border-radius: 6px; cursor: pointer; color: var(--ink-soft); }
.parcours-steps button:focus-visible { outline: 3px solid var(--sand); }
.parcours-steps button:hover { background: rgba(71,105,123,.08); }
.ps-num { font-size: .8rem; font-weight: 700; color: var(--slate-400); padding-top: 2px; font-variant-numeric: tabular-nums; }
.ps-txt strong { display: block; font-weight: 600; font-size: .98rem; color: inherit; }
.ps-txt span { display: block; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; font-size: .92rem; transition: max-height .4s var(--ease-out), opacity .3s, visibility .3s; }
.parcours-steps li.is-active button { background: rgba(71,105,123,.1); color: var(--ink); }
.parcours-steps li.is-active .ps-num { color: var(--slate-600); }
.parcours-steps li.is-active .ps-txt span { max-height: 6em; opacity: 1; visibility: visible; margin-top: 2px; }
.parcours-steps li.is-past .ps-num { color: var(--slate-600); }
.parcours-link { font-weight: 600; font-size: .95rem; }
@media (max-width: 899px) {
  .parcours-text .eyebrow { margin-bottom: 4px; font-size: .7rem; }
  .parcours-text h2 { font-size: 1.3rem; }
  .parcours-count { font-size: 1.6rem; }
  .parcours-steps li:not(.is-active) { display: none; }
  .parcours-steps button { padding: 6px 0; }
  .parcours-link { display: none; }
}
.parcours-intro-band { padding: 64px 0 8px; }
.parcours-intro-band p { color: var(--ink-soft); max-width: 40em; }
@media (min-width: 1040px) { .wa-float { display: none !important; } }

/* Avant / après : titre cliquable vers la bibliothèque du chantier */
.ba-title { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--slate-600); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(71,105,123,.35); transition: text-decoration-color .2s; }
.ba-title:hover { text-decoration-color: currentColor; }
.ba-title:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
.ba-title::after { content: "→"; text-decoration: none; display: inline-block; transition: transform .3s var(--ease-out); }
.ba-title:hover::after { transform: translateX(3px); }
.ba-place { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: 2px; }

/* Petits ou grands travaux */
.scale { margin-top: 28px; padding: 32px 24px; border-radius: var(--radius-lg); background: var(--linen); border: 1px solid rgba(71, 105, 123, .16); }
.scale-head h3 { color: var(--slate-600); margin-bottom: .4em; }
.scale-head p { color: var(--ink-soft); max-width: 62ch; margin: 0; }
.scale-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; counter-reset: scale; }
.scale-list li { position: relative; padding: 18px 18px 18px 20px; background: var(--paper); border-radius: var(--radius); border-left: 3px solid var(--slate); }
.scale-list li:nth-child(2) { border-left-width: 6px; }
.scale-list li:nth-child(3) { border-left-width: 9px; }
.scale-step { display: block; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-600); margin-bottom: 6px; }
.scale-list p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.scale .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-weight: 600; font-size: .92rem; color: var(--slate-600); }
.scale .more svg { width: 16px; height: 16px; }
@media (min-width: 800px) { .scale { padding: 40px; } .scale-list { grid-template-columns: repeat(3, 1fr); } }
.hero-note { max-width: 62ch; margin-top: -4px; font-weight: 600; }
.service-block h2 { color: var(--slate-600); }
