/* ====================================================
   BACSEN – Main Stylesheet
   Design: Apple meets African Corporate
   Colors: #1B3A4B (Navy) · #C8941A (Gold)
   Fonts: Inter + DM Sans
   ==================================================== */

/* ---- Design Tokens ---- */
:root {
  --navy: #1B3A4B;
  --navy-dark: #122736;
  --navy-mid: #2a526a;
  --gold: #C8941A;
  --gold-dark: #a87916;
  --gold-light: #e0ae45;
  --slate: #4A6274;
  --gray-light: #D4D4D4;
  --white: #FFFFFF;

  /* Light theme (default) */
  --bg: #F8F7F4;
  --bg-secondary: #EFEEED;
  --surface: #FFFFFF;
  --surface-glass: rgba(255,255,255,0.72);
  --text-primary: #0E1E27;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --border: rgba(27, 58, 75, 0.12);
  --shadow: 0 4px 24px rgba(27,58,75,0.10);
  --shadow-md: 0 8px 40px rgba(27,58,75,0.14);
  --shadow-lg: 0 20px 60px rgba(27,58,75,0.18);
  --card-border: rgba(27,58,75,0.08);

  /* Typography */
  --font-display: 'DM Sans', 'Inter', sans-serif;
  --font-body: 'Inter', 'DM Sans', sans-serif;

  /* Spacing */
  --section-py: clamp(60px, 8vw, 120px);
  --container-px: clamp(16px, 5vw, 80px);

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.4s;

  /* Navbar */
  --navbar-h: 72px;
}

[data-theme="dark"] {
  --bg: #0B1820;
  --bg-secondary: #101f2a;
  --surface: #162231;
  --surface-glass: rgba(13, 27, 40, 0.80);
  --text-primary: #F0EDE8;
  --text-secondary: #A0AEC0;
  --text-muted: #718096;
  --border: rgba(200, 148, 26, 0.15);
  --shadow: 0 4px 24px rgba(0,0,0,0.30);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.40);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.50);
  --card-border: rgba(200, 148, 26, 0.10);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(27, 58, 75, 0.4);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(240, 237, 232, 0.2);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--gold-dark); }

ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Splash Screen ---- */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.splash-logo {
  animation: splash-pulse 1.2s ease-in-out infinite alternate;
}
@keyframes splash-pulse {
  from { transform: scale(0.95); opacity: 0.8; }
  to { transform: scale(1.05); opacity: 1; }
}
.splash-name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--white);
}
.splash-bar {
  width: 180px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}
.splash-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 99px;
  animation: splash-load 1.8s var(--ease) forwards;
}
@keyframes splash-load {
  from { width: 0%; }
  to { width: 100%; }
}

