/* ===================================================================
   DMC Renov — Feuille de style
   Charte : orange #EE6C2B, anthracite #1A1A1A, blanc, gris clair
   Typo : Poppins (titres) + Inter (texte)
   =================================================================== */

/* ---------- Tokens ---------- */
:root {
  --orange: #EE6C2B;
  --orange-dark: #d65a1c;
  --ink: #1A1A1A;
  --ink-soft: #333333;
  --gray: #6b6b6b;
  --gray-light: #F5F5F5;
  --border: #e6e6e6;
  --white: #ffffff;

  --font-title: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(26,26,26,.08);
  --shadow: 0 8px 24px rgba(26,26,26,.10);
  --shadow-lg: 0 18px 48px rgba(26,26,26,.16);

  --container: 1180px;
  --header-h: 80px;

  --z-header: 100;
  --z-cookie: 200;
  --z-lightbox: 1000;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.alt-bg { background: var(--gray-light); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 4px 14px rgba(238,108,43,.30); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(238,108,43,.38); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand-logo { width: auto; height: 52px; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { font-weight: 500; font-size: .95rem; color: var(--ink-soft); position: relative; padding: 4px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--orange); transition: width .2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.header-phone:hover { color: var(--orange); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: transform .25s ease, opacity .25s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; gap: 6px; padding: 14px 20px 22px; border-bottom: 1px solid var(--border); background: var(--white); }
.mobile-menu a { padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-of-type { border: none; }
.mobile-menu .mobile-phone { font-weight: 600; color: var(--orange); }
.mobile-menu .btn { margin-top: 8px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 84px) 0; background: linear-gradient(180deg, #fff 0%, #fafafa 100%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-block; font-weight: 600; font-size: .85rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--orange); background: rgba(238,108,43,.10);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
.hero-sub { margin-top: 18px; font-size: 1.08rem; color: var(--ink-soft); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; }
.hero-badges li { font-size: .92rem; font-weight: 500; color: var(--ink-soft); }

.hero-visual img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -.01em; }
.section-head p { margin-top: 12px; color: var(--gray); font-size: 1.05rem; }
.section-cta { text-align: center; margin-top: 44px; }

/* ---------- Avant / Après ---------- */
.ba-section { padding: clamp(48px, 7vw, 88px) 0; }
.ba-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.ba-tab {
  font-family: var(--font-body); font-weight: 600; font-size: .92rem;
  padding: 10px 20px; border-radius: 999px; border: 2px solid var(--border);
  background: var(--white); color: var(--ink-soft); cursor: pointer; transition: all .2s ease;
}
.ba-tab:hover { border-color: var(--orange); color: var(--orange); }
.ba-tab.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.ba-wrap { max-width: 440px; margin: 0 auto; }
.ba-slider {
  position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  user-select: none; touch-action: pan-y; cursor: ew-resize; background: var(--ink);
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; will-change: width; }
.ba-before-wrap .ba-before { width: auto; max-width: none; height: 100%; }
/* l'image "avant" doit garder la largeur de la slider entière */
.ba-before { width: var(--ba-w, 900px) !important; }

.ba-label {
  position: absolute; top: 14px; font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: #fff; background: rgba(26,26,26,.72);
  padding: 5px 12px; border-radius: 999px; z-index: 3;
}
.ba-label-before { left: 14px; }
.ba-label-after { right: 14px; }

.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: var(--white);
  transform: translateX(-50%); z-index: 4; pointer-events: none;
}
.ba-handle::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px;
  transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.ba-handle svg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; padding: 10px; background: var(--white); color: var(--orange);
  border-radius: 50%; box-shadow: var(--shadow); box-sizing: border-box;
}

/* ---------- Prestations ---------- */
.prestations { padding: clamp(48px, 7vw, 88px) 0; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(238,108,43,.4); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(238,108,43,.10); color: var(--orange);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: .95rem; color: var(--gray); }

/* ---------- Réalisations / carrousel ---------- */
.realisations { padding: clamp(48px, 7vw, 88px) 0; }
.carousel { position: relative; display: flex; align-items: center; gap: 10px; }
.carousel-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; flex: 1; padding: 6px 2px 14px; scrollbar-width: thin;
}
.carousel-track::-webkit-scrollbar { height: 6px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.car-item {
  flex: 0 0 auto; width: min(340px, 78vw); scroll-snap-align: center;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  background: var(--ink); cursor: zoom-in; border: none; padding: 0; position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.car-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.car-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.car-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  font-size: .85rem; font-weight: 500; color: #fff; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(26,26,26,.85));
}
.carousel-btn {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--white); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}
.carousel-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.car-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; transition: all .2s ease; }
.car-dot.is-active { background: var(--orange); width: 26px; border-radius: 999px; }

