/**** NAVBAR ****/
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  min-height: 15dvh;
  width: 100%;
  z-index: 9999;
  max-width: 1600px;
  margin: 0 auto;
}

nav img {
  width: 120px;
  height: auto;
}

nav ul {
  display: flex;
  justify-content: space-between;
}

nav li {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav li a:hover:not(:has(img)) {
  border-radius: 10px;
  color: var(--main-color-green);
}

#icons {
  cursor: pointer;
  display: none;
}

.dropdown_link {
  position: relative;
}

.dropdown_menu {
  display: none;
  position: absolute;
  background-color: var(--main-color-white);
  box-shadow: var(--main-shadow);
  padding: 10px;
  width: auto;
  top: 100%;
  left: 0;
  z-index: 9999;
  white-space: nowrap;
}

.dropdown_menu li {
  padding: 12px 16px;
}

.dropdown_menu li a {
  color: var(--main-color-green) !important;
}

.dropdown_menu li:hover {
  background-color: var(--main-color-green);
}

.dropdown_menu li:hover a {
  color: white !important;
}

.presations_link i {
  color: var(--main-color-green);
}

@media screen and (min-width: 1381px) {
  li:hover .dropdown_menu {
    display: block;
  }
}

@media screen and (max-width: 1380px) {
  #icons {
    display: block;
    z-index: 9999;
  }

  nav ul {
    position: fixed;
    top: 0;
    transform: translatex(-200%);
    flex-direction: column;
    background: var(--main-color-white);
    width: 100%;
    text-align: center;
    padding: 20px 0;
    transition: 1s;
    min-height: 100%; /* Modifié pour prendre 100% de la hauteur de l'écran */
  }

  nav li {
    padding: 3px 0;
  }

  nav.active ul {
    transform: translatex(0%);
    left: 0;
    z-index: 20;
  }

  .dropdown_link {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .dropdown_menu {
    display: none;
    position: relative;
    background-color: var(--main-color-green);
    box-shadow: var(--main-shadow);
    padding: 10px;
    width: auto;
    top: 0;
    left: 0;
    z-index: 20;
    white-space: nowrap;
  }

  .dropdown_menu li a {
    color: var(--main-color-white) !important;
  }

  .dropdown_menu.show {
    display: block;
  }
}