/* ---- Navbar ---- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.35s;
}
#navbar.scrolled {
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 0 var(--border), var(--shadow);
  height: 60px;
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--container-px);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo svg { color: var(--navy-dark); }
[data-theme="dark"] .nav-logo svg { color: var(--white); }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--navy);
  background: rgba(27,58,75,0.06);
}
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: var(--gold-light);
  background: rgba(200,148,26,0.10);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 4px; }
.nav-arrow { font-size: 0.7rem; transition: transform 0.2s; }
.nav-dropdown:hover .nav-arrow,
.nav-dropdown.open .nav-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  min-width: 200px;
  flex-direction: column;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}
.nav-dropdown-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: 8px;
  display: block;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown-link:hover {
  color: var(--navy);
  background: rgba(27,58,75,0.06);
}
[data-theme="dark"] .nav-dropdown-link:hover { color: var(--gold-light); background: rgba(200,148,26,0.10); }

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--border); }
.theme-icon { font-size: 1.1rem; display: block; }
[data-theme="light"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: none; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Container ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ---- Section Shared ---- */
.section {
  padding: var(--section-py) 0;
}
.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-eyebrow-light { color: var(--gold-light); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-title-light { color: var(--white); }
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px;
  margin: 20px auto 0;
}
.section-divider-gold { background: linear-gradient(90deg, var(--gold-light), var(--gold)); }
.section-desc {
  margin-top: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(200,148,26,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,148,26,0.45);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 16px 28px;
  position: relative;
}
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-submit.loading .btn-text { opacity: 0.6; }
.btn-submit.loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Scroll Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--navbar-h);
}
.hero-parallax-bg {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
  will-change: transform;
}
.hero-bg-img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
}
.hero-carousel {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.hero-slide {
  height: 100%;
  aspect-ratio: auto;
}
.hero-carousel .hero-bg-img {
  height: 100%;
  width: 100%;
}
.hero-carousel .carousel-btn {
  background: rgba(0,0,0,0.25);
}
.hero-carousel .carousel-btn:hover {
  background: rgba(200,148,26,0.85);
}
.hero-carousel .carousel-prev {
  left: clamp(20px, 4vw, 60px);
}
.hero-carousel .carousel-next {
  right: clamp(20px, 4vw, 60px);
}
.hero-dots {
  bottom: clamp(100px, 12vw, 160px); 
}
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(13, 27, 40, 0.88) 0%,
    rgba(27, 58, 75, 0.70) 50%,
    rgba(13, 27, 40, 0.50) 100%
  );
}
/* Ensure carousel dots and buttons are clickable and appear above parallax but below content if needed */
.hero-carousel .carousel-btn,
.hero-carousel .carousel-dots {
  pointer-events: auto;
  z-index: 10;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px var(--container-px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  pointer-events: none;
}
.hero-content > * {
  pointer-events: auto;
}
.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--white);
}
.hero-accent {
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  max-width: 560px;
  color: rgba(255,255,255,0.80);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-dot {
  width: 28px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 14px;
  position: relative;
}
.scroll-dot::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrolldot 2s ease-in-out infinite;
}
@keyframes scrolldot {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* ---- PARTNERS MARQUEE ---- */
.partners-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
  overflow: hidden;
}
.partners-label {
  text-align: center;
  margin-bottom: 24px;
}
.partners-label h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.marquee-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 80px, black calc(100% - 80px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 80px, black calc(100% - 80px), transparent);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee-scroll 20s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.marquee-item img {
  height: 52px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: filter 0.3s, opacity 0.3s;
}
.marquee-item:hover img { filter: grayscale(0%); opacity: 1; }
.marquee-item span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ---- À PROPOS ---- */
.apropos-section { background: var(--bg); }
.apropos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.apropos-img-stack {
  position: relative;
}
.apropos-img-main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.apropos-img-secondary {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 55%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 14px;
  border: 4px solid var(--surface);
  box-shadow: var(--shadow-md);
}
.apropos-badge {
  position: absolute;
  top: 20px;
  left: -16px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: white;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
}
.apropos-badge strong { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.apropos-badge span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; }
.apropos-content { padding-bottom: 28px; }
.apropos-lead {
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 18px;
  line-height: 1.75;
}
.apropos-content p { color: var(--text-secondary); margin-bottom: 16px; }
.apropos-sectors {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0;
}
.sector-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 20px;
  transition: box-shadow 0.2s;
}
.sector-card:hover { box-shadow: var(--shadow); }
.sector-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200,148,26,0.12);
  border-radius: 10px;
}
.sector-card h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 4px; }
.sector-card p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
.apropos-recognition {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.apropos-cta { margin-top: 28px; }

/* ---- IDENTITÉ ---- */
.identite-section {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
  color: var(--white);
}
.identite-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.identite-bg-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.18; }
.identite-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 40%, rgba(27,58,75,0.8));
}
.identite-section .container { position: relative; z-index: 2; }
.identite-section .section-title { color: var(--white); }
.identite-section .section-eyebrow { color: var(--gold-light); }
.identite-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
}
.identite-sub {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.identite-adn p, .identite-responsabilites p {
  color: rgba(240,237,232,0.80);
  margin-bottom: 14px;
  line-height: 1.75;
}
.inclusion-highlight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(200,148,26,0.10);
  border: 1px solid rgba(200,148,26,0.25);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.inclusion-icon {
  font-size: 1.6rem;
  color: var(--gold-light);
  font-weight: 700;
  width: 36px;
  flex-shrink: 0;
}
.inclusion-highlight strong { color: var(--white); display: block; margin-bottom: 6px; }
.inclusion-highlight p { margin: 0; font-size: 0.9rem; }
.engagements-list { display: flex; flex-direction: column; gap: 10px; }
.engagements-list li { display: flex; gap: 12px; align-items: flex-start; }
.engagement-icon {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.engagements-list li span:last-child { color: rgba(240,237,232,0.80); font-size: 0.9375rem; }
.identite-vision {
  margin-top: 56px;
  text-align: center;
}
.vision-quote {
  border: none;
  position: relative;
}
.vision-quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
}
.vision-quote p {
  font-size: clamp(1.0625rem, 2.2vw, 1.4rem);
  color: rgba(240,237,232,0.90);
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  padding: 0 20px;
}
.vision-quote strong { color: var(--white); font-style: normal; }

/* ---- ACTIVITÉS TABS ---- */
.activites-intro {
  padding-top: var(--section-py);
  padding-bottom: 0;
  background: var(--bg);
}
.activites-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.activite-tab {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface);
  transition: all 0.3s;
  cursor: pointer;
}
.activite-tab.active,
.activite-tab:hover {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(27,58,75,0.35);
}

