/* Style général de la barre */
.custom-navbar {
  background-color: #1a1a1a;
  font-family: 'Segoe UI', sans-serif;
}

/* Liens de la navbar */
.custom-navbar .nav-link,
.custom-navbar .navbar-brand {
  color: white;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease-in-out;
}

/* Animation soulignée */
.custom-navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #225e4b, #3cb371);
  border-radius: 2px;
  transition: width 0.4s ease;
  z-index: -1;
}

.custom-navbar .nav-link:hover::after {
  width: 80%;
}

/* Hover glow */
.custom-navbar .nav-link {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.custom-navbar .nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0%;
  width: 100%;
  background: #225e4b;
  z-index: -1;
  transition: height 0.3s ease;
}

.custom-navbar .nav-link:hover::before {
  height: 100%;
}

.custom-navbar .nav-link:hover {
  color: rgb(41, 41, 41);
}


/* Mega menu */
.mega-menu {
  background-color: #1a1a1a;
  border: none;
}

.mega-menu .dropdown-item {
  color: white;
  transition: background 0.3s;
}

.mega-menu .dropdown-item:hover {
  background-color: #225e4b;
  border-radius: 4px;
}

/* Sous-menu (niveau 2) */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  background-color: #1a1a1a;
  border: none;
  min-width: 220px;
  display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* Pour mobile : affichage via JS */
.dropdown-submenu.show > .dropdown-menu {
  display: block;
}

/* Indicateur flèche droite */
.dropdown-submenu > .dropdown-toggle::after {
  float: right;
  margin-top: 6px;
  transform: rotate(-90deg);
}

/* Icônes */
.navbar .bi {
  font-size: 1.2rem;
  transition: color 0.3s;
}

.navbar .bi:hover {
  color: #3cb371;
}

.navbar .bi-clock {
  font-size: 1rem;
  color: white;
}

/* Style uniquement pour les dropdowns simples */
.simple-dropdown {
  background-color: #1a1a1a;
  border: none;
  border-radius: 0;
  padding: 0.5rem 0;
  animation: dropdownFade 0.3s ease-in-out;
  transform-origin: top;
}

.simple-dropdown .dropdown-item {
  color: white;
  padding: 0.5rem 1.5rem;
  transition: background 0.3s ease;
}

.simple-dropdown .dropdown-item:hover {
  background-color: #225e4b; /* ou autre */
  color: #fff;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Style de la popup de recherche */
#search-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.search-popup-content {
  background: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  animation: popup-fade 0.3s ease-in-out;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.search-popup-content input[type="text"] {
  width: 80%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 15px;
}

.search-popup-content button {
  padding: 10px 20px;
  background-color: #007e5e;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
}

.search-popup-content button:hover {
  background-color: #005c44;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 28px;
  color: #333;
  cursor: pointer;
}

@keyframes popup-fade {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


