/* =========================================================
   DINABAT – feuille de style principale
   Polices auto-hébergées (RGPD) · aucune dépendance externe
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #141414;
  --ink-2: #3d3b36;
  --ink-3: #5c5a53;
  --line: #e2e0d9;
  --line-2: #b9b6ad;
  --ground: #f4f3ef;
  --paper: #ffffff;
  --dark-2: #2a2925;
  --on-dark: #f4f3ef;
  --on-dark-2: #b9b6ad;
  --accent: #ffbd59;      /* jaune-orangé du logo : uniquement en fond, jamais en texte sur fond clair */
  --accent-ink: #8a6a1f;  /* version foncée lisible sur fond clair */
  --success: #1f6b3a;
  --error: #a3261c;

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 24px);
  --section: clamp(64px, 9vw, 104px);
  --radius: 2px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--ground); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.section--dark :focus-visible, .site-footer :focus-visible, .page-hero :focus-visible, .lightbox :focus-visible { outline-color: var(--accent); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; }
.skip-link:focus { top: 8px; }
.muted { color: var(--ink-3); font-weight: 400; }
.icon { flex: none; }

/* ---------- Typographie ---------- */
.display {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.95; letter-spacing: -0.005em; text-transform: uppercase;
}
.display--md { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.h2 { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1; text-transform: uppercase; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; }
.h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 40em; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow::before { content: ""; width: 28px; height: 4px; background: var(--accent); flex: none; }
.eyebrow--light { color: var(--accent); }
.prose { display: flex; flex-direction: column; gap: 1em; }
.prose h2 { font-size: 1.35rem; margin-top: 1.2em; }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose--narrow { max-width: 780px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn--lg { min-height: 54px; padding-inline: 30px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #33312c; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #f5ab3c; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--outline-dark { border-color: var(--ink); color: var(--ink); }
.btn--outline-dark:hover { background: rgba(0,0,0,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 10px 0; color: var(--accent); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .15s; }

/* ---------- Barre infos ---------- */
.topbar { background: var(--ink); color: #e9e7e1; font-size: 0.82rem; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 9px; }
.topbar__group { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar .icon { color: var(--accent); }
@media (max-width: 720px) { .hide-sm { display: none !important; } .topbar__inner { justify-content: center; } }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { height: 42px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav ul a { display: block; padding: 10px 0; font-weight: 600; font-size: 0.95rem; text-decoration: none; border-bottom: 2px solid transparent; }
.main-nav ul a:hover { border-bottom-color: var(--line-2); }
.main-nav ul a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--ink); cursor: pointer; }
.nav-toggle__close { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    box-shadow: 0 16px 24px rgba(0,0,0,.08);
  }
  .js .main-nav:not(.is-open) { display: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav ul a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--accent); padding-left: 14px; }
  .main-nav__cta { width: 100%; }
}

/* ---------- Hero accueil ---------- */
.hero { background: var(--paper); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); padding-block: clamp(48px, 7vw, 88px); align-items: stretch; }
.hero__text { display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.hero__media { position: relative; display: block; min-height: 440px; background: var(--ink); overflow: hidden; }
.hero__media picture, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img { transition: transform .6s ease; }
.hero__media:hover img { transform: scale(1.03); }
.hero__media--static img { object-position: 42% 50%; }
.hero__media--static:hover img { transform: none; }
@media (max-width: 900px) { .hero__media.hero__media--static { aspect-ratio: 16 / 10; } }
@media (max-width: 600px) { .hero .hero__caption { padding: 10px 14px; font-size: 0.85rem; max-width: 85%; } }
.hero__caption { position: absolute; left: 0; bottom: 0; max-width: 340px; display: flex; flex-direction: column; gap: 2px; background: var(--ink); color: #fff; padding: 16px 20px; font-weight: 600; }
.hero__caption-kicker { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.key-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 6px 0 0; }
.key-facts div { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px 0 0; }
.key-facts dd { order: -1; }
.key-facts dt { font-size: 0.85rem; color: var(--ink-3); }
.key-facts dd { margin: 0; font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 2.1rem; line-height: 1; }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { min-height: 0; width: 100%; aspect-ratio: 4 / 3; }
}

/* ---------- Bandeau titre des pages ---------- */
.page-hero { background: var(--ink); color: var(--on-dark); padding-block: clamp(56px, 8vw, 88px) clamp(40px, 6vw, 64px); }
.page-hero .container { display: flex; flex-direction: column; gap: 18px; }
.page-hero .lead { color: #d2cfc6; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(32px, 5vw, 48px) var(--section); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--tint { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; margin-bottom: 44px; }
.section-head p { max-width: 460px; color: var(--ink-2); }
.section .h2 + .steps, .section .h2 + .values { margin-top: 44px; }

/* Métiers */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.service-card { position: relative; background: var(--paper); padding: 34px 30px; display: flex; flex-direction: column; gap: 12px; transition: background .15s; }
.service-card:hover { background: #fbfaf7; }
.service-card h3 { font-size: 1.3rem; }
.service-card h3 a { text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card p { color: var(--ink-2); }
.service-card__num { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: var(--accent-ink); }

/* Chantiers à la une */
.featured { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 24px; }
.featured__item { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--on-dark); }
.featured__item picture { overflow: hidden; }
.featured__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.featured__item:hover img { transform: scale(1.03); }
.featured__item--main { grid-row: span 2; }
.featured--single { grid-template-columns: 1fr; }
.featured--single .featured__item--main img { height: clamp(300px, 42vw, 560px); }
.featured__item--main img { aspect-ratio: auto; height: clamp(300px, 34vw, 470px); }
.featured__title { font-weight: 700; font-size: 1.15rem; margin-top: 6px; }
.featured__item--main .featured__title { font-size: 1.4rem; }
.featured__meta { font-size: 0.88rem; color: var(--on-dark-2); }
.section--dark .placeholder { background: var(--dark-2); border-color: #5c5a53; color: var(--on-dark-2); }
@media (max-width: 900px) { .featured { grid-template-columns: 1fr; } .featured__item--main { grid-row: auto; } }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px; counter-reset: s; }
.step { border-top: 4px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.step__num { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 2.8rem; line-height: 1; color: var(--accent-ink); }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--ink-2); }

/* Bandeau d'appel à l'action */
.cta-band { background: var(--accent); color: var(--ink); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 48px; }
.cta-band__title { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-transform: uppercase; line-height: 1; margin-bottom: 8px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Entreprise ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.fact-card { background: var(--paper); border-top: 4px solid var(--ink); padding: 28px; }
.fact-card__title { font-size: 1.1rem; margin-bottom: 16px; }
.fact-card dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.fact-card dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.fact-card dd { margin: 0; font-weight: 600; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.values li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.values h3 { font-size: 1.2rem; }
.values p { color: var(--ink-2); }

/* ---------- Services ---------- */
.chips, .filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip, .filter {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 0.92rem; text-decoration: none; cursor: pointer;
}
.chip:hover, .filter:hover { border-color: var(--ink); }
.filter span { font-weight: 500; opacity: .7; }
.filter[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.service-list { display: flex; flex-direction: column; }
.service-row { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 40px; padding-block: 36px; border-top: 1px solid var(--line-2); }
.service-row p { color: var(--ink-2); margin-top: 10px; }
@media (max-width: 800px) { .service-row { grid-template-columns: 1fr; } }
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { margin-top: 3px; color: var(--accent-ink); }

/* ---------- Réalisations ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.project-card a { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, transform .2s; }
.project-card a:hover { border-color: var(--ink); transform: translateY(-2px); }
.project-card__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--line); }
.project-card__media img, .project-card__media picture { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.project-card__title { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.project-card__meta { font-size: 0.88rem; color: var(--ink-3); }
.tag { align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 3px 8px; }
.tag--accent { background: var(--accent); color: var(--ink); }
.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; min-height: 200px; background: #e9e7e1; border: 1px dashed var(--line-2); color: var(--ink-3); font-size: 0.9rem; text-align: center; padding: 20px; }
.placeholder--large { min-height: 360px; margin-top: 32px; }
.empty { color: var(--ink-3); }

/* Fiche chantier */
.breadcrumb a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 10px 0; }
.breadcrumb a:hover { text-decoration: underline; }
.project-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 56px; margin-top: 16px; }
.project-head__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.project-facts { flex: 0 1 380px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; border-top: 4px solid var(--ink); padding-top: 16px; }
.project-facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.project-facts dd { margin: 0; font-weight: 600; }
.project-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 64px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .project-body { grid-template-columns: 1fr; } }
.gallery-block { margin-top: 48px; }
.gallery-block .h3 { margin-bottom: 18px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 240px), 1fr)); gap: 8px; }
.gallery--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 12px; }
.gallery a { display: block; overflow: hidden; background: var(--line); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s, opacity .2s; }
.gallery--wide img { aspect-ratio: 16 / 9; }
.gallery a:hover img { transform: scale(1.04); }
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.project-nav a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.project-nav a:last-child { text-align: right; }
.project-nav a:hover { border-color: var(--ink); }
.project-nav .muted { font-size: 0.82rem; }
@media (max-width: 600px) { .project-nav { grid-template-columns: 1fr; } .project-nav a:last-child { text-align: left; } }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12,12,12,.95); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; padding: 16px; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 100px); object-fit: contain; }
.lightbox__figure figcaption { color: #d2cfc6; font-size: 0.9rem; text-align: center; }
.lightbox__btn { width: 52px; height: 52px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; border: 0; border-radius: 50%; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255,255,255,.18); }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr; padding: 64px 8px 80px; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 16px; }
  .lightbox__prev { left: calc(50% - 64px); } .lightbox__next { right: calc(50% - 64px); }
}
body.no-scroll { overflow: hidden; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__info { display: flex; flex-direction: column; gap: 24px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--line-2); padding-top: 24px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .icon { color: var(--accent-ink); margin-top: 2px; }
.contact-list div { display: flex; flex-direction: column; gap: 2px; }
.contact-list strong { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.map-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.contact__form { background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  padding: 12px 14px; min-height: 48px; border: 1px solid var(--line-2); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 0.85rem; font-weight: 600; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--ink); }
.field--check label { flex: 1; font-weight: 400; color: var(--ink-2); font-size: 0.88rem; }
.field--check .field__error { flex-basis: 100%; }
.form .btn { align-self: flex-start; }
.form__note { font-size: 0.82rem; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; padding: 16px 18px; border-left: 4px solid; font-size: 0.95rem; }
.alert--success { background: #eaf4ec; border-color: var(--success); color: var(--success); }
.alert--error { background: #fbeceb; border-color: var(--error); color: var(--error); font-weight: 600; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-2); font-size: 0.92rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px 48px; padding-block: 64px 40px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); } }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand img { height: 40px; width: auto; align-self: flex-start; }
.site-footer__brand p { max-width: 300px; }
.site-footer__title { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; }
.site-footer__list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.site-footer address + .site-footer__list { margin-top: 12px; }
.site-footer a { text-decoration: none; color: var(--on-dark-2); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p + p { margin-top: 8px; }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #45433d; border-radius: 50%; }
.social a:hover { border-color: var(--accent); color: var(--accent); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid #34332f; font-size: 0.82rem; }
.site-footer__links { display: flex; gap: 20px; }
.site-footer__links a { text-decoration: underline; }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 13px 20px 13px 15px; border-radius: 999px;
  background: #1f7a4d; color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .15s, background .15s;
}
.wa-float:hover { background: #17633e; transform: translateY(-2px); color: #fff; }
.wa-float:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) {
  .wa-float { right: 14px; bottom: 14px; padding: 13px; }
  .wa-float__label { display: none; }
}
body.no-scroll .wa-float { display: none; }
@media print { .wa-float { display: none; } }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media print {
  .topbar, .site-header, .cta-band, .site-footer, .lightbox { display: none !important; }
  body { background: #fff; }
}

/* ---------- Protection des photos (voir assets/js/protect.js) ---------- */
/* Calque transparent au-dessus de chaque photo : le clic droit / appui long vise le calque, pas l'image. */
.protect { position: relative; display: block; }
.protect::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(255, 255, 255, 0); }
.protect img, .gallery img, .lightbox img {
  -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none; user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}
.lightbox__frame { display: inline-block; line-height: 0; max-width: 100%; }
.protect-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 20px);
  max-width: calc(100% - 32px); padding: 12px 18px; background: var(--ink); color: #fff;
  font-size: 0.9rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.protect-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Filtres Réalisations (type + année) ---------- */
.filterbar { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filterbar__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.filterbar__label { display: block; margin-bottom: 10px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.filterbar .filters { margin-bottom: 0; }
.filter[data-empty] { opacity: .45; }
.filterbar__row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 24px; }
.filterbar__year { display: flex; flex-direction: column; }
.filterbar__year .filterbar__label { margin-bottom: 6px; }
.filterbar select {
  min-height: 44px; min-width: 220px; padding: 8px 40px 8px 14px; font: inherit; font-weight: 600; color: var(--ink);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line-2); border-radius: 0; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.filterbar select:hover { border-color: var(--ink); }
.filterbar__result { margin: 0 0 10px; font-weight: 700; }
.filterbar__reset { margin: 0 0 10px; font-weight: 600; color: var(--ink-2); }
.btn--sm { min-height: 44px; padding: 8px 18px; }
.empty--filters { margin-top: 24px; }
.project-card__media { position: relative; }
.project-card__year { position: absolute; z-index: 2; left: 12px; bottom: 12px; padding: 4px 10px; background: rgba(20,20,20,.82); color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; }
@media (max-width: 600px) {
  .filterbar .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .filterbar .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .filterbar select { min-width: 0; width: 100%; }
  .filterbar__year { flex: 1 1 100%; }
}
