/* ============================================
   AXE EXPERTISE - DARK HERO THEME
   Logo: red/silver/dark - matching palette
   ============================================ */
:root {
  --primary: #0a0e1a;
  --primary-light: #111827;
  --secondary: #1e293b;
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --accent-glow: rgba(220, 38, 38, 0.15);
  --accent-light: rgba(220, 38, 38, 0.08);
  --accent-blue: #3b82f6;
  --silver: #c0c8d4;

  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0a0e1a;
  --bg-darker: #060912;

  --text-main: #334155;
  --text-light: #64748b;
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);

  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: rgba(255, 255, 255, 0.08);

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);

  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Legacy aliases */
  --navy: #0a0e1a;
  --orange-dark: #b91c1c;
  --blue-accent: #3b82f6;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease-out-quint);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.25;
}

/* ============================================
   PAGE TRANSITION OVERLAY
   ============================================ */
.page-transition {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  display: flex;
  pointer-events: none;
}

.pt-col {
  flex: 1;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: bottom;
}

.pt-enter .pt-col { animation: ptColEnter 0.5s var(--ease-out-expo) forwards; }
.pt-enter .pt-col:nth-child(1) { animation-delay: 0ms; }
.pt-enter .pt-col:nth-child(2) { animation-delay: 50ms; }
.pt-enter .pt-col:nth-child(3) { animation-delay: 100ms; }
.pt-enter .pt-col:nth-child(4) { animation-delay: 150ms; }
.pt-enter .pt-col:nth-child(5) { animation-delay: 200ms; }

@keyframes ptColEnter {
  0% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}

.pt-exit .pt-col { animation: ptColExit 0.45s var(--ease-in-out) forwards; }
.pt-exit .pt-col:nth-child(1) { animation-delay: 0ms; }
.pt-exit .pt-col:nth-child(2) { animation-delay: 40ms; }
.pt-exit .pt-col:nth-child(3) { animation-delay: 80ms; }
.pt-exit .pt-col:nth-child(4) { animation-delay: 120ms; }
.pt-exit .pt-col:nth-child(5) { animation-delay: 160ms; }

@keyframes ptColExit {
  0% { transform: scaleY(0); transform-origin: bottom; }
  100% { transform: scaleY(1); transform-origin: bottom; }
}

.page-exiting { animation: fadeOutContent 0.3s ease forwards; }
@keyframes fadeOutContent { to { opacity: 0.3; } }

/* ============================================
   NAVBAR - TRANSPARENT ON HERO, WHITE ON SCROLL
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 80px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.5s var(--ease-out-quint);
}

/* Default state on hero pages: transparent with white text */
.navbar--hero .nav-brand-text,
.navbar--hero .nav-links a {
  color: var(--text-white);
}

.navbar--hero .hamburger span {
  background: var(--text-white);
}

.navbar--hero .nav-links a::after {
  background: var(--accent);
}

/* Scrolled state: white bg, dark text */
.navbar.scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.navbar.scrolled .nav-brand-text {
  color: var(--primary) !important;
}

.navbar.scrolled .nav-links a {
  color: var(--text-main) !important;
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--accent) !important;
}

.navbar.scrolled .nav-btn {
  color: var(--text-white) !important;
}

.navbar.scrolled .hamburger span {
  background: var(--primary) !important;
}

/* Sub-pages: not on hero, default white bg */
.navbar:not(.navbar--hero) {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.navbar:not(.navbar--hero) .nav-brand-text {
  color: var(--primary);
}

.navbar:not(.navbar--hero) .nav-links a {
  color: var(--text-main);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s var(--ease-out-expo);
}

.nav-brand:hover { transform: translateY(-1px); }

.nav-brand .dot { display: none; }

.nav-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.4s var(--ease-out-expo), filter 0.4s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.nav-brand:hover .nav-logo {
  transform: scale(1.06);
}

.navbar.scrolled .nav-logo { height: 42px; }

.nav-brand-logo-only .nav-brand-text { display: none; }

.nav-brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  transition: color 0.5s var(--ease-out-quint);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s var(--ease-out-quint);
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent) !important;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-btn {
  background: var(--accent) !important;
  color: var(--text-white) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius) !important;
  transition: all 0.3s var(--ease-out-quint) !important;
  font-weight: 700 !important;
}

