/* Lot M, tranche D (M03, M04) : pages `/connexion` et `/activation` du mode serveur.
   Chargee APRES theme.css (jetons, cinq themes) et style.css (champs, boutons, encadres, bandeau) : meme direction
   visuelle que l'application. Couleurs par jetons seulement ; seule exception, le fond blanc du QR code (un QR se
   scanne sur fond clair, en theme sombre aussi). Mouvement : aucun en plus de celui des boutons. */

body.page-compte { display: flex; flex-direction: column; min-height: 100vh; }
.compte { flex: 1; width: 100%; max-width: 416px; margin: 0 auto;
  padding: clamp(var(--espace-5), 9vh, 96px) var(--espace-4) var(--espace-6); }
.compte.large { max-width: 496px; }

.compte-marque { display: flex; align-items: center; gap: var(--espace-2); margin-bottom: var(--espace-5);
  font-size: 18px; font-weight: var(--graisse-forte); letter-spacing: var(--interlettrage-titre); }
.compte-marque .marque-logo { width: 28px; height: 28px; font-size: var(--taille-texte); }

.compte-carte { padding: var(--espace-6); background: var(--surface); border: 1px solid var(--verre-bordure-carte, var(--bordure-forte));
  border-radius: var(--verre-rayon, var(--rayon)); box-shadow: var(--verre-ombre-carte, var(--ombre-1)); }
.compte-carte h1 { font-size: 24px; margin-bottom: var(--espace-4); overflow-wrap: anywhere; }
.compte-carte h1:focus-visible { outline: none; }
.compte-texte { color: var(--texte-doux); margin: 0 0 var(--espace-4); }
.compte-carte h1 + .compte-texte { margin-top: calc(-1 * var(--espace-2)); }

/* Etapes : une vraie suite (mot de passe, puis code) ; le repere dit ou l'on est, jamais par la couleur seule
   (`aria-current="step"`, texte plus fonce et plus gras). */
.compte-etapes { display: flex; gap: var(--espace-2); list-style: none; margin: 0 0 var(--espace-5); padding: 0; }
.compte-etapes li { flex: 1 1 0; min-width: 0; padding-top: var(--espace-2); border-top: 2px solid var(--bordure-forte);
  font-size: var(--taille-petit); line-height: 1.3; color: var(--texte-discret); }
.compte-etapes li.faite { border-top-color: var(--accent); color: var(--texte-doux); }
.compte-etapes li[aria-current="step"] { border-top-color: var(--accent); color: var(--texte); font-weight: var(--graisse-forte); }

/* Champs : plus hauts que dans l'application (page d'entree, saisie au doigt possible). */
.compte-champ { margin-bottom: var(--espace-4); }
.compte-champ label { margin-bottom: 0; color: var(--texte); font-weight: var(--graisse-moyenne); }
.compte-carte input:not([type="checkbox"]) { padding: 10px var(--espace-3); font-size: 15px; }
.compte-carte input[readonly] { background: var(--surface-douce); color: var(--texte-doux); }
.compte-secret { display: grid; align-items: center; margin-top: var(--espace-1); }
.compte-secret > * { grid-area: 1 / 1; }
.compte-carte .compte-secret input { margin-top: 0; padding-right: 96px; }
/* Un seul bouton pour voir le mot de passe : celui de la page (libelle, etat annonce), pas celui d'Edge. */
.compte-secret input::-ms-reveal, .compte-secret input::-ms-clear { display: none; }
.compte-voir { justify-self: end; margin-right: var(--espace-2); min-width: 76px; }

/* Code a 6 chiffres : l'element marquant de la page, grands chiffres espaces. */
.compte-carte input.compte-code { font-family: var(--police-mono); font-size: var(--taille-chiffre); font-variant-numeric: tabular-nums;
  letter-spacing: 0.34em; padding-top: var(--espace-2); padding-bottom: var(--espace-2); }
.compte-carte input.compte-code.secours { letter-spacing: 0.12em; }

