#menu {
  width: 100%;
  height: 70px;
  border-bottom-width: 1px;
  box-shadow: 0px 0px 4px 0px #0000001a;
  background: #ffffff;
  padding: 15px 35px;
  box-sizing: border-box;
  position: fixed;
  z-index: 1001;
}

#menu.fixed {
  position: relative;
}

#menu .navbar {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: left;
  position: relative;
  font-weight: 700;
  font-size: 16px;
  line-height: 20.16px;
  gap: 50px;
}

#menu .navbar #logo {
  height: 30px;
  width: auto;
}

#menu .navbar #logo img {
  height: 100%;
  width: auto;
}

#menu .navbar #menu-container {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: relative;
  font-weight: 700;
  font-size: 16px;
  line-height: 20.16px;
  gap: 50px;
}

#menu .navbar #menu-container #menu-pc {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: relative;
  font-weight: 600;
  font-size: 14px;
  line-height: 20.16px;
  gap: 50px;
}

#menu .navbar #menu-container #menu-pc .links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

#menu .navbar #menu-container #menu-pc .links a {
  transition: transform 0.2s ease-in-out;
}

#menu .navbar #menu-container #menu-pc .links a:hover {
  transform: scale(1.02);
}

#menu .navbar #menu-container #menu-pc #organisateur {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffc30066;
  border-radius: 30px;
  padding: 10px 24px;
  box-sizing: border-box;
}

#menu .navbar #menu-container .compte {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 18.9px;
  width: auto;
}

#menu .navbar #menu-container .compte .nom-orga {
  white-space: nowrap; /* pas de retour à la ligne */
  overflow: hidden; /* cache le dépassement */
  text-overflow: ellipsis; /* affiche … */
}

#menu .navbar #menu-container #menu-pc .compte {
  padding: 5px 10px;
  border-radius: 5px;
  height: 100%;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

#menu .navbar #menu-container #menu-pc .compte:hover {
  background-color: #e9e9e9;
}

#menu .navbar #menu-container #menu-pc .compte .logo-orga {
  height: 100%;
  width: auto;
}

#menu .navbar #menu-container #menu-pc .compte .nom-orga {
  max-width: 220px;
}

#menu .navbar #menu-container #menu-pc #compte #dropdown-menu {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ddd;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  right: 0;
  top: calc(100% + 15px); /* Place le menu 15px en dessous de #compte */
  width: 200px;
  z-index: 1001;
  padding: 25px 10px;
  box-sizing: border-box;
}

#menu .navbar #menu-container #menu-pc #compte #dropdown-menu.active {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

#menu .navbar #menu-container #menu-pc #compte #dropdown-menu.active hr {
  width: 100%;
  height: 1px;
  border-radius: 20px;
  background: #d9d9d9;
  border: none;
  margin: 0;
}

/* Cacher le bouton menu en grand écran */
#menu .navbar #menu-toggle {
  display: none;
  max-height: 20px;
  width: auto;
  height: auto;
  cursor: pointer;
  position: relative;
}

#menu .navbar #menu-mobile {
  display: none;
}

@media screen and (max-width: 782px) {
  #menu .navbar #menu-container #menu-pc .compte .nom-orga {
    max-width: 160px;
  }
}

@media screen and (max-width: 700px) {
  #menu {
    padding: 15px 30px;
  }
  #menu .navbar {
    justify-content: space-between; /* Ajuster la disposition */
  }

  #menu .navbar #menu-toggle {
    display: block; /* Assurer qu'il apparaisse */
  }

  #menu .navbar #menu-container {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 15px);
    right: -30px;
    width: 250px;
    height: auto;
    z-index: 1000; /* Éviter qu'il soit caché */
    padding: 10px;
    box-sizing: border-box;
    background: white;
    box-shadow: 0px 0px 4px 0px #0000001a;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  #menu .navbar #menu-container #organisateur {
    display: block;
    background: none;
    border-radius: 0;
    padding: 0;
  }

  #menu .navbar #menu-container #menu-pc {
    display: none;
  }

  #menu .navbar #menu-container #menu-mobile {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    gap: 15px;
    width: 100%;
  }

  #menu .navbar #menu-mobile .compte {
    font-weight: 500;
    font-size: 15px;
    line-height: 18.9px;
    color: #5e5e5e;
    background: #e9e9e9;
    padding: 12px 15px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    justify-content: flex-start;
  }

  #menu .navbar #menu-mobile .compte .logo-orga {
    height: 40px;
    width: auto;
  }

  #menu .navbar #menu-mobile hr {
    width: 100%;
    height: 1px;
    border-radius: 20px;
    background: #d9d9d9;
    border: none;
    margin: 0;
  }

  #menu .navbar #menu-container #menu-mobile .buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    padding: 10px 15px 15px 15px;
    box-sizing: border-box;
    gap: 25px;
  }

  #menu .navbar #menu-container.show {
    display: flex;
  }
}
