/* ─────────────────────────────────────────────────────────────
   Rust Core Esport — feuille de style unique du site
   Couleurs reprises du logo : rouge vif (#ff0000), bordeaux (#4a0000), blanc.
   Titres en Unbounded (police libre, licence OFL, fichiers dans public/fonts/), sinon Rajdhani.
   ───────────────────────────────────────────────────────────── */

/* Unbounded, police variable (graisses 200 à 900) : latin, puis latin étendu à la demande. */
@font-face {
  font-family: "Unbounded";
  src: url("/fonts/Unbounded-latin.woff2") format("woff2-variations"), url("/fonts/Unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  src: url("/fonts/Unbounded-latin-ext.woff2") format("woff2-variations"), url("/fonts/Unbounded-latin-ext.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0c0202;
  --bg-2: #111114;
  /* Boîtes (cartes, tableaux, champs) : gris neutre d'origine. */
  --surface: #16161b;
  --surface-2: #1e1e24;
  --surface-3: #26262e;
  --border: #2c2c35;
  --border-strong: #3a3a45;
  --text: #f8f4f4;
  --muted: #c2a7a7;
  --faint: #8c6d6d;
  --brand-red: #ff0000;
  --brand-maroon: #4a0000;
  --accent: #ff0000;
  --accent-hover: #ff3d3d;
  --accent-soft: rgba(255, 0, 0, 0.14);
  --amber: #f0a43c;
  --gold: #f4c64e;
  --silver: #c9ccd3;
  --bronze: #c88a5a;
  --success: #3fbf7f;
  --success-soft: rgba(63, 191, 127, 0.14);
  --info: #4ea6e0;
  --info-soft: rgba(78, 166, 224, 0.14);
  --warning: #f0b33c;
  --warning-soft: rgba(240, 179, 60, 0.14);
  --danger: #e5484d;
  --danger-soft: rgba(229, 72, 77, 0.14);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --font-display: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --font-brand: "Unbounded", "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --max: 1180px;
  --topbar-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 0, 0, 0.1), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(74, 0, 0, 0.55), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a.link {
  color: var(--accent-hover);
}
a.link:hover {
  text-decoration: underline;
}

a.team-link {
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px dotted var(--border-strong);
}
a.team-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0;
}
/* Unbounded est large : tailles et espacement réduits par rapport à Rajdhani. */
h1,
h2 {
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.muted {
  color: var(--muted);
}
.faint {
  color: var(--faint);
}
.small {
  font-size: 0.86rem;
}
.mono {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
.nowrap {
  white-space: nowrap;
}
.hidden {
  display: none !important;
}
.text-success {
  color: var(--success);
}
.text-danger {
  color: var(--danger);
}
.text-accent {
  color: var(--accent-hover);
}
.text-gold {
  color: var(--gold);
}

/* ── Barre du haut ─────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  background: rgba(12, 2, 2, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.brand-name {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-name small {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.42em;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.nav a.active {
  color: var(--text);
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.user-menu {
  position: relative;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.user-chip:hover {
  border-color: var(--border-strong);
}
.user-chip .avatar {
  width: 30px;
  height: 30px;
}
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
}
.user-menu.open .user-dropdown {
  display: block;
}
.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}
.user-dropdown a:hover {
  background: var(--surface-2);
  color: var(--text);
}
.user-dropdown hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 6px 0;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

/* ── Mise en page ──────────────────────────────────────────── */
main {
  flex: 1;
}

.page {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.page-head h1 {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  text-transform: uppercase;
}
.page-head p {
  color: var(--muted);
  margin-top: 6px;
  max-width: 640px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 8px;
}

.section {
  margin-top: 44px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 18px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.grid-side {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row-wrap {
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Cartes ────────────────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.card-tight {
  padding: 16px;
}
.card h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.card-link {
  transition: border-color 0.15s, transform 0.15s;
}
.card-link:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card-accent {
  border-color: rgba(255, 0, 0, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 0, 0, 0.12), 0 0 40px rgba(255, 0, 0, 0.08);
}

/* Tuiles de chiffres */
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 4px;
}
.stat-sub {
  font-size: 0.84rem;
  color: var(--faint);
  margin-top: 2px;
}

/* ── Boutons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--surface-3);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.08s, opacity 0.15s;
}
.btn:hover {
  background: #30303a;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-2);
}
.btn-success {
  background: var(--success);
  color: #08140e;
}
.btn-success:hover {
  background: #52d090;
}
.btn-danger {
  background: transparent;
  border-color: rgba(229, 72, 77, 0.5);
  color: #ff8a8d;
}
.btn-danger:hover {
  background: var(--danger-soft);
}
.btn-discord {
  background: #5865f2;
  color: #fff;
}
.btn-discord:hover {
  background: #6b77f5;
}
.btn-steam {
  background: #1b2838;
  border-color: #2a475e;
  color: #c7d5e0;
}
.btn-steam:hover {
  background: #2a475e;
}
.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
  border-radius: 12px;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.84rem;
  border-radius: 8px;
}
.btn-block {
  width: 100%;
}

/* ── Formulaires ───────────────────────────────────────────── */
.input,
select.input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input-group {
  display: flex;
  gap: 8px;
}
.input-group .input {
  flex: 1;
}
label.field {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.help {
  font-size: 0.82rem;
  color: var(--faint);
  margin-top: 6px;
}

/* ── Pastilles et badges ───────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface-3);
  color: var(--muted);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill-plain::before {
  display: none;
}
.pill-open {
  background: var(--success-soft);
  color: var(--success);
}
.pill-live {
  background: var(--danger-soft);
  color: #ff6b6f;
}
.pill-live::before {
  animation: pulse 1.4s infinite;
}
.pill-wait {
  background: var(--warning-soft);
  color: var(--warning);
}
.pill-done {
  background: var(--surface-3);
  color: var(--faint);
}
.pill-info {
  background: var(--info-soft);
  color: var(--info);
}
.pill-accent {
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.pill-gold {
  background: rgba(244, 198, 78, 0.14);
  color: var(--gold);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

.tag {
  display: inline-block;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Avatars et divisions ──────────────────────────────────── */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-3);
  flex-shrink: 0;
}
.avatar-lg {
  width: 96px;
  height: 96px;
  border: 3px solid var(--border-strong);
}
.avatar-sm {
  width: 26px;
  height: 26px;
}

.who {
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 600;
}
.who span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.who:hover span {
  color: var(--accent-hover);
}

.division {
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.division img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.division-lg img {
  width: 96px;
  height: 96px;
}
.division-unranked img {
  opacity: 0.18;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.progress > div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-maroon), var(--accent));
}

/* ── Tableaux ──────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  white-space: nowrap;
}
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr {
  transition: background 0.12s;
}
.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}
.table tr.clickable {
  cursor: pointer;
}
.table tr.is-me {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 3px 0 0 var(--accent);
}
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.table th.num {
  text-align: right;
}
.table .pos {
  width: 56px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--muted);
}
.pos-1 {
  color: var(--gold) !important;
}
.pos-2 {
  color: var(--silver) !important;
}
.pos-3 {
  color: var(--bronze) !important;
}
.table .empty-row td {
  text-align: center;
  color: var(--muted);
  padding: 36px 16px;
}

/* ── Onglets et filtres ────────────────────────────────────── */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-wrap: wrap;
}
.tabs button {
  padding: 8px 16px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.tabs button:hover {
  color: var(--text);
}
.tabs button.active {
  background: var(--surface-3);
  color: var(--text);
}
.tabs .count {
  margin-left: 6px;
  font-size: 0.78rem;
  color: var(--faint);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fadeUp 0.25s ease;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar .input {
  max-width: 280px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Accueil ───────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 2, 2, 0.96) 25%, rgba(30, 0, 0, 0.55) 70%, rgba(12, 2, 2, 0.85)),
    linear-gradient(0deg, var(--bg) 0%, transparent 40%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 4.6vw, 3.3rem);
  text-transform: uppercase;
  line-height: 1.04;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 18px 0 28px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.featured {
  background: rgba(22, 22, 27, 0.88);
  backdrop-filter: blur(8px);
}
.featured-name {
  font-size: 1.7rem;
  text-transform: uppercase;
  margin: 10px 0 4px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0;
}
.countdown div {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  padding: 10px 4px 8px;
}
.countdown b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.steps {
  counter-reset: step;
}
.step {
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.step h3 {
  margin-bottom: 6px;
}

/* Petites listes de classement (accueil) */
.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mini-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mini-list li:last-child {
  border-bottom: 0;
}
.mini-list .pos {
  width: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--muted);
}
.mini-list .right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ── Wipes ─────────────────────────────────────────────────── */
.wipe-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wipe-card h3 {
  font-size: 1.35rem;
  word-break: break-word;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline li {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0 6px 22px;
  font-size: 0.9rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
}
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 24px;
  bottom: -8px;
  width: 1px;
  background: var(--border-strong);
}
.timeline li.done::before {
  background: var(--accent);
  border-color: var(--accent);
}
.timeline li.current::before {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.35);
}
.timeline .when {
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.wipe-meta {
  display: flex;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.wipe-meta b {
  color: var(--text);
}
.wipe-card .actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.wipe-card .actions .btn {
  flex: 1;
}

/* Podium */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
}
.podium-step {
  text-align: center;
  padding: 18px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.podium-step .medal {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}
.podium-step .team {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 8px 0 2px;
  word-break: break-word;
}
.podium-1 {
  padding-top: 30px;
  border-color: rgba(244, 198, 78, 0.5);
  background: linear-gradient(180deg, rgba(244, 198, 78, 0.12), transparent 70%), var(--surface);
}
.podium-1 .medal {
  color: var(--gold);
}
.podium-2 .medal {
  color: var(--silver);
}
.podium-3 .medal {
  color: var(--bronze);
}

/* ── Profils ───────────────────────────────────────────────── */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.profile-hero h1 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}
.profile-hero .badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.rank-panel {
  display: flex;
  align-items: center;
  gap: 20px;
}
.rank-panel .rank-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
}
.rank-panel .rp {
  color: var(--muted);
  font-weight: 600;
}

.chart {
  width: 100%;
  height: 180px;
}
.chart .grid-line {
  stroke: var(--border);
  stroke-width: 1;
}
.chart .bar {
  fill: var(--accent);
}
.chart .bar-neg {
  fill: var(--danger);
  opacity: 0.7;
}
.chart text {
  fill: var(--faint);
  font-size: 11px;
  font-family: var(--font-body);
}

.member-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.member-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.member-list li:last-child {
  border-bottom: 0;
}
.member-list .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: var(--bg-2);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

/* ── Boutique ──────────────────────────────────────────────── */
.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan .price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}
.plan .price small {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.plan li {
  padding: 5px 0 5px 24px;
  position: relative;
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.plan .btn {
  margin-top: auto;
}
.plan-best {
  border-color: rgba(255, 0, 0, 0.6);
}
.plan-best::before {
  content: "Meilleur prix";
  position: absolute;
  top: -11px;
  left: 22px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Divisions (page infos) ────────────────────────────────── */
.ladder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.ladder .card {
  text-align: center;
  padding: 16px 10px;
}
.ladder img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.ladder .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 6px;
}

.prose h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  margin: 22px 0 8px;
}
.prose p,
.prose li {
  color: var(--muted);
}
.prose ul,
.prose ol {
  padding-left: 20px;
  margin: 8px 0;
}
.prose li {
  margin: 4px 0;
}
.prose b {
  color: var(--text);
}

/* ── États vides / chargement ──────────────────────────────── */
.empty {
  text-align: center;
  padding: 42px 20px;
  color: var(--muted);
}
.empty .icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.6;
}
.empty h3 {
  color: var(--text);
  margin-bottom: 6px;
}
.empty .btn {
  margin-top: 16px;
}

.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  min-height: 18px;
}
@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.92rem;
}
.notice-warning {
  border-color: rgba(240, 179, 60, 0.35);
  background: var(--warning-soft);
}
.notice-info {
  border-color: rgba(78, 166, 224, 0.35);
  background: var(--info-soft);
}
.notice-danger {
  border-color: rgba(229, 72, 77, 0.35);
  background: var(--danger-soft);
}

