/* Styles globaux */
body,
html {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f8;
  color: #000;
}

/* En-tête */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #2c3e50;
  color: #ecf0f1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid rgb(0, 0, 0);
}


input,
select,
textarea,
em {
  color: blue;
}

.custom-icon {
  color: white;
  text-decoration: none;
  width: 50px;
  font-size: 40px;
  transform: translate(4px, -8px);
}

input[type=checkbox] {
  cursor: pointer;
}

input[type=date] {
    width: 110px;
    display: block;
}

#gotopage,
#page-input,
#users_parameters {
  cursor: pointer;
}

.selected-choice {
  margin-bottom: 10px;
}

.selected-choice_panel {
  border: 1px solid;
  border-color: #2c3e50;
  padding: 5px;
}

/* Conteneur principal */
.main-container {
  display: flex;
  width: 100%;
}

/* Logo section */
.logosec .logo {
  display: inline-block;
  max-width: 100%;
  border-radius: 8px;
  transition: transform 0.3s;
}

.logosec .logo img:hover {
  transform: scale(1.05);
}

/* Messages */
.message .dp {
  position: relative;
}

.message .dpicn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.message .dpicn:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

/* Déconnexion */
#disconect {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
  margin-left: 20px;
  margin-bottom: 10%;
}

#disconect:hover {
  margin-left: 20px;
}

/* Navigation */
.navcontainer {
  min-height: 100vh;
  /* Hauteur minimale de la fenêtre */
  height: 100vh;
  /* Hauteur de la fenêtre */
  width: 250px;
  display: flex;
  flex-direction: column;
  background-color: #2c3e50;
  overflow: hidden;
  transition: all 0.4s;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
  border-right: 2px solid black;
  position: fixed;
  /* Fixe la barre de navigation */
}

