:root {
  --bg: #0f0d10; --panel: #17141a; --line: #2a252e; --text: #ece7e1; --muted: #a49c96;
  --accent: #e0442f; --pos: #4fbf7a; --neg: #e0442f; --probable: #4fbf7a; --possible: #c9b84c;
  --neutre: #8a8f99; --sans: #5d6068; --improbable: #d48a3c; --exclu: #b3382a;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f6f2ee; --panel: #ffffff; --line: #e2dbd4; --text: #1d1a1c; --muted: #6a625d; --sans: #9a9490; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
header, main, footer { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
header { padding-top: 40px; }
.kicker { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin: 0 0 8px; }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.01em; }
h2 { font-size: 22px; margin: 40px 0 8px; }
.lead { color: var(--muted); max-width: 70ch; margin: 0 0 20px; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 8px; }
.stats li { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--sans); border-radius: 6px; padding: 6px 12px; font-size: 14px; }
.stats li b { font-size: 18px; margin-right: 4px; }
.tier-probable { --tier: var(--probable); } .tier-possible { --tier: var(--possible); } .tier-neutre { --tier: var(--neutre); }
.tier-sans-donnee { --tier: var(--sans); } .tier-improbable { --tier: var(--improbable); } .tier-exclu { --tier: var(--exclu); }
.stats li[class^="tier-"] { border-left-color: var(--tier); }
.festivals { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fest { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; display: grid; grid-template-columns: 170px 1fr auto auto; gap: 4px 14px; align-items: baseline; }
.fest .dates { color: var(--muted); font-variant-numeric: tabular-nums; }
.fest .name { font-weight: 600; }
.fest .place { color: var(--muted); font-size: 14px; }
.fest .rel { font-size: 13px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.fest.clash .rel { color: #fff; background: var(--exclu); border-color: var(--exclu); }
.fest.neighbour .rel { color: #111; background: var(--probable); border-color: var(--probable); }
.fest .count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.fest .note { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
th, td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; border-top: 0; }
td.band { font-weight: 600; white-space: nowrap; }
td.score { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
td.tier span { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; color: #111; background: var(--tier); white-space: nowrap; }
tr.tier-sans-donnee td.tier span, tr.tier-exclu td.tier span, tr.tier-neutre td.tier span { color: #fff; }
td.signals ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.sig { font-size: 14px; padding-left: 10px; border-left: 3px solid var(--line); }
.sig.pos { border-left-color: var(--pos); } .sig.neg { border-left-color: var(--neg); } .sig.none { color: var(--muted); font-style: italic; }
.sig b { font-variant-numeric: tabular-nums; margin-right: 4px; }
.notes { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.sources { margin: 4px 0 0; font-size: 13px; }
.sources a { color: var(--muted); }
.weights { width: auto; min-width: 60%; }
.weights td:last-child { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.hyp { border-left: 3px solid var(--accent); padding-left: 12px; color: var(--muted); }
code { background: var(--panel); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; font-size: 90%; }
a { color: var(--text); }
footer { margin: 60px auto 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 720px) {
  .fest { grid-template-columns: 1fr; }
  .fest .rel, .fest .count { justify-self: start; }
  /* le tableau devient une liste de cartes */
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { border-top: 1px solid var(--line); padding: 10px 12px; }
  tr:first-child { border-top: 0; }
  td { border: 0; padding: 2px 0; }
  td.band { font-size: 17px; white-space: normal; }
  td.score, td.tier { display: inline-block; margin: 2px 10px 6px 0; }
}
