/* public/css/inscription.css */
/*
  Objectif : rendu compact, agréable, cohérent avec global.css
  - panneau plus petit
  - espacements réduits
  - inputs moins hauts
  - typographies plus discrètes
*/

/* Page */
.page_inscription {
  padding: 40px 24px;
  display: flex;
  justify-content: center;
}

/* Panneau */
.panneau_inscription {
  width: 100%;
  max-width: 420px;
  background: var(--surface_beige);
  color: var(--fond_principal);
  border: 1px solid var(--bordure);
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.28);
  padding: 20px 20px 14px;
}

.inscription_entete {
  text-align: center;
  margin-bottom: 14px;
}

.inscription_titre {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
}

.inscription_sous_titre {
  margin: 0 0 10px;
  font-size: 12px;
  color: #3F5D4A;
}

/* Bandeau promotionnel */
.badge_credits {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin: 14px auto 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(63, 107, 79, 0.10);
  color: #1f3d2a;
  font-weight: 600;
  font-size: 13px;
}

.badge_icone {
  width: 14px;
  height: 14px;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url("/icones/cadeau.svg") center / contain no-repeat;
  mask: url("/icones/cadeau.svg") center / contain no-repeat;
}

.badge_texte {
  text-align: center;
}


/* Formulaire */
.inscription_formulaire {
  margin-top: 12px;
}

.bloc_champ {
  margin-top: 12px;
}

.champ_libelle {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.72);
}

.champ_texte {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
}

.champ_texte:focus {
  border-color: rgba(63, 107, 79, 0.65);
  box-shadow: 0 0 0 3px rgba(63, 107, 79, 0.16);
}

/* Bloc photo */
.bloc_photo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.photo_rond {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.inscription_apercu_photo {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

/* Bouton secondaire  */
.bouton_secondaire {
  border: 0;
  background: var(--vert);
  color: #3F5D4A;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

/* Mot de passe*/
.champ_mdp {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}


.champ_mdp .champ_texte {
  width: 100%;
  box-sizing: border-box;
  padding-right: 44px;
}

.bouton_oeil {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);

  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;

  background-color: currentColor;
  color: rgba(15, 23, 42, 0.70);

  -webkit-mask: url("/icones/oeil.svg") center / 18px 18px no-repeat;
  mask: url("/icones/oeil.svg") center / 18px 18px no-repeat;
}

.bouton_oeil:hover {
  color: rgba(15, 23, 42, 0.90);
}


/* Rôles */
.bloc_roles {
  margin-top: 14px;
  padding: 0;
  border: 0;
}

.roles_titre {
  margin: 0 0 8px;
  font-size: 12px;
  color: #3F5D4A;
}

.role_ligne {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-top: 8px;
}

.role_ligne input {
  width: 14px;
  height: 14px;
  accent-color: #3F6B4F;
}

/* Bouton principal  */
.actions_inscription {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.actions_inscription .bouton_principal {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

/* Texte bas */
.inscription_mentions {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11px;
}

.inscription_deja {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
}

.inscription_deja a,
.inscription_mentions a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */

@media (max-width: 520px) {
  .page_inscription {
    padding: 28px 16px;
  }

  .panneau_inscription {
    padding: 18px 16px 12px;
  }
}