/* ==========================================================================
   SNTC - Transport International, Transit & Logistique
   Design System & Styling Stylesheet (W3C Compliant & Responsive)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --primary-deep: #385ca9;       /* Corporate Blue — Logo */
  --primary-light: #2c426f;      /* Muted Navy Blue */
  --primary-ultra-light: #e8eef9; /* Light Blue Accent Background */
  
  --secondary-charcoal: #1e293b;  /* Stable Charcoal Grey */
  --secondary-dark: #0f172a;      /* Deep Slate Background */
  --secondary-muted: #64748b;     /* Slate Muted Text */
  
  --accent-orange: #385ca9;       /* Brand Blue (Logo) */
  --accent-orange-hover: #26437c; /* Darker Blue Hover */
  --accent-orange-glow: rgba(56, 92, 169, 0.2);
  
  --bg-body: #f8fafc;            /* Clean light grey-blue */
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  
  --white: #ffffff;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;

  /* Typography */
  --font-title: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  
  /* Layout & Spacing */
  --container-max-width: 1200px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 4px rgba(9, 13, 22, 0.05);
  --shadow-md: 0 10px 20px rgba(9, 13, 22, 0.08);
  --shadow-lg: 0 20px 40px rgba(9, 13, 22, 0.12);
  --shadow-accent: 0 8px 24px rgba(56, 92, 169, 0.3);
  --glass-bg: rgba(15, 23, 42, 0.88);
  --glass-blur: blur(12px);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--secondary-charcoal);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for keyboard accessibility */
:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 4px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. LAYOUT UTILITIES & TYPOGRAPHY
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background-color: var(--primary-deep);
  color: var(--white);
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(22, 42, 69, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

/* Section Header styling */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  color: var(--accent-orange);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: inline-block;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 4px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.2;
}

.section-dark .section-title {
  color: var(--white);
}

.section-desc {
  margin-top: 16px;
  color: var(--secondary-muted);
  font-size: 1.1rem;
}

.section-dark .section-desc {
  color: rgba(255, 255, 255, 0.8);
}

/* Headings global */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   4. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

/* Primary Button (Orange) with Shimmer Effect */
.btn-primary {
  background-color: var(--accent-orange);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(30deg);
  transition: none;
  pointer-events: none;
}

.btn-primary:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(56, 92, 169, 0.35);
}

.btn-primary:hover::after {
  left: 130%;
  transition: all 0.75s ease;
}

/* Secondary Button (Outline or dark-navy) */
.btn-secondary {
  background-color: var(--white);
  color: var(--primary-deep);
  border: 2px solid var(--primary-deep);
}

