/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  background: linear-gradient(rgba(30, 58, 138, 0.3), rgba(31, 41, 55, 0.7)), 
              url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(31, 41, 55, 0.6));
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  padding: 0 20px;
}

.hero-text {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  margin-bottom: 30px;
}

.title-main {
  display: block;
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white), var(--silver));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
}

.title-subtitle {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-description {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Statistiques Hero */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 50px 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  animation: slideUp 1s ease-out;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Boutons Hero */
.hero-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
  animation: slideUp 1s ease-out;
  animation-delay: 0.6s;
  animation-fill-mode: both;
}

/* Navigation Hero */
.hero-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 auto;
  z-index: 1000;
  animation: fadeInDown 1s ease-out;
  animation-delay: 0.5s;
  animation-fill-mode: both;
  opacity: 0;
  width: 60%;
}

/* ===== Navbar principale ===== */
.navbar {
  background: rgba(30, 58, 138, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 15px 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 25px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(59, 130, 246, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  color: white;
}

/* ===== Bouton hamburger ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; /* largeur ajustée */
  height: 20px;
  cursor: pointer;
  position: relative;
  margin-left: auto;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center; /* rotation centrée */
}

/* Animation en croix */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  position: absolute;
  top: 8.5px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  position: absolute;
  top: 8.5px;
}

/* ===== Responsive mobile ===== */
@media (max-width: 768px) {
  .hero-nav {
    top: auto;
    bottom: 10px;
    width: 90%;
    transform: translateX(-50%);
  }

  .navbar {
    border-radius: 25px;
    padding: 10px 20px;
    position: relative;
  }

.nav-links {
  position: absolute;
  bottom: 60px; 
  left: 0;
  width: 100%;
  background: rgba(30, 58, 138, 0.95);
  border-radius: 20px 20px 0 0;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.nav-links.open {
  padding: 20px 0;
  max-height: 400px;
  opacity: 1;
}


  .menu-toggle {
    display: flex;
  }
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero {
    height: 100vh;
    padding: 20px 0;
  }
  
  .title-main {
    font-size: 2.8rem;
  }
  
  .title-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }
  
  .hero-stats {
    gap: 40px;
    margin: 40px 0;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .nav-links {
    gap: 20px;
    border-radius: 30px;
  }
  
  .nav-link {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
  
  .navbar {
    padding: 12px 20px;
  }
}
