
/* === SECTION GLOBALE DE FORMULAIRE === */
.register-form-section {
  background-color: var(--card-bg);
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
  max-width: 600px;
  margin: auto;
  color: var(--text);
  margin-top:50px;
}

/* === INPUTS & SELECT === */
.register-form-section .form-control {
  background-color: #2c2c31;
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.register-form-section .form-control:focus {
  background-color: #2e2e35;
  outline: none;
  box-shadow: 0 0 0 2px var(--accent);
}

.register-form-section .form-control::placeholder {
  color: var(--muted);
  opacity: 1;
}

/* Select personnalisé */
.register-form-section select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg width='12' height='12' fill='white' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
}

/* Label pour champ date */
.register-form-section .form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--text);
}

/* === MESSAGES D’ERREUR === */
.register-form-section .erreur-prenom,
.register-form-section .erreur-nom,
.register-form-section .erreur-mdp,
.register-form-section .erreur-mdpConfirmation,
.register-form-section .erreur-email,
.register-form-section .erreurAnniversaire,
.register-form-section .erreurInscription {
  font-size: 0.85rem;
  color: var(--error);
  margin-top: -0.6rem;
  margin-bottom: 0.8rem;
}

/* === BOUTON DE VALIDATION === */
.register-form-section input[type="submit"] {
  background-color: var(--accent);
  color: #000;
  font-weight: bold;
  border: none;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.register-form-section input[type="submit"]:hover {
  background-color: var(--accent-hover);
}

/* === LOADER CENTRÉ === */
.register-form-section .loaderInscription img {
  width: 24px;
  display: block;
  margin: 1rem auto 0 auto;
}

/* === LIEN VERS CONNEXION === */
.register-form-section .login-link {
  margin-top: 1.5rem;
  text-align: center;
}

.register-form-section .login-link a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.register-form-section .login-link a:hover {
  text-decoration: underline;
}

#loaderConnexion img {
  display: block;
  margin: 1rem auto;
}

/* === RESPONSIVE === */
@media (max-width: 576px) {
  .register-form-section {
    padding: 2rem 1rem;
  }
}

