/* cabinet-app : écrans de la coquille (connexion, invitation, mot de passe, réglages, hors ligne).
   Même grammaire que l'appli validée : ses variables de couleur, ses boutons de 48 px, ses listes. */
[hidden] { display: none !important; }
.porte { max-width: 420px; margin: 0 auto; min-height: 100%; padding: 24px 16px 32px; display: flex; flex-direction: column; gap: 12px; background: var(--page); }
.porte h1 { margin: 8px 0 0; font-size: 22px; font-weight: 650; }
.porte h2 { margin: 12px 0 0; font-size: 18px; }
.porte p { margin: 0; }
.porte .attente { color: var(--muted); margin-top: 40vh; text-align: center; }
.porte form { display: flex; flex-direction: column; gap: 12px; }
.porte label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.porte input { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--muted); border-radius: 12px; min-height: 48px; padding: 0 12px; }
.porte .btn { width: 100%; }
.porte .btn.princ { background: var(--tenu); border-color: var(--tenu); color: var(--page); font-weight: 650; }
.porte .lien { background: none; border: 0; color: var(--fg); text-decoration: underline; min-height: 48px; padding: 0; cursor: pointer; align-self: flex-start; }
.porte .msg { padding: 10px 12px; border-radius: 12px; background: var(--alerte-bg); color: var(--alerte); }
.porte .msg.bon { background: var(--soft); color: var(--fg); }
.porte .note, .porte small { color: var(--muted); font-size: 15px; }
.porte ul.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.porte ul.liste li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.porte ul.liste li span:last-child { text-align: right; overflow-wrap: anywhere; }
.porte .tete { display: flex; align-items: center; gap: 8px; margin: -16px -8px 0; }
.porte .tete h1 { margin: 0; flex: 1; }
.porte .tete .btn { width: auto; }
.porte .lienc { overflow-wrap: anywhere; background: var(--soft); padding: 8px; border-radius: 8px; font-size: 15px; }
/* bandeau « chiffres anciens » : n'apparaît que si les chiffres ont plus de 36 heures, ou s'ils viennent de la copie hors ligne */
.vieux { margin: 0 16px 4px; padding: 6px 12px; border-radius: 12px; background: var(--alerte-bg); color: var(--alerte); font-size: 15px; }
.plusbas { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.plusbas .btn { width: 100%; }

/* Le titre reçoit le focus à l'ouverture pour les lecteurs d'écran ; il ne se touche pas : pas d'anneau qui le ferait croire. */
#porte h1[tabindex="-1"]:focus { outline: none; }
