.sidebar {
  display: none;
  position: fixed;
  top: 90px;
  margin-left: calc(100% - 350px);
  height: 515px;
  width: 300px;
  border-radius: 1.1em;
  background-color: #f2f2f2;
  padding-top: 20px;
  transition: transform 0.3s ease-in-out;
  z-index: 10;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin-top: 4px;
}

.sidebar-menu-item:not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)):not(:nth-child(7)) {
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.sidebar-menu-link.active {
  background-color: #e0e0e0;
  box-shadow: 0 4px 6px rgba(55, 155, 248, 0.2);
}

.sidebar-menu-item:hover {
  background-color: #15A6DD8e;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);

}

.sidebar-menu-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.sidebar-menu-title {
  font-size: 0.9rem;
}

.sidebar-badge {
  background-color: #15A6DD;
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 6px;
  border-radius: 50%;
  margin-left: 5px;
}

.sidebar-menu-link {
  position: relative;
  /* Ajouter une position relative à .sidebar-menu-link */
}

.sidebar-menu-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 3px;
  width: 5px;
  height: 100%;
  background-color: transparent;
  /* Rendre le fond de la ligne transparent */
  opacity: 0;
  /* Rendre la ligne transparente par défaut */
  transition: opacity 0.2s;
  /* Ajouter une transition pour une apparence fluide */
}


.welcome-message {
  margin-right: auto;
  margin-left: 250px;
}

.welcome-message span {
  font-size: 20px;
  color: #333;
  font-weight: bold;

}

#header-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}


.header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#text1 {
  order: 1;
  margin-right: 20px;
  /* Add margin to the right of the first text */
  font-weight: bold;
}

#text2 {
  order: 2;
  margin-right: 20px;
  color: gray;
}

#user-icon_1 {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #15A6DD;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  margin-left: 100px;
  color: white;
  font-weight: bold;
  font-size: 50px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

#user-profile-img_1 {
  width: 100px;
  /* Définir la largeur de l'image */
  height: 100px;
  /* Définir la hauteur de l'image */
  border-radius: 50%;
  /* Rendre l'image circulaire */
  object-fit: cover;
  flex-shrink: 0;
  margin-bottom: 6px;
  margin-left: 100px;
  align-items: center;
  justify-content: center;
}


.menu-item-nom {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  font-weight: bold;

}

.email {
  margin-left: 10px;
  font-size: 14px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  margin-top: 3px;

  margin-bottom: 5px;
}

.account {
  margin-left: 40%;
  margin-bottom: 10px;
  margin-top: 10px;
  color: brown;
  text-decoration: none;

}

/* Ajoutez ces styles pour l'overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.178);
  /* Couleur d'arrière-plan semi-transparente */
  display: none;
  /* Démarrez avec l'overlay masqué */
  z-index: 10;
  /* Assurez-vous que l'overlay est au-dessus du contenu, mais derrière la sidebar */
}












@media (min-width: 700px) and (max-width: 899px) {
  /* Zoom: 170% */
  .sidebar {

    top: 50px;
    margin-left: calc(100% - 200px);
    height: 305px;
    width: 170px;
    padding-top: 20px;
  }
  .sidebar-menu-link {
    padding: 6px 12px;

  }
  .sidebar-menu-title {
    font-size: 0.5rem;
  }
  .sidebar-badge {
    font-size: 0.3rem;
  }

  .menu-item-nom {
    font-size: 8px;
    
  }

  .email {
    font-size: 8px;
  }

  .account {
    margin-left: 45%;
    font-size: 8px;
    margin-bottom: -20px;
    color: brown;
  }

  .sidebar-menu-icon {
    width: 12px;
    height: 12px;
    margin-right: 10px;
  }

  #user-icon_1 {
    width: 80px;
    height: 80px;
    margin-left: 37%;
    font-size: 25px;
    margin-top: -10px;
  }

  #user-profile-img_1 {
    width: 60px;
    height: 60px;
    margin-left: 37%;
    margin-top: -10px;
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  /* Zoom: 150% */
  .sidebar {
    top: 70px;
    margin-left: calc(100% - 240px);
    height: 360px;
    width: 200px;
    padding-top: 20px;
  }
  .sidebar-menu-link {
    padding: 8px 16px;

  }
  .sidebar-menu-title {
    font-size: 0.6rem;
  }
  .sidebar-badge {
    font-size: 0.4rem;
  }

  .menu-item-nom {
    font-size: 10px;
  }

  .email {
    font-size: 10px;
  }

  .account {
    margin-left: 45%;
    font-size: 10px;
    margin-top: -15px;
  }

  .sidebar-menu-icon {
    width: 14px;
    height: 14px;
    margin-right: 10px;
  }

  #user-icon_1 {
    width: 80px;
    height: 80px;
    margin-left: 39%;
    font-size: 25px;
  }

  #user-profile-img_1 {
    width: 60px;
    height: 60px;
    margin-left: 39%;
  }
}

