/* Jarvis Card, maquette : écran de code secret qui protège chaque espace. */
html.acces-verrouille body > *:not(.acces):not(.demo-bar) { visibility: hidden; }
.acces {
  position: fixed; inset: var(--acces-haut, 0px) 0 0 0; z-index: 60; overflow-y: auto;
  display: grid; place-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 70% at 50% 0%, var(--ecole-soft), transparent 70%), var(--paper);
}
.acces-boite { width: min(380px, 100%); display: grid; justify-items: center; gap: 14px; text-align: center; }
.acces-ecole { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.acces-ecole img { width: 34px; height: 34px; border-radius: 9px; }
.acces-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 0 0 3px var(--ecole); background: var(--surface-3); }
.acces-initiales { display: grid; place-items: center; font-size: 26px; font-weight: 800; color: var(--on-ecole); background: var(--ecole); }
.acces h1 { font-size: 22px; }
.acces .acces-sous { color: var(--muted); font-size: 14.5px; margin-top: -8px; }
.acces-consigne { font-weight: 600; font-size: 16px; min-height: 24px; }
.acces-points { display: flex; gap: 16px; justify-content: center; padding: 6px 0; }
.acces-points span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.acces-points span.plein { background: var(--ecole); border-color: var(--ecole); transform: scale(1.08); }
.acces-points.erreur { animation: secoue 380ms; }
.acces-points.erreur span { border-color: var(--danger); }
@keyframes secoue { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.acces-msg { min-height: 40px; font-size: 14px; font-weight: 500; color: var(--danger); max-width: 32ch; }
.acces-msg.ok { color: var(--ok); }
.acces-clavier { display: grid; grid-template-columns: repeat(3, 76px); gap: 12px 22px; justify-content: center; }
.acces-clavier button {
  width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  font-size: 28px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums;
  transition: background var(--t-fast), transform var(--t-fast);
}
.acces-clavier button:active { transform: scale(.94); background: var(--ecole-soft); }
.acces-clavier button.texte { border: 0; background: none; font-size: 13.5px; font-weight: 600; color: var(--ecole-lite); }
.acces-clavier button.texte .ic { width: 26px; height: 26px; color: var(--ink-2); }
.acces-clavier button[disabled] { opacity: .35; }
.acces-aide { font-size: 13px; color: var(--muted); max-width: 34ch; }
.acces-demo { font-size: 13px; padding: 8px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.acces-btn-code { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 25; box-shadow: var(--shadow-2); }
@media (max-height: 700px) {
  .acces-clavier { grid-template-columns: repeat(3, 64px); gap: 10px 18px; }
  .acces-clavier button { width: 64px; height: 64px; font-size: 24px; }
  .acces-photo { width: 60px; height: 60px; }
}
