/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Refined palette for a warmer, more human brand feel */
  --primary-color: #1b6b50; /* deep green */
  --primary-dark: #13513c;
  --primary-light: #2b8a6a;
  --secondary-color: #f59e0b; /* amber for accents */
  --secondary-dark: #d97706;
  --accent-color: #0ea5e9; /* sky blue details */
  --accent-dark: #0284c7;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-white: #ffffff;
  --bg-gray-50: #f9fafb;
  --bg-gray-100: #f3f4f6;
  --bg-gray-900: #111827;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 10px 10px -5px rgb(0 0 0 / 0.04);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --chemin-progress: 0px; /* dynamic progress height for vertical timeline */
  --chemin-cursor-size: 18px; /* size of the progress cursor */
  --header-height: 64px; /* base header height for mobile dropdown */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-white);
  background-image: radial-gradient(
    rgba(27, 107, 80, 0.03) 1px,
    transparent 1px
  );
  background-size: 18px 18px;
  font-weight: 400;
  letter-spacing: -0.025em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
}

.section-title {
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px) saturate(160%);
  z-index: 1000;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.nav {
  padding: 0.9rem 0;
  position: relative; /* anchor simple mobile dropdown */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.logo-image {
  height: 55px;
  width: auto;
  transition: var(--transition);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  border-radius: 8px;
}

.logo-image:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.nav-logo h2 {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1rem;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  transition: var(--transition);
  position: relative;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.nav-link:hover,
.nav-link.current {
  color: var(--primary-dark);
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: var(--transition);
  border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.current::after {
  width: 20px;
}

.nav-toggle {
  display: none;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 8px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--bg-gray-100);
}

/* Call-to-action button in navbar */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.nav-cta:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-1px);
}

/* Top-right call CTA */
.nav-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(27, 107, 80, 0.25);
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 10rem 2rem 6rem;
  background: radial-gradient(
      1200px 600px at 10% 0%,
      rgba(27, 107, 80, 0.15),
      transparent 60%
    ),
    radial-gradient(
      1000px 500px at 90% 10%,
      rgba(245, 158, 11, 0.12),
      transparent 60%
    ),
    linear-gradient(
      135deg,
      var(--primary-dark) 0%,
      var(--primary-color) 60%,
      var(--primary-light) 100%
    );
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.1;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  margin-bottom: 3rem;
  opacity: 0.95;
  line-height: 1.6;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.hero-features {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.feature:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.feature i {
  color: var(--secondary-color);
  font-size: 1.25rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--secondary-dark)
  );
  color: white;
  padding: 1.25rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-dark),
    var(--secondary-color)
  );
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.45);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 25% 35%,
      rgba(255, 255, 255, 0.18) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 75% 20%,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px
    );
  background-size: 90px 90px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-indicator a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  animation: bounce 2s infinite;
}

.scroll-indicator a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.scroll-indicator i {
  font-size: 1.25rem;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--bg-gray-50), #ffffff);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.service-card {
  background: var(--bg-white);
  padding: 3rem 2rem;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
  position: relative;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.2);
}

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

.service-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.service-icon::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--secondary-color)
  );
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover .service-icon::after {
  opacity: 1;
}

.service-icon i {
  font-size: 2.25rem;
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.service-card h3 {
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.service-features {
  list-style: none;
  text-align: left;
  background: var(--bg-gray-50);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
}

.service-features li {
  color: var(--text-secondary);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  padding-left: 2rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.1rem;
  width: 20px;
  height: 20px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Certifications */
.certifications {
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--bg-white) 0%,
    var(--bg-gray-50) 100%
  );
  padding: 3rem 2rem;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.certifications::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color)
  );
}

.certifications h3 {
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.cert-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.badge:hover::before {
  left: 100%;
}

.badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Clients Section */
.clients {
  padding: 5rem 0;
  background: var(--bg-white);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.client-card {
  text-align: center;
  padding: 2rem 1rem;
}

.client-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.client-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.client-card p {
  color: var(--text-secondary);
}

/* Financial Aids Section */
.aids {
  padding: 5rem 0;
  background: radial-gradient(
      800px 400px at 10% 10%,
      rgba(27, 107, 80, 0.05),
      transparent 60%
    ),
    var(--bg-gray-50);
}

.aids-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.aid-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.aid-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.aid-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.aid-icon i {
  font-size: 1.5rem;
  color: white;
}

.aid-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.aid-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.aid-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.aid-link:hover {
  color: var(--primary-dark);
}

.aid-note {
  font-style: italic;
  color: var(--text-light);
}

.financing-info {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.financing-info h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.financing-info p {
  color: var(--text-secondary);
}

/* Process Section */
.process {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    var(--bg-gray-50) 0%,
    var(--bg-white) 100%
  );
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(37, 99, 235, 0.05) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(16, 185, 129, 0.05) 1px,
      transparent 1px
    );
  background-size: 50px 50px;
  pointer-events: none;
}

.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin: 0 auto 4rem;
  max-width: 1100px;
}

