/* ==========================================================================
   SWVERTEX : surveillance + administration cachee.
   Charge sur toutes les pages (y compris index.html). Etend style.css,
   ne redefinit aucun token. Aucune route/URL dediee : tout est injecte par
   assets/js/main.js au-dessus de la page courante.
   ========================================================================== */

/* ---------- Ecran "acces bloque" (remplace la page) ---------- */
.security-block {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--blue-ink);
  color: #fff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
.security-block__panel { max-width: 480px; text-align: center; }
.security-block__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}
.security-block__panel h1 { font-size: 1.6rem; line-height: 1.3; margin-bottom: 14px; }
.security-block__desc { color: rgba(255, 255, 255, 0.75); line-height: 1.6; margin-bottom: 24px; }

/* ---------- Modale admin cachee ---------- */
.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.admin-overlay.is-open { opacity: 1; pointer-events: auto; }

.admin-overlay__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(2px);
}

.admin-overlay__panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.97);
  width: min(92vw, 420px);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--blue-ink);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 30px 26px 26px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease);
}
.admin-overlay.is-open .admin-overlay__panel { transform: translate(-50%, -50%) scale(1); }

.admin-overlay__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.admin-overlay__close:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }

.admin-overlay__title { font-size: 1.1rem; margin: 0 0 18px; padding-right: 20px; }
.admin-overlay__status { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.admin-overlay__error {
  color: #ff9a9a;
  font-size: 0.85rem;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: rgba(255, 60, 60, 0.12);
  border-radius: var(--radius-s);
}

.admin-login label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}
.admin-login input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-s);
}
.admin-login input:focus { outline: none; border-color: var(--blue); }
.admin-login button { width: 100%; justify-content: center; margin-top: 4px; }

.admin-overlay__body section { margin-bottom: 20px; }
.admin-overlay__body h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 10px;
}
.admin-dashboard__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-dashboard__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-dashboard__muted { color: rgba(255, 255, 255, 0.55); font-size: 0.78rem; }
.admin-overlay__body [data-admin-logout] { width: 100%; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .admin-overlay, .admin-overlay__panel { transition: none; }
}
