/*
Theme Name: Démolition Belgique
Theme URI: https://demolition-belgique.be
Author: Demolition Belgique
Author URI: https://demolition-belgique.be
Description: Thème custom pour Démolition Belgique – entreprise de démolition intérieure et location de container à Bruxelles.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: demolition-belgique
Tags: business, construction, demolition
*/

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #C0392B;
  --red-dark: #a93226;
  --dark: #1a1a1a;
  --dark2: #111111;
  --gray-bg: #f7f7f7;
  --gray-light: #f0f0f0;
  --gray-border: #e0e0e0;
  --text: #222222;
  --text-muted: #666666;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
ul { list-style: none; }

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

/* ============================================================
   TOPBAR
============================================================ */
.topbar {
  background: var(--dark2);
  color: #aaa;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #ccc; }
.topbar a:hover { color: var(--white); }
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-item svg { width: 14px; height: 14px; fill: var(--red); flex-shrink: 0; }

/* ============================================================
   HEADER / NAV
============================================================ */
#site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--red);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
}
.logo-text { line-height: 1.2; }
.logo-text strong { display: block; color: var(--white); font-size: 15px; font-weight: 700; }
.logo-text span { color: #aaa; font-size: 12px; }

/* NAV */
.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav ul li a {
  color: #ccc;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current_page_item > a {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* Dropdown */
.main-nav ul li { position: relative; }
.main-nav ul li ul {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  min-width: 200px;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  flex-direction: column;
  gap: 0;
  z-index: 100;
}
.main-nav ul li:hover > ul { display: flex; }
.main-nav ul li ul li a {
  display: block;
  padding: 9px 16px;
  border-radius: 0;
  font-size: 13px;
}

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO (page d'accueil)
============================================================ */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--red); }
.hero p {
  color: #ccc;
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.btn-primary {
  background: var(--red);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--red-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }
.hero-trust {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #bbb;
  font-size: 13px;
}
.hero-trust-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

/* ============================================================
   USP STRIP
============================================================ */
.usp-strip {
  background: var(--red);
  padding: 0;
}
.usp-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.usp-item {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 20px;
  border-right: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  gap: 7px;
}
.usp-item:last-child { border-right: none; }
.usp-item svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.7); flex-shrink: 0; }

/* ============================================================
   SECTIONS GÉNÉRALES
============================================================ */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--dark); }
.section-gray { background: var(--gray-bg); }

.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-dark .section-title { color: var(--white); }
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 560px;
}
.section-dark .section-sub { color: #aaa; }

/* ============================================================
   SERVICES GRID
============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  padding: 28px 22px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card-icon {
  width: 48px;
  height: 48px;
  background: #fde8e8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card-icon svg { width: 24px; height: 24px; fill: var(--red); }
.service-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.service-card ul { padding-left: 0; }
.service-card ul li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}
.service-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  margin-top: 12px;
}
.service-link:hover { gap: 8px; }

/* ============================================================
   STATS / POURQUOI NOUS
============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.stat-item { text-align: center; padding: 24px 16px; }
.stat-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label strong { display: block; color: var(--white); font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.stat-label span { color: #888; font-size: 13px; }

/* ============================================================
   ZONE D'INTERVENTION
============================================================ */
.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.zone-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.zone-tag {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--text);
  transition: border-color var(--transition), color var(--transition);
}
.zone-tag:hover { border-color: var(--red); color: var(--red); }

/* ============================================================
   BLOG GRID
============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card-thumb {
  height: 180px;
  overflow: hidden;
  background: var(--gray-light);
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-thumb img { transform: scale(1.05); }
.blog-card-body { padding: 20px; }
.blog-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.blog-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
}
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--red); }
.blog-card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.blog-card-meta { font-size: 12px; color: #aaa; display: flex; gap: 12px; align-items: center; }

/* ============================================================
   CTA BANNER
============================================================ */
.cta-banner {
  background: var(--red);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 17px; margin-bottom: 32px; }