.btn-secondary:hover {
  background-color: var(--primary-deep);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary-dark {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary-dark:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-secondary-outline {
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  color: var(--secondary-charcoal);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.btn-secondary-outline:hover {
  background-color: var(--primary-ultra-light);
  color: var(--primary-deep);
  border-color: var(--primary-deep);
}

/* --------------------------------------------------------------------------
   5. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: transparent;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  --header-height: 70px;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--glass-border);
  height: var(--header-height);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 75px;
  width: auto;
  transition: transform var(--transition-fast);
}

.logo:hover .logo-svg {
  transform: scale(1.02);
}

/* Nav Menu styles */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  padding: 8px 0;
  position: relative;
  opacity: 0.85;
}

/* White color overlay for default state, dark text on scroll if light theme header is used (but we use elegant glass/dark header) */
.nav-link:hover {
  opacity: 1;
  color: var(--accent-orange);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.nav-link.active {
  opacity: 1;
  color: var(--accent-orange);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-nav {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Mobile Toggle Hamburger Button */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1001;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
}

.hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--white);
  position: relative;
  transition: background-color var(--transition-fast);
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  transition: transform var(--transition-normal), top var(--transition-fast);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* Hamburger active transformation */
.nav-toggle.active .hamburger {
  background-color: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-dark);
  color: var(--white);
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

/* Background Slideshow crossfade */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: slideFade 15s infinite ease-in-out;
}

.hero-slideshow .slide:nth-child(1) {
  animation-delay: 0s;
}
.hero-slideshow .slide:nth-child(2) {
  animation-delay: 5s;
}
.hero-slideshow .slide:nth-child(3) {
  animation-delay: 10s;
}

@keyframes slideFade {
  0% { opacity: 0; }
  8% { opacity: 1; }      /* fade in */
  33% { opacity: 1; }     /* stay visible */
  41% { opacity: 0; }     /* fade out */
  100% { opacity: 0; }
}

/* Animated grid mesh background overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(56, 92, 169, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(22, 42, 69, 0.3) 0%, transparent 60%);
  z-index: 1;
}

/* Elegant vector map logistics grid lines */
.hero-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.12;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 1;
}

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

.hero-content {
  max-width: 720px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

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

.hero-desc {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 36px;
  line-height: 1.5;
}

.hero-actions-container {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Interactive Vector SVG Container Graphic */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-svg-wrapper {
  width: 100%;
  max-width: 480px;
  position: relative;
  animation: float-slow 6s ease-in-out infinite;
}

.hero-bg-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--accent-orange-glow) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Logo Showcase */
.hero-logo-showcase {
  position: relative;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Decorative rings */
.showcase-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(56, 92, 169, 0.25);
  animation: ring-pulse 4s ease-in-out infinite;
}
.ring-1 { width: 220px; height: 220px; animation-delay: 0s; }
.ring-2 { width: 310px; height: 310px; animation-delay: 0.8s; border-style: dashed; opacity: 0.5; }
.ring-3 { width: 400px; height: 400px; animation-delay: 1.6s; opacity: 0.25; }

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%       { transform: scale(1.04); opacity: 0.8; }
}

/* Anchor watermark */
.showcase-anchor-bg {
  position: absolute;
  width: 200px;
  height: 200px;
  opacity: 1;
  animation: float-slow 8s ease-in-out infinite reverse;
}

/* Main logo card */
.showcase-logo-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow:
    0 0 60px rgba(56, 92, 169, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.showcase-logo-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 90px rgba(56, 92, 169, 0.4),
    0 30px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.showcase-main-logo {
  width: 280px;
  height: auto;
  display: block;
}

/* Floating badges */
.showcase-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  padding: 8px 14px;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  animation: badge-float 3s ease-in-out infinite;
}
.showcase-badge svg { flex-shrink: 0; }

.badge-top-right  { top: 48px;  right: 20px;  animation-delay: 0s; }
.badge-bottom-left  { bottom: 60px; left: 10px; animation-delay: 1s; }
.badge-bottom-right { bottom: 48px; right: 16px; animation-delay: 2s; }

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* --------------------------------------------------------------------------
   7. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--primary-deep);
  margin-bottom: 18px;
}

