/* Plikku admin · palette « Nuit des lanternes » */
:root {
  --ink: #14161f; --ink-2: #1c1f2b; --ink-3: #272b3a; --line: #343a4d;
  --cream: #f4ead8; --cream-2: #c9bfae; --muted: #8e8a83;
  --vermilion: #d8432f; --gold: #e2b24a; --jade: #4fa587; --sky: #5b8fd6;
  --radius: 10px; --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--cream); font: 14px/1.5 var(--font); }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; } h2 { font-size: 16px; margin: 0 0 12px; color: var(--cream-2); }
small, .muted { color: var(--muted); }

.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--ink-2); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: .5px; display: flex; align-items: center; gap: 8px; }
.brand .mark { color: var(--vermilion); text-shadow: 0 0 12px var(--vermilion); }
.brand.big { font-size: 26px; justify-content: center; }
.brand small { font-weight: 400; color: var(--muted); font-size: 12px; }
.env { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--ink-3); color: var(--gold); }
.env.prod { background: var(--vermilion); color: #fff; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 12px 8px 4px; }
.nav-item { display: block; padding: 6px 10px; border-radius: 8px; color: var(--cream-2); }
.nav-item:hover { background: var(--ink-3); text-decoration: none; }
.nav-item.active { background: var(--ink-3); color: var(--cream); box-shadow: inset 3px 0 0 var(--vermilion); }
.nav-item.soon { opacity: .4; pointer-events: none; }
.nav-item.soon::after { content: " · bientôt"; font-size: 11px; }
.me { border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; color: var(--cream-2); display: flex; flex-direction: column; gap: 6px; }

.content { padding: 24px 32px; max-width: 1400px; width: 100%; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; margin-bottom: 18px; }
.stats { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.two { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.stat, .panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.panel { margin-bottom: 18px; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-size: 24px; font-weight: 700; }
.stat-hint { font-size: 11px; color: var(--muted); }
.stat.good .stat-value { color: var(--jade); } .stat.bad .stat-value { color: var(--vermilion); } .stat.warn .stat-value { color: var(--gold); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); padding: 6px 8px; white-space: nowrap; }
.table td { border-bottom: 1px solid var(--ink-3); padding: 6px 8px; vertical-align: top; }
.table tr.clickable { cursor: pointer; } .table tr.clickable:hover td { background: var(--ink-3); }
.table td.missing { color: var(--vermilion); font-weight: 700; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.badge.ok { background: rgba(79,165,135,.18); color: var(--jade); }
.badge.warn { background: rgba(226,178,74,.18); color: var(--gold); }
.badge.down { background: rgba(216,67,47,.2); color: var(--vermilion); }
.badge.off { background: var(--ink-3); color: var(--muted); }

.error { background: rgba(216,67,47,.15); border: 1px solid var(--vermilion); color: #ffb4a8; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; }
.ok-box { background: rgba(79,165,135,.15); border: 1px solid var(--jade); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; }

.btn { font: inherit; background: var(--ink-3); color: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px; cursor: pointer; }
.btn:hover { border-color: var(--cream-2); }
.btn.small { padding: 2px 10px; font-size: 12px; }
.btn.primary { background: var(--vermilion); border-color: var(--vermilion); color: #fff; }
.btn.danger { background: transparent; border-color: var(--vermilion); color: var(--vermilion); }
.btn.link { background: none; border: none; color: var(--gold); padding: 0; }
input, select, textarea { font: inherit; background: var(--ink); color: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.search { display: flex; gap: 8px; margin-bottom: 16px; } .search input { flex: 1; max-width: 480px; }
.table td.actions { white-space: nowrap; text-align: right; }
.actions-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.map svg { max-width: 100%; height: auto; background: var(--cream); border-radius: var(--radius); }

.login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #2a2033, var(--ink) 70%); }
.login-card { width: 360px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.login-card input { width: 100%; }

#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--vermilion); color: #fff; padding: 10px 20px; z-index: 1000; }
#blazor-error-ui .reload { color: #fff; text-decoration: underline; }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

@media (max-width: 800px) { .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } .content { padding: 16px; } }
h1:focus, h1:focus-visible { outline: none; }
.table td.num { white-space: nowrap; }

/* Saisons */
.card-panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.form { display: flex; flex-direction: column; gap: 10px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.form-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.small-input { width: 80px; }
textarea.wide { width: 100%; }
textarea.code { font: 12px/1.45 ui-monospace, "Cascadia Code", Menlo, monospace; white-space: pre; tab-size: 2; }
.pre { white-space: pre-wrap; }
.bad-text { color: var(--vermilion); }
.timeline { position: relative; height: 70px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tl-bar { position: absolute; top: 8px; height: 26px; border-radius: 6px; padding: 3px 8px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); background: var(--gold); }
.tl-bar.live { background: var(--jade); }
.tl-bar.draft { top: 38px; background: transparent; border: 1px dashed var(--cream-2); color: var(--cream-2); }
.tl-bar:hover { text-decoration: none; filter: brightness(1.1); }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--vermilion); }
.tl-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.season-head { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.progress-box { min-width: 320px; }
.progress { height: 8px; background: var(--ink-3); border-radius: 99px; overflow: hidden; margin-bottom: 4px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--vermilion), var(--gold)); }
.season-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.season-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 12px; }
.season-tab { font: inherit; display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; background: none; border: 1px solid transparent; color: var(--cream-2); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.season-tab:hover { background: var(--ink-3); }
.season-tab.on { background: var(--ink-3); border-color: var(--line); color: var(--cream); }
.check-list td.lvl { width: 110px; }
.pass-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.pass-col { display: flex; flex-direction: column; gap: 4px; }
.pass-n { font-size: 11px; color: var(--muted); text-align: center; }
.pass-cell { min-height: 54px; border-radius: 6px; padding: 4px 6px; font-size: 11px; line-height: 1.25; display: flex; flex-direction: column; gap: 2px; background: var(--ink-2); border: 1px solid var(--line); }
.pass-cell.prem { border-color: rgba(226,178,74,.5); }
.pass-cell.empty { background: transparent; border-style: dashed; }
.pass-cell.missing { border-color: var(--vermilion); }
.pass-cell small { color: var(--muted); font-size: 10px; }
.r-rare { box-shadow: inset 0 -3px 0 var(--sky); } .r-epique { box-shadow: inset 0 -3px 0 #9b6ad6; } .r-legendaire { box-shadow: inset 0 -3px 0 var(--gold); } .r-ultra_rare { box-shadow: inset 0 -3px 0 var(--vermilion); }
.rar { font-size: 12px; padding: 0 6px; border-radius: 4px; }
.btn:disabled { opacity: .45; cursor: not-allowed; } .btn:disabled:hover { border-color: var(--line); }
details.done summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-top: 8px; }
