/* --- Styles modernisés pour le formulaire Consultant --- */
.form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

#voyance-registration-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows:
    auto  /* titre */
    auto  /* pseudo */
    auto  /* prénom + nom */
    auto  /* email + confirmation */
    auto  /* pays + téléphone */
    auto  /* mot de passe + confirmation */
    auto  /* meter force */
    auto  /* texte explication */
    auto  /* toggle */
    auto; /* bouton */
  grid-template-areas:
    "titre       titre"
    "pseudo      pseudo"
    "prenom      nom"
    "email       email_conf"
    "pays        tel"
    "mdp         mdp_conf"
    "strength    strength"
    "text        text"
    "toggle      toggle"
    "submit      submit";
  gap: 1.5rem 2rem;

  background: #ffffff;
  padding: 2.5rem;
  border-radius: 1rem;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 16px 40px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

/* Titre full-width */
#voyance-registration-form h3 {
  grid-area: titre;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #4e755f;
}

/* Zones de la grille */
.pseudo                     { grid-area: pseudo; }
.prenom                     { grid-area: prenom; }
.nom                        { grid-area: nom; }
.email                      { grid-area: email; }
.confirm-email              { grid-area: email_conf; }
.country                    { grid-area: pays; }
.telephone                  { grid-area: tel; }
.password                   { grid-area: mdp; }
.confirm-password           { grid-area: mdp_conf; }
.password-strength-meter    { grid-area: strength; }
.password-strength-text     { 
  grid-area: text;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}
.password-toggle            { grid-area: toggle; }

/* Label au-dessus de l'input */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Inputs et select uniformes */
input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  font-size: 1rem;
  transition: all 0.3s ease;
}
input:focus, select:focus {
  outline: none;
  border-color: #4e755f;
  box-shadow: 0 0 0 3px rgba(78,117,95,0.2);
}

/* Barre de force du mot de passe */
.password-strength-meter {
  width: 100%;
  height: 10px;
  background-color: #ddd;
}
.password-strength-meter-fill {
  height: 100%;
  width: 0%;
  background-color: #e74c3c;
  transition: width 0.5s, background-color 0.5s;
}

/* Toggle mot de passe (full-width) */
.password-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Messages d'erreur et de succès */
.error-message {
  color: #c53030;
  font-size: 0.875rem;
  grid-column: 1 / -1;
  display: none;
  margin-top: -1rem;
  margin-bottom: 1rem;
}
.success-message {
  color: #2f855a;
  font-size: 0.95rem;
  grid-column: 1 / -1;
  margin-bottom: 1.5rem;
}

/* Bouton moderne (full-width) */
button[type="submit"] {
  grid-area: submit;
  background: #4e755f;
  color: #fff;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
button[type="submit"]:hover {
  background: #42664f;
  transform: translateY(-2px);
}
button[type="submit"]:active {
  transform: translateY(1px);
}

/* Responsive mobile */
@media (max-width: 640px) {
  #voyance-registration-form {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1rem;
  }
}
