html, body {
  overflow-y: auto;
  overflow-x: hidden;
}

.hidden {
  display: none;
}

body {
  font-family: Arial, sans-serif;
  background: #ffffff; /* fond blanc */
  margin: 0;
  padding: 0;
  color: #000; /* texte noir */
}

.page-center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  max-width: 400px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

input, select, button {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  font-size: 16px;
}

button {
  background-color: #2e7d32; /* vert principal */
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #4caf50; /* vert clair au hover */
}

.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #fff;
}

.login-box {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 520px;
  width: 100%;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

.login-box h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #000; /* noir */
}

.login-box label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

.login-box input {
  border: 1px solid #ccc;
}

.login-box button {
  background-color: #000; /* bouton noir */
  color: #fff;
}

.login-box button:hover {
  background-color: none; /* pas de couleur au hover */
}

.request-access {
  text-align: center;
  margin-top: 15px;
}

.request-access a {
  color: #2e7d32; /* vert FIESU */
  text-decoration: none;
}

/* Bouton pour reset mot de passe */
.reset-toggle {
  margin-top: 10px;
  text-align: right;
}

.reset-toggle button {
  background: none;
  border: none;
  color: #2e7d32; /* vert FIESU */
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none; /* pas souligné par défaut */
}

.reset-toggle button:hover {
  text-decoration: underline; /* souligné uniquement au survol */
}

#closeResetBtn {
  margin-top: 10px;
  background: none;
  border: none;
  color: #c62828; /* rouge pour annuler */
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}

/* Bloc reset mot de passe afficher a la premiere connection */
#resetPrompt {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #2e7d32; /* vert */
  border-radius: 8px;
  background-color: #e8f5e9; /* vert très clair */
}

#resetPrompt h3 {
  color: #000; /* noir */
  margin-bottom: 15px;
  text-align: center;
}

#resetStatus {
  margin-top: 10px;
  font-weight: bold;
  text-align: center;
  color: #2e7d32; /* vert */
}

/* Messages de statut harmonisés */
#loginStatus,
#contactStatus,
#resetStatus {
  margin-top: 15px;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.error {
  color: #b8001b; /* rouge pour erreurs */
}

.success {
  color: #2e7d32; /* vert succès */
}

/* Section demande d’accès */
.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background-color: #ffffff; /* blanc */
}

.contact-container {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 600px;
  font-family: Arial, sans-serif;
}

.contact-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #000;
}

.contact-container form {
  display: flex;
  flex-direction: column;
}

.contact-container label {
  margin-bottom: 5px;
  font-weight: bold;
}

.contact-container input,
.contact-container textarea,
.contact-container select {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 15px;
}

.contact-container textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-container button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #2e7d32; /* vert principal */
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.contact-container button:hover {
  background-color: #4caf50; /* vert clair */
}

#closeContactBtn {
  margin-top: 10px;
  background: none;
  border: none;
  color: #c62828; /* rouge pour annuler */
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}

.desktop-only {
  font-size: 0.9rem;
  color: #000;
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
}

@media (max-width: 768px) {
  .contact-container {
    padding: 20px;
    max-width: 100%;
  }

  .contact-container input,
  .contact-container textarea,
  .contact-container select,
  .contact-container button {
    font-size: 14px;
  }

  .desktop-only::after {
    content: " Veuillez utiliser un ordinateur pour accéder à la plateforme.";
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #333;
  }
}

@media (max-width: 480px) {
  button {
    font-size: 14px;
    padding: 8px;
  }
}