/* ---- BTP ---- */
.btp-section { background: var(--bg); padding-top: 60px; }
.realisation {
  margin-bottom: clamp(48px, 8vw, 100px);
}
.realisation-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.realisation-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.realisation-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(27,58,75,0.10);
  border: 1px solid rgba(27,58,75,0.15);
  padding: 4px 12px;
  border-radius: 99px;
}
.realisation-badge-gold {
  color: var(--gold-dark);
  background: rgba(200,148,26,0.10);
  border-color: rgba(200,148,26,0.20);
}
[data-theme="dark"] .realisation-badge { color: var(--navy-mid); background: rgba(27,58,75,0.20); }
.realisation-desc {
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 680px;
}
.realisation-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.realisation-quotes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.citation {
  border-left: 3px solid var(--gold);
  padding: 18px 20px;
  background: var(--bg-secondary);
  border-radius: 0 12px 12px 0;
}
.citation p {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 10px;
}
.citation footer { font-size: 0.8125rem; color: var(--text-muted); }
.citation strong { color: var(--text-primary); }

/* Immo Grid */
.immo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.immo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.immo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.immo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.immo-card:hover img { transform: scale(1.06); }
.immo-card figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.55);
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
}
.immo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,58,75,0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.immo-card:hover .immo-overlay,
.immo-card:focus .immo-overlay { opacity: 1; }
.immo-overlay span { color: white; font-size: 1.25rem; font-weight: 600; }

/* ---- CAROUSEL ---- */
.carousel-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  user-select: none;
}
.carousel-track {
  display: flex;
  transition: transform 0.55s var(--ease);
}
.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16/9;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
}
.carousel-btn:hover {
  background: rgba(200,148,26,0.70);
  transform: translateY(-50%) scale(1.1);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s, width 0.3s;
}
.carousel-dot.active {
  background: var(--gold-light);
  width: 20px;
}

/* ---- NETTOIEMENT ---- */
.nettoiement-section {
  background: var(--bg-secondary);
  position: relative;
}
.nettoiement-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
.service-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200,148,26,0.10);
  border-radius: 14px;
  margin-left: auto;
  margin-right: auto;
}
.service-card h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 8px; }
.service-card p { font-size: 0.875rem; color: var(--text-muted); }
.nettoiement-fiches { display: flex; flex-direction: column; gap: 56px; }
.fiche {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.fiche-alt .fiche-content { order: -1; }
.fiche-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: -8px;
}
.fiche-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.fiche-content p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.8; margin-bottom: 12px; }
.fiche-contact { margin-top: 18px; display: flex; gap: 16px; flex-wrap: wrap; }
.fiche-contact a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: 0.875rem;
}

/* ---- CHIFFRES CLÉS ---- */
.chiffres-section {
  position: relative;
  overflow: hidden;
  padding: var(--section-py) 0;
}
.chiffres-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.chiffres-bg img { width: 100%; height: 100%; object-fit: cover; }
.chiffres-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,40,0.94) 0%, rgba(27,58,75,0.88) 100%);
}
.chiffres-section .container { position: relative; z-index: 2; }
.chiffres-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.chiffre-card {
  text-align: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,148,26,0.20);
  border-radius: 20px;
  padding: 36px 24px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, box-shadow 0.3s;
}
.chiffre-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(200,148,26,0.15);
}
.chiffre-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.chiffre-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(240,237,232,0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- CONTACT ---- */
.contact-section { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  transition: box-shadow 0.2s;
}
.contact-info-card:hover { box-shadow: var(--shadow); }
.contact-info-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.contact-info-card h3 { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 6px; }
.contact-info-card address, .contact-info-card a { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.65; }
.contact-info-card a:hover { color: var(--gold); }
.phone-list { display: flex; flex-direction: column; gap: 6px; }
.phone-list li { display: flex; align-items: center; gap: 8px; }
.phone-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--navy);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.contact-map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}
.contact-map iframe { display: block; }