.cta-pills {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cta-pill {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 14px 24px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.cta-pill span { display: block; font-size: 11px; color: rgba(255,255,255,0.65); margin-bottom: 3px; }
.btn-white {
  background: var(--white);
  color: var(--red);
  padding: 14px 36px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 15px;
  display: inline-block;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); color: var(--red); }

/* ============================================================
   CONTENT PAGES (pages intérieures)
============================================================ */
.page-hero {
  background: var(--dark);
  padding: 56px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}
.page-hero p { color: #bbb; font-size: 16px; max-width: 560px; margin: 0 auto; }
.breadcrumb {
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.breadcrumb a { color: #aaa; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: #555; }

.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px;
}
.content-main h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-border);
}
.content-main h2:first-child { margin-top: 0; }
.content-main h3 { font-size: 18px; font-weight: 700; color: var(--text); margin: 24px 0 10px; }
.content-main p { margin-bottom: 16px; color: var(--text); line-height: 1.75; }
.content-main ul, .content-main ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.content-main ul { list-style: none; padding-left: 0; }
.content-main ul li {
  padding: 4px 0 4px 20px;
  position: relative;
  color: var(--text);
  line-height: 1.6;
}
.content-main ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 18px;
  top: 2px;
}
.content-main ol { list-style: decimal; }
.content-main ol li { padding: 4px 0; color: var(--text); }
.content-main img {
  border-radius: var(--radius);
  margin: 20px 0;
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.content-main .wp-block-image img { height: auto; }
.highlight-box {
  background: var(--gray-bg);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.highlight-box p { margin: 0; }

/* SIDEBAR */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.sidebar-widget-header {
  background: var(--dark);
  color: var(--white);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
}
.sidebar-widget-body { padding: 20px; }
.contact-widget-phone {
  font-size: 24px;
  font-weight: 800;
  color: var(--red);
  display: block;
  margin: 8px 0 4px;
}
.contact-widget-hours { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.sidebar-widget ul li {
  border-bottom: 1px solid var(--gray-border);
  padding: 0;
}
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.sidebar-widget ul li a::before { content: '›'; color: var(--red); font-weight: 700; font-size: 16px; }
.sidebar-widget ul li a:hover { color: var(--red); }
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-border);
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.why-list li:last-child { border-bottom: none; }
.why-icon { color: var(--red); font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   FOOTER
============================================================ */
#site-footer { background: var(--dark2); padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-icon { margin-bottom: 16px; }
.footer-desc { color: #888; font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font-size: 13px;
  margin-bottom: 8px;
}
.footer-contact-item svg { width: 14px; height: 14px; fill: var(--red); flex-shrink: 0; }
.footer-contact-item a { color: #aaa; }
.footer-contact-item a:hover { color: var(--white); }
.footer-heading { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #888; font-size: 13px; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy { color: #555; font-size: 12px; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: #555; font-size: 12px; }
.footer-legal a:hover { color: #888; }

/* ============================================================
   FORMULAIRE CONTACT
============================================================ */
.contact-form-wrap { max-width: 640px; }
.contact-form-wrap input,
.contact-form-wrap textarea,
.contact-form-wrap select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  margin-bottom: 16px;
  transition: border-color var(--transition);
}
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
  outline: none;
  border-color: var(--red);
}
.contact-form-wrap textarea { min-height: 140px; resize: vertical; }
.contact-form-wrap .submit-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.contact-form-wrap .submit-btn:hover { background: var(--red-dark); }

/* ============================================================
   SINGLE POST
============================================================ */
.single-hero {
  background: var(--dark);
  padding: 48px 24px;
}
.single-hero h1 {
  color: var(--white);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  max-width: 700px;
  margin: 12px 0;
  line-height: 1.3;
}
.post-meta { color: #888; font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
.post-cat-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
}
.post-featured-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 28px;
}

/* ============================================================
   PAGINATION
============================================================ */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 40px 0;
}
.pagination a, .pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.pagination a:hover, .pagination .current {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .zone-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark2);
    z-index: 999;
    padding: 80px 24px 24px;
    overflow-y: auto;
  }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
  .main-nav.open ul li a { font-size: 18px; padding: 14px; }
  .main-nav ul li ul { position: static; display: flex !important; box-shadow: none; border: none; background: rgba(255,255,255,0.05); margin-top: 4px; }
  .nav-burger { display: flex; }
  .nav-close {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
  }
  .main-nav.open ~ .nav-close, .nav-close.show { display: block; }
  .topbar .topbar-left { display: none; }
  .hero { padding: 60px 20px; min-height: 400px; }
  .usp-item { padding: 10px 14px; font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .cta-pills { flex-direction: column; align-items: center; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
