:root {
  --bg: #f6f7f9;
  --card: #fff;
  --text: #14171f;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #1a56db;
  --good: #0b7a3b;
  --warn: #b45309;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --card: #171a21;
    --text: #e8eaed;
    --muted: #9aa1ac;
    --line: #262b34;
    --accent: #6b9bff;
    --good: #4ade80;
    --warn: #fbbf24;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 24px 16px 64px;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

header, nav, .tab { max-width: 1100px; margin: 0 auto; }

h1 { font-size: 22px; margin: 0 0 4px; }
.muted { color: var(--muted); font-size: 13px; margin: 0; }

nav {
  display: flex;
  gap: 4px;
  margin: 20px auto 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

nav button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

nav button.active { color: var(--text); border-bottom-color: var(--accent); }

.tab { display: none; }
.tab.active { display: block; }

.note {
  font-size: 13px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 0 16px;
}

.filters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 14px;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.filters label.check {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
}

.filters select {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
  font-size: 13px;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  white-space: nowrap;
}

th { font-size: 12px; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.wide { white-space: normal; min-width: 280px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.sub { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.hot { color: var(--good); font-weight: 600; }
.verdict-creneau-libre { color: var(--good); font-weight: 600; }
.verdict-deja-porteur-fr { color: var(--warn); font-weight: 600; }
.verdict-suivre, .verdict-faible { color: var(--muted); }

.empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 14px;
}
