/* Reset basique */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Vidéo de fond --- */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* assombrit légèrement pour rendre le texte lisible */
}

/* Contenu par-dessus */
.content {
  position: relative;
  z-index: 1;
  color: #fff;
}

/* Texte principal */
#home {
  text-align: center;
  margin-top: 100px;
}

/* --- Barre de navigation --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111;
  padding: 0 30px; /* réduit le padding vertical */
  height: 60px; /* hauteur fixe pour éviter l'élargissement */
  font-family: 'Poppins', sans-serif;
  position: relative;
  z-index: 10;
  overflow: visible; /* permet au menu de dépasser sans élargir */
}

/* Logo */
.logo {
  color: #00ffcc;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Liens principaux */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
  position: relative;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  line-height: 60px; /* centre verticalement mes liens */
}

/* Petit Effet au survol */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 2px;
  left: 0;
  background-color: #00ffcc;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* menu déroulant*/
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #222;
  min-width: 160px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  z-index: 100;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Liens du sous-menu */
.dropdown-menu li {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #ddd;
  transition: 0.2s;
  line-height: normal;
}

.dropdown-menu a:hover {
  background-color: #00ffcc;
  color: #111;
}

/* Apparition fluide au survol */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Menu mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  background-color: #fff;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  transition: 0.3s;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #111;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 20px;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  /* Le sous-menu dans le menu mobile */
  .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }
}