/* ── Pied de page ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.86rem;
}
.footer-inner nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-inner a:hover {
  color: var(--text);
}

/* ── Fenêtres et notifications ─────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}
.modal {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
  animation: fadeUp 0.2s ease;
}
.modal h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.modal .modal-body {
  color: var(--muted);
  margin-bottom: 20px;
}
.modal .modal-error {
  color: #ff8a8d;
  font-size: 0.88rem;
  margin: -8px 0 14px;
  min-height: 1em;
}
.modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.check-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
}
.check-list input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 40px));
}
.toast {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--info);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  animation: fadeUp 0.2s ease;
}
.toast-success {
  border-left-color: var(--success);
}
.toast-error {
  border-left-color: var(--danger);
}
.toast-warning {
  border-left-color: var(--warning);
}
.toast .toast-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3,
  .grid-side {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 48px 20px;
  }
}

@media (max-width: 860px) {
  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav {
    display: none;
    position: absolute;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    background: rgba(12, 2, 2, 0.97);
    border-bottom: 1px solid var(--border);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 12px;
  }
  .nav a.active::after {
    display: none;
  }
  .nav a.active {
    background: var(--surface-2);
  }
  .user-chip .name {
    display: none;
  }
  .user-chip {
    padding: 3px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  .page {
    padding: 28px 16px 56px;
  }
  .topbar-inner {
    padding: 0 16px;
    gap: 12px;
  }
  .brand-name {
    display: none;
  }
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat-value {
    font-size: 1.6rem;
  }
  .grid-auto {
    grid-template-columns: minmax(0, 1fr);
  }
  .podium {
    grid-template-columns: minmax(0, 1fr);
  }
  .podium-1 {
    order: -1;
  }
  .table th,
  .table td {
    padding: 10px 12px;
  }
  .hide-sm {
    display: none;
  }
  .toolbar .input {
    max-width: none;
  }
  .countdown b {
    font-size: 1.5rem;
  }
}

/* ── Détail du calcul ranked (profil) ─────────────────────── */
.why-toggle {
  cursor: pointer;
}
.why-toggle:hover td {
  background: var(--surface-2);
}
.why-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: 1px;
}
.why-box {
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
}
.why-box ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.why-box li + li {
  margin-top: 3px;
}