.about-text p {
  color: var(--secondary-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.values-list {
  margin-top: 36px;
  display: grid;
  gap: 20px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-icon-box {
  width: 42px;
  height: 42px;
  background-color: var(--primary-ultra-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.value-icon-box svg {
  width: 20px;
  height: 20px;
}

.value-content h3 {
  font-size: 1.1rem;
  color: var(--primary-deep);
  margin-bottom: 4px;
}

.value-content p {
  font-size: 0.95rem;
  color: var(--secondary-muted);
  margin-bottom: 0;
}

/* Stats Counter Grid */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.stat-card {
  background-color: var(--white);
  padding: 50px 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(56, 92, 169, 0.2);
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

.stat-card:hover .stat-number {
  color: var(--accent-orange);
}

.stat-infinity {
  font-size: 4rem;
  line-height: 0.9;
}

.stat-label {
  font-weight: 700;
  color: var(--secondary-muted);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   7.5. PARTENAIRES & CLIENTS SECTION
   -------------------------------------------------------------------------- */
.partners-section {
  background-color: var(--white);
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 10;
}

.partners-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.partners-title {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--secondary-muted);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  text-align: center;
  margin-bottom: 10px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  width: 100%;
  max-width: 1100px;
  align-items: center;
}

.partner-card {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  height: 130px;
  transition: all var(--transition-normal);
  opacity: 0.9;
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.partner-card:hover {
  opacity: 1;
  transform: translateY(-4px);
  border-color: rgba(56, 92, 169, 0.4);
  box-shadow: var(--shadow-md);
}

.partner-logo {
  max-height: 98px;
  width: auto;
  max-width: 100%;
  transition: transform var(--transition-normal);
  overflow: visible;
}

.partner-card:hover .partner-logo {
  transform: scale(1.05);
}

.partner-logo.logo-copag {
  transform: scale(1.2);
}

.partner-card:hover .partner-logo.logo-copag {
  transform: scale(1.26);
}

/* --------------------------------------------------------------------------
   8. SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--secondary-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.25);
}

.service-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
  z-index: 1;
}

.service-card:hover .service-bg {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.8) 100%);
  z-index: 2;
  transition: background var(--transition-normal);
}

.service-card:hover .service-overlay {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.72) 100%);
}

.service-content {
  position: relative;
  z-index: 3;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: #93c5fd;
  margin-bottom: 24px;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon-wrapper {
  color: var(--white);
  transform: scale(1.1) translateY(-2px);
}

.service-icon-wrapper svg {
  width: 38px;
  height: 38px;
}

.service-title {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 14px;
  font-weight: 700;
}

.service-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.service-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #93c5fd;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-title);
  opacity: 0.9;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.service-card:hover .service-footer {
  opacity: 1;
  color: var(--white);
}

.service-footer svg {
  transition: transform var(--transition-fast);
}

.service-card:hover .service-footer svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   9. TRUST SIGNALS & CERTIFICATIONS
   -------------------------------------------------------------------------- */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.badge-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-normal);
}

.badge-card:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(56, 92, 169, 0.4);
  transform: translateY(-5px);
}

.badge-icon {
  width: 54px;
  height: 54px;
  color: var(--accent-orange);
  background-color: rgba(56, 92, 169, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(56, 92, 169, 0.2);
}

.badge-icon svg {
  width: 24px;
  height: 24px;
}

.badge-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--white);
}

.badge-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   10. REALISATIONS / REFERENCES SECTION
   -------------------------------------------------------------------------- */
.projects-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  color: var(--secondary-charcoal);
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-normal);
}

.filter-btn:hover {
  background-color: var(--primary-ultra-light);
  border-color: var(--primary-deep);
}

.filter-btn.active {
  background-color: var(--primary-deep);
  color: var(--white);
  border-color: var(--primary-deep);
  box-shadow: var(--shadow-sm);
}

.projects-grid-container {
  min-height: 350px;
  position: relative;
}

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

.project-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 30, 54, 0.15);
}

/* Top decorative area representing logistics network */
.project-card-header {
  padding: 24px 24px 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-card-icon-container {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-ultra-light);
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-visual-svg {
  width: 22px;
  height: 22px;
}

.project-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-orange);
  font-weight: 700;
}

.project-card-body {
  padding: 20px 24px 24px 24px;
  flex-grow: 1;
}

.project-card-title {
  font-size: 1.25rem;
  color: var(--primary-deep);
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-card-desc {
  font-size: 0.9rem;
  color: var(--secondary-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-card-details {
  display: grid;
  gap: 8px;
  padding: 12px;
  background-color: var(--bg-body);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--secondary-charcoal);
  font-weight: 500;
}

.project-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-detail-item svg {
  color: var(--accent-orange);
}

.project-card-footer {
  padding: 16px 24px 24px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-client-name {
  font-size: 0.85rem;
  color: var(--secondary-charcoal);
}

.project-tags-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.project-tag {
  background-color: var(--primary-ultra-light);
  color: var(--primary-deep);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.projects-error {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  max-width: 600px;
  margin: 0 auto;
}

.projects-error p {
  margin-bottom: 24px;
  color: var(--secondary-muted);
}

/* --------------------------------------------------------------------------
   11. CONTACT SECTION & GOOGLE MAPS
   -------------------------------------------------------------------------- */
.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-top-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: stretch;
}

.contact-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.contact-card-box {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

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

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

.form-label {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-deep);
  margin-bottom: 8px;
}

.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--secondary-charcoal);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  background-color: var(--white);
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px var(--accent-orange-glow);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230d1e36' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px;
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}



/* Form Status Box */
.form-status {
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 24px;
  display: none;
  line-height: 1.5;
}

.form-status.success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  display: block;
}

.form-status.error {
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  display: block;
}

.form-status.warning {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  display: block;
}

/* Spinner for Loading State */
.spinner {
  animation: rotate 1s linear infinite;
  margin-right: 8px;
}

.spinner circle {
  stroke: currentColor;
  stroke-linecap: round;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

/* Map Card Box top height to match Form height */
.contact-top-grid .map-card-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 25px;
  box-shadow: var(--shadow-sm);
}

.contact-top-grid .map-card-box #sntc-map {
  flex-grow: 1;
  min-height: 380px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.info-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  color: var(--secondary-charcoal) !important;
}

