/* =========================================================
   components.css — composants réutilisables
   Header · Boutons · Hero · Stats · Cartes (service, projet,
   produit, bien) · Processus · CTA · Formulaire · FAQ ·
   Galerie · Avant/après · Fil d'Ariane · Footer
   ========================================================= */

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 15px 24px; border: 1.5px solid transparent; border-radius: var(--radius);
  cursor: pointer; line-height: 1; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold); color: var(--charcoal); }
.btn--gold:hover { background: #c29f68; }
.btn--dark { background: var(--charcoal); color: var(--ivory); }
.btn--dark:hover { background: #333; }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: rgba(255,255,255,.08); }
.on-dark .btn--line:hover { background: rgba(255,255,255,.08); }
.btn--wa { background: var(--wa); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--gold-dark); }
.on-dark .link-arrow { color: var(--gold); }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 241, 232, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 52px; height: auto; }
.brand__txt { display: grid; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: .04em; text-transform: uppercase; }
.brand__sub { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); }
.nav a { white-space: nowrap; font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--charcoal); position: relative; padding-block: 6px; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold); transition: right .25s; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .btn { padding: 12px 18px; font-size: .78rem; }
.nav a.btn { color: var(--ivory); }
.nav a.btn::after { display: none; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--charcoal); padding: 9px 12px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; cursor: pointer; color: var(--charcoal); }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--ivory); background: var(--charcoal); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,19,17,.94) 0%, rgba(20,19,17,.82) 45%, rgba(20,19,17,.35) 100%); }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: end; padding-block: clamp(80px, 12vw, 150px) clamp(48px, 7vw, 88px); }
.hero h1 { text-transform: uppercase; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: #d9d1c4; margin-top: 22px; }
.hero__ctas { margin-top: 34px; }
.hero__loc { margin-top: 28px; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #cfc6b7; }
.hero__loc::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
/* Cartouche (title block d'un plan) */
.cartouche { border: 1px solid rgba(200, 183, 156, .55); background: rgba(20, 19, 17, .55); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; justify-self: end; width: min(100%, 340px); }
.cartouche div { display: grid; grid-template-columns: 110px 1fr; border-bottom: 1px solid rgba(200, 183, 156, .3); }
.cartouche div:last-child { border-bottom: 0; }
.cartouche dt, .cartouche dd { margin: 0; padding: 9px 12px; }
.cartouche dt { color: var(--stone); text-transform: uppercase; border-right: 1px solid rgba(200, 183, 156, .3); }
.cartouche dd { color: var(--ivory); }

/* Page hero (pages internes) */
.page-hero { background: var(--charcoal); color: var(--ivory); position: relative; overflow: hidden; }
.page-hero__in { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); display: grid; gap: 18px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); text-transform: uppercase; max-width: 20ch; }
.page-hero .lead { color: #d0c8bb; }
.page-hero--img .page-hero__bg { position: absolute; inset: 0; }
.page-hero--img .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--img .page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,19,17,.94), rgba(20,19,17,.7) 60%, rgba(20,19,17,.45)); }
.page-hero::before, .hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: linear-gradient(rgba(200,183,156,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(200,183,156,.07) 1px, transparent 1px); background-size: 48px 48px; }
.page-hero__in, .hero__in { z-index: 2; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; color: #bfb6a8; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--gold); }
.breadcrumb a { text-decoration: none; color: inherit; }
.breadcrumb a:hover { color: var(--ivory); }
.breadcrumb [aria-current] { color: var(--ivory); }

/* ---------- Statistiques ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .45em; color: var(--gold-dark); margin-left: 2px; }
.stat__lbl { font-weight: 600; }
.stat__sub { font-size: var(--fs-small); color: var(--muted); }

/* ---------- Cartes service ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { position: relative; display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 36px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; background: var(--ivory); transition: background .25s; min-width: 0; }
.svc:hover { background: var(--white); }
.svc__top { display: flex; justify-content: space-between; align-items: start; }
.svc__icon { width: 46px; height: 46px; color: var(--gold-dark); }
.svc__icon svg { width: 100%; height: 100%; }
.svc__num { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); letter-spacing: .12em; }
.svc p { color: var(--muted); font-size: .95rem; }
.svc .link-arrow { margin-top: 6px; }

/* ---------- Cartes projet ---------- */
.pj { display: grid; grid-template-rows: auto 1fr; background: var(--white); text-decoration: none; border: 1px solid var(--line); min-width: 0; transition: box-shadow .25s, transform .25s; }
.pj:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pj__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--charcoal); max-width: 100%; }
.pj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pj:hover .pj__media img { transform: scale(1.04); }
.pj__status { position: absolute; left: 14px; top: 14px; z-index: 1; }
.pj__body { padding: 20px 22px 24px; display: grid; gap: 10px; align-content: start; }
.pj__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.pj__body p { color: var(--muted); font-size: .95rem; }
.pj--wide { grid-column: span 2; }
.pj--wide .pj__media { aspect-ratio: 16 / 9; }