.compte-erreur { margin: 0 0 var(--espace-4); padding: var(--espace-2) var(--espace-3); border-radius: var(--rayon-petit);
  background: var(--erreur-fond); color: var(--erreur); }
.compte-erreur:empty { display: none; }

.compte-action { width: 100%; height: 40px; font-size: 15px; }
a.compte-action.principal { background: var(--verre-fond-principal, var(--accent)); color: var(--accent-texte); border-color: var(--accent); }
a.compte-action.principal:hover { background: var(--verre-fond-principal-survol, var(--accent-survol)); border-color: var(--accent-survol); }
a.compte-action[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.compte-action[aria-busy="true"] { cursor: progress; }
.compte-liens { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--espace-1) var(--espace-3); margin-top: var(--espace-4); }
.compte-liens button.lien { padding: 0; height: auto; min-height: 26px; white-space: normal; text-align: left; }
.compte-pied { margin: var(--espace-4) var(--espace-1) 0; font-size: var(--taille-petit); color: var(--texte-doux); }

/* Activation : regles du mot de passe, QR code, cle, codes de secours. */
.compte-regles { list-style: none; margin: var(--espace-2) 0 0; padding: 0; font-size: var(--taille-petit); color: var(--texte-doux); }
.compte-regles li { display: flex; gap: var(--espace-2); }
.compte-regles li::before { content: "•"; flex: none; width: 1em; text-align: center; }
.compte-regles li.respectee { color: var(--succes); }
.compte-regles li.respectee::before { content: "✓"; }
.compte-conseil { margin: 0 0 var(--espace-4); padding: var(--espace-2) var(--espace-3); border-radius: var(--rayon-petit);
  background: var(--surface-douce); font-size: var(--taille-petit); color: var(--texte-doux); }
.compte-marche { margin: 0 0 var(--espace-2); padding-left: var(--espace-5); }
.compte-marche > li { margin-bottom: var(--espace-4); padding-left: var(--espace-1); }
.compte-marche > li::marker { font-weight: var(--graisse-forte); }
.compte-marche .compte-champ { margin-bottom: 0; }
.compte-marche .compte-texte { margin-bottom: var(--espace-2); }
.compte-qr { display: inline-block; margin: var(--espace-1) 0 var(--espace-3); padding: var(--espace-3); background: white;
  border: 1px solid var(--bordure-forte); border-radius: var(--rayon); line-height: 0; }
.compte-qr img { display: block; width: 200px; height: 200px; }
.compte-cle { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-2) var(--espace-3); }
.compte-cle code { padding: var(--espace-1) var(--espace-2); border-radius: var(--rayon-petit); background: var(--surface-douce);
  font-family: var(--police-mono); font-size: var(--taille-texte); overflow-wrap: anywhere; user-select: all; }
.compte-copie { font-size: var(--taille-petit); color: var(--texte-doux); }
.compte-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--espace-2); list-style: none;
  margin: 0 0 var(--espace-3); padding: 0; }
.compte-codes li { padding: var(--espace-2); border: 1px solid var(--bordure); border-radius: var(--rayon-petit);
  background: var(--surface-douce); text-align: center; }
.compte-codes code { font-family: var(--police-mono); font-size: 15px; letter-spacing: 0.06em; user-select: all; }
.compte-carte .compte-case { margin: var(--espace-5) 0 var(--espace-3); }
.compte-carte .aide { margin: var(--espace-2) 0 0; }
.compte-carte .encadre { margin-bottom: var(--espace-4); }

@media (max-width: 480px) {
  .compte { padding-top: var(--espace-5); }
  .compte-carte { padding: var(--espace-5) var(--espace-4); }
  .compte-carte input:not([type="checkbox"]) { font-size: 16px; } /* pas de zoom automatique au focus sur telephone */
  .compte-carte input.compte-code { font-size: var(--taille-chiffre); letter-spacing: 0.26em; }
  .compte-etapes li { overflow-wrap: anywhere; }
}