/* ── Page Live ─────────────────────────────────────────────── */
.live-wipe + .live-wipe {
  margin-top: 36px;
}
.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 460px;
  overflow-y: auto;
}
.feed li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.feed li:last-child {
  border-bottom: 0;
}
.feed-time {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  min-width: 42px;
}
.feed-icon {
  width: 20px;
  text-align: center;
}

/* ── Parcours du nouveau joueur ────────────────────────────── */
.onboarding-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.onboarding-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.step-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}
.onboarding-steps li.done .step-mark {
  background: var(--success-soft);
  border-color: transparent;
  color: var(--success);
}
.onboarding-steps li.done .step-label {
  color: var(--faint);
  text-decoration: line-through;
}
.switch-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  color: var(--muted);
}
.switch-row input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: none;
}

/* ── Succès et récompenses de saison ───────────────────────── */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.badge-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  opacity: 0.55;
}
.badge-item.earned {
  opacity: 1;
  border-color: var(--border-strong);
}
.badge-icon {
  font-size: 1.5rem;
  width: 32px;
  text-align: center;
  filter: grayscale(1);
}
.badge-item.earned .badge-icon {
  filter: none;
}
.badge-name {
  font-weight: 600;
}
.season-rewards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.season-reward {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}

/* ── Pronostics ────────────────────────────────────────────── */
.vote-row {
  display: grid;
  grid-template-columns: minmax(110px, 1.2fr) 2fr 48px auto;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
}
.vote-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
}
.vote-bar div {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}
.vote-row.is-winner .vote-bar div {
  background: var(--gold);
}
.vote-count {
  text-align: right;
}
@media (max-width: 640px) {
  .vote-row {
    grid-template-columns: 1fr 48px auto;
  }
  .vote-bar {
    display: none;
  }
}
textarea.input {
  width: 100%;
  resize: vertical;
  min-height: 90px;
  font: inherit;
}