@media (min-width: 1100px) and (max-width: 1199px) {

  /* Zoom: 130% */
  .sidebar {
  
    top: 70px;
    margin-left: calc(100% - 280px);
    height: 420px;
    width: 230px;
    padding-top: 20px;

  }

  .sidebar-menu-title {
    font-size: 0.7rem;
  }

  .sidebar-badge {
    font-size: 0.5rem;
  }

  .menu-item-nom {
    font-size: 14px;
  }

  .email {
    font-size: 10px;
  }

  .account {
    margin-left: 45%;
    font-size: 10px;

  }

  .sidebar-menu-icon {
    width: 15px;
    height: 15px;
    margin-right: 10px;
  }

  #user-icon_1 {
    width: 80px;
    height: 80px;
    margin-left: 35%;

    font-size: 30px;

  }

  #user-profile-img_1 {
    width: 80px;
    /* Définir la largeur de l'image */
    height: 80px;
    /* Définir la hauteur de l'image */
    margin-left: 35%;
  }
}

@media (min-width: 1200px) and (max-width: 1299px) {

  /* Zoom: 120% */
  .sidebar {

    top: 70px;
    margin-left: calc(100% - 250px);
    height: 420px;
    width: 230px;
    padding-top: 20px;

  }

  .sidebar-menu-title {
    font-size: 0.7rem;
  }

  .sidebar-badge {
    font-size: 0.5rem;
  }

  .menu-item-nom {
    font-size: 14px;
  }

  .email {
    font-size: 10px;
  }

  .account {
    margin-left: 45%;
    font-size: 10px;

  }

  .sidebar-menu-icon {
    width: 15px;
    height: 15px;
    margin-right: 10px;
  }

  #user-icon_1 {
    width: 80px;
    height: 80px;
    margin-left: 35%;

    font-size: 30px;

  }

  #user-profile-img_1 {
    width: 80px;
    /* Définir la largeur de l'image */
    height: 80px;
    /* Définir la hauteur de l'image */
    margin-left: 35%;
  }
}

















@media (min-width: 1300px) and (max-width: 1449px) {

  /* Zoom: 110% */
  .sidebar {

    top: 90px;
    margin-left: calc(100% - 300px);
    height: 460px;
    width: 260px;
    padding-top: 20px;

  }

  .sidebar-menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }

  #user-icon_1 {
    width: 80px;
    height: 80px;
    margin-left: 38%;

    font-size: 40px;

  }

  #user-profile-img_1 {
    width: 80px;
    /* Définir la largeur de l'image */
    height: 80px;
    /* Définir la hauteur de l'image */
    margin-left: 38%;
  }
}

@media (min-width: 1450px) {
  /* Zoom: 100%*/
}

@media (min-width: 1650px) {
  /*Zoom: 90% */
}

@media (min-width: 1850px) {
  /*Zoom: 80% */
}

@media (min-width: 2050px) {
  /*Zoom: 60%*/
}