/* Form */
.contact-form-wrapper {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { position: relative; display: flex; flex-direction: column; }
.form-group-full { grid-column: 1 / -1; }
.form-input {
  width: 100%;
  padding: 22px 16px 8px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,148,26,0.15);
}
.form-input.invalid { border-color: #E53E3E; box-shadow: 0 0 0 3px rgba(229,62,62,0.12); }
.form-label {
  position: absolute;
  top: 15px;
  left: 16px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: top 0.2s var(--ease), font-size 0.2s var(--ease), color 0.2s;
}
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
}
.form-textarea { min-height: 120px; }
.form-error {
  font-size: 0.75rem;
  color: #E53E3E;
  margin-top: 4px;
  min-height: 16px;
  display: block;
}
.form-mention {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.form-success {
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.30);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.9375rem;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 10px;
}
[data-theme="dark"] .form-success { color: #86efac; }

/* ---- FOOTER ---- */
.footer { background: var(--navy-dark); color: var(--white); }
.footer-top { padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-top-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr 0.9fr;
  gap: clamp(32px, 4vw, 56px);
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.footer-tagline {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  line-height: 1.65;
}
.footer-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  color: rgba(255,255,255,0.60);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold-light); }
.footer-contact-info address p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.60);
  margin-bottom: 8px;
}
.footer-contact-info address a { color: rgba(255,255,255,0.60); }
.footer-contact-info address a:hover { color: var(--gold-light); }
.footer-partner-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.footer-partner-logos img {
  height: 40px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.2s;
}
.footer-partner-logos img:hover { opacity: 0.9; }
.footer-bottom {
  padding: 20px 0;
  background: rgba(0,0,0,0.2);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.8125rem; color: rgba(255,255,255,0.40); }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  animation: lb-in 0.3s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content {
  max-width: 90vw;
  max-height: 90svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80svh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-caption { color: rgba(255,255,255,0.75); font-size: 0.875rem; text-align: center; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s;
  border: 1px solid rgba(255,255,255,0.20);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(200,148,26,0.6); }
.lightbox-close { top: 20px; right: 20px; font-size: 1rem; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(200,148,26,0.40);
  transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  border: none;
}
.back-to-top[hidden] { display: flex; opacity: 0; pointer-events: none; visibility: hidden; }
.back-to-top:not([hidden]) { opacity: 1; pointer-events: auto; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(200,148,26,0.50); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .chiffres-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .apropos-grid { grid-template-columns: 1fr; }
  .apropos-img-secondary { display: none; }
  .identite-grid { grid-template-columns: 1fr; }
  .realisation-split { grid-template-columns: 1fr; }
  .fiche { grid-template-columns: 1fr; }
  .fiche-alt .fiche-content { order: 0; }
  .immo-grid { grid-template-columns: 1fr 1fr; }
  .footer-top-inner { grid-template-columns: 1fr; }
  .footer-partner-logos { grid-template-columns: repeat(4, 1fr); }
  .chiffres-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { 
    --navbar-h: 60px; 
    --section-py: clamp(50px, 8vw, 80px); /* Reduce vertical spacing on mobile */
  }

  /* Global mobile typography adjustments */
  body { font-size: 0.95rem; }
  .section-title { font-size: clamp(1.8rem, 6vw, 2.2rem); }
  .section-desc { font-size: 0.95rem; margin-top: 16px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: var(--navbar-h) 0 0;
    background: var(--surface-glass);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 40px var(--container-px) 80px;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-link { 
    padding: 18px 20px; 
    font-size: 1.35rem; 
    font-weight: 600; 
    border-radius: 12px; 
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    padding: 8px 16px;
    background: rgba(27,58,75,0.03);
    border-radius: 12px;
    border: none;
    margin-top: 8px;
    margin-bottom: 8px;
    gap: 4px;
  }
  [data-theme="dark"] .nav-dropdown-menu {
    background: rgba(255,255,255,0.03);
  }
  .nav-dropdown-link {
    font-size: 1.15rem;
    padding: 14px 20px;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
  .nav-hamburger { display: flex; }
  .activites-tabs { flex-direction: column; align-items: stretch; gap: 10px; }
  .activite-tab { width: 100%; text-align: center; }
  .immo-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  /* Prevent any element from causing horizontal scroll */
  .container { overflow-x: hidden; }
  .hero-content { padding: 60px var(--container-px); }
  .apropos-badge { left: 0; top: 0; border-radius: 0 0 14px 0; }
  .contact-form-wrapper { padding: 24px 16px; border-radius: 16px; }
  .sector-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .chiffres-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-subtitle { font-size: 0.95rem; }
  .btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 0.9rem; }
  .footer-logo-text { font-size: 1.1rem; }
  .chiffre-card { padding: 24px 16px; border-radius: 16px; }
  .chiffre-number { font-size: 2rem; }
  .carousel-prev { left: 8px; width: 36px; height: 36px; font-size: 0.9rem; }
  .carousel-next { right: 8px; width: 36px; height: 36px; font-size: 0.9rem; }
  .carousel-dots { bottom: 8px; }
  .realisation-split { gap: 24px; }
}

/* ---- Prefers reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
}

/* ---- System dark mode init (runs before JS) ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0B1820;
    --bg-secondary: #101f2a;
    --surface: #162231;
    --surface-glass: rgba(13, 27, 40, 0.80);
    --text-primary: #F0EDE8;
    --text-secondary: #A0AEC0;
    --text-muted: #718096;
    --border: rgba(200, 148, 26, 0.15);
    --shadow: 0 4px 24px rgba(0,0,0,0.30);
    --shadow-md: 0 8px 40px rgba(0,0,0,0.40);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.50);
    --card-border: rgba(200, 148, 26, 0.10);
  }
}