/* ── Courbe des points (page d'un wipe) ── */
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}
.chart-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chart-key i,
.tip-row i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}
.chart-key.is-me,
.tip-row.is-me {
  color: var(--text);
  font-weight: 700;
}
.points-chart {
  width: 100%;
  display: block;
  overflow: visible;
}
.points-chart .grid {
  stroke: var(--border);
  stroke-width: 1;
}
.points-chart .axis {
  fill: var(--faint);
  font-size: 11px;
}
.points-chart .end-label {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.points-chart .cross {
  stroke: var(--border-strong);
  stroke-width: 1;
}
.chart-tip {
  position: absolute;
  min-width: 180px;
  max-width: 260px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 0.82rem;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 5;
}
.tip-head {
  color: var(--faint);
  margin-bottom: 6px;
}
.tip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  padding: 1px 0;
}
.tip-row span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tip-row b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ── Face-à-face ── */
.vs-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.vs-score {
  font-family: "Rajdhani", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}
.vs-table th {
  background: transparent;
}
.vs-table td.win {
  color: var(--text);
  font-weight: 700;
}
.vs-table td.lose {
  color: var(--faint);
}
@media (max-width: 640px) {
  .vs-score {
    font-size: 2rem;
  }
}

/* Journal du serveur et sortie de la console RCON (Admin → Serveurs) : petit texte à chasse fixe. */
.log-box {
  margin: 12px 0 0;
  padding: 10px 12px;
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-2);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