/* Chemin background line (desktop) */
.process-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(27, 107, 80, 0.12),
    rgba(14, 165, 233, 0.12)
  );
  border-radius: 999px;
}

.process-timeline::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: var(--chemin-progress);
  background: linear-gradient(
    180deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(27, 107, 80, 0.25);
}

/* Centered scroll cursor that follows the progress */
.chemin-cursor {
  position: absolute;
  left: 50%;
  transform: translate(
    -50%,
    calc(var(--chemin-progress) - (var(--chemin-cursor-size) / 2))
  );
  width: var(--chemin-cursor-size);
  height: var(--chemin-cursor-size);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #ffffff 0 45%, transparent 46%),
    conic-gradient(var(--accent-color), var(--primary-color));
  box-shadow: 0 0 0 3px #ffffff, 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.08s linear;
  pointer-events: none;
}

.chemin-cursor::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(14, 165, 233, 0.35);
  animation: cursorPulse 1.6s ease-out infinite;
}

@keyframes cursorPulse {
  0% {
    opacity: 0.7;
    transform: scale(0.9);
  }
  70% {
    opacity: 0;
    transform: scale(1.3);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

/* Stop markers on the path */
.path-stop {
  display: none;
}

.path-stop span {
  display: none;
}

/* For desktop with 4 items, ensure they wrap nicely */
@media (min-width: 769px) and (max-width: 1200px) {
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (min-width: 1201px) {
  .process-timeline {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  display: block;
}

/* Connector arms from center line to cards */
.step::after {
  content: "";
  position: absolute;
  top: 36px;
  width: 70px;
  height: 8px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 99px;
}
.step:nth-child(odd)::after {
  left: calc(50% - 70px);
}
.step:nth-child(even)::after {
  left: 50%;
}

/* Alternating left/right layout */
.step-card {
  background: var(--bg-white);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  position: relative;
  width: 100%;
  text-align: center;
  border-top: 4px solid var(--primary-color);
  margin-top: 1rem;
  backdrop-filter: saturate(140%) blur(2px);
  border: 1px solid var(--border-light);
}
.step-card {
  width: calc(50% - 100px);
}
.step:nth-child(odd) .step-card {
  margin-right: auto;
}
.step:nth-child(even) .step-card {
  margin-left: auto;
}

.step {
  opacity: 0;
  transition: var(--transition);
}
.step:nth-child(odd) {
  transform: translateX(-28px);
}
.step:nth-child(even) {
  transform: translateX(28px);
}
.step.step-active {
  opacity: 1;
  transform: translateX(0);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.step:nth-child(2) .step-card {
  border-top-color: var(--secondary-color);
}

.step:nth-child(3) .step-card {
  border-top-color: var(--accent-color);
}

.step:nth-child(4) .step-card {
  border-top-color: #8b5cf6;
}

.step-icon {
  width: 70px;
  height: 70px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -3rem auto 1.5rem;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

.step:nth-child(2) .step-icon {
  background: linear-gradient(135deg, var(--secondary-color), #059669);
}

.step:nth-child(3) .step-icon {
  background: linear-gradient(135deg, var(--accent-color), #d97706);
}

.step:nth-child(4) .step-icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.step-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.step-number {
  display: none;
}

.step:nth-child(2) .step-number {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.step:nth-child(3) .step-number {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.step:nth-child(4) .step-number {
  color: #8b5cf6;
  border-color: #8b5cf6;
}

.step-content {
  text-align: left;
  width: 100%;
}

.step-content h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.35rem;
  text-align: left;
}

.step-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.step-features {
  list-style: none;
  padding: 0;
}

.step-features li {
  color: var(--text-secondary);
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
}

.step-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1rem;
}

.step-connector {
  display: none;
  position: absolute;
  top: 50%;
  right: -1rem;
  width: 2rem;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: translateY(-50%);
  z-index: 1;
}

.process-cta {
  margin-top: 4rem;
  text-align: center;
}

.process-highlight {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  padding: 3rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.process-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px
    );
  background-size: 30px 30px;
  pointer-events: none;
}

.process-highlight h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.process-highlight p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

.process-highlight .cta-button {
  background: var(--secondary-color);
  position: relative;
  z-index: 2;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--bg-gray-50), #ffffff);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h3 {
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.contact-item strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--text-secondary);
  margin: 0;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--primary-dark);
}

/* Contact Form */
.contact-form {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: auto !important;
  margin: 0;
  margin-top: 2px;
  transform: scale(1.2);
  accent-color: var(--primary-color);
}

.submit-btn {
  width: 100%;
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

.submit-btn:active {
  transform: translateY(0);
}

/* Footer */
.footer {
  background: #0f1a17;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section p,
.footer-section li {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-legal p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--bg-white);
  margin: 15% auto;
  padding: 0;
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--secondary-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-header i {
  font-size: 1.5rem;
}

.close {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 2rem;
}

.modal-body p {
  color: var(--text-secondary);
  text-align: center;
  font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 0;
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 8rem 1rem 4rem;
    min-height: 100vh;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    width: 100%;
  }

  .feature {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    max-width: 300px;
    width: 100%;
  }

  .scroll-indicator {
    bottom: 1rem;
  }

  .scroll-indicator a {
    width: 40px;
    height: 40px;
  }

  .scroll-indicator i {
    font-size: 1rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .service-icon {
    width: 70px;
    height: 70px;
  }

  .service-icon i {
    font-size: 1.8rem;
  }

  .aids-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  /* Vertical chemin on mobile */
  .process-timeline::before {
    left: 24px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 8px;
    height: auto;
  }
  .process-timeline::after {
    left: 24px;
    right: auto;
    transform: none;
  }

  .step {
    align-items: flex-start;
    padding-left: 56px;
  }

  .path-stop {
    left: 12px;
    top: 20px;
    transform: none;
  }

  .path-stop span {
    display: none;
  }

  .step-card {
    padding: 1.5rem 1rem;
    width: 100%;
  }

  .step-icon {
    width: 60px;
    height: 60px;
    margin: -2.5rem auto 1rem;
  }

  .step-icon i {
    font-size: 1.5rem;
  }

  .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .process-highlight {
    padding: 2rem 1.5rem;
  }

  .cert-badges {
    gap: 0.75rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .certifications {
    padding: 2rem 1.5rem;
  }

  .logo-image {
    height: 42px;
  }

  .nav-logo h2 {
    font-size: 1.1rem;
  }

  .nav-logo {
    gap: 0.75rem;
  }
  body.menu-open {
    overflow: hidden;
  }

  /* Mobile menu item styling */
  .nav-menu li {
    list-style: none;
  }
  .nav-menu .nav-link {
    display: block;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    text-align: left;
    border-radius: 0;
  }
  .nav-menu .nav-link::after {
    display: none;
  }
  .nav-menu .nav-link:hover {
    background: #f5f5f5;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .hero {
    padding: 6rem 0.5rem 3rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .modal-header,
  .modal-body {
    padding: 1rem;
  }

  .logo-image {
    height: 35px;
  }

  .nav-logo h2 {
    font-size: 1.15rem;
  }

  .nav-logo {
    gap: 0.5rem;
  }
}

/* Content divider */
.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.06),
    transparent
  );
}

/* Floating CTA bar */
.floating-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  gap: 0.75rem;
  padding: 0.75rem 1rem calc(env(safe-area-inset-bottom) + 0.75rem);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1100;
}

.floating-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.85rem 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.floating-btn.primary {
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  border: none;
}

@media (max-width: 768px) {
  .floating-cta {
    display: flex;
  }
}

@media (min-width: 769px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* Mobile timeline fixes and overrides */
@media (max-width: 768px) {
  :root {
    --chemin-cursor-size: 16px;
  }
  .process-timeline {
    max-width: 100%;
    gap: 2.25rem;
  }
  .process-timeline::before {
    left: 24px;
    transform: none;
    width: 6px;
  }
  .process-timeline::after {
    left: 24px;
    transform: none;
    width: 6px;
  }
  .chemin-cursor {
    left: calc(24px + 3px); /* center of 6px line */
    transform: translate(
      -50%,
      calc(var(--chemin-progress) - (var(--chemin-cursor-size) / 2))
    );
  }
  .step {
    padding-left: 56px;
    opacity: 0;
    transform: translateY(12px);
  }
  .step.step-active {
    opacity: 1;
    transform: translateY(0);
  }
  .step::after {
    display: none;
  }
  .step-card {
    width: 100%;
    margin: 0;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: #111;
  color: #fff;
  z-index: 2000;
  border-radius: 6px;
}

/* Print Styles */
@media print {
  .header,
  .nav-toggle,
  .cta-button,
  .submit-btn,
  .modal {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .hero {
    background: none !important;
    color: var(--text-primary) !important;
    padding: 2rem 0 !important;
  }

  .section {
    page-break-inside: avoid;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --text-primary: #000000;
    --bg-white: #ffffff;
    --border-color: #000000;
  }
}