.nav-btn:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3) !important;
}

.nav-btn::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  transition: all 0.4s var(--ease-out-expo);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO - DARK IMMERSIVE (replaces 3D bg)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 60px 80px;
  background: var(--bg-dark);
  overflow: hidden;
}

/* Animated background container */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Subtle grid pattern (like a 3D wireframe floor) */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(30deg);
  transform-origin: center 120%;
  opacity: 0.6;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

/* Floating glow orbs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: glowPulse 8s ease-in-out infinite;
}

.hero-glow--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.2) 0%, transparent 70%);
  top: -10%; right: 10%;
  animation-delay: 0s;
}

.hero-glow--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  bottom: -5%; left: -5%;
  animation-delay: 3s;
}

.hero-glow--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(192, 200, 212, 0.08) 0%, transparent 70%);
  top: 40%; left: 50%;
  animation-delay: 5s;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: scale(1) translate(0, 0); }
  50% { opacity: 0.8; transform: scale(1.15) translate(10px, -10px); }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
}

.hero-particles span {
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

.hero-particles span:nth-child(1)  { left: 10%; top: 20%; animation-duration: 12s; animation-delay: 0s; }
.hero-particles span:nth-child(2)  { left: 25%; top: 60%; animation-duration: 10s; animation-delay: 1s; width: 2px; height: 2px; }
.hero-particles span:nth-child(3)  { left: 40%; top: 30%; animation-duration: 14s; animation-delay: 2s; }
.hero-particles span:nth-child(4)  { left: 55%; top: 70%; animation-duration: 11s; animation-delay: 0.5s; width: 4px; height: 4px; background: rgba(220, 38, 38, 0.3); }
.hero-particles span:nth-child(5)  { left: 70%; top: 15%; animation-duration: 13s; animation-delay: 3s; }
.hero-particles span:nth-child(6)  { left: 85%; top: 50%; animation-duration: 9s;  animation-delay: 1.5s; width: 2px; height: 2px; }
.hero-particles span:nth-child(7)  { left: 15%; top: 80%; animation-duration: 15s; animation-delay: 4s; }
.hero-particles span:nth-child(8)  { left: 60%; top: 10%; animation-duration: 11s; animation-delay: 2.5s; width: 4px; height: 4px; background: rgba(59, 130, 246, 0.2); }
.hero-particles span:nth-child(9)  { left: 35%; top: 90%; animation-duration: 12s; animation-delay: 0.8s; }
.hero-particles span:nth-child(10) { left: 80%; top: 35%; animation-duration: 10s; animation-delay: 3.5s; width: 2px; height: 2px; }
.hero-particles span:nth-child(11) { left: 5%;  top: 45%; animation-duration: 13s; animation-delay: 1.2s; }
.hero-particles span:nth-child(12) { left: 48%; top: 55%; animation-duration: 14s; animation-delay: 2.8s; width: 3px; height: 3px; background: rgba(220, 38, 38, 0.2); }
.hero-particles span:nth-child(13) { left: 92%; top: 75%; animation-duration: 11s; animation-delay: 0.3s; }
.hero-particles span:nth-child(14) { left: 20%; top: 5%;  animation-duration: 16s; animation-delay: 4.5s; }
.hero-particles span:nth-child(15) { left: 65%; top: 85%; animation-duration: 10s; animation-delay: 1.8s; width: 2px; height: 2px; }

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  opacity: 0;
  animation: heroStagger 0.9s var(--ease-out-expo) 0.3s forwards;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 24px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: heroStagger 0.9s var(--ease-out-expo) 0.45s forwards;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent) 0%, #ef4444 50%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 44px;
  font-weight: 400;
  max-width: 500px;
  line-height: 1.75;
  opacity: 0;
  animation: heroStagger 0.9s var(--ease-out-expo) 0.6s forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroStagger 0.9s var(--ease-out-expo) 0.75s forwards;
}

@keyframes heroStagger {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.hero-cta--primary {
  background: var(--accent);
  color: var(--text-white);
  border: 2px solid var(--accent);
}

.hero-cta--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(220, 38, 38, 0.35);
}

.hero-cta--outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-cta--outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: heroStagger 0.9s var(--ease-out-expo) 1.2s forwards;
}

.hero-scroll-indicator span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  position: relative;
}

.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: var(--accent);
  border-radius: 3px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  padding: 100px 60px;
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.08rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 26px;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--primary);
  transition: all 0.5s var(--ease-out-expo);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--text-white);
  transform: scale(1.05) rotate(-3deg);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 22px;
  flex-grow: 1;
  line-height: 1.65;
}

.service-link {
  font-family: var(--font-heading);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s var(--ease-out-expo);
}

.service-link svg { transition: transform 0.4s var(--ease-out-expo); }
.service-card:hover .service-link { gap: 12px; }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* ============================================
   ENGAGEMENTS
   ============================================ */
