/* GENERAUX */

@font-face {
  font-family: "Public";
  src: url("../fonts/Public_Sans/PublicSans-VariableFont_wght.ttf");
}

/*MENU*/

.menu-container {
  margin-right: 5%;
  margin-top: 1.75%;
}

/* Bouton du menu */
#menuButton {
  background-color: rgb(255, 231, 0);
  color: black;
  border: solid black;
  height: 5rem;
  padding-top: 10%;
  padding-bottom: 10%;
  padding-left: 10%;
  padding-right: 10%;
  cursor: pointer;
  border-radius: 5px;
  font-size: 2rem;
  font-weight: bold;
}

#menuButton:hover {
  transform: scale(1.1);
  color: rgb(210, 50, 120);
  border: solidrgb(210, 50, 120);
}

#user-info {
  margin-left: 10%;
  margin-top: 55%;
  border: solid black;
  width: 80%;
  font-size: 1.5rem;
  border-radius: 7.5px;
}

#navigation-links a {
  text-decoration: none;
}
#navigation-links a:hover {
  color: rgb(210, 50, 120);
  text-decoration: underline;
  transition: 50ms;
}

#navigation-links li {
  margin-bottom: 3%;
}

#logoutButton {
  background-color: rgb(116, 0, 255);
  margin: 10px;
  font-size: 1.5rem; /* Réduction pour cohérence */
  font-weight: bold;
  color: white;
  border: none;
  cursor: pointer;
}

#logoutButton:hover {
  transform: scale(1.1);
}

/* MANAGE CLIENT*/

.logoutButton {
  background-color: rgb(116, 0, 255);
  height: 8vh;
  color: white;
  border: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* HISTORIQUE */
#historique {
  margin-top: 10px;
}

#historiqueList {
  margin: 10px 0;
  padding: 0;
  list-style-type: none;
}

#historiqueList li {
  margin-bottom: 5px;
}

fieldset {
  flex: 1;
  padding: 15px;
  border-radius: 5px;
  border: 1px solidrgb(116, 0, 255);
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

legend {
  font-weight: bold;
  font-size: 1.2rem;
  color: rgb(116, 0, 255);
}

label {
  font-size: 1.2rem; /* Réduction de la taille pour une meilleure gestion de l'espace */
  display: block;
  font-size: 1rem;
  font-weight: bold;
  margin: 10px 0 5px;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

textarea {
  resize: vertical;
  height: 4rem;
}

button {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  background-color: rgb(116, 0, 255);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* TITRES */

header {
  background-color: rgb(rgb(116, 0, 255));
  color: white;
  padding: 10px;
  text-align: center;
}

.p_id {
  margin-left: 5%;
  font-weight: bold;
}

/* INPUTS */

label {
  font-size: 2rem;
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}

input,
select {
  font-size: 14px;
}

form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

fieldset {
  grid-column: span 2; /* Ajuste la largeur si nécessaire */
}

legend {
  font-weight: bold;
}

label {
  font-size: 14px;
}

/* BOUTONS */

.error-message {
  color: rgb(210, 50, 120);
}

.success-message {
  color: rgb(125, 244, 103);
}

.button_login {
  background-color: rgb(116, 0, 255);
}

button:hover {
  transform: scale(1.05);
}

#statusMessage {
  text-align: center;
  margin-top: 20px;
  color: green;
  font-weight: bold;
}

/* MENU */

/* Conteneur principal du menu */
.menu-container {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

/* Dropdown menu */
.menu-dropdown {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  z-index: 1000;
  width: 200px;
}

.menu-dropdown a {
  display: block;
  padding: 10px;
  color: rgb(116, 0, 255);
  text-decoration: none;
  border-bottom: 1px solid #ddd;
}

.menu-dropdown a:last-child {
  border-bottom: none;
}

.menu-dropdown a:hover {
  background-color: #f1f1f1;
}

.menu-dropdown.open {
  display: block;
}

#menuButton:hover {
  transform: scale(1.1);
  color: rgb(210, 50, 120);
  border: solidrgb(210, 50, 120);
}

#menuButton.hidden {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.status-message {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 5px;
  display: none; /* Par défaut, caché */
}

.status-message.success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.status-message.error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}
@media (max-width: 1040px) {
  #user-info {
    font-size: 1rem;
  }
}

@media (max-width: 950px) {
  #menuButton {
    padding: 4px 7.5px; /* Réduction de padding */
    cursor: pointer;
    border-radius: 2.5px;
    font-size: 1rem; /* Réduction de la taille */
  }
}

@media (max-width: 850px) {
  #user-info {
    font-size: 1rem;
  }
  #menuButton {
    padding: 0px; /* Réduction de padding */
    margin: 0;
    font-size: 1rem;
    height: 2.5rem;
  }
  .menu-container {
    margin: 0;
  }
}

@media (max-width: 524px) {
  #user-info {
    font-size: 0.75rem;
  }

  #navigation-links li {
    margin-bottom: 30%;
  }
}

/*Title page responsive*/
.title_page {
  background-color: rgb(116, 0, 255);
  font-size: 4rem;
  font-weight: bold;
  margin: 0;
}
@media (max-width: 1350px) {
  .title_page {
    font-size: 2.5rem;
  }
}
@media (max-width: 1250px) {
  .title_page {
    font-size: 2rem;
  }
}

@media (max-width: 950px) {
  .title_page {
    font-size: 1.5rem;
  }
}

@media (max-width: 750px) {
  .title_page {
    font-size: 1.25rem;
  }
}
@media (max-width: 668px) {
  .title_page {
    font-size: 1rem;
  }
}

/* responsive header */
.header_page {
  height: 15vh; /* Aligné avec la page Manage Campaigns */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(116, 0, 255);
  text-align: center;
  padding: 15px; /* Réduction de la hauteur */
  color: white;
}