.badge { display: inline-block; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; background: var(--charcoal); color: var(--ivory); }
.badge--gold { background: var(--gold); color: var(--charcoal); }
.badge--stone { background: var(--stone); color: var(--charcoal); }

/* Filtres projets */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: inherit; font-size: .85rem; font-weight: 600; padding: 9px 16px; border: 1px solid var(--line); background: var(--white); color: var(--charcoal); cursor: pointer; border-radius: var(--radius); }
.filters button[aria-pressed="true"] { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }

/* ---------- Bande "Matériaux / Immobilier" ---------- */
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.band__card { position: relative; min-height: 340px; display: grid; align-content: end; padding: clamp(24px, 3vw, 40px); color: var(--ivory); text-decoration: none; overflow: hidden; background: var(--charcoal); }
.band__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.band__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,19,17,.92) 10%, rgba(20,19,17,.25) 70%); }
.band__card:hover img { transform: scale(1.04); }
.band__card > div { position: relative; z-index: 1; display: grid; gap: 10px; }
.band__card p { color: #d6cec1; max-width: 46ch; }

/* ---------- Produits ---------- */
.prod { background: var(--white); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.prod__media { aspect-ratio: 3 / 2; overflow: hidden; max-width: 100%; }
.prod__media img { width: 100%; height: 100%; object-fit: cover; }
.prod__body { padding: 22px; display: grid; gap: 12px; align-content: start; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .9rem; }
.spec dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.spec dd { margin: 0; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-dark); }
.tier { padding: 22px; border-left: 1px solid var(--line-dark); display: grid; gap: 6px; }
.tier:first-child { border-left: 0; }
.tier b { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); line-height: 1; }
.tier--best { background: var(--gold); color: var(--charcoal); }
.tier--best b { color: var(--charcoal); }