.engagements {
  padding: 100px 60px;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.engagements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.engagement-item {
  padding: 34px;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all 0.5s var(--ease-out-expo);
  border: 1px solid var(--border-light);
}

.engagement-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.engagement-icon {
  width: 52px; height: 52px;
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  transition: all 0.4s var(--ease-out-expo);
}

.engagement-item:hover .engagement-icon {
  background: var(--accent);
  color: var(--text-white);
  transform: rotate(-5deg) scale(1.05);
}

.engagement-item h3 { font-size: 1.1rem; margin-bottom: 12px; }
.engagement-item p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* ============================================
   BOTTOM SECTION (News + Contact)
   ============================================ */
.bottom-section {
  padding: 100px 60px;
  background: var(--bg-white);
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.actualites h2 { font-size: 1.5rem; margin-bottom: 28px; }

.article-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.4s var(--ease-out-quint);
}

.article-item:hover {
  padding-left: 12px;
  border-bottom-color: var(--accent);
}

.article-content h4 {
  font-size: 0.98rem;
  margin-bottom: 4px;
  transition: color 0.3s;
}

.article-item:hover .article-content h4 { color: var(--accent); }

.article-date { font-size: 0.8rem; color: var(--text-light); }

.article-action {
  color: var(--accent);
  transition: transform 0.3s var(--ease-out-expo);
}

.article-item:hover .article-action { transform: translateX(4px); }

/* Contact Form */
.contact-box {
  background: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
}

.contact-box h2 { font-size: 1.5rem; margin-bottom: 28px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-out-quint);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-quint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 80px 60px 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 1.02rem;
  margin-bottom: 22px;
  letter-spacing: 0.03em;
}

.footer-col p { color: #94a3b8; line-height: 1.8; font-size: 0.9rem; }

.footer-col a {
  display: block;
  color: #94a3b8;
  margin-bottom: 12px;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease-out-quint);
}

.footer-col a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-links a { color: #94a3b8; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-divider { color: rgba(255, 255, 255, 0.15); }

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

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

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

.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

/* Stagger */
.services-grid .service-card:nth-child(2) { transition-delay: 0.08s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.16s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.24s; }
.engagements-grid .engagement-item:nth-child(2) { transition-delay: 0.1s; }
.engagements-grid .engagement-item:nth-child(3) { transition-delay: 0.2s; }
.detail-grid .detail-card:nth-child(2) { transition-delay: 0.06s; }
.detail-grid .detail-card:nth-child(3) { transition-delay: 0.12s; }
.detail-grid .detail-card:nth-child(4) { transition-delay: 0.18s; }
.detail-grid .detail-card:nth-child(5) { transition-delay: 0.24s; }
.detail-grid .detail-card:nth-child(6) { transition-delay: 0.30s; }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  background: var(--primary);
  color: var(--text-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.back-to-top.visible { opacity: 1; transform: translateY(0) scale(1); }
.back-to-top:hover { background: var(--accent); transform: translateY(-3px) scale(1.05); }

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: var(--text-white);
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: all 0.5s var(--ease-out-expo);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  text-align: center;
}

.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================
   SUB-PAGE HEADER
   ============================================ */
.sub-page-header {
  padding: 140px 60px 60px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sub-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(220, 38, 38, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 20% 70%, rgba(59, 130, 246, 0.04) 0%, transparent 40%);
}

.sub-page-header h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 12px;
  position: relative;
  letter-spacing: -0.02em;
}

.breadcrumb {
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
}

.breadcrumb a {
  color: var(--accent);
  font-weight: 600;
}

.breadcrumb a:hover { text-decoration: underline; }

/* ============================================
   SUB-PAGE BODY
   ============================================ */
