/* ============================================
   LABOSOILS - Modern Construction Website
   Design: Industrial Luxury with Bold Typography
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@300;400;500;600;700&family=Barlow+Condensed:wght@400;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --accent: #F5A623;
  --accent-dark: #D4891A;
  --accent-light: #FFD080;
  --red: #C0392B;

  /* Topbar variables (light theme) */
  --topbar-bg: #1C1C1C;
  --topbar-text: rgba(255, 255, 255, 0.6);
  --topbar-text-hover: #F5A623;
  --topbar-border: rgba(245, 166, 35, 0.15);
  --topbar-social-border: rgba(245, 166, 35, 0.2);

  /* Light Theme */
  --bg: #F4F1EC;
  --bg-2: #FFFFFF;
  --bg-3: #EBEBEB;
  --surface: rgba(255,255,255,0.9);
  --text: #1A1A1A;
  --text-2: #555555;
  --text-3: #888888;
  --border: rgba(0,0,0,0.1);
  --shadow: rgba(0,0,0,0.08);
  --shadow-lg: rgba(0,0,0,0.15);
  --nav-bg: rgba(244,241,236,0.95);
  --card-bg: #FFFFFF;
  --hero-overlay: rgba(20,16,10,0.5);
  --stripe-color: rgba(0,0,0,0.03);

  /* Transition */
  --transition: all 0.2s ease;
}

[data-theme="dark"] {
  --bg: #0E0E0E;
  --bg-2: #161616;
  --bg-3: #1F1F1F;
  --surface: rgba(22,22,22,0.95);
  --text: #F0EDE8;
  --text-2: #AAAAAA;
  --text-3: #666666;
  --border: rgba(255,255,255,0.08);
  --shadow: rgba(0,0,0,0.3);
  --shadow-lg: rgba(0,0,0,0.5);
  --nav-bg: rgba(14,14,14,0.97);
  --card-bg: #161616;
  --hero-overlay: rgba(10,8,5,0.65);
  --stripe-color: rgba(255,255,255,0.02);

  /* Topbar variables (dark theme) */
  --topbar-bg: #0A0A0A;
  --topbar-text: rgba(255, 255, 255, 0.5);
  --topbar-text-hover: #F5A623;
  --topbar-border: rgba(245, 166, 35, 0.1);
  --topbar-social-border: rgba(245, 166, 35, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--text);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 560px;
  font-weight: 300;
}

/* ── Layout ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }


/* ---- TOP BAR ---- */
#topbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  padding: 8px 0;
  font-size: 0.8rem;
  position: relative;
  z-index: 1001;
  transition: background 0.4s ease;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--topbar-text);
  transition: var(--transition);
}

.topbar-item:hover { color: var(--topbar-text-hover); }

.topbar-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.social-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--topbar-social-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--topbar-text);
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.social-btn svg { width: 13px; height: 13px; }


/* ── NAVBAR ── */
#navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

#navbar.scrolled {
  box-shadow: 0 4px 30px var(--shadow-lg);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo img { height: 42px; width: auto; }

.nav-logo span { color: var(--accent); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item { position: relative; }

.nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active { color: var(--accent); }

.nav-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-item:hover > .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 20px 60px var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  overflow: hidden;
  z-index: 100;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}

.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover {
  background: var(--bg-3);
  color: var(--accent);
  padding-left: 24px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  color: var(--text);
}

.theme-toggle:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.theme-toggle svg { width: 18px; height: 18px; }

