/* ==========================================================================
   Page Bâtiment — identité "technique / construction"
   ========================================================================== */
body[data-theme="batiment"] {
  --primary: #24282d;
  --primary-dark: #14171a;
  --primary-light: #565f68;
  --bg: #eceef0;
  --surface: #ffffff;
  --border: #d8dbde;
  --accent: #f2b705;
  --accent-dark: #c99500;
  --accent-light: #ffd659;
  --radius-md: 6px;
  --radius-lg: 4px;
}
body[data-theme="batiment"] .site-header { background: rgba(236, 238, 240, 0.92); }
body[data-theme="batiment"] .btn-accent { color: #17130a; }
body[data-theme="batiment"] .service-card,
body[data-theme="batiment"] .form-card,
body[data-theme="batiment"] .media-placeholder { border-radius: var(--radius-md); }

/* Hero */
.hero-bt {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #eceef0 0%, #dfe2e5 100%);
  padding: 4rem 0 5rem;
}
.hero-bt::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(36,40,45,0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(36,40,45,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, black, transparent 85%);
}
.hero-bt .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 880px) { .hero-bt .container { grid-template-columns: 1fr; } }
.hero-bt h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.hero-bt .lead { color: var(--text-muted); font-size: 1.08rem; max-width: 520px; margin-bottom: 2rem; }
.hero-bt-art img {
  width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover; object-position: center 12%;
  border-radius: 32px; /* même arrondi que l'image de la page Espaces verts */
  box-shadow: var(--shadow-lg);
}

.hero-bt .eyebrow { border-radius: 3px; }

/* Séparateur anguleux */
.angled-divider {
  height: 64px;
  background: var(--surface);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  margin-top: -1px;
}

/* Bandeau stats */
.bt-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: -2.2rem;
  position: relative;
  z-index: 2;
}
@media (max-width: 860px) { .bt-stats { grid-template-columns: repeat(2, 1fr); } }
.bt-stats .stat {
  background: var(--surface);
  padding: 1.5rem 1.2rem;
  text-align: center;
}
.bt-stats .stat strong { display: block; font-family: var(--font-heading); font-size: 1.7rem; color: var(--primary); }
.bt-stats .stat span { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }

/* Cartes de prestations, coins nets + liseré accent */
.service-card.bt-card {
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
  position: relative;
}
.service-card.bt-card .icon-wrap { border-radius: 4px; }

/* Bloc process en étapes numérotées, style "plan" */
.bt-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 860px) { .bt-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bt-steps { grid-template-columns: 1fr; } }
.bt-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 1.6rem;
}
.bt-step .num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--border);
  -webkit-text-stroke: 1px var(--primary-light);
  margin-bottom: 0.6rem;
}

/* CTA */
.bt-cta {
  position: relative;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 3.4rem;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.bt-cta::after {
  content: "";
  position: absolute; right: -40px; top: -40px; width: 260px; height: 260px;
  border: 40px solid rgba(242,183,5,0.12);
  transform: rotate(20deg);
}
.bt-cta h2 { color: #fff; }
.bt-cta p { color: rgba(255,255,255,0.78); }

/* Réalisations avant / après */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
@media (max-width: 860px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--primary); }
.ba-shot {
  position: relative;
  display: block;
  padding: 0; border: 0; margin: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.ba-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.ba-shot:hover img, .ba-shot:focus-visible img { transform: scale(1.04); }
.ba-shot:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.ba-tag {
  position: absolute; left: 0.6rem; top: 0.6rem;
  background: rgba(20, 23, 26, 0.82);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.6rem;
}
.ba-tag.is-after { background: var(--accent); color: #17130a; }
.ba-card figcaption { padding: 1.3rem 1.4rem 1.5rem; }
.ba-card figcaption h3 { margin: 0.8rem 0 0.3rem; }
.ba-card figcaption p { margin: 0; color: var(--text-muted); }

.tag-square {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--primary);
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-left: 3px solid var(--accent);
}