/* ---------- Pourquoi nous ---------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.why__item { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line-dark); display: grid; gap: 10px; align-content: start; }
.why__item:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.why__item b { font-family: var(--font-mono); font-size: .72rem; color: var(--gold); letter-spacing: .12em; }
.why__item p { color: var(--muted-dark); font-size: .95rem; }

/* ---------- Processus (frise) ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); counter-reset: step; }
.process li { position: relative; padding: 0 16px 0 0; display: grid; gap: 10px; align-content: start; }
.process__n { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--gold-dark); }
.process__line { height: 2px; background: var(--charcoal); position: relative; margin: 4px 0 6px; }
.process__line::before, .process__line::after { content: ""; position: absolute; top: -5px; width: 2px; height: 12px; background: var(--charcoal); }
.process__line::before { left: 0; }
.process__line::after { right: 0; }
.process h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; }
.process p { font-size: .9rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: var(--gold); color: var(--charcoal); }
.cta__in { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px 48px; align-items: center; padding-block: clamp(56px, 7vw, 88px); }
.cta h2 { text-transform: uppercase; }
.cta p { margin-top: 12px; max-width: 56ch; }

/* ---------- Contact & formulaire ---------- */
.coords { display: grid; gap: 0; border-top: 1px solid var(--line); }
.coord { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.coord dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.coord dd { margin: 0; font-weight: 600; word-break: break-word; font-variant-numeric: tabular-nums; }
.coord dd a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.copy { font: inherit; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 3px 8px; margin-left: 8px; cursor: pointer; vertical-align: middle; }
.form { background: var(--white); border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--charcoal); background: var(--ivory); border: 1px solid var(--line); border-bottom: 2px solid var(--charcoal); padding: 12px 13px; width: 100%; border-radius: 0; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); background: var(--white); }
.field small { color: var(--muted); font-size: .8rem; }
.form__out { padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--ivory); font-size: .95rem; }
.form__out a { font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; color: var(--gold-dark); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* ---------- Galerie & avant / après ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; background: var(--charcoal); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption, .ba figcaption { position: absolute; left: 10px; bottom: 10px; }
.ba { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ba figure { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--charcoal); max-width: 100%; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba--full { align-items: start; }
.ba--full figure { aspect-ratio: auto; background: none; overflow: visible; }
.ba--full figcaption { position: static; margin-top: 10px; }
.ba--full img { height: auto; object-fit: contain; }
.media-frame { position: relative; margin: 0; }
.media-frame img { width: 100%; height: auto; }
.media-frame::before { content: ""; position: absolute; left: -12px; top: -12px; width: 56px; height: 56px; border-left: 3px solid var(--gold); border-top: 3px solid var(--gold); }
.media-frame figcaption { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); padding-top: 10px; }

/* Fiche technique projet */
.factsheet { border: 1px solid var(--line); background: var(--white); }
.factsheet h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.factsheet dl { margin: 0; }
.factsheet div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--stone-soft); }
.factsheet div:last-child { border-bottom: 0; }
.factsheet dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.factsheet dd { margin: 0; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: .8rem; padding: 5px 10px; border: 1px solid var(--line); background: var(--ivory); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist li { padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 2px; background: var(--gold); }
.note { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--stone); padding: 8px 12px; }

/* Séparations sur mesure */
.models { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.model { position: relative; grid-column: span 2; aspect-ratio: 432 / 500; overflow: hidden; background: var(--charcoal); max-width: 100%; margin: 0; }
.model:nth-child(4), .model:nth-child(5) { grid-column: span 3; aspect-ratio: 652 / 400; }
.model img { width: 100%; height: 100%; object-fit: cover; }
.model figcaption { position: absolute; inset: auto 0 0 0; padding: 14px; background: linear-gradient(transparent, rgba(20,19,17,.92) 45%); color: var(--ivory); display: grid; gap: 2px; }
.model figcaption b { font-family: var(--font-display); }
.model figcaption span { font-size: .85rem; color: #d6cec1; }

/* État vide (immobilier) */
.empty { border: 1px dashed var(--stone); padding: clamp(28px, 4vw, 48px); display: grid; gap: 14px; justify-items: start; background: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: #141311; color: var(--muted-dark); font-size: .92rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-block: 64px 40px; }
.site-footer h2 { font-family: var(--font-display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }
.site-footer .brand__name { color: var(--ivory); }
.site-footer .brand img { background: var(--white); padding: 5px; }
.legal { border-top: 1px solid var(--line-dark); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; }
.legal span:last-child { margin-left: auto; }
.social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.social a, .social span { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-dark); color: var(--ivory); }
.social svg { width: 18px; height: 18px; }
.social a:hover { border-color: var(--gold); color: var(--gold); }

/* WhatsApp flottant */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }


/* ---------- Stages & carrières ---------- */
.svc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.st-open { background: #1f7a45; color: #fff; }
.st-soon { background: var(--stone); color: var(--charcoal); }
.st-full { background: #a3392b; color: #fff; }
.st-closed { background: #6b665f; color: #fff; }
.form--long fieldset { border: 0; margin: 0; padding: 0 0 6px; display: grid; gap: 16px; border-bottom: 1px solid var(--stone-soft); }
.form--long fieldset:last-of-type { border-bottom: 0; }
.form--long legend { font-family: var(--font-display); font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 6px; }
.form__row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.field input[type="file"] { padding: 9px; font-size: .85rem; }
.field.is-error input, .field.is-error select { border-bottom-color: #a3392b; }
.form__out .row { margin-top: 12px; }
.form__out ul { margin: 8px 0 0; padding-left: 1.2em; }
.offer .prod__body { gap: 14px; }
