/* Alibia — pages de compte (connexion, inscription, mon compte). Complète accueil.css, dont elle reprend les variables. */

.page-compte { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page-compte main { flex: 1; }

.entete-compte {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem 0.5rem;
}
.entete-compte .bouton { min-height: 44px; padding: 0.5rem 1.2rem; font-size: 0.98rem; }

.zone-compte {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 2rem;
  padding-block: 1.5rem 4rem;
}

.carte-compte {
  width: 100%;
  max-width: 30rem;
  padding: 2.2rem 1.4rem 1.8rem;
  text-align: center;
}
@media (min-width: 520px) { .carte-compte { padding: 2.6rem 2.4rem 2.2rem; } }
.carte-compte h1 {
  margin: 0;
  font-family: var(--titre);
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.compte-intro { margin: 1.1rem 0 1.6rem; color: var(--encre-douce); }

/* Formulaires */

.carte-compte form { text-align: left; }
.champ { display: grid; gap: 0.35rem; margin-bottom: 1.1rem; }
.champ > span, .champ > label { font-family: var(--titre); font-size: 0.98rem; font-weight: 600; }
.champ input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  color: var(--encre);
  font: inherit;
  background: #fffaf0;
  border: 1.5px solid var(--sable);
  border-radius: 10px;
  box-shadow: inset 0 1px 3px rgba(70, 40, 10, 0.12);
}
.champ input:hover { border-color: var(--or); }
.champ input:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 2px; border-color: var(--bordeaux); }
.champ small { color: var(--encre-douce); font-size: 0.88rem; line-height: 1.4; }

/* Mot de passe : bouton "oeil" dans le champ */
.champ-mdp { position: relative; }
.champ-mdp input { padding-right: 3.2rem; }
.oeil {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--encre-douce);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transform: translateY(-50%);
}
.oeil:hover { color: var(--bordeaux); }
.oeil:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: -3px; }
.oeil .icone { width: 1.4rem; height: 1.4rem; }

.message-formulaire {
  margin: 0 0 1.1rem;
  padding: 0.7rem 0.9rem;
  color: #7a1a1a;
  font-size: 0.98rem;
  line-height: 1.4;
  background: #fbeaea;
  border: 1.5px solid #d9a3a3;
  border-radius: 10px;
}
.message-formulaire[hidden] { display: none; }

.carte-compte .bouton[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.compte-alternative { margin: 1.4rem 0 0; color: var(--encre-douce); font-size: 0.98rem; }

/* Mon compte */

.compte-identite { margin: 0.9rem 0 0; color: var(--encre-douce); overflow-wrap: anywhere; }
.compte-identite span { display: block; }

.compte-bilan {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.6rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(185, 138, 62, 0.4);
}
.compte-bilan strong {
  color: var(--bordeaux);
  font-family: var(--titre);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}
.compte-bilan span { text-align: left; }

.compte-enquetes { width: 100%; max-width: 46rem; }
.compte-enquetes > h2 {
  margin: 0 0 1.2rem;
  font-family: var(--titre);
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 800;
  text-align: center;
}

.liste-enigmes { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.enigme { padding: 1.3rem 1.3rem 1.2rem; }
.enigme h3 { margin: 0; font-family: var(--titre); font-size: 1.3rem; font-weight: 800; line-height: 1.25; }
.enigme h3 a { color: inherit; text-decoration: none; }
.enigme h3 a:hover { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; }
.enigme p { margin: 0.55rem 0 0; color: var(--encre-douce); font-size: 1rem; line-height: 1.55; }
.enigme .bouton { margin-top: 1rem; min-height: 44px; padding: 0.5rem 1.2rem; font-size: 0.98rem; }

.enigme-statut {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
  color: var(--encre-douce);
  font-family: var(--titre);
  font-size: 0.92rem;
  font-weight: 600;
}
.enigme-resolue .enigme-statut { color: var(--vert); }
.enigme-statut .icone { width: 1.2em; height: 1.2em; }

.compte-deconnexion { text-align: center; }
.compte-vide { text-align: center; color: var(--encre-douce); }

@media (prefers-reduced-motion: reduce) {
  .carte-compte .bouton[disabled] { transition: none; }
}