.info-card h3 {
  color: var(--primary-deep) !important;
}

.info-card a {
  color: var(--primary-deep);
}

.info-card a:hover {
  color: var(--accent-orange);
}

.info-card .office-item {
  color: var(--secondary-charcoal);
  border-left-color: var(--border-color);
}

.info-card .office-item:hover {
  color: var(--secondary-charcoal);
  border-left-color: var(--accent-orange);
}

.info-card p {
  color: var(--secondary-muted);
}

.info-card .office-contacts {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.7;
}

.info-card .office-contacts a {
  font-size: 0.98rem;
}

.info-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-ultra-light);
  border: 1px solid var(--border-color);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.info-details h3 {
  font-size: 1.1rem;
  color: var(--primary-deep);
  margin-bottom: 6px;
}

.info-details p {
  color: var(--secondary-muted);
  font-size: 0.95rem;
}

.office-item {
  border-left: 2px solid var(--border-color);
  padding: 12px 14px 12px 16px;
  margin-top: 12px;
  margin-bottom: 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}

.office-item:first-of-type { margin-top: 10px; }
.office-item:last-of-type  { margin-bottom: 0; }

/* Clickable office link variant */
.office-link {
  cursor: pointer;
}

.office-link:hover {
  background: rgba(56, 92, 169, 0.06);
  border-left-color: var(--accent-orange);
  transform: translateX(4px);
}

.office-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.office-item h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 0;
}

.office-map-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent-orange);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.office-link:hover .office-map-icon {
  opacity: 1;
}

.office-item p {
  font-size: 0.88rem;
  color: var(--secondary-muted);
  line-height: 1.4;
  margin-bottom: 4px;
}

.office-map-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: 0.3px;
  opacity: 0;
  display: block;
  transition: opacity 0.2s ease;
}

.office-link:hover .office-map-label {
  opacity: 1;
}


/* Maps card */
.maps-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 300px;
}

.maps-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.main-footer {
  background-color: var(--primary-deep);
  color: var(--white);
  padding: 80px 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-brand .logo-svg {
  margin-bottom: 20px;
}

.footer-slogan {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--accent-orange);
  color: var(--white);
  border-color: var(--accent-orange);
  transform: translateY(-3px);
}

.footer-nav-col h3 {
  font-size: 1.15rem;
  margin-bottom: 24px;
  color: var(--white);
  position: relative;
  padding-bottom: 8px;
}

.footer-nav-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-orange);
}

.footer-links-list {
  display: grid;
  gap: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   12. ON-SCROLL ANIMS (.reveal & .revealed)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  will-change: opacity, transform;
}
.reveal-slide-left {
  transform: translateX(-40px);
}

.reveal-slide-right {
  transform: translateX(40px);
}

.revealed {
  opacity: 1;
  transform: translate(0);
}

/* --------------------------------------------------------------------------
   13. MEDIA QUERIES (RESPONSIVE CONFIG)
   -------------------------------------------------------------------------- */

