    /* Fond sombre derrière la fenêtre */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(16, 33, 59, 0.215);
  z-index: 900;
  display: none; /* caché par défaut */
}

#overlay.active {
  display: block; /* visible quand la classe "active" est ajoutée */
}

.overlay-visible {
  display: block;
}
/* Barre latérale de connexion */
.login-panel {
  position: fixed;
  top: 0;
  right: -800px;
  width: 600px;
  height: 100%;
  background: white;
  z-index: 1003;
  padding: 30px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
  transition: right 1s ease;
  font-family: 'LXGW Marker Gothic', sans-serif;  
   overflow-y: auto; /* ajoute une barre de défilement si besoin */
  max-height: 90vh; /* limite la hauteur */
}
.login-panel.active {
  right: 0;
}
.login-panel .close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 25px;
  cursor: pointer;
}
.login-panel form {
  display: flex;
  flex-direction: column;
}
.login-panel input {
  margin-bottom: 15px;
  padding: 10px;
  font-size: 14px;
  outline: none;
  border: 1px solid gainsboro;
  width: 100%;
}
.login-panel label {
  font-family: 'Times New Roman', Times, serif;
  padding: 10px;
}
.login-panel button {
  padding: 10px;
  background-color: rgb(19, 43, 71);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  margin-top: 20px;
  border-radius: 5px;
}
.login-panel button:hover {
  background-color: #132a4998;
}
.login-panel .google-btn:hover {
  background-color: gainsboro;
}
.login-panel .google-btn {
  background-color: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgb(19, 43, 71);
}

.login-panel hr {
  margin: 20px 0;
}
.login-header {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
  border-bottom-right-radius: 2px;
  color: rgba(78, 78, 78, 0.507);
  gap: 0px;
}
.login-header h4 {
  cursor: pointer;
  padding: 10px 85px;
   border-bottom: 1px solid rgba(78, 78, 78, 0.413);
   margin: 0;
   text-align: center;
}
.login-header .active-tab {
  color: #132a49;
    transition: right 1s ease;
}