.btn-devis {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-devis:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245,166,35,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn svg { width: 18px; height: 18px; }

/* ── HERO SLIDER ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slider { position: relative; width: 100%; height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-slide.active .hero-slide-img { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
  z-index: 2;
}

.hero-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-label::before {
  content: '';
  width: 40px; height: 2px;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  color: #fff;
  line-height: 0.95;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.5s forwards;
  max-width: 800px;
}

.hero-title span { color: var(--accent); }

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  font-weight: 300;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.9s forwards;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 40px;
  right: 60px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}

.slider-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.slider-btn svg { width: 20px; height: 20px; }

.slider-dots {
  position: absolute;
  bottom: 52px;
  left: 60px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--accent);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Barlow Condensed', sans-serif;
  animation: bounce 2s infinite;
}

.scroll-indicator svg { width: 20px; height: 20px; }

/* ── DEVIS BANNER ── */
.devis-banner {
  background: var(--accent);
  padding: 18px 0;
}

.devis-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.devis-banner-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.devis-banner-text svg { width: 22px; height: 22px; }

.devis-banner .btn {
  background: #fff;
  color: var(--accent);
  padding: 10px 28px;
}

.devis-banner .btn:hover {
  background: #1A1A1A;
  color: #fff;
  transform: none;
  box-shadow: none;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  font-weight: 600;
}

/* ── ABOUT PREVIEW ── */
.about-preview {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
}

.about-img-main {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 4px;
}

.about-img-accent {
  position: absolute;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  bottom: -30px;
  right: -30px;
  border: 6px solid var(--bg);
  box-shadow: 0 20px 60px var(--shadow-lg);
}

.about-badge {
  position: absolute;
  top: 30px;
  left: -20px;
  background: var(--accent);
  color: #fff;
  padding: 18px 22px;
  border-radius: 4px;
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
}

.about-badge-num { font-size: 2.5rem; line-height: 1; display: block; }
.about-badge-txt { font-size: 0.75rem; letter-spacing: 0.08em; }

.about-content { padding-right: 20px; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.about-feat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-feat-icon {
  width: 44px; height: 44px;
  border-radius: 4px;
  background: rgba(245,166,35,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.about-feat-icon svg { width: 22px; height: 22px; }
.about-feat h4 { font-family: 'Barlow', sans-serif; font-size: 0.9rem; font-weight: 700; }
.about-feat p { font-size: 0.82rem; color: var(--text-2); }

/* ── SERVICES ── */
.services-section { background: var(--bg-2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.service-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-img { transform: scale(1.08); }

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%);
  transition: background 0.3s;
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%);
}

.service-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-body { transform: translateY(0); }

.service-card-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.service-card-title {
  font-size: 1.5rem;
  color: #fff;
  margin: 4px 0 10px;
}

.service-card-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card:hover .service-card-desc {
  opacity: 1;
  max-height: 80px;
}

.service-card-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-top: 14px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover .service-card-arrow { opacity: 1; }
.service-card-arrow svg { width: 16px; height: 16px; }

/* ── METIERS ── */
.metiers-section { background: var(--bg); }

.metiers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.metier-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  gap: 0;
  transition: all 0.3s ease;
  text-decoration: none;
}

.metier-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px var(--shadow-lg);
}

.metier-card-img {
  width: 140px;
  flex-shrink: 0;
  object-fit: cover;
}

.metier-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metier-card-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.15em;
}

.metier-card-title {
  font-size: 1.35rem;
  color: var(--text);
  margin: 6px 0 10px;
}

.metier-card-desc {
  font-size: 0.83rem;
  color: var(--text-2);
  line-height: 1.6;
}

.metier-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 14px;
  font-family: 'Barlow Condensed', sans-serif;
}

.metier-card-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.metier-card:hover .metier-card-link svg { transform: translateX(4px); }

/* ── PROJECTS ── */
.projects-section { background: var(--bg-3); }

.projects-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 40px 0 50px;
}

.filter-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 40px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.projects-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}

.project-card.featured {
  grid-row: span 2;
}

.project-card-img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card.featured .project-card-img { min-height: 480px; }

.project-card:hover .project-card-img { transform: scale(1.06); }

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.project-card:hover .project-card-overlay { opacity: 1; }

.project-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
}

.project-tag {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 8px;
}

.project-card-title {
  font-size: 1.2rem;
  color: #fff;
}

.project-card.featured .project-card-title { font-size: 1.8rem; }

/* ── TESTIMONIALS ── */
.testimonials-section { background: var(--bg-2); }

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  position: relative;
  transition: all 0.3s;
}

.testimonial-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 50px var(--shadow-lg);
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--accent);
  font-family: 'Bebas Neue', sans-serif;
  line-height: 0.8;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-2);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  color: var(--accent);
}

.testimonial-stars svg { width: 16px; height: 16px; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-3);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-role { font-size: 0.8rem; color: var(--text-3); }

/* ── COLLABORATORS ── */
.collabs-section {
  background: var(--bg);
  padding: 60px 0;
}

.collabs-track {
  overflow: hidden;
  margin-top: 40px;
}

.collabs-inner {
  display: flex;
  gap: 60px;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.collab-logo {
  height: 100px;
  width: auto;
  filter: grayscale(1) opacity(0.4);
  transition: filter 0.3s;
  flex-shrink: 0;
}

.collab-logo:hover { filter: grayscale(0) opacity(1); }

/* ── CERTIFICATES ── */
.certs-section { background: var(--bg-2); }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s;
}

.cert-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.cert-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: rgba(245,166,35,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}

.cert-icon svg { width: 32px; height: 32px; }
.cert-name { font-size: 1.1rem; font-family: 'Bebas Neue', sans-serif; }
.cert-org { font-size: 0.8rem; color: var(--text-2); margin-top: 4px; }

