/* =========================================================
   LBD Démolition — one page
   Charte : noir (#0e111a), blanc, rouge (#d0202a) — tirée du logo
   ========================================================= */

:root {
  --black: #0e111a;
  --black-2: #171b27;
  --black-3: #222838;
  --red: #d0202a;
  --red-dark: #a8161f;
  --white: #ffffff;
  --grey: #f3f3f1;
  --grey-2: #e4e4e0;
  --text: #1c1f27;
  --muted: #5b606c;
  --muted-light: #b7bcc8;

  --font-title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --container: 1200px;
  --header-h: 76px;
  --shadow: 0 18px 40px -18px rgba(14, 17, 26, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.05; margin: 0; text-transform: uppercase; letter-spacing: .01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-title); font-weight: 700; font-size: 1.125rem;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  padding: 13px 24px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn--lg { padding: 16px 30px; font-size: 1.25rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(14, 17, 26, .0);
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled, .header.is-open { background: var(--black); box-shadow: 0 4px 24px rgba(0,0,0,.25); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); flex: none; }
.brand__mark { width: 48px; height: 48px; border-radius: 50%; background: #fff; }
.brand__text { display: flex; flex-direction: column; font-family: var(--font-title); text-transform: uppercase; line-height: .9; }
.brand__text strong { font-size: 1.9rem; font-weight: 800; letter-spacing: .02em; }
.brand__text span { font-size: .85rem; font-weight: 700; letter-spacing: .22em; color: var(--red); margin-top: 3px; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  color: var(--white); text-decoration: none; font-family: var(--font-title); font-weight: 600;
  font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; position: relative; padding: 6px 0;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 10px; cursor: pointer; margin-left: auto; }
.burger span { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: transform .25s, opacity .25s; }
.header.is-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  color: var(--white); background: var(--black); overflow: hidden;
  padding: calc(var(--header-h) + 48px) 0 72px;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(14,17,26,.96) 0%, rgba(14,17,26,.82) 45%, rgba(14,17,26,.45) 100%),
    url("../img/hero.webp") center / cover no-repeat;
}
.hero__bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 18px, var(--black) 18px 36px);
}
.hero__inner { position: relative; }
.eyebrow {
  font-family: var(--font-title); font-weight: 700; text-transform: uppercase; letter-spacing: .18em;
  font-size: .95rem; color: var(--red); display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--red); flex: none; }
