/* Styles pour le menu actif */

/* Menu principal */
.navmenu ul li a.active {
  color: #00156f !important;
  font-weight: 600;
  position: relative;
}

.navmenu ul li a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, #00156f, #0033a0);
  border-radius: 2px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    width: 0;
    left: 50%;
  }
  to {
    width: 100%;
    left: 0;
  }
}

/* Hover effect pour les liens non actifs */
.navmenu ul li a:not(.active):hover {
  color: #00156f !important;
  transition: color 0.3s ease;
}

/* Style pour le menu mobile */
@media (max-width: 1199px) {
  .navmenu ul li a.active {
    background: linear-gradient(135deg, #00156f, #0033a0);
    color: white !important;
    border-radius: 5px;
    padding: 8px 15px;
  }
  
  .navmenu ul li a.active::after {
    display: none;
  }
}

/* Animation pour le changement d'état actif */
.navmenu ul li a {
  transition: all 0.3s ease;
  position: relative;
}

/* Effet de soulignement pour tous les liens */
.navmenu ul li a::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #00156f, #0033a0);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.navmenu ul li a:hover::before {
  width: 100%;
}

/* Masquer l'effet ::before pour le lien actif */
.navmenu ul li a.active::before {
  display: none;
}

/* Style pour le logo/texte du site */
.sitename {
  color: #00156f;
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sitename:hover {
  color: #0033a0;
}

/* Amélioration du header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Animation du menu mobile */
.mobile-nav-toggle {
  color: #00156f;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.mobile-nav-toggle:hover {
  color: #0033a0;
}

/* Style pour les liens du menu */
.navmenu ul li a {
  color: #2d465e;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navmenu ul li a {
    padding: 12px 20px;
    display: block;
    margin: 2px 0;
  }
  
  .navmenu ul li a.active {
    background: linear-gradient(135deg, #00156f, #0033a0);
    color: white !important;
    transform: translateX(5px);
  }
}

/* Animation d'entrée pour le menu */
.navmenu ul li {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.navmenu ul li:nth-child(1) { animation-delay: 0.1s; }
.navmenu ul li:nth-child(2) { animation-delay: 0.2s; }
.navmenu ul li:nth-child(3) { animation-delay: 0.3s; }
.navmenu ul li:nth-child(4) { animation-delay: 0.4s; }
.navmenu ul li:nth-child(5) { animation-delay: 0.5s; }
.navmenu ul li:nth-child(6) { animation-delay: 0.6s; }
.navmenu ul li:nth-child(7) { animation-delay: 0.7s; }
.navmenu ul li:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