.sub-page-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px;
}

.sub-page-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.sub-page-body > p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 40px;
}

/* ============================================
   DETAIL GRID (Juridique, Social, Comptabilite)
   ============================================ */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

.detail-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.detail-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--accent);
  transition: height 0.5s var(--ease-out-expo);
}

.detail-card:hover::before { height: 100%; }
.detail-card.orange::before { background: var(--accent); }

.detail-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  color: var(--accent);
  transition: all 0.4s var(--ease-out-expo);
}

.detail-card:hover .icon {
  background: var(--accent);
  color: white;
  transform: rotate(-5deg) scale(1.08);
}

.detail-card p { color: var(--text-light); font-size: 0.88rem; line-height: 1.65; }

/* ============================================
   INLINE CTA
   ============================================ */
.inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.inline-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.inline-cta svg { transition: transform 0.3s var(--ease-out-expo); }
.inline-cta:hover svg { transform: translateX(3px); }

/* ============================================
   TEAM PAGE
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.team-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 34px 26px;
  text-align: center;
  transition: all 0.5s var(--ease-out-expo);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.team-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-white);
  transition: transform 0.4s var(--ease-out-expo);
}

.team-card:hover .team-avatar { transform: scale(1.08); }

.team-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 5px; }
.team-card .role { font-size: 0.83rem; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.team-card p { color: var(--text-light); font-size: 0.88rem; line-height: 1.6; }

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s var(--ease-out-expo);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.blog-card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-icon {
  color: rgba(255, 255, 255, 0.35);
  transition: transform 0.4s var(--ease-out-expo);
}

.blog-card:hover .blog-icon { transform: scale(1.2) rotate(5deg); }

.blog-tag {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-body { padding: 22px; }
.blog-card-body h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; transition: color 0.3s; }
.blog-card:hover .blog-card-body h3 { color: var(--accent); }
.blog-card-body p { color: var(--text-light); font-size: 0.86rem; line-height: 1.55; margin-bottom: 12px; }
.blog-meta { font-size: 0.76rem; color: var(--text-light); font-weight: 500; }

/* ============================================
   RDV PAGE
   ============================================ */
.rdv-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.rdv-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.rdv-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  transition: color 0.4s var(--ease-out-quint);
}

.rdv-step.active { color: var(--accent); }
.rdv-step.completed { color: var(--accent); }

.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-light);
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.4s var(--ease-out-expo);
}

.rdv-step.active .step-num { background: var(--accent); color: white; transform: scale(1.1); }
.rdv-step.completed .step-num { background: var(--accent); color: white; }

.rdv-step-connector {
  width: 60px; height: 2px;
  background: var(--border-light);
  margin: 0 12px;
  transition: background 0.5s var(--ease-out-quint);
}

.rdv-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px 30px;
  transition: all 0.5s var(--ease-out-expo);
}

.panel-enter { animation: panelSlideIn 0.5s var(--ease-out-expo) forwards; }
@keyframes panelSlideIn {
  from { opacity: 0; transform: translateY(15px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.slot-btn {
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.slot-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}

.slot-btn.selected {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.rdv-service-btn.selected {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 60px 60px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 34px 0 10px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .engagements-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    font-size: 1.2rem;
    color: var(--text-white) !important;
  }

  .hamburger { display: block; }

  .hero {
    text-align: center;
    padding: 100px 20px 60px;
    min-height: 85vh;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-title { font-size: 2.2rem; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }

  .hero-cta {
    padding: 14px 24px;
    font-size: 0.88rem;
  }

  .hero-grid { display: none; }

  .services { padding: 60px 20px; }
  .services-grid { grid-template-columns: 1fr; gap: 18px; }

  .engagements { padding: 60px 20px; }

  .bottom-section { padding: 60px 20px; }
  .bottom-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer { padding: 60px 20px 20px; }
  .footer-content { grid-template-columns: 1fr; gap: 30px; }

  .sub-page-header { padding: 110px 20px 40px; }
  .sub-page-header h1 { font-size: 2rem; }
  .sub-page-body { padding: 30px 20px; }
  .detail-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: 1fr 1fr; }
  .legal-content { padding: 30px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .rdv-container { padding: 20px 10px 40px; }
  .rdv-step span:not(.step-num) { display: none; }
}