/* Seconde authentification : connexion et gestion personnelle. Les couleurs
   suivent la page qui l'accueille (fond sombre). */
.s2 { --s2-ligne: rgb(255 255 255 / 16%); --s2-fond: rgb(255 255 255 / 5%); --s2-vert: var(--accent, #2fa36b); --s2-rouge: #ff8a80; color: inherit; line-height: 1.45; text-align: left; }
.s2 [hidden] { display: none !important; }
.s2 h2 { margin: 0 0 .35rem; font-size: 1.25rem; }
.s2 p { margin: 0 0 .8rem; }
.s2-aide, .s2-liste span { color: rgb(255 255 255 / 72%); font-size: .95rem; }
.s2 label { display: block; margin: 0 0 .9rem; font-weight: 500; font-size: .93rem; }
.s2 input { display: block; box-sizing: border-box; width: 100%; max-width: 24rem; margin-top: .35rem; padding: .6rem .7rem; font: inherit; color: inherit; background: rgb(0 0 0 / 25%); border: 1.5px solid rgb(255 255 255 / 34%); border-radius: 8px; }
.s2 .s2-code { font-size: 1.15rem; letter-spacing: .08em; }
.s2 button, .s2 .s2-bouton { display: inline-flex; align-items: center; width: auto; min-height: 44px; box-sizing: border-box; padding: .5rem 1rem; margin: 0; font: inherit; font-weight: 600; text-align: left; text-decoration: none; text-transform: none; letter-spacing: normal; color: inherit; background: transparent; border: 1.5px solid rgb(255 255 255 / 34%); border-radius: 8px; cursor: pointer; }
.s2 button:hover, .s2 .s2-bouton:hover { background: rgb(255 255 255 / 9%); }
.s2 button.s2-fort { color: #fff; background: #1f7a4d; border-color: #1f7a4d; }
.s2 button.s2-fort:hover { background: #186340; }
.s2 button.s2-lien { padding: .4rem .5rem; border-color: transparent; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.s2 button.s2-danger { color: var(--s2-rouge); }
.s2 button:disabled { opacity: .55; cursor: default; }
.s2 :is(button, input, a, pre):focus-visible { outline: 2px solid #7fd6a8; outline-offset: 2px; }
.s2 a { color: inherit; }
.s2-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.s2 button.s2-tuile { display: block; width: 100%; max-width: 32rem; margin: 0 0 .7rem; padding: .9rem 1rem; background: var(--s2-fond); }
.s2-tuile b, .s2-tuile span { display: block; }
.s2-tuile span { margin-top: .2rem; font-weight: 400; font-size: .92rem; color: rgb(255 255 255 / 72%); }
.s2-autres { margin-top: 1.2rem; padding-top: .9rem; border-top: 1px solid var(--s2-ligne); }
.s2-autres p { margin: 0; font-size: .9rem; color: rgb(255 255 255 / 72%); }
.s2-sortie { margin: .8rem 0 0 !important; }
.s2-qr { display: block; width: 200px; height: 200px; margin: 0 0 .9rem; padding: 10px; background: #fff; border-radius: 8px; }
.s2-secret { font-size: 1rem; word-break: break-word; }
.s2-codes { margin: 0 0 .9rem; padding: .9rem 1rem; max-width: 24rem; font: 1.05rem/1.7 ui-monospace, monospace; background: rgb(0 0 0 / 28%); border: 1px solid var(--s2-ligne); border-radius: 8px; overflow-x: auto; user-select: all; }
.s2-erreur { padding: .6rem .8rem; color: #ffd9d5; background: rgb(224 60 49 / 22%); border-left: 3px solid #e03c31; border-radius: 4px; }
.s2-avis { padding: .6rem .8rem; color: #ffe9bf; background: rgb(240 170 40 / 16%); border-left: 3px solid #f0aa28; border-radius: 4px; }
.s2-info { padding: .6rem .8rem; color: #d3f5e2; background: rgb(47 163 107 / 20%); border-left: 3px solid #2fa36b; border-radius: 4px; }
.s2-gestion > p { max-width: 46rem; }
.s2-gestion > section, .s2-boite { max-width: 46rem; margin: 0 0 1.2rem; padding: 1.2rem 1.3rem; background: var(--s2-fond); border: 1.5px solid var(--s2-ligne); border-radius: 14px; }
.s2-liste { list-style: none; margin: 0 0 1rem; padding: 0; }
.s2-liste li { padding: .8rem 0; border-top: 1px solid var(--s2-ligne); }
.s2-liste b, .s2-liste span { display: block; }
.s2-liste .s2-etat { display: inline-block; margin: .3rem 0; padding: .1rem .55rem; font-size: .82rem; border: 1px solid var(--s2-ligne); border-radius: 999px; }
.s2-liste .s2-oui { color: #9be3bf; border-color: #2fa36b; }
.s2-eteint b { opacity: .6; }
.s2-dialogue { width: min(30rem, calc(100vw - 2rem)); padding: 1.3rem; color: #fff; background: #2a2f34; border: 1.5px solid rgb(255 255 255 / 16%); border-radius: 14px; }
.s2-dialogue::backdrop { background: rgb(0 0 0 / 60%); }
.s2-bientot { display: inline-block; padding: .05rem .55rem; font-size: .78rem; font-weight: 600; letter-spacing: normal; text-transform: none; color: #ffe9bf; border: 1px solid #f0aa28; border-radius: 999px; }
.s2 .s2-tuile .s2-bientot { display: inline-block; margin: 0; color: #ffe9bf; font-size: .78rem; font-weight: 600; }
.s2 div.s2-tuile { box-sizing: border-box; max-width: 32rem; margin: 0 0 .7rem; padding: .9rem 1rem; border: 1.5px dashed rgb(255 255 255 / 34%); border-radius: 8px; }
.s2 fieldset.s2-inactif { margin: 0; padding: 0; border: 0; }
.s2 fieldset.s2-inactif :is(input, button) { opacity: .55; cursor: not-allowed; }
.s2 .s2-absent { margin: .5rem 0 0; padding: 0 .5rem; }
/* Vide : l'état se lit sur le serveur, un rond tourne en attendant. */
.s2:empty::before { content: ""; display: block; width: 38px; height: 38px; margin: 1.5rem auto; border: 3px solid var(--s2-ligne); border-top-color: var(--s2-vert); border-radius: 50%; animation: s2-tourne .8s linear infinite; }
@keyframes s2-tourne { to { transform: rotate(1turn); } }