/* Large Tablets & Desktop (max-width: 1024px) */
/* ============================================================
   TABLET (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .about-grid { gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-top-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-bottom-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* ============================================================
   MOBILE LARGE — Tablets & Phones (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-height: 65px; }
  .main-header.scrolled { --header-height: 65px; }

  /* ----- General ----- */
  .section { padding: 55px 0; }
  .container { padding: 0 18px; }
  .section-title { font-size: 1.85rem; }
  .section-desc { font-size: 1rem; }
  .contact-bottom-grid { grid-template-columns: 1fr; }

  /* ----- Navbar ----- */
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--primary-deep);
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    padding: 40px 20px;
    transition: left var(--transition-normal);
    z-index: 1000;
    overflow-y: auto;
  }
  .nav-menu.active { left: 0; }
  .nav-list { flex-direction: column; gap: 22px; width: 100%; align-items: center; }
  .nav-link { font-size: 1.2rem; }
  .nav-link.active { color: var(--white); opacity: 1; font-weight: 700; }
  .nav-link.active::after { background-color: var(--white); }
  .btn-nav { display: none; }

  /* Logo size on mobile */
  .logo-svg { height: 50px; }

  /* ----- Hero ----- */
  .hero {
    padding-top: calc(var(--header-height) + 15px);
    text-align: center;
    min-height: 80vh;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .hero-content { margin: 0 auto; max-width: 100%; }
  .hero-title { font-size: 2.1rem; line-height: 1.25; }
  .hero-desc { font-size: 1rem; }
  .hero-actions-container { justify-content: center; flex-wrap: wrap; gap: 12px; }
  .btn { padding: 13px 24px; font-size: 0.95rem; }

  /* Hero logo showcase */
  .hero-logo-showcase { transform: scale(0.75); transform-origin: center top; }
  .hero-svg-wrapper { min-height: 260px; }

  /* ----- About / Stats ----- */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    order: 2;
  }
  .stat-card { padding: 30px 18px; min-height: 130px; }
  .stat-number { font-size: 2rem; }
  .stat-infinity { font-size: 3rem; }
  .stat-label { font-size: 0.85rem; }

  /* ----- Services ----- */
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-card { padding: 28px 22px; }

  /* ----- Trust badges ----- */
  .trust-badges { grid-template-columns: 1fr; gap: 20px; }

  /* ----- Partners ----- */
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .partner-card { height: 75px; padding: 10px; }
  .partner-logo { max-height: 45px; width: auto; max-width: 90%; }

  /* ----- Contact ----- */
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .info-card { padding: 20px 18px; }
  .office-item { padding: 10px 12px; }
  .office-item h4 { font-size: 0.9rem; }
  .office-item p { font-size: 0.82rem; }

  /* ----- Form ----- */
  .form-group-row { grid-template-columns: 1fr; gap: 0; }
  .form-input { font-size: 0.95rem; }

  /* ----- Footer ----- */
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
  .footer-legal-links { justify-content: center; }
  
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-brand .logo-svg { height: 55px; margin: 0 auto 10px auto; }
  .footer-slogan { margin: 0 auto 20px auto; }
  .social-links { justify-content: center; }

  .footer-nav-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-nav-col h3 {
    text-align: center;
    display: inline-block;
  }
  .footer-nav-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-links-list {
    align-items: center;
    justify-items: center;
    text-align: center;
  }

  /* ----- Projects / Partenaires cards ----- */
  .projects-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   MOBILE SMALL — Phones (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root { --header-height: 60px; }
  .main-header.scrolled { --header-height: 60px; }

  .container { padding: 0 14px; }
  .section { padding: 45px 0; }
  .section-title { font-size: 1.6rem; }

  /* Hero */
  .hero-title { font-size: 1.75rem; }
  .hero-desc { font-size: 0.95rem; }
  .hero-badge { font-size: 0.75rem; padding: 6px 14px; }
  .btn { padding: 12px 20px; font-size: 0.9rem; width: 100%; text-align: center; }
  .hero-actions-container { flex-direction: column; align-items: center; }
  .hero-logo-showcase { transform: scale(0.62); transform-origin: center top; }
  .hero-svg-wrapper { min-height: 220px; }

  /* Logo navbar */
  .logo-svg { height: 42px; }

  /* Stats — 2 colonnes sur petits téléphones */
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 22px 12px; min-height: 110px; }
  .stat-number { font-size: 1.7rem; }
  .stat-infinity { font-size: 2.4rem; }
  .stat-label { font-size: 0.75rem; letter-spacing: 0; }

  /* Services */
  .service-card { padding: 22px 16px; }
  .service-title { font-size: 1.05rem; }
  .service-desc { font-size: 0.88rem; }

  /* Contact */
  .info-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 22px 20px;
  }
  .info-details h3 { font-size: 1.1rem; }
  .info-details p { font-size: 0.88rem; }
  .office-item h4 { font-size: 0.88rem; }
  .office-item p { font-size: 0.82rem; }
  .info-card .office-contacts {
    font-size: 0.92rem;
    padding-top: 12px;
    margin-top: 12px;
  }
  .info-card .office-contacts a {
    font-size: 0.92rem;
  }

  /* Partners */
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partner-card { height: 65px; padding: 8px; }
  .partner-logo { max-height: 35px; width: auto; max-width: 90%; }

  /* Footer */
  .footer-grid { gap: 28px; }
  .footer-slogan { font-size: 0.88rem; }
  .footer-links-list { gap: 10px; }

  /* Form */
  textarea.form-input { min-height: 120px; }
  .btn-submit { width: 100%; justify-content: center; }
}

/* Animations declarations */
@keyframes float-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-orange {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 92, 169, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(56, 92, 169, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 92, 169, 0);
  }
}