/* ── CONTACT ── */
.contact-section { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-icon {
  width: 48px; height: 48px;
  background: rgba(245,166,35,0.12);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-icon svg { width: 22px; height: 22px; }
.contact-info-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.contact-info-value { font-size: 1rem; font-weight: 600; margin-top: 2px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .form-group:last-child:nth-child(odd) { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}

.form-group textarea { min-height: 130px; resize: vertical; }

/* ── PAGE HERO ── */
.page-hero {
  position: relative;
  height: 380px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 50px;
  margin-top: 72px;
  overflow: hidden;
}

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.08em;
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 14px; height: 14px; }

.page-hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: #fff;
}

/* ── FOOTER ── */
footer {
  background: #0A0A0A;
  color: rgba(255,255,255,0.7);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding: 70px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-social {
  width: 38px; height: 38px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}

.footer-social:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-col a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s;
}

.footer-col a:hover::before { opacity: 1; transform: translateX(0); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
}

.footer-contact-item svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ── DETAIL PAGES ── */
.detail-content { background: var(--bg); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

.detail-main-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 36px;
}

.detail-body h2 {
  font-size: 2rem;
  margin: 32px 0 16px;
}

.detail-body p {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.detail-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-body ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-2);
}

.detail-body ul li::before {
  content: '✦';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 20px;
}

.sidebar-card h3 { font-size: 1.4rem; margin-bottom: 16px; }

.sidebar-list { display: flex; flex-direction: column; gap: 2px; }

.sidebar-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--text-2);
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar-list a:hover, .sidebar-list a.active {
  background: rgba(245,166,35,0.1);
  color: var(--accent);
}

.sidebar-list a svg { width: 14px; height: 14px; }

/* ── ARTICLES LIST ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px var(--shadow-lg);
}

.article-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.article-body { padding: 24px; }

.article-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-3);
  align-items: center;
}

.article-category {
  background: rgba(245,166,35,0.12);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 2px;
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.08em;
}

.article-title {
  font-size: 1.2rem;
  font-family: 'Bebas Neue', sans-serif;
  margin-bottom: 10px;
  line-height: 1.2;
  transition: color 0.2s;
}

.article-card:hover .article-title { color: var(--accent); }

.article-excerpt { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; }

.article-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-author { font-size: 0.8rem; color: var(--text-3); }
.read-more {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'Barlow Condensed', sans-serif;
  display: flex; align-items: center; gap: 4px;
}

/* ── DEVIS PAGE ── */
.devis-section { background: var(--bg); }

.devis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.devis-info-box {
  background: var(--accent);
  color: #fff;
  padding: 40px;
  border-radius: 8px;
  margin-top: 30px;
}

.devis-info-box h3 { font-size: 1.8rem; margin-bottom: 16px; }
.devis-info-box p { font-size: 0.92rem; opacity: 0.9; line-height: 1.7; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }

.counter { display: inline-block; }

/* ── MOBILE NAV ── */
@media (max-width: 1024px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-item { border-bottom: 1px solid var(--border); }

  .nav-link {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--bg-3);
    display: none;
  }

  .dropdown.open { display: block; }
  .nav-item:hover .dropdown { display: none; }
  .nav-item.open .dropdown { display: block; }

  /* Topbar: masquer les items moins essentiels sur tablette */
  .topbar-info .topbar-item:nth-child(3) { display: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid,
  .devis-grid,
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }

  .about-img-accent { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-slider { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-masonry { grid-template-columns: 1fr 1fr; }
  .project-card.featured { grid-row: span 1; }
  .project-card.featured .project-card-img { min-height: 300px; }
  .hero-content { padding: 0 30px; }
  .slider-controls { right: 30px; }
  .slider-dots { left: 30px; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .metiers-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .projects-masonry { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: clamp(2.8rem, 10vw, 5rem); }
  .devis-banner-inner { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .collabs-inner { gap: 40px; }

  /* Topbar: afficher uniquement le téléphone sur mobile */
  .topbar-info .topbar-item:nth-child(2),
  .topbar-info .topbar-item:nth-child(3) { display: none; }
}

/* ── LOADER ── */
#loader {
  position: fixed;
  inset: 0;
  background: #0E0E0E;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.5s ease, visibility 0.5s;
}

#loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: #fff;
  letter-spacing: 0.1em;
}

.loader-logo span { color: var(--accent); }

.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: load 1.5s ease forwards;
}

@keyframes load {
  from { width: 0; }
  to { width: 100%; }
}

/* ── UTILITIES ── */
.text-accent { color: var(--accent); }
.mt-sm { margin-top: 24px; }
.mt-md { margin-top: 40px; }
.d-flex-center { display: flex; align-items: center; }
.justify-between { justify-content: space-between; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 40px;
  font-size: 0.8rem;
  color: var(--text-2);
}

.bg-alt { background: var(--bg-2); }
.bg-accent-stripe {
  background: repeating-linear-gradient(
    90deg,
    var(--stripe-color) 0px,
    var(--stripe-color) 1px,
    transparent 1px,
    transparent 60px
  );
}

/* Back to top */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  width: 48px; height: 48px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(245,166,35,0.4);
}

#back-to-top.show { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--accent-dark); }
#back-to-top svg { width: 20px; height: 20px; }

.img-placeholder {
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
}