/* WP Keeper : jetons de design, mise en page générale, thème sombre automatique */
:root {
  --bg: #f3f5f8; --surface: #ffffff; --surface-2: #f8fafc; --text: #16202b; --muted: #66707d; --border: #e2e6eb;
  --primary: #2563eb; --primary-hover: #1e4fd1; --primary-soft: #e8efff;
  --ok: #15803d; --ok-bg: #dcfce7; --warn: #b45309; --warn-bg: #fef3c7; --crit: #b91c1c; --crit-bg: #fee2e2; --info: #1d4ed8; --info-bg: #dbeafe; --gray-bg: #eceff3;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.08);
  --sidebar-w: 236px; --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1218; --surface: #161b23; --surface-2: #1c222c; --text: #e7eaef; --muted: #98a2b0; --border: #28303c; --primary: #3b82f6; --primary-hover: #2f6fe0; --primary-soft: #1a2740;
    --ok: #4ade80; --ok-bg: #12331f; --warn: #fbbf24; --warn-bg: #3a2a0c; --crit: #f87171; --crit-bg: #3d1515; --info: #93c5fd; --info-bg: #172a4a; --gray-bg: #222a35; --shadow: none; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); }
a { color: var(--primary); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; } h1 { font-size: 20px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
code { font-family: var(--mono); font-size: 12.5px; background: var(--gray-bg); padding: 1px 5px; border-radius: 4px; }
.boot { padding: 40px; color: var(--muted); text-align: center; }

/* Mise en page */
.layout { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 18px 14px; z-index: 30; transition: transform .2s; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; padding: 4px 8px 18px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 8px; color: var(--text); font-weight: 500; }
.sidebar nav a:hover { background: var(--surface-2); text-decoration: none; }
.sidebar nav a.active { background: var(--primary-soft); color: var(--primary); }
.sidebar nav .sep { margin: 10px 12px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.sidebar-foot .who { color: var(--muted); padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar h1 { flex: 1; }
.burger { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 36px; height: 36px; font-size: 18px; cursor: pointer; color: var(--text); }
.content { padding: 24px 28px 48px; max-width: 1400px; width: 100%; }
.backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 25; }
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); } .sidebar.open { transform: none; } .backdrop.open { display: block; }
  .main { margin-left: 0; } .burger { display: inline-block; } .content { padding: 16px; } .topbar { padding: 12px 16px; }
}
/* Page de connexion */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.login-card .brand { justify-content: center; padding-bottom: 8px; }
.login-card p.lead { text-align: center; color: var(--muted); margin: 0 0 18px; }