.eyebrow--light { color: var(--white); }
.hero__title { font-size: clamp(2.8rem, 7.5vw, 6rem); font-weight: 800; max-width: 14ch; }
.hero__title span { color: var(--red); }
.hero__lead { max-width: 56ch; margin-top: 24px; font-size: 1.15rem; color: #d9dce4; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__badges { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hero__badges li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hero__badges svg { width: 22px; height: 22px; fill: var(--red); background: var(--white); border-radius: 50%; padding: 3px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--grey { background: var(--grey); }
.section--dark { background: var(--black); color: var(--white); }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
.section__lead { margin-top: 18px; color: var(--muted); font-size: 1.125rem; }
.section--dark .section__lead { color: var(--muted-light); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  position: relative; background: var(--white); border: 1px solid var(--grey-2); border-radius: var(--radius);
  padding: 30px 26px 32px; transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden;
}
.service::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service__icon { width: 60px; height: 60px; border-radius: var(--radius); background: var(--black); display: grid; place-items: center; margin-bottom: 22px; }
.service__icon svg { width: 36px; height: 36px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.service:hover .service__icon { background: var(--red); }
.service h3 { font-size: 1.55rem; font-weight: 700; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 1rem; }

/* ---------- Bandeau ---------- */
.strip { background: var(--red); color: var(--white); }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { padding: 34px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,.25); }
.strip__item:first-child { border-left: 0; }
.strip__item strong { display: block; font-family: var(--font-title); font-weight: 800; font-size: 2.6rem; line-height: 1; text-transform: uppercase; }
.strip__item span { display: block; margin-top: 6px; font-weight: 500; }

/* ---------- Pourquoi ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why__media { position: relative; }
.why__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.why__media::after { content: ""; position: absolute; left: -16px; bottom: -16px; width: 45%; height: 45%; border-left: 6px solid var(--red); border-bottom: 6px solid var(--red); z-index: -1; }
.why__media { z-index: 0; isolation: isolate; }
.why__list { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; gap: 22px; }
.why__list li { padding-left: 26px; border-left: 3px solid var(--red); }
.why__list h3 { font-size: 1.4rem; margin-bottom: 4px; }
.why__list p { color: var(--muted-light); }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 12px; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--black); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.gallery__item::after {
  content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.3;
  background: linear-gradient(transparent, rgba(14,17,26,.85)); opacity: 0; transform: translateY(8px); transition: .3s;
}
.gallery__item:hover img { transform: scale(1.05); opacity: .9; }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; transform: none; }
.gallery__more { margin-top: 28px; text-align: center; color: var(--muted); }
.gallery__more a { color: var(--red); font-weight: 600; }

/* ---------- Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--white); padding: 32px 26px; border-radius: var(--radius); border-top: 4px solid var(--black); }
.step__num { font-family: var(--font-title); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--red); display: block; margin-bottom: 14px; }
.step h3 { font-size: 1.45rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 1rem; }

/* ---------- Zone ---------- */
.zone { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.cities { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cities li { background: var(--grey); border: 1px solid var(--grey-2); border-radius: 999px; padding: 6px 14px; font-size: .95rem; font-weight: 500; }
.cities li:first-child { background: var(--black); color: #fff; border-color: var(--black); }
.zone__note { margin-top: 24px; color: var(--muted); }
.zone__note a { color: var(--red); font-weight: 600; }
.zone__map svg { width: 100%; height: auto; max-width: 460px; margin: 0 auto; display: block; overflow: visible; }
.zone__map .ring { fill: none; stroke: var(--grey-2); stroke-width: 1.5; stroke-dasharray: 4 6; }
.zone__map .ring--outer { fill: rgba(208,32,42,.06); stroke: var(--red); stroke-dasharray: none; stroke-width: 2; }
.zone__map .town circle { fill: var(--black); }
.zone__map .town .pin { fill: var(--red); stroke: #fff; stroke-width: 3; }
.zone__map text { font-family: var(--font-body); font-size: 12px; font-weight: 600; fill: var(--text); text-anchor: middle; }
.zone__map .town--main { font-family: var(--font-title); font-size: 17px; font-weight: 800; letter-spacing: .08em; fill: var(--red); }
.zone__map .radius { font-size: 11px; fill: var(--muted); text-transform: uppercase; letter-spacing: .16em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: var(--radius); border: 1px solid var(--grey-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; color: var(--red); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact__phone {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 32px;
  font-family: var(--font-title); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white); text-decoration: none; letter-spacing: .02em;
}
.contact__phone svg { width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: var(--red); fill: #fff; flex: none; }
.contact__phone:hover { color: var(--red); }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.contact__label { display: block; font-family: var(--font-title); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--red); }
.contact__list a { color: var(--white); }

.form { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 36px; display: grid; gap: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); border-top: 6px solid var(--red); }
.form__title { font-size: 1.9rem; margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--text); width: 100%;
  padding: 12px 14px; border: 1.5px solid var(--grey-2); border-radius: var(--radius); background: var(--grey);
  transition: border-color .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--black); background: #fff; }
.form .is-invalid { border-color: var(--red); background: #fff5f5; }
.form textarea { resize: vertical; min-height: 110px; }
.form__consent { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; font-size: .88rem !important; color: var(--muted); }
.form__consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); }
.form__consent a { color: var(--text); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button:disabled { opacity: .7; cursor: wait; }
.form__status { font-weight: 600; min-height: 1.4em; }
.form__status.is-error { color: var(--red); }
.form__status.is-ok { color: #1d7a3a; }

/* ---------- Footer ---------- */
.footer { background: #07090e; color: var(--muted-light); padding: 48px 0 40px; font-size: .95rem; }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { border-radius: 50%; background: #fff; }
.footer__brand strong { color: var(--white); font-family: var(--font-title); font-size: 1.3rem; text-transform: uppercase; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: flex-end; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--white); }
.footer__legal { grid-column: 1 / -1; border-top: 1px solid var(--black-3); padding-top: 22px; font-size: .85rem; }

/* ---------- Barre mobile ---------- */
.mobilebar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(7,9,14,.94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { color: #fff; margin-top: 14px; text-align: center; font-weight: 500; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 3rem; line-height: 1; width: 56px; height: 56px; }
.lightbox button:hover { color: var(--red); }
.lightbox__close { top: 12px; right: 16px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .header__tel span { display: none; }
  .header__tel { padding: 12px; }
  .nav { gap: 22px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .section { padding: 76px 0; }
  .burger { display: block; }
  .header__tel { margin-left: auto; }
  .burger { margin-left: 0; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--black); padding: 8px 24px 24px; margin: 0;
    transform: translateY(-110%); visibility: hidden; transition: transform .3s, visibility .3s; z-index: -1;
  }
  .header.is-open .nav { transform: none; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--black-3); font-size: 1.3rem; }
  .nav a::after { display: none; }
  .nav__cta-mobile { display: block; color: var(--red) !important; border-bottom: 0 !important; }

  .why, .zone, .contact { grid-template-columns: 1fr; gap: 44px; }
  .why__media img { aspect-ratio: 16 / 11; }
  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(3) { border-left: 0; }
  .strip__item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.25); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }

  .mobilebar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    box-shadow: 0 -6px 20px rgba(0,0,0,.2); padding-bottom: env(safe-area-inset-bottom); background: var(--black);
  }
  .mobilebar a { text-align: center; padding: 16px 8px; font-family: var(--font-title); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; text-decoration: none; color: #fff; }
  .mobilebar__call { background: var(--red); }
  body { padding-bottom: 56px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .services, .steps { grid-template-columns: 1fr; }
  .form { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
  .btn--lg { font-size: 1.1rem; padding: 15px 20px; white-space: normal; text-align: center; }
  .gallery { grid-auto-rows: 140px; gap: 8px; }
  .gallery__item--wide { grid-column: span 2; }
  .brand__text strong { font-size: 1.6rem; }
  .brand__mark { width: 42px; height: 42px; }
  .strip__item strong { font-size: 2rem; }
  .lightbox { padding: 60px 8px; }
  .lightbox__nav { top: auto !important; bottom: 8px; transform: none !important; }
}
