/* activation.css — étape « Sécurisez votre accès » de la page de connexion (L34) : activation de la double
   authentification à la première connexion. Couleurs : variables de app.css (remplacées par la marque, L17). */
.connexion form[hidden], .activation[hidden], .act-qr[hidden], .act-ouvrir[hidden], .act-attente[hidden] { display: none; }
.connexion .boite.large { width: min(560px, 100%); }

.activation { display: flex; flex-direction: column; gap: 18px; }
.act-tete { display: flex; flex-direction: column; gap: 8px; }
.act-tete h2 { font-size: 22px; line-height: 1.2; }
.act-tete h2:focus { outline: none; }
.act-tete p { color: var(--txt2); }

.act-etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.act-etape {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; row-gap: 14px; align-items: start;
  padding: 16px; background: var(--s1); border: 1px solid var(--trait); border-radius: 12px;
}
.act-etape > .act-ajout, .act-etape > .act-form { grid-column: 1 / -1; }
.act-illu { position: relative; width: 56px; height: 56px; border-radius: 12px; background: var(--or-fond); display: grid; place-items: center; }
.act-illu svg { width: 40px; height: 40px; fill: none; stroke: var(--or); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.act-illu .act-trait { stroke: var(--or-vif); stroke-width: 1.6; opacity: .8; }
.act-num {
  position: absolute; top: -8px; left: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--or); color: var(--sur-or); font: 700 13px/24px var(--titre); text-align: center;
}
.act-texte { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.act-texte h3 { font-size: 16px; line-height: 1.3; }
.act-texte p { color: var(--txt2); font-size: 14.5px; }
.act-texte strong { color: var(--txt); font-weight: 500; }

/* Sur un écran tactile (téléphone, tablette), le QR se scanne mal : le bouton otpauth:// passe devant. */
.act-sur-tel { display: none; }
@media (pointer: coarse) {
  .act-sur-pc { display: none; }
  .act-sur-tel { display: block; }
  .act-ouvrir { order: -1; }
}

.act-ajout { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.act-attente { color: var(--txt3); font-size: 14px; }
.act-qr { margin: 0; padding: 12px; background: #fff; border-radius: 10px; line-height: 0; }
/* Plus spécifique que « .connexion .boite img » (logo, 44 px de haut) d'app.css. */
.connexion .boite .act-qr img { display: block; width: 208px; height: 208px; max-width: 100%; align-self: auto; image-rendering: pixelated; }
.connexion .act-form .err:empty { min-height: 0; }
.act-ouvrir { width: 100%; white-space: normal; text-align: center; }

.act-cle { width: 100%; border: 1px solid var(--trait2); border-radius: 10px; background: var(--s2); }
.act-cle summary {
  min-height: var(--cible); display: flex; align-items: center; padding: 10px 14px; cursor: pointer;
  color: var(--or-vif); font-weight: 500; list-style-position: inside;
}
.act-cle[open] summary { border-bottom: 1px solid var(--trait); }
.act-cle > p { padding: 12px 14px 0; color: var(--txt2); font-size: 14px; }
.act-cle > p.aide { padding-top: 6px; padding-bottom: 12px; min-height: 1.4em; color: var(--ok); }
.act-cle strong { color: var(--txt); font-weight: 500; overflow-wrap: anywhere; }
.act-secret { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 14px 0; }
.act-secret code {
  flex: 1 1 220px; padding: 10px 12px; background: var(--noir); border: 1px solid var(--trait2); border-radius: 8px;
  font: 600 17px/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--txt);
  word-spacing: .2em; overflow-wrap: anywhere; user-select: all;
}
.act-secret .btn { flex: 0 0 auto; min-width: 104px; }

.act-form { display: flex; flex-direction: column; gap: 12px; }
.connexion .act-form { padding: 0; background: none; border: 0; }
.act-form input { font: 600 22px/1.2 var(--corps); letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.act-form .btn { width: 100%; }
.act-retour { align-self: center; }

@media (min-width: 640px) {
  .act-etape { padding: 20px; }
}