/* ---------- Lightbox ---------- */
.lightbox[hidden], .cookie-banner[hidden] { display: none !important; }
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  background: rgba(15,15,15,.94); display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: lbfade .2s ease;
}
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { max-width: 92vw; max-height: 88vh; text-align: center; }
.lb-figure img { max-width: 92vw; max-height: 78vh; border-radius: var(--radius); object-fit: contain; }
.lb-figure figcaption { color: #eee; font-size: .95rem; margin-top: 14px; }
.lb-close {
  position: absolute; top: 18px; right: 22px; font-size: 2.4rem; line-height: 1;
  color: #fff; background: none; border: none; cursor: pointer; width: 48px; height: 48px;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background .2s ease;
}
.lb-nav:hover { background: var(--orange); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* ---------- Avis ---------- */
.reviews { padding: clamp(48px, 7vw, 88px) 0; }
.reviews-disclaimer { font-size: .85rem; font-style: italic; color: var(--gray); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.review {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.stars { color: var(--orange); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 12px; }
.review p { color: var(--ink-soft); font-size: .98rem; }
.review footer { margin-top: 14px; font-weight: 600; font-size: .9rem; }
.review footer span { color: var(--gray); font-weight: 400; }

/* ---------- Zone ---------- */
.zone { padding: clamp(48px, 7vw, 88px) 0; }
.zone-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.zone-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.zone-lead { margin-top: 14px; font-size: 1.08rem; color: var(--ink-soft); max-width: 54ch; }
.zone-cities { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.zone-cities li {
  font-size: .85rem; font-weight: 500; color: var(--ink-soft);
  background: var(--gray-light); padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border);
}
.zone-card {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 32px 28px;
  text-align: center; box-shadow: var(--shadow);
}
.zone-radius { margin-bottom: 22px; }
.zone-radius-num { display: block; font-family: var(--font-title); font-weight: 800; font-size: 3.4rem; color: var(--orange); line-height: 1; }
.zone-radius-unit { display: block; font-size: .95rem; color: #cfcfcf; margin-top: 4px; }
.zone-card .btn { margin-bottom: 12px; }
.zone-card .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.zone-card .btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Contact ---------- */
.contact { padding: clamp(48px, 7vw, 88px) 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-intro h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.contact-intro > p { margin-top: 12px; color: var(--ink-soft); font-size: 1.05rem; }
.contact-points { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.contact-points li { font-weight: 500; color: var(--ink-soft); }
.contact-direct { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.contact-phone-big { display: block; font-family: var(--font-title); font-weight: 800; font-size: 1.9rem; color: var(--orange); }
.contact-phone-big:hover { color: var(--orange-dark); }
.contact-mail { display: inline-block; margin-top: 6px; color: var(--ink-soft); font-weight: 500; }
.contact-mail:hover { color: var(--orange); }

.quote-form {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(238,108,43,.15);
}
.field input.invalid, .field textarea.invalid { border-color: #d33; box-shadow: 0 0 0 3px rgba(211,51,51,.12); }
.field .err-msg { display: block; color: #c22; font-size: .82rem; margin-top: 5px; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.quote-form .btn { margin-top: 6px; }
.form-note { font-size: .8rem; color: var(--gray); margin-top: 14px; text-align: center; }
.form-feedback { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; font-size: .95rem; }
.form-feedback.ok { background: #e7f6ec; color: #1c7a3f; border: 1px solid #b6e2c5; }
.form-feedback.ko { background: #fdeaea; color: #b22; border: 1px solid #f3c2c2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d7d7d7; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 20px 40px; }
.footer-logo { height: 56px; width: auto; background: #fff; padding: 8px 12px; border-radius: var(--radius-sm); }
.footer-brand p { margin-top: 16px; font-size: .92rem; color: #aaa; max-width: 38ch; }
.footer-nav h3, .footer-contact h3 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-nav a, .footer-contact a { display: block; padding: 5px 0; font-size: .92rem; color: #c7c7c7; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--orange); }
.footer-contact p { margin-top: 8px; font-size: .9rem; color: #999; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 20px; font-size: .85rem; color: #999; }
.footer-bottom-inner a:hover { color: var(--orange); }

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: var(--z-cookie);
  max-width: 560px; margin-inline: auto; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-lg); display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.cookie-banner p { font-size: .9rem; color: var(--ink-soft); flex: 1 1 240px; }
.cookie-actions { display: flex; gap: 10px; margin-left: auto; }

/* ---------- Animations apparition ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .zone-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .main-nav, .header-cta, .header-phone { display: none; }
  .header-actions { margin-left: auto; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }
  .mobile-menu[hidden] { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .quote-form { padding: 24px 18px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card:hover, .car-item:hover { transform: none !important; }
}
