/* RushPvP Staff Compta — DA « zeroday » (noir #0b0907, orange #F08A24,
   zéro arrondi, biais -11.31deg, Rajdhani + Montserrat). */
:root {
  --orange: #F08A24;
  --orange-hi: #FFAA55;
  --orange-deep: #C4661A;
  --black: #0b0907;
  --bg: #0e0c09;
  --side: #13100d;
  --plate: #18130f;
  --plate-2: #1d1813;
  --line: #2c2620;
  --line-soft: #241f1a;
  --input: #1a1612;
  --ink: rgba(238, 233, 224, .92);
  --text: #f7f5f3;
  --muted: #aba299;
  --dim: #857a6f;
  --green: #52d5ab;
  --red: #ff6b6b;
  --yellow: #ffd166;
  --blue: #6aa8ff;
  --skew: -11.31deg;
  --side-w: 264px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--black); }
body {
  color: var(--ink); font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif; font-weight: 500;
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4, .eyebrow, .brand-copy strong, .nav-title, .kpi strong, .btn, th, .tab, .section-title {
  font-family: "Montserrat", system-ui, sans-serif;
}
h1, h2, .eyebrow, .nav-title { text-transform: uppercase; }
a { color: var(--orange-hi); text-decoration: none; }
a:hover { color: #ffd0a0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
:where(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
::selection { color: #fff; background: var(--orange-deep); }
* { scrollbar-width: thin; scrollbar-color: #3e372f transparent; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: #3e372f; }
svg.i { width: 17px; height: 17px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow { margin: 0; color: #9f9286; font-size: 10px; font-weight: 750; letter-spacing: .18em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.accent { color: var(--orange-hi); }
.boot { display: grid; place-items: center; gap: 14px; min-height: 100vh; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.boot img { width: 64px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.94); } }

/* ---------- Boutons ---------- */
.btn {
  position: relative; isolation: isolate; display: inline-flex; gap: 9px; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 20px; border: 0; background: none; color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--orange); transform: skewX(var(--skew)); transition: background .15s; }
.btn:hover:not(:disabled)::before { background: var(--orange-hi); }
.btn--ghost::before { background: #221c17; box-shadow: inset 0 0 0 1px #3a3129; }
.btn--ghost:hover:not(:disabled)::before { background: #2c241d; }
.btn--danger::before { background: #b8343a; }
.btn--danger:hover:not(:disabled)::before { background: #d6454b; }
.btn--sm { min-height: 32px; padding: 0 14px; font-size: 10.5px; }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid #312a24; background: #1a1612; color: #b1a599; }
.icon-btn:hover { color: #fff; border-color: #4a3f34; }

/* ---------- Connexion ---------- */
.login-page {
  position: relative; display: flex; min-height: 100svh; align-items: center; justify-content: center; overflow: hidden;
  padding: 140px 7vw calc(108px + 5.8vw);
  background: radial-gradient(ellipse at 20% 30%, rgb(240 138 36 / 9%), transparent 58%), var(--black);
}
.login-grid { position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 70px 70px; mask-image: linear-gradient(110deg, #000, transparent 80%); }
.login-masthead { position: absolute; z-index: 2; top: 42px; left: 6vw; right: 6vw; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.login-masthead > div { display: flex; gap: 13px; align-items: center; }
.login-masthead img { width: 34px; height: 34px; object-fit: contain; }
.login-masthead strong { display: block; font-family: "Montserrat"; font-size: 15px; font-weight: 800; letter-spacing: .12em; }
.login-masthead small { display: block; color: #94887d; font-size: 9px; font-weight: 600; letter-spacing: .22em; font-family: "Montserrat"; }
.login-masthead > span { display: flex; gap: 8px; align-items: center; color: #b6aca1; font-size: 13px; }
.login-layout { position: relative; z-index: 2; display: grid; width: min(1160px, 100%); grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(40px, 8vw, 122px); align-items: center; }
.login-tag { display: inline-flex; gap: 9px; align-items: center; color: #f0ae6b; font-family: "Montserrat"; font-size: 10px; font-weight: 750; letter-spacing: .17em; }
.login-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgb(255 128 0 / 9%); }
.login-intro h2 { margin: 26px 0 22px; color: #f9f8f6; font-size: clamp(38px, 4.3vw, 66px); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; }
.login-intro h2 em { color: var(--orange-hi); font-style: normal; }
.login-intro > p { max-width: 430px; margin: 0; color: #b1a89e; font-size: 16px; line-height: 1.75; }
.login-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 475px; margin-top: 44px; padding-top: 26px; border-top: 1px solid #2b251f; }
.login-features span { display: grid; gap: 3px; }
.login-features svg { color: #f1b376; margin-bottom: 8px; }
.login-features strong { font-size: 13px; font-weight: 700; color: var(--text); }
.login-features small { color: #968b80; font-size: 12px; }
.login-card { width: 100%; padding: 38px; border: 1px solid #312a24; border-top: 2px solid var(--orange); background: linear-gradient(145deg, #1f1a14, #17130f); box-shadow: 0 35px 90px rgb(0 0 0 / 27%); }
.login-card > img { width: 64px; height: 64px; object-fit: contain; }
.login-card h1 { margin: 12px 0 10px; font-size: 30px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.login-card p.lead { color: #b5aca4; font-size: 14px; line-height: 1.7; margin: 0 0 24px; }
.login-card .btn { margin-top: 18px; min-height: 50px; width: 100%; font-size: 13px; }
.login-card form { display: grid; gap: 12px; margin-top: 6px; }
.login-user { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid #312a24; background: #14100c; }
.login-user img { width: 42px; height: 42px; }
.login-terms { margin-top: 25px; padding-top: 20px; border-top: 1px solid #2c2620; color: #9d938a; font-size: 12px; line-height: 1.7; }
.login-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; color: var(--dim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: #2c2620; }
.login-signature { position: absolute; z-index: 2; bottom: calc(5.8vw + 22px); left: 6vw; color: #897d71; font-family: "Montserrat"; font-size: 9px; letter-spacing: .13em; display: flex; gap: 12px; align-items: center; }
.login-signature i { width: 3px; height: 3px; border-radius: 50%; background: #766453; }
.login-banner { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; line-height: 0; border-top: 2px solid var(--orange); pointer-events: none; }
.login-banner img { width: 100%; height: auto; display: block; }

/* ---------- Champs ---------- */
.field { display: grid; gap: 6px; }
.field > span { color: #a89c91; font-family: "Montserrat"; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.input, select.input, textarea.input {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #312a24; border-radius: 0; background: var(--input); color: var(--text); outline: none;
}
.input:focus { border-color: var(--orange-deep); }
textarea.input { min-height: 84px; resize: vertical; }
.input.code { font-family: "Montserrat"; font-size: 24px; font-weight: 800; letter-spacing: .5em; text-align: center; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search .input { padding-left: 38px; }

/* ---------- Application ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; background: radial-gradient(ellipse at 95% 0%, rgb(118 58 12 / 9%), transparent 40%), var(--bg); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; padding: 23px 15px 16px; background: var(--side); border-right: 1px solid #25201b; overflow-y: auto; }
.brand { display: flex; gap: 12px; align-items: center; min-height: 67px; padding: 0 9px 20px; border-bottom: 1px solid #26211b; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-copy strong { display: block; color: #f8f6f5; font-size: 16px; font-weight: 800; letter-spacing: .06em; }
.brand-copy span { display: block; color: #988a7d; font-family: "Montserrat"; font-size: 9px; font-weight: 650; letter-spacing: .17em; }
.nav-title { margin: 27px 12px 10px; color: #7a6e63; font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.nav { display: grid; gap: 3px; }
.nav a { display: flex; gap: 11px; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid transparent; color: #aba299; font-size: 14px; font-weight: 600; }
.nav a:hover { color: #ede9e5; background: #1b1612; }
.nav a.is-active { border-color: var(--orange-deep); background: #28211b; color: #ede9e5; box-shadow: inset 3px 0 var(--orange); }
.nav a.is-active svg { color: var(--orange-hi); }
.nav a .count { margin-left: auto; min-width: 20px; padding: 0 5px; text-align: center; color: #c3b6a9; background: #231d17; font-size: 11px; }
.side-bottom { margin-top: auto; padding-top: 24px; }
.side-note { display: flex; gap: 9px; align-items: center; padding: 0 11px 16px; color: #a49484; font-size: 12px; }
.side-note small { display: block; color: #7b6e62; font-size: 11px; }
.profile { display: flex; gap: 10px; align-items: center; min-height: 62px; padding: 9px; border: 1px solid #2c2620; background: #1b1612; }
.profile img { width: 40px; height: 40px; border: 1px solid #3c3329; }
.profile-copy { min-width: 0; flex: 1; }
.profile-copy strong { display: block; overflow: hidden; color: var(--text); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { display: block; color: var(--orange-hi); font-size: 11px; font-family: "Montserrat"; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.main { min-width: 0; padding: 0 clamp(18px, 3vw, 48px) 48px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; gap: 14px; align-items: center; height: 74px; border-bottom: 1px solid #241f1a; background: rgb(14 12 9 / 92%); backdrop-filter: blur(8px); }
.topbar-current { display: flex; gap: 10px; align-items: center; color: #bfb6ad; font-size: 14px; font-weight: 600; }
.topbar-current svg { color: #837465; }
.topbar-context { display: flex; gap: 8px; align-items: center; margin-left: auto; color: #908478; font-size: 13px; }
.topbar-context i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.mobile-menu { display: none; }
.heading { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; padding: 36px 0 26px; }
.heading h1 { margin: 6px 0 6px; color: #f9f8f7; font-size: clamp(25px, 2.5vw, 36px); font-weight: 800; letter-spacing: -.01em; }
.heading h1 span { color: var(--orange-hi); }
.heading p { margin: 0; color: #a1978d; font-size: 14px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Plaques ---------- */
.plate { position: relative; border: 1px solid var(--line); border-top: 2px solid var(--orange); background: linear-gradient(125deg, #1d1813, #181410); }
.plate-pad { padding: 22px; }
.plate > header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.plate > header h2 { margin: 0; color: var(--text); font-size: 14px; font-weight: 750; letter-spacing: .06em; }
.plate > header p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); gap: 22px; }
.stack { display: grid; gap: 22px; align-content: start; }
.kpi { padding: 20px 22px; min-height: 148px; border: 1px solid var(--line); border-top: 2px solid var(--orange); background: linear-gradient(125deg, #1d1813, #181410); transition: border-color .15s, transform .15s; }
.kpi:hover { border-color: #655749; border-top-color: var(--orange-hi); transform: translateY(-2px); }
.kpi-label { display: flex; gap: 10px; align-items: center; color: #bbb2a9; font-size: 13px; font-weight: 600; }
.kpi-label > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #8e450e; color: #ffb56b; background: #28211a; }
.kpi strong { display: block; margin-top: 16px; color: var(--text); font-size: clamp(25px, 2.6vw, 35px); font-weight: 750; line-height: 1.15; }
.kpi small { display: block; margin-top: 6px; color: #a19282; font-size: 12.5px; }
.kpi small b { color: var(--orange-hi); }

/* ---------- Badges & avatars ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px solid currentColor; color: var(--orange-hi); background: rgb(255 255 255 / 3%); font-family: "Montserrat"; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.badge i { width: 6px; height: 6px; background: currentColor; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid #3c3329; background: #27201a; object-fit: cover; }
.avatar--lg { width: 96px; height: 96px; border: 2px solid var(--orange); }
.avatar--sm { width: 30px; height: 30px; }
.who { display: flex; gap: 11px; align-items: center; min-width: 0; }
.who-copy { min-width: 0; }
.who-copy strong { display: block; overflow: hidden; color: var(--text); font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.who-copy small { display: block; color: var(--dim); font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border: 1px solid #3a3129; color: #c9bcae; background: #1a1511; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.ok { border-color: #275348; color: #81dec3; }
.pill.warn { border-color: #6a4a1a; color: #ffc27a; }
.pill.bad { border-color: #6a2a2a; color: #ff9b9b; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* ---------- Progression ---------- */
.bar { position: relative; height: 6px; overflow: hidden; background: #2a231c; }
.bar > span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--orange-deep), var(--orange-hi)); }
.bar.ok > span { background: linear-gradient(90deg, #2b8f74, var(--green)); }
.quota-line { display: grid; gap: 7px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.quota-line:last-child { border-bottom: 0; }
.quota-line header { display: flex; justify-content: space-between; gap: 10px; color: var(--text); font-weight: 600; }

/* ---------- Tables & listes ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 11px 14px; border-bottom: 1px solid #3a3129; color: #9b8f83; font-size: 9.5px; font-weight: 700; letter-spacing: .13em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid #2a231d; vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #1f1913; }
.table tr.clickable { cursor: pointer; }
.empty { display: grid; place-items: center; gap: 8px; padding: 42px 20px; color: var(--dim); text-align: center; }
.empty svg { width: 30px; height: 30px; color: #5d5246; }
.list { display: grid; }
.list-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 22px; border-bottom: 1px solid var(--line-soft); }
.list-item:last-child { border-bottom: 0; }

/* ---------- Staff ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar .search { flex: 1 1 280px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; padding: 0 13px; border: 1px solid #3a3129; background: #1a1511; color: #b9ada0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tab b { color: var(--orange-hi); }
.tab.is-active { border-color: var(--orange); color: #fff; box-shadow: inset 0 -2px var(--orange); }
.tab i { width: 8px; height: 8px; }
.group { margin-bottom: 26px; }
.group-title { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; }
.group-title h2 { margin: 0; font-size: 14px; letter-spacing: .08em; color: var(--text); }
.group-title i { width: 10px; height: 10px; }
.group-title span { color: var(--dim); font-size: 13px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; }
.staff-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); background: linear-gradient(125deg, #1d1813, #181410); text-align: left; transition: border-color .15s, transform .15s, background .15s; }
.staff-card:hover { border-color: var(--orange-deep); transform: translateY(-2px); background: linear-gradient(125deg, #231c15, #1a1511); }
.staff-card .who img { width: 46px; height: 46px; }
.staff-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12.5px; }
.staff-meta b { color: var(--text); }

/* ---------- Fiche membre ---------- */
.profile-hero { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; padding: 26px; background: radial-gradient(ellipse at 100% 0, rgb(187 91 18 / 14%), transparent 70%), linear-gradient(125deg, #1d1813, #181410); }
.profile-hero h1 { margin: 0 0 6px; font-size: clamp(22px, 2.3vw, 32px); color: var(--text); text-transform: none; font-weight: 800; }
.profile-hero .who-copy small { font-size: 13px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-left: auto; }
.hero-stats div { min-width: 90px; }
.hero-stats strong { display: block; color: var(--text); font-family: "Montserrat"; font-size: 24px; font-weight: 800; }
.hero-stats span { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.type-chip { padding: 11px 12px; border: 1px solid var(--line); background: #15110d; }
.type-chip small { display: block; color: var(--muted); font-size: 12px; }
.type-chip strong { display: block; margin-top: 2px; color: var(--text); font-family: "Montserrat"; font-size: 19px; }
.type-chip.zero strong { color: #5d5246; }
.action-grid { display: grid; gap: 10px; }
.action { display: flex; gap: 12px; align-items: center; width: 100%; padding: 13px 14px; border: 1px solid var(--line); background: #15110d; text-align: left; transition: border-color .15s, background .15s; }
.action:hover:not(:disabled) { border-color: var(--orange-deep); background: #1d1712; }
.action > span:first-child { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #8e450e; color: #ffb56b; background: #28211a; }
.action.danger > span:first-child { border-color: #7a2a2e; color: #ff8d8d; background: #2a1718; }
.action strong { display: block; color: var(--text); font-size: 14px; }
.action small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- Graphiques ---------- */
.chart { width: 100%; height: 190px; display: block; }
.chart .grid-line { stroke: #2a231c; stroke-width: 1; }
.chart text { fill: #857a6f; font-size: 10px; font-family: "Rajdhani"; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 9px; height: 9px; }
.hbar { display: grid; gap: 4px; margin-bottom: 12px; }
.hbar header { display: flex; justify-content: space-between; color: var(--text); font-size: 13.5px; }

/* ---------- Podium ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; margin-bottom: 22px; }
.podium-card { display: grid; justify-items: center; gap: 8px; padding: 22px 14px; border: 1px solid var(--line); border-top: 2px solid var(--c, var(--orange)); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, #1d1813), #181410); text-align: center; cursor: pointer; }
.podium-card.first { padding-top: 34px; }
.podium-card img { width: 72px; height: 72px; border: 2px solid var(--c); }
.podium-card .rank { font-family: "Montserrat"; font-size: 12px; font-weight: 800; color: var(--c); letter-spacing: .14em; }
.podium-card strong { color: var(--text); font-size: 16px; }
.podium-card b { color: var(--c); font-family: "Montserrat"; font-size: 20px; }
.rank-num { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border: 1px solid #3a3129; background: #1a1511; color: #c9bcae; font-family: "Montserrat"; font-size: 12px; font-weight: 800; }
.rank-num.g { color: #1b1306; background: #ffc337; border-color: #ffc337; }
.rank-num.s { color: #10151d; background: #c8d6e8; border-color: #c8d6e8; }
.rank-num.b { color: #1b0f06; background: #ef8f47; border-color: #ef8f47; }

/* ---------- Modale & toasts ---------- */
.backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgb(5 4 3 / 72%); backdrop-filter: blur(4px); animation: fade .15s ease; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border: 1px solid #3a3129; border-top: 2px solid var(--orange); background: linear-gradient(145deg, #1f1a14, #17130f); box-shadow: 0 35px 90px rgb(0 0 0 / 45%); }
.modal--wide { width: min(980px, 100%); }
.modal > header { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal > header h2 { margin: 0; font-size: 15px; color: var(--text); }
.modal-body { display: grid; gap: 14px; padding: 22px; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; padding: 16px 22px 22px; }
.proofs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.proofs a, .proofs video { display: block; border: 1px solid var(--line); background: #0f0c09; }
.proofs img, .proofs video { width: 100%; max-height: 320px; object-fit: contain; display: block; }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 10px; }
.toast { display: flex; gap: 10px; align-items: center; min-width: 260px; max-width: 420px; padding: 12px 16px; border: 1px solid #3a3129; border-left: 3px solid var(--orange); background: #1b1612; color: var(--text); box-shadow: 0 14px 40px rgb(0 0 0 / 40%); animation: slide .2s ease; }
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
@keyframes slide { from { opacity: 0; transform: translateY(8px); } }
.notice { padding: 13px 16px; border: 1px solid #3a3129; border-left: 3px solid var(--orange); background: #17130f; color: var(--muted); font-size: 13.5px; }
.notice.err { border-left-color: var(--red); color: #ffb3b3; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 14px 18px; color: var(--muted); font-size: 13px; }
.skeleton { height: 120px; background: linear-gradient(90deg, #17130f, #211b15, #17130f); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: var(--side-w); transform: translateX(-100%); transition: transform .2s; }
  .shell.menu-open .sidebar { transform: none; box-shadow: 30px 0 80px rgb(0 0 0 / 50%); }
  .mobile-menu { display: inline-grid; }
  .login-layout { grid-template-columns: minmax(0, 1fr); }
  .login-intro { display: none; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .podium { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { margin-left: 0; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .topbar-context { display: none; }
  .login-page { padding: 120px 18px calc(85px + 5.8vw); }
  .login-card { padding: 26px; }
}

/* ---------- Gestion du site ---------- */
.nav a.nav-admin { border-color: #3a2a18; background: linear-gradient(110deg, #2a1d12, #1b1612); color: #ffd2a4; }
.nav a.nav-admin svg { color: var(--orange-hi); }
.nav a.nav-admin.is-active { border-color: var(--orange); box-shadow: inset 3px 0 var(--orange); }
.announce { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 12px 16px; border: 1px solid #5a3a16; border-left: 3px solid var(--orange); background: linear-gradient(110deg, #2a1d12, #18130f); color: #ffd9b0; font-weight: 600; }
.announce svg { color: var(--orange-hi); }

.thumb { position: relative; display: inline-grid; place-items: center; width: 52px; height: 40px; padding: 0; overflow: hidden; border: 1px solid #3a3129; background: #15110d; color: var(--dim); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb b { position: absolute; right: 2px; bottom: 2px; padding: 0 4px; background: rgb(11 9 7 / 85%); color: var(--orange-hi); font-size: 10px; font-family: "Montserrat"; }
.thumb:hover { border-color: var(--orange); }