.nav {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nav .nav-upper-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* CSS pour les .nav-options */
.nav-option {
  width: 100%;
  height: calc(100vh / 6 - 25px);
  /* Répartit la hauteur en 5 parts égales avec une petite marge */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  gap: 15px;
  padding: 15px 0;
  cursor: pointer;
  border: solid 2px black;
  background: linear-gradient(120deg, #6adbde 40%, #2c3e50 85%);
  transition: all 0.4s;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #fff;
}

.active-menu {
  position: relative;
  background: linear-gradient(120deg, #6adbde 70%, #2c3e50 85%);
  color: #000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.active-menu::after {
  left: 97%;
}

.checkbox-list {
  position: relative;
  width: 200px;
}

.checkbox-list select {
  display: none;
}

.checkbox-option {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.checkbox {
  margin-right: 10px;
}

.active-menu::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 2px;
  background-color: white;
  border-radius: 10%;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  animation: rotateLight 0.7s;
  animation-fill-mode: forwards;
  z-index: 10;
}

.nav-option:hover {
  position: relative;
  background: linear-gradient(120deg, #6adbde 70%, #2c3e50 85%);
  color: #000;
  transform: scale(1.02) translateY(-5px);
  /* transform: scale(1.02) translateY(-5px) skewX(-10deg); pour donner l'impression card */
  text-shadow: 2px 2px 1px rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nav-option::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: -100%;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.3s;
}

.nav-option:hover::after {
  left: 97%;
}

.nav-option:hover::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 2px;
  background-color: white;
  border-radius: 10%;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  animation: rotateLight 0.7s;
  animation-fill-mode: forwards;
  z-index: 10;
}

.nav-option h3 {
  display: inline-block;
  transition: transform 0.4s;
}

.nav-option:hover h3 {
  transform: translateY(-0px);
}

@keyframes rotateLight {
  0% {
    top: 87%;
    left: 100%;
    transform: translateX(0%);
  }

  10% {
    top: 87%;
    left: 55%;
    transform: translateY(0%);
  }

  100% {
    top: 87%;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav-img {
  position: relative;
  margin-bottom: 0px;
  margin-top: 5px;
  width: 38px;
  height: 38px;
  display: inline-block;
  text-align: center;
  line-height: 38px;
}

.nav-img span {
  display: inline-block;
  margin-top: 8px;
  transform: translateX(1px);
  /* Décalage de l'icône via le span */
}

.nav-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: transparent;
  border: none;
  transition: background-color 0.4s, border 0.4s, transform 0.4s;
  z-index: -1;
}

.card:hover .nav-img::before {
  background-color: white;
  border: 1px solid black;
  transform: translateY(0px);
}

.nav-img i {
  font-size: 26px;
  color: white;
  vertical-align: middle;
  transition: transform 0.4s, color 0.4s;
}

h3 {
  margin: 0;
}

.nav-option:hover .nav-img i {
  color: black;
  transform: rotate(360deg);
}

.content-display {
  flex: 1;
  /* Pour que le contenu à droite prenne l'espace disponible */
  margin-left: 250px;
  padding: 20px;
  overflow-y: auto;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: #2c3e50;
}

::-webkit-scrollbar-track {
  background-color: #ecf0f1;
}

/* Lien du logo */
.logo a {
  text-decoration: none;
}

/* Tooltip */
.tooltip {
  position: absolute;
  display: block;
  bottom: -50px;
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.dp:hover .tooltip {
  opacity: 1;
}

/* Tooltip Icon */
.tooltip-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: solid black 2px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
}

/* Position de la bulle "users_parameters" */
.tooltip-users_parameters {
  right: 29px;
  top: 44px;
  margin-right: 10px;
}

.toolpip-disconect {
  right: -0.5px;
  top: 60px;
}

.tooltip-users_parameters:hover #users_parameters,
.toolpip-disconect:hover #disconect {
  box-shadow: 0px 0px 8px 2px rgb(255, 255, 255);
  border-radius: 50%;
  transition: box-shadow 0.3s ease-in-out;
}

.tooltip-users_parameters::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: rgb(255, 255, 255);
  border-radius: 50%;
  position: absolute;
  top: 33%;
  left: 81%;
  transform: translate(-50%, -50%);
  transform-origin: -16px 2.5px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  animation: rotateAround 2s infinite linear;
}

.toolpip-disconect::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: rgb(255, 255, 255);
  border-radius: 50%;
  position: absolute;
  top: 46%;
  left: 85%;
  transform: translate(-50%, -50%);
  transform-origin: -16px 2.5px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  animation: rotateAround 2s infinite linear;
}

.tooltip-users_parameters:hover::before,
.toolpip-disconect:hover::before {
  opacity: 1;
  animation: rotateAround 2s infinite linear;
}

.tooltip-users_parameters:not(:hover)::before,
.toolpip-disconect:not(:hover)::before {
  opacity: 0;
}

.admin-container {
  border-radius: 50%;
  position: relative;
  width: 55px;
  height: 55px;
  margin-bottom: 5px;
  right: 2px;
}

.admin-container:hover .admin-img {
  box-shadow: 0px 0px 8px 2px rgb(255, 255, 255);
  border-radius: 50%;

}

.admin-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: box-shadow 0.3s ease-in-out;
}

/* Boule disconnect */
.admin-container::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: rgb(255, 255, 255);
  border-radius: 50%;
  position: absolute;
  top: 48%;
  left: 98%;
  transform: translate(-50%, -50%);
  transform-origin: -23.5px 4.5px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  animation: rotateAround 2s infinite linear;
}

.admin-container:hover::before {
  opacity: 1;
  animation: rotateAround 2s infinite linear;
}

.admin-container:not(:hover)::before {
  opacity: 0;
}

@keyframes rotateAround {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

#disconect::before,
#users_parameters::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: rgb(255, 255, 255);
  border-radius: 50%;
  position: absolute;
  top: 48%;
  left: 98%;
  transform: translate(-50%, -50%);
  transform-origin: -16px 2.5px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  animation: rotateAround 2s infinite linear paused;
}

#disconect:hover::before,
#users_parameters:hover::before {
  opacity: 1;
  animation-play-state: running;
  /* Reprendre l'animation lors du hover */
}

#disconect:not(:hover)::before,
#users_parameters:not(:hover)::before {
  opacity: 0;
  animation-play-state: paused;
  /* Mettre en pause l'animation hors du hover */
}


/* Style pour la fenêtre modale */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  border-radius: 20px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.help-list {
  list-style-type: none;
  padding: 0;
}

.help-list li {
  margin-bottom: 15px;
  font-weight: normal;
}