/* RushPvP • Espace Community — même DA que rush-staff (noir #0b0907, orange #F08A24,
   zéro arrondi, biais -11.31deg, Rajdhani + Montserrat) + couleurs de catégories. */
:root {
  --orange: #F08A24; --orange-hi: #FFAA55; --orange-deep: #C4661A;
  --black: #0b0907; --bg: #0e0c09; --side: #13100d; --plate: #18130f;
  --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; --gold: #ffc337; --violet: #c58bff;
  --skew: -11.31deg; --side-w: 268px;
  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, .mono { 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); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes shine { to { background-position: -200% 0; } }

/* ---------- 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:hover:not(:disabled) { color: #fff; }
.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--green::before { background: #1f7a62; }
.btn--green:hover:not(:disabled)::before { background: #2a9478; }
.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; transition: color .15s, border-color .15s; }
.icon-btn:hover { color: #fff; border-color: #4a3f34; }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn.sm svg.i { width: 15px; height: 15px; }
.icon-btn.danger:hover { color: var(--red); border-color: #6a2a2a; }

/* ---------- 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%), radial-gradient(ellipse at 85% 70%, rgb(106 168 255 / 6%), transparent 50%), 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; color: var(--text); }
.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; animation: rise .5s ease; }
.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: 450px; 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: 495px; 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: 28px; 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-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; }
.link-btn { border: 0; background: none; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }

/* ---------- 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; }
.field > small { color: var(--dim); font-size: 12px; }
.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; transition: border-color .15s; }
.input:focus { border-color: var(--orange-deep); }
textarea.input { min-height: 84px; resize: vertical; }
select.input option { background: #1a1511; }
.input.code { font-family: "Montserrat"; font-size: 24px; font-weight: 800; letter-spacing: .5em; text-align: center; }
input[type=color].input { padding: 4px; height: 42px; cursor: pointer; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search .input { padding-left: 38px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.switch { display: inline-flex; gap: 12px; align-items: center; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { position: relative; width: 46px; height: 24px; border: 1px solid #3a3129; background: #1a1511; transition: background .15s, border-color .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #6b5d50; transition: transform .18s, background .18s; }
.switch input:checked + i { border-color: #2a7a62; background: #10231d; }
.switch input:checked + i::after { transform: translateX(22px); background: var(--green); }
.switch b { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-toggle { display: inline-flex; gap: 6px; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid #3a3129; background: #1a1511; color: #b9ada0; font-size: 13px; font-weight: 600; }
.chip-toggle.on { border-color: var(--orange); color: #fff; background: #2a1f14; }

/* ---------- 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 / 10%), 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; z-index: 40; }
.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; transition: background .12s, color .12s; }
.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: 22px; padding: 0 6px; text-align: center; color: #c3b6a9; background: #231d17; font-size: 11px; font-weight: 700; }
.nav a .soon { margin-left: auto; padding: 0 6px; color: #ffd166; border: 1px solid #5a4a1e; font-size: 9px; font-family: "Montserrat"; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.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; object-fit: cover; }
.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; overflow: hidden; color: var(--orange-hi); font-size: 11px; font-family: "Montserrat"; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.main { min-width: 0; padding: 0 clamp(18px, 3vw, 48px) 60px; }
.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: 14px; align-items: center; margin-left: auto; color: #908478; font-size: 13px; }
.topbar-context .live { display: inline-flex; gap: 8px; align-items: center; }
.topbar-context .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgb(82 213 171 / 12%); }
.topbar-context .live.off i { background: var(--yellow); box-shadow: 0 0 0 4px rgb(255 209 102 / 12%); }
.mobile-menu { display: none; }
#view { animation: fade .2s ease; }
.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; }
.back-link { display: inline-flex; gap: 8px; align-items: center; padding: 26px 0 0; color: var(--muted); font-size: 14px; }
.back-link:hover { color: var(--text); }

/* ---------- 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 { display: flex; gap: 9px; align-items: center; margin: 0; color: var(--text); font-size: 14px; font-weight: 750; letter-spacing: .06em; }
.plate > header h2 svg { color: var(--orange-hi); }
.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; }
.mt { margin-top: 22px; }
.kpi { position: relative; overflow: hidden; 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; animation: rise .35s ease backwards; }
.kpi:nth-child(2) { animation-delay: .04s; } .kpi:nth-child(3) { animation-delay: .08s; } .kpi:nth-child(4) { animation-delay: .12s; }
.kpi::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; background: radial-gradient(circle, rgb(240 138 36 / 9%), transparent 70%); pointer-events: none; }
.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 strong.soon { color: var(--yellow); font-size: clamp(20px, 2vw, 26px); }
.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; }
.tag { display: inline-flex; padding: 1px 8px; border: 1px solid #3a3129; color: #c9bcae; background: #15110d; font-size: 12px; font-weight: 600; white-space: nowrap; }
.avatar { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid #3c3329; background: #27201a; object-fit: cover; }
.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; overflow: hidden; color: var(--dim); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.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 i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { border-color: #275348; color: #81dec3; }
.pill.warn { border-color: #6a4a1a; color: #ffc27a; }
.pill.bad { border-color: #6a2a2a; color: #ff9b9b; }
.pill.soon { border-color: #5a4a1e; color: var(--yellow); }

/* ---------- 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)); transition: width .5s ease; }
.bar.ok > span { background: linear-gradient(90deg, #2b8f74, var(--green)); }
.bar.soon { background: repeating-linear-gradient(-45deg, #2a231c 0 6px, #231d17 6px 12px); }
.stackbar { display: flex; height: 12px; overflow: hidden; background: #2a231c; }
.stackbar span { height: 100%; transition: width .5s ease; }

/* ---------- 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; }
.table tr.is-left td { opacity: .6; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table select.input { min-height: 32px; padding: 4px 8px; width: auto; }
.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); color: inherit; }
a.list-item:hover { background: #1f1913; color: inherit; }
.list-item:last-child { border-bottom: 0; }

/* ---------- Membres ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar .search { flex: 1 1 280px; }
.toolbar select.input { width: auto; }
.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; transition: border-color .12s, color .12s; }
.tab:hover { color: #fff; border-color: #4a3f34; }
.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: 30px; animation: rise .3s ease backwards; }
.group-title { display: flex; gap: 12px; align-items: center; margin: 0 0 14px; }
.group-title h2 { margin: 0; font-size: 14px; letter-spacing: .08em; color: var(--text); }
.group-title i { width: 10px; height: 10px; transform: skewX(var(--skew)); }
.group-title span { color: var(--dim); font-size: 13px; }
.group-title em { color: var(--dim); font-size: 13px; font-style: normal; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); order: 9; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.staff-card { --c: var(--orange); position: relative; display: grid; align-content: start; gap: 12px; padding: 16px; border: 1px solid var(--line); background: linear-gradient(125deg, #1d1813, #181410); color: inherit; text-align: left; transition: border-color .15s, transform .15s, background .15s; }
.staff-card::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px; background: var(--c); opacity: .85; }
.staff-card:hover { border-color: color-mix(in srgb, var(--c) 60%, #2c2620); transform: translateY(-2px); background: linear-gradient(125deg, color-mix(in srgb, var(--c) 7%, #1d1813), #1a1511); color: inherit; }
.staff-card .who img { width: 48px; height: 48px; border-color: color-mix(in srgb, var(--c) 45%, #3c3329); }
.staff-card .badge { color: var(--c); }
.staff-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12.5px; }
.staff-meta b { color: var(--text); }
.compta-line { display: grid; gap: 7px; }
.compta-line header { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.compta-line header b { color: var(--text); }
.soon-text { color: var(--yellow); font-weight: 700; letter-spacing: .02em; }
.lead-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.lead-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid #4a3a20; background: linear-gradient(110deg, rgb(255 195 55 / 8%), transparent 70%), #17130f; color: inherit; }
.lead-card img { width: 46px; height: 46px; border: 1px solid var(--gold); object-fit: cover; }
.lead-card strong { display: block; color: var(--text); font-size: 15px; }
.lead-card small { color: var(--gold); font-family: "Montserrat"; font-size: 9.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
a.lead-card:hover { border-color: var(--gold); color: inherit; }

/* ---------- Fiche membre ---------- */
.profile-hero { --c: var(--orange); position: relative; overflow: hidden; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 30px; border-top-color: var(--c); background: radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--c) 16%, transparent), transparent 65%), linear-gradient(125deg, #1d1813, #181410); }
.profile-hero::after { content: ""; position: absolute; right: 8%; top: -40%; width: 160px; height: 180%; background: color-mix(in srgb, var(--c) 6%, transparent); transform: skewX(var(--skew)); pointer-events: none; }
.profile-hero > img { width: 104px; height: 104px; border: 2px solid var(--c); object-fit: cover; box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 10%, transparent); }
.profile-hero h1 { margin: 6px 0 6px; font-size: clamp(22px, 2.3vw, 32px); color: var(--text); text-transform: none; font-weight: 800; }
.profile-hero .badge { color: var(--c); }
.hero-stats { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 30px; margin-left: auto; }
.hero-stats div { min-width: 92px; }
.hero-stats strong { display: block; color: var(--text); font-family: "Montserrat"; font-size: 24px; font-weight: 800; }
.hero-stats strong.soon { color: var(--yellow); font-size: 17px; padding-top: 6px; }
.hero-stats span { color: var(--dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.type-chip { --c: var(--orange); padding: 12px 13px; border: 1px solid var(--line); border-left: 3px solid var(--c); background: #15110d; }
.type-chip small { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 12.5px; }
.type-chip small svg { color: var(--c); width: 15px; height: 15px; }
.type-chip strong { display: block; margin-top: 3px; color: var(--text); font-family: "Montserrat"; font-size: 19px; }
.type-chip em { color: var(--dim); font-style: normal; font-size: 12px; }
.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; color: inherit; text-align: left; transition: border-color .15s, background .15s; }
.action:hover:not(:disabled) { border-color: var(--orange-deep); background: #1d1712; color: inherit; }
.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.green > span:first-child { border-color: #275348; color: #81dec3; background: #10211b; }
.action strong { display: block; color: var(--text); font-size: 14px; }
.action small { display: block; color: var(--muted); font-size: 12px; }

/* À venir */
.soon-box { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 10px; padding: 46px 24px; text-align: center; background: repeating-linear-gradient(-45deg, transparent 0 14px, rgb(255 209 102 / 2.5%) 14px 28px); }
.soon-box > svg { width: 46px; height: 46px; padding: 11px; border: 1px solid #5a4a1e; color: var(--yellow); background: #221c10; }
.soon-box strong { color: var(--yellow); font-family: "Montserrat"; font-size: 22px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.soon-box p { max-width: 460px; margin: 0; color: var(--muted); }
.soon-banner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 22px 26px; border: 1px solid #5a4a1e; border-left: 3px solid var(--yellow); background: linear-gradient(110deg, rgb(255 209 102 / 9%), transparent 60%), #17130f; }
.soon-banner > svg { width: 44px; height: 44px; padding: 10px; border: 1px solid #5a4a1e; color: var(--yellow); background: #221c10; }
.soon-banner strong { display: block; color: var(--text); font-family: "Montserrat"; font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.soon-banner p { margin: 2px 0 0; color: var(--muted); }
.soon-banner .grow { flex: 1 1 280px; }
.open-banner { border-color: #275348; border-left-color: var(--green); background: linear-gradient(110deg, rgb(82 213 171 / 9%), transparent 60%), #17130f; }
.open-banner > svg { border-color: #275348; color: var(--green); background: #10211b; }

/* Fil d'activité */
.timeline { display: grid; padding: 6px 22px 14px; }
.tl-item { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 11px 0; }
.tl-item::before { content: ""; position: absolute; left: 16px; top: 40px; bottom: -6px; width: 1px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-ic { --c: var(--orange); display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid color-mix(in srgb, var(--c) 45%, #3a3129); color: var(--c); background: color-mix(in srgb, var(--c) 9%, #15110d); }
.tl-ic svg.i { width: 15px; height: 15px; }
.tl-body { min-width: 0; }
.tl-body p { margin: 0; color: var(--text); font-size: 14px; }
.tl-body p a { color: var(--text); font-weight: 700; }
.tl-body small { color: var(--dim); font-size: 12px; }
.note { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.note:last-child { border-bottom: 0; }
.note p { margin: 0 0 6px; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.note footer { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: 12px; }
.note footer .icon-btn { margin-left: auto; }
.note footer .icon-btn + .icon-btn { margin-left: 0; }
.note.pinned { background: linear-gradient(90deg, rgb(240 138 36 / 7%), transparent 60%); box-shadow: inset 3px 0 var(--orange); }
.warn-item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.warn-item:last-child { border-bottom: 0; }
.warn-lvl { display: grid; place-items: center; min-width: 34px; height: 34px; border: 1px solid #6a2a2a; color: #ff9b9b; background: #2a1718; font-family: "Montserrat"; font-weight: 800; font-size: 13px; }
.warn-item.off { opacity: .55; }
.warn-item.off .warn-lvl { border-color: #3a3129; color: var(--dim); background: #1a1511; }
.warn-item p { margin: 0; color: var(--text); }
.warn-item small { color: var(--dim); font-size: 12px; }
.warn-item .icon-btn { margin-left: auto; }

/* ---------- Graphiques ---------- */
.chart { width: 100%; height: 200px; 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: 14px; 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; }
.cat-split { display: grid; gap: 14px; }
.cat-row { --c: var(--orange); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.cat-row header { display: flex; gap: 9px; align-items: center; color: var(--text); font-weight: 600; }
.cat-row header i { width: 9px; height: 9px; background: var(--c); transform: skewX(var(--skew)); }
.cat-row b { color: var(--text); font-family: "Montserrat"; font-size: 16px; }
.cat-row .bar { grid-column: 1 / -1; }
.cat-row .bar > span { background: var(--c); }
.ring { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring strong { color: var(--text); font-family: "Montserrat"; font-size: 30px; font-weight: 800; line-height: 1; }
.ring small { color: var(--dim); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Classements ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; margin-bottom: 22px; }
.podium-card { --c: var(--orange); display: grid; justify-items: center; gap: 8px; padding: 22px 14px; border: 1px solid var(--line); border-top: 2px solid var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, #1d1813), #181410); color: inherit; text-align: center; transition: transform .15s; animation: rise .4s ease backwards; }
.podium-card:hover { transform: translateY(-3px); color: inherit; }
.podium-card.first { padding-top: 38px; animation-delay: .08s; }
.podium-card img { width: 74px; height: 74px; border: 2px solid var(--c); object-fit: cover; }
.podium-card.first img { width: 92px; height: 92px; }
.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; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.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; }
.locked { position: relative; }
.locked > .locked-content { filter: blur(5px) grayscale(.6); opacity: .35; pointer-events: none; user-select: none; }
.locked > .soon-box { position: absolute; inset: 0; z-index: 2; align-content: center; background: radial-gradient(ellipse at center, rgb(14 12 9 / 85%), rgb(14 12 9 / 55%)); }

/* ---------- Gestion ---------- */
.type-row-ic { --c: var(--orange); display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid color-mix(in srgb, var(--c) 50%, #3a3129); color: var(--c); background: color-mix(in srgb, var(--c) 10%, #15110d); }
.type-row-ic svg.i { width: 15px; height: 15px; }
.quota-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.quota-card { --c: var(--orange); padding: 14px; border: 1px solid var(--line); border-left: 3px solid var(--c); background: #15110d; }
.quota-card .field > span { color: var(--c); }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.icon-pick button { display: grid; place-items: center; height: 40px; border: 1px solid #3a3129; background: #1a1511; color: #b9ada0; }
.icon-pick button.on { border-color: var(--orange); color: var(--orange-hi); background: #2a1f14; }
.danger-zone { border-top-color: var(--red); }
.danger-zone > header h2 svg { color: var(--red); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; color: var(--text); }

/* ---------- 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%); animation: rise .2s ease; }
.modal--wide { width: min(900px, 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; }
#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: rise .2s ease; }
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.notice { display: flex; gap: 10px; align-items: center; 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: 140px; margin-top: 36px; background: linear-gradient(90deg, #17130f, #211b15, #17130f); background-size: 200% 100%; animation: shine 1.2s linear infinite; }
.side-scrim, .tabbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .grid-main, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .login-layout { grid-template-columns: minmax(0, 1fr); }
  .login-intro { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .22s ease; }
  .shell.menu-open .sidebar { transform: none; box-shadow: 30px 0 80px rgb(0 0 0 / 50%); }
  .side-scrim { position: fixed; inset: 0; z-index: 35; background: rgb(0 0 0 / 55%); }
  .shell.menu-open .side-scrim { display: block; }
  .mobile-menu { display: inline-grid; }
  .topbar-context .hide-sm { display: none; }
  .main { padding-bottom: 96px; }
  .tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #2c2620; background: rgb(19 16 13 / 96%); backdrop-filter: blur(10px); }
  .tab-link { display: grid; justify-items: center; gap: 3px; padding: 9px 2px 8px; border: 0; background: none; color: #8f8377; font-size: 10.5px; font-weight: 600; }
  .tab-link.is-active { color: var(--orange-hi); box-shadow: inset 0 2px var(--orange); }
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { margin-left: 0; gap: 22px; }
  .podium { grid-template-columns: minmax(0, 1fr); }
  .podium-card.first { order: -1; }
  .login-page { padding: 120px 16px 120px; }
  .login-card { padding: 26px; }
  .login-masthead > span { display: none; }
  #toasts { left: 16px; right: 16px; bottom: 84px; }
  .toast { min-width: 0; }
}
