
/* Reset et style de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-image: url("../assets/avi.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #333;
}

/* Navigation */
nav {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
}

/* Logo */
.logo {
  font-weight: bold;
  font-size: 1.7rem;
  color: #fff;
  display: flex;
  align-items: center;
}

.logo div {
  font-size: 1.8rem;
  color: #ffde59;
  margin-right: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.logo span {
  font-size: 0.85rem;
  line-height: 1.1;
  color: #012475;
}

/* Menu Bouton (mobile) */
.nav__menu__btn {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

/* Liens de Navigation */
.nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin-top: 12.5px;
}

.nav__links a {
  color: #012475;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  padding: 0.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav__links a:hover {
  color: #ffde59;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 3px;
  background-color: #ffde59;
  transition: width 0.3s ease;
}

.nav__links a:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.nav__item {
  position: relative;
  padding-left: 15px;
}

.dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
  list-style: none;
  margin-top: 13px;
}


.dropdown__menu li {
  width: 260px; /* Adaptation à la largeur du contenu parent */
  box-sizing: border-box; /* Évite que le padding dépasse les limites */
  display: block; /* Assure que les éléments s'affichent en bloc */
  padding: 0.3rem 0.5rem; /* Plus d'espace pour un confort visuel */
  text-align: left;
  
}

.dropdown__menu a {
  color: #012475;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0.5rem;
  font-weight: 400;

}

.dropdown__menu a:hover {
  background-color: #ffde59;
  color: #333;
  border-radius: 8px;
 
}

.nav__item:hover .dropdown__menu {
  display: block;
}



/* le background de celui de connexion */



/* Mobile */
@media (max-width: 768px) {
  .nav__menu__btn {
    display: block;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #6a11cb;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    display: none;
  }

  .nav__links li {
    margin: 0.5rem 0;
  }

  .nav__links.show {
    display: flex;
  }

  .nav__item:hover .dropdown__menu {
    display: none;
  }

  .nav__item.active .dropdown__menu {
    display: block;
  }
}



