/* Pages connexion, inscription et profil : complète style.css + theme.css
   (à charger après eux). Utilise les variables du thème. */

.page-compte {
  align-items: center;
  justify-content: center;
  padding: 6vh 4vw;
}

.carte-compte {
  width: 100%;
  max-width: 460px;
  background: var(--carte);
  border: 1px solid var(--bord);
  border-top: 5px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--ombre);
  padding: 2.2rem;
  color: var(--texte);
}

.carte-compte h1 {
  margin: 0 0 1.2rem;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--texte);
}

/* Formulaires */
.carte-compte label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--texte-doux);
}

.carte-compte input {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--bord-fort);
  border-radius: 6px;
  font-size: 0.9rem;
  background: #ffffff;
  color: var(--texte);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.carte-compte input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 99, 214, 0.25);
  outline: none;
}

.carte-compte button {
  margin-top: 1.6rem;
  width: 100%;
  padding: 0.9rem;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s;
}

.carte-compte button:hover { background: var(--accent-hover); }

.carte-compte a {
  color: var(--texte-doux);
  font-weight: 600;
  text-decoration: none;
}

.carte-compte a:hover { color: var(--accent); text-decoration: underline; }

.lien-bas {
  display: block;
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Messages */
.msg {
  padding: 0.8rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.msg.ok { background: #e3f5ec; color: #14573f; border-left: 4px solid #16a34a; }
.msg.ko { background: #fdeaea; color: #8f1d1d; border-left: 4px solid #dc2626; }
.msg ul { margin: 0; padding-left: 1.2rem; }

/* Profil */
.infos {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.7rem 1.4rem;
  font-size: 0.9rem;
}
.infos dt { font-weight: 600; color: var(--texte-doux); }
.infos dd { margin: 0; word-break: break-word; font-weight: 600; }

.badge {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge.user { background: #e5e7eb; color: var(--texte); }
.badge.admin { background: var(--accent); color: #ffffff; }

.zone {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bord);
}
.zone p {
  margin: 0 0 0.5rem;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--texte);
}
.zone a { display: block; margin-top: 0.5rem; font-size: 0.9rem; }

@media (max-width: 520px) {
  .carte-compte { padding: 1.5rem 1.2rem; }
  .infos { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .infos dd { margin-bottom: 0.7rem; }
}