/* Vigie — CSS du socle (souverain, servi en local, AUCUN CDN US — specs/02 §8).
 * Placeholder minimal écrit à la main : la page rend sans build npm.
 * Régénéré par `npm run build:css` (Tailwind) à partir de input.css quand le front grandit. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.vigie-body {
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.vigie-main {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.vigie-card {
  width: 100%;
  max-width: 36rem;
  background: #ffffff;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
}
.vigie-title { font-size: 1.875rem; font-weight: 600; color: #1d4ed8; margin: 0; }
.vigie-sub { margin: 0.5rem 0 0; color: #475569; }
.vigie-meta { margin: 1rem 0 0; font-size: 0.875rem; color: #64748b; }
.vigie-meta a { color: #1d4ed8; }

/* ---- Back-office S1 (auth multi-tenant + RBAC) ---- */
.vg-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.5rem; background: #ffffff; border-bottom: 1px solid #e2e8f0;
}
.vg-brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; color: #1d4ed8; text-decoration: none; font-size: 1.15rem; }
.vg-logo { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #3b82f6, #1e40af); display: inline-block; }
.vg-nav-right { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.vg-email { color: #475569; font-size: 0.85rem; }
.vg-chip { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.8rem; }
.vg-badge { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; border-radius: 999px; padding: 0.12rem 0.55rem; font-size: 0.72rem; font-weight: 600; }

.vg-main { max-width: 980px; margin: 0 auto; padding: 1.75rem 1.5rem; width: 100%; }
.vg-center { display: flex; min-height: 70vh; align-items: center; justify-content: center; }
.vg-page { width: 100%; }
.vg-narrow { max-width: 540px; }
.vg-page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.vg-h1 { font-size: 1.6rem; font-weight: 680; color: #0f172a; margin: 0 0 1rem; }
.vg-h2 { font-size: 1.05rem; font-weight: 640; color: #0f172a; margin: 0 0 0.6rem; }
.vg-sub { color: #475569; margin: 0 0 1rem; }

.vg-panel { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 0.9rem; padding: 1.25rem 1.4rem; margin-bottom: 1.5rem; }
.vg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.vg-tile { display: block; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 0.9rem; padding: 1.25rem; text-decoration: none; color: #0f172a; transition: border-color .15s, transform .15s; }
.vg-tile:hover { border-color: #93c5fd; transform: translateY(-2px); }
.vg-tile h3 { margin: 0 0 0.35rem; color: #1d4ed8; font-size: 1.05rem; }
.vg-tile p { margin: 0; color: #64748b; font-size: 0.88rem; }

.vg-form { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1rem; }
.vg-inline-form { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.vg-label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: #334155; font-weight: 600; }
.vg-opt { color: #94a3b8; font-weight: 400; }
.vg-input { padding: 0.55rem 0.7rem; border: 1px solid #cbd5e1; border-radius: 0.55rem; font-size: 0.95rem; font-family: inherit; background: #fff; }
.vg-input:focus { outline: 2px solid #93c5fd; outline-offset: 0; border-color: #3b82f6; }
.vg-form-actions { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.3rem; }
.vg-inline { display: inline; margin: 0; }

.vg-btn { background: #1d4ed8; color: #fff; border: none; border-radius: 0.55rem; padding: 0.55rem 1rem; font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; font-family: inherit; }
.vg-btn:hover { background: #1e40af; }
.vg-btn-ghost { background: transparent; color: #475569; border: 1px solid #cbd5e1; border-radius: 0.55rem; padding: 0.5rem 0.85rem; font-size: 0.85rem; cursor: pointer; text-decoration: none; display: inline-block; font-family: inherit; }
.vg-btn-ghost:hover { border-color: #94a3b8; color: #0f172a; }

.vg-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2e8f0; border-radius: 0.7rem; overflow: hidden; }
.vg-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; padding: 0.65rem 0.85rem; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.vg-table td { padding: 0.7rem 0.85rem; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; color: #1e293b; }
.vg-actions { text-align: right; }

.vg-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 0.55rem; padding: 0.6rem 0.85rem; font-size: 0.88rem; }
.vg-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; border-radius: 0.55rem; padding: 0.6rem 0.85rem; font-size: 0.9rem; }
.vg-hint { color: #64748b; font-size: 0.82rem; }
.vg-ok { color: #15803d; font-weight: 600; font-size: 0.82rem; }
.vg-muted { color: #94a3b8; font-size: 0.82rem; }
.vg-foot { margin-top: 1.75rem; color: #94a3b8; font-size: 0.82rem; }
.vg-foot a { color: #1d4ed8; }
.vg-secret { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 0.7rem; padding: 1rem 1.1rem; margin: 1rem 0; }
.vg-code { display: block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; color: #0f172a; background: #fff; border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 0.6rem 0.8rem; margin-top: 0.4rem; word-break: break-all; }
.vg-code-sm { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.8rem; color: #475569; }

/* ---- Registre usagers (S2) ---- */
.vg-narrow-lg { max-width: 760px; }
.vg-filters { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.75rem; }
.vg-filters .vg-input { width: auto; }
.vg-filters input[type="search"] { min-width: 240px; }
.vg-check { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: #334155; }
.vg-count { color: #64748b; font-size: 0.85rem; margin: 0 0 0.75rem; }
.vg-pager { display: flex; gap: 0.8rem; align-items: center; margin-top: 1rem; }
.vg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 640px) { .vg-grid2 { grid-template-columns: 1fr; } }
.vg-h3 { font-size: 0.95rem; font-weight: 640; color: #0f172a; margin: 0.5rem 0 0.6rem; }
.vg-form-compact { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }
.vg-dl { display: grid; grid-template-columns: 200px 1fr; gap: 0.4rem 1rem; margin: 0; font-size: 0.92rem; }
.vg-dl dt { color: #64748b; }
.vg-dl dd { margin: 0; color: #1e293b; }
@media (max-width: 560px) { .vg-dl { grid-template-columns: 1fr; gap: 0.1rem 0; } .vg-dl dd { margin-bottom: 0.5rem; } }
.vg-danger { border-color: #fecaca; }
.vg-btn-danger { background: #dc2626; color: #fff; border: none; border-radius: 0.55rem; padding: 0.55rem 1rem; font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.vg-btn-danger:hover { background: #b91c1c; }
textarea.vg-input { resize: vertical; font-family: inherit; }

/* ---- Assistant d'import (S3) ---- */
.vg-stats-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 1.25rem; }
.vg-stat-pill { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.88rem; font-weight: 600; }
.vg-stat-pill.vg-ok { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.vg-req { font-size: 0.7rem; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 999px; padding: 0.05rem 0.45rem; font-weight: 600; }
.vg-reject-list { margin: 0; padding-left: 1.1rem; font-size: 0.88rem; color: #334155; }
.vg-reject-list li { margin: 0.25rem 0; }
.vg-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
input[type="file"].vg-input { padding: 0.4rem; background: #fff; }
