@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --card: #0e0e0e;
  --line: #27272a;
  --text: #fafafa;
  --muted: #a1a1aa;
  --faint: #71717a;
  --accent: #38ba6a;
  --accent-hover: #4ade80;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }

.page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 56px 56px 44px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.top-main { display: flex; flex-direction: column; gap: 12px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { height: 34px; width: auto; display: block; }
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 { font-size: 46px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.top-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.as-of { color: var(--text); font-weight: 500; }

.cta {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.cta:hover { background: rgba(56, 186, 106, 0.12); }

.legend { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; padding: 0; list-style: none; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 999px; display: block; background: var(--status); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.quarter { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.quarter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 14px;
  border-bottom: 2px solid var(--line);
}
.quarter.is-current .quarter-head { border-bottom-color: var(--accent); }
.quarter-head h2 { font-size: 24px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.quarter-count {
  font-family: "Geist Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--status);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  scroll-margin-top: 24px;
}
.card:target { box-shadow: 0 0 0 1px var(--accent); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-title { font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--badge-text);
  border: 1px solid var(--badge-line);
  background: var(--badge-bg);
  border-radius: 999px;
  padding: 3px 9px;
}
.card-desc { font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.vote { align-self: flex-start; font-size: 12.5px; font-weight: 500; }

.status-livre { --status: #4ade80; --badge-text: #4ade80; --badge-line: #166534; --badge-bg: #052e16; }
.status-en-cours { --status: #fbbf24; --badge-text: #fbbf24; --badge-line: #78350f; --badge-bg: #251804; }
.status-specifie { --status: #5eead4; --badge-text: #5eead4; --badge-line: #115e59; --badge-bg: #042f2e; }
.status-pas-commence { --status: #52525b; --badge-text: #a1a1aa; --badge-line: #3f3f46; --badge-bg: #18181b; }
.status-nice-to-have { --status: #27272a; --badge-text: #71717a; --badge-line: #3f3f46; --badge-bg: #18181b; }
.card.status-nice-to-have { border: 1px dashed var(--line); }
.card.status-nice-to-have .card-title { color: var(--muted); }
.card.status-nice-to-have .card-desc { color: var(--faint); }

.bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.bottom .cta { margin-top: 0; }

@media (max-width: 1099px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .page { padding: 28px 16px 32px; gap: 28px; }
  .top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .top-meta { align-items: flex-start; text-align: left; }
  h1 { font-size: 32px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
