:root {
  --bg: #0c0a16;
  --panel: #15122a;
  --panel-2: #1c1838;
  --ink: #f2f0fa;
  --muted: #9d97b8;
  --indigo: #4b37e6;
  --indigo-bright: #7a5cff;
  --pink: #ff4fd8;
  --vert: #3ddc97;
  --line: rgba(233, 228, 251, 0.14);
  --rouge: #ff6b7a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 15px/1.5 "Manrope", -apple-system, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; }
h1, h2, h3 { font-family: "Space Grotesk", -apple-system, sans-serif; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.mono { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
a { color: var(--indigo-bright); }
button, input, select, textarea { font: inherit; color: inherit; }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 24px; background: rgba(12, 10, 22, 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { color: var(--muted); font-weight: 500; }
.who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }

main { max-width: 1240px; margin: 0 auto; padding: 32px 24px 80px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--indigo); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--indigo-bright); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: transparent; border-color: rgba(255, 107, 122, .4); color: var(--rouge); }
.btn-danger:hover { background: rgba(255, 107, 122, .1); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); outline: none; }
.input:focus { border-color: var(--indigo-bright); }
textarea.input { min-height: 110px; resize: vertical; }
.erreur { color: var(--rouge); font-size: 14px; min-height: 20px; margin: 4px 0 0; }

.connexion { max-width: 420px; margin: 8vh auto 0; }
.connexion h1 { font-size: 30px; margin-bottom: 6px; }
.connexion p.sous { color: var(--muted); margin: 0 0 24px; }
.connexion .btn { width: 100%; margin-top: 6px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
.tab:hover { color: var(--ink); }
.tab.actif { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab .compte { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 500; opacity: .75; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-ok { background: rgba(61, 220, 151, .14); color: var(--vert); }
.pill-todo { background: rgba(122, 92, 255, .16); color: #b9a8ff; }
.pill-off { background: rgba(157, 151, 184, .14); color: var(--muted); }

.vide { color: var(--muted); text-align: center; padding: 48px 16px; border: 1px dashed var(--line); border-radius: 16px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.num { text-align: center; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .topbar { padding: 10px 16px; }
  .brand span { display: none; }
  main { padding: 20px 16px 64px; }
  .card { padding: 18px; }
}
