/* Hunting — thème sombre, sans dépendance externe. */
:root {
  --bg: #0a0e13;
  --panel: #111820;
  --panel-2: #151e28;
  --line: #1e2a36;
  --text: #e7edf4;
  --muted: #8396a9;
  --accent: #19e3c1;
  --accent-ink: #04201b;
  --gold: #f5c542;
  --silver: #9fb6cc;
  --bronze: #d9915b;
  --up: #3ddc97;
  --down: #ff6b6b;
  --warn: #ffb454;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding-top: 20px; padding-bottom: 40px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: .2em 0 .3em; }
h2 { font-size: 1.05rem; margin: 0; }
h3 { font-size: 1rem; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── En-tête ─────────────────────────────────────────────── */
.top { background: #0d131a; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top__in { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 800; letter-spacing: .14em; font-size: 1rem; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a { color: var(--muted); padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.nav a:hover { color: var(--text); text-decoration: none; background: var(--panel); }
.nav a.is-on { color: var(--accent-ink); background: var(--accent); }
.search input {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 7px 14px; width: 210px; font: inherit;
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.banner { background: linear-gradient(90deg, #0f1a22, #0d141b); border-top: 1px solid var(--line); font-size: .9rem; }
.banner__in { display: flex; align-items: center; gap: 10px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.banner__sp { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .8rem; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.8s infinite; }
.pill--live { color: var(--up); background: rgba(61, 220, 151, .12); }
.pill--warn { color: var(--warn); background: rgba(255, 180, 84, .14); }
.pill--off { color: var(--muted); background: rgba(131, 150, 169, .15); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pill i { animation: none; } }

/* ── Cartes, grilles ─────────────────────────────────────── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card__h { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 10px; }
.cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px; align-items: start; }
.cols--map { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.section { margin: 28px 0 12px; font-size: 1.15rem; }
.section small { font-weight: 400; font-size: .85rem; }
.note { margin: 0; padding: 10px 16px 14px; color: var(--muted); font-size: .85rem; }
.empty { color: var(--muted); padding: 14px 16px; list-style: none; }

/* ── Tableaux ────────────────────────────────────────────── */
.tblwrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 8px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.tbl td { padding: 8px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; width: 1%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tr.is-top td { background: rgba(25, 227, 193, .045); }
.tbl .is-late { color: var(--warn); font-weight: 700; }

.pos { display: inline-block; min-width: 26px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); }
.pos--1 { color: var(--gold); }
.pos--2 { color: var(--silver); }
.pos--3 { color: var(--bronze); }

.player { color: var(--text); font-weight: 600; }
.player:hover { color: var(--accent); }
.ptag { margin-right: .4em; font-weight: 700; opacity: .95; }
.flag { margin-left: .5em; font-size: .68rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; text-decoration: none; cursor: help; }
.plist { list-style: none; margin: 0; padding: 8px 16px; }
.plist li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.plist li:last-child { border-bottom: 0; }
.playerh .flag { font-size: .8rem; vertical-align: middle; }

/* ── Fil d'événements ────────────────────────────────────── */
.events { list-style: none; margin: 0; padding: 0; }
.event { padding: 11px 16px; border-top: 1px solid var(--line); border-left: 3px solid var(--accent); }
.event--general { border-left-color: var(--gold); }
.event:first-child { border-top: 0; }
.event p { margin: 3px 0 0; }
.event__head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .85rem; }
.event__head time { margin-left: auto; }
.event__map { color: var(--muted); }
.chip { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; font-weight: 700; font-size: .78rem; }
.chip--general { color: var(--gold); border-color: rgba(245, 197, 66, .4); }

/* ── Cartes de map ───────────────────────────────────────── */
.maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.mapcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.mapcard__img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--panel-2); }
.mapcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mapcard__n { position: absolute; left: 10px; top: 10px; background: rgba(10, 14, 19, .78); backdrop-filter: blur(4px); color: var(--accent); font-weight: 800; padding: 1px 9px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.mapcard__b { padding: 12px 14px 8px; }
.mapcard__b h3 a { color: var(--text); }
.mapcard__b h3 a:hover { color: var(--accent); text-decoration: none; }
.top5 { list-style: none; margin: 8px 0 0; padding: 0; }
.top5 li { display: flex; align-items: baseline; gap: 6px; padding: 4px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.top5 li.empty { padding: 8px 0; }
.top5__p { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top5 time { font-size: .78rem; white-space: nowrap; }

.maphead { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.maphead img { width: min(100%, 300px); aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.maphead h1 { margin-top: .1em; }
.mapnav { display: flex; gap: 14px; margin: 8px 0 0; }

.tabs { display: flex; gap: 6px; margin: 10px 0 14px; flex-wrap: wrap; }
.tabs a { color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-weight: 600; }
.tabs a.is-on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.tabs a:hover { text-decoration: none; }
.pager { display: flex; justify-content: space-between; margin-top: 14px; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; padding: 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ── Pied de page et pages légales ───────────────────────── */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.foot__in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.foot__links { display: flex; gap: 16px; }
.legal { padding: 8px 24px 24px; max-width: 820px; }
.legal h2 { margin: 1.6em 0 .4em; color: var(--accent); }
.legal ul { padding-left: 1.2em; }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .top { position: static; }
  .cols, .cols--map { grid-template-columns: minmax(0, 1fr); }
  .search { width: 100%; }
  .search input { width: 100%; }
  .nav { order: 3; flex-basis: 100%; }
  .banner__sp { display: none; }
}
@media (max-width: 520px) {
  .tbl th, .tbl td { padding: 8px 10px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}
