/* ==========================================================================
   LUMORA — Design system 2026
   Un seul fichier pour tout le site : tokens → base → composants → pages.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
    color-scheme: dark;

    --bg:        #05070d;
    --bg-2:      #0a0e18;
    --surface:   rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .06);
    --surface-3: rgba(255, 255, 255, .09);
    --border:    rgba(255, 255, 255, .08);
    --border-2:  rgba(255, 255, 255, .14);

    --text:   #eef1f8;
    --text-2: #a9b2c6;
    --text-3: #6c768d;

    --gold:   #f5c04a;
    --gold-2: #ffe08f;
    --gold-3: #b7832a;
    --violet: #8b5cf6;
    --cyan:   #22d3ee;
    --success:#34d399;
    --danger: #f87171;
    --info:   #60a5fa;

    --r-common:    #9aa6bb;
    --r-rare:      #60a5fa;
    --r-epic:      #c084fc;
    --r-legendary: #fbbf24;

    --grad-gold: linear-gradient(135deg, #ffe08f 0%, #f5c04a 45%, #c98a1f 100%);
    --grad-aurora: linear-gradient(120deg, #f5c04a, #c084fc 50%, #22d3ee);

    --font-display: 'Cinzel', 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius-lg: 24px;
    --radius:    18px;
    --radius-sm: 12px;
    --radius-xs: 8px;

    --shadow:      0 20px 50px -20px rgba(0, 0, 0, .7);
    --shadow-gold: 0 10px 40px -10px rgba(245, 192, 74, .45);

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 72px;

    --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--bg);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Fond « aurora » fixe, commun à toutes les pages */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60vw 50vh at 85% -10%, rgba(139, 92, 246, .16), transparent 60%),
        radial-gradient(50vw 45vh at -10% 20%, rgba(34, 211, 238, .08), transparent 60%),
        radial-gradient(70vw 60vh at 50% 110%, rgba(245, 192, 74, .07), transparent 60%),
        var(--bg);
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .35;
    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: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

main { flex: 1 0 auto; }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-2); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: .02em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1em; text-wrap: pretty; }

::selection { background: rgba(245, 192, 74, .35); color: #fff; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.text-gradient {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.muted { color: var(--text-2); }
.dim   { color: var(--text-3); }
.center { text-align: center; }

/* ---------- 3. COMPOSANTS ---------- */

/* Boutons */
.btn {
    --btn-bg: var(--surface-2);
    --btn-fg: var(--text);
    --btn-bd: var(--border-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    min-height: 44px;
    padding: .7em 1.35em;
    border-radius: 999px;
    border: 1px solid var(--btn-bd);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font: 600 .95rem/1 var(--font-body);
    letter-spacing: .01em;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .25s, background .2s, border-color .2s, color .2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); border-color: rgba(255,255,255,.25); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.btn--primary {
    --btn-bg: var(--grad-gold);
    --btn-fg: #1b1203;
    --btn-bd: transparent;
    box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn--primary:hover { box-shadow: 0 14px 44px -10px rgba(245,192,74,.65), inset 0 1px 0 rgba(255,255,255,.45); border-color: transparent; }
.btn--ghost { --btn-bg: transparent; }
.btn--cyan  { --btn-bg: linear-gradient(135deg, #67e8f9, #22d3ee 50%, #0891b2); --btn-fg: #032027; --btn-bd: transparent; box-shadow: 0 10px 40px -12px rgba(34,211,238,.55); }
.btn--discord { --btn-bg: #5865f2; --btn-fg: #fff; --btn-bd: transparent; }
.btn--discord:hover { --btn-bg: #4752c4; }
.btn--danger { --btn-bg: rgba(248,113,113,.12); --btn-fg: #fecaca; --btn-bd: rgba(248,113,113,.35); }
.btn--lg { min-height: 54px; padding: .9em 1.8em; font-size: 1.02rem; }
.btn--sm { min-height: 36px; padding: .5em 1em; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }

/* Cartes « verre » */
.card {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(18px, 3vw, 28px);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}
.card--hover { transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.card--hover:hover { transform: translateY(-4px); border-color: rgba(245,192,74,.35); box-shadow: 0 30px 60px -25px rgba(0,0,0,.8), 0 0 0 1px rgba(245,192,74,.08); }
.card--glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: var(--grad-aurora);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .55;
    pointer-events: none;
}
.card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: .8rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 18px;
}

/* Badges / chips / pills */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    color: var(--text-2);
    white-space: nowrap;
}
.badge--gold    { background: rgba(245,192,74,.12); border-color: rgba(245,192,74,.35); color: var(--gold-2); }
.badge--cyan    { background: rgba(34,211,238,.1);  border-color: rgba(34,211,238,.35); color: #a5f3fc; }
.badge--violet  { background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.4); color: #ddd6fe; }
.badge--success { background: rgba(52,211,153,.1);  border-color: rgba(52,211,153,.35); color: #a7f3d0; }
.badge--danger  { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.35); color: #fecaca; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.dot--live { background: var(--success); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border-2);
    background: var(--surface);
    color: var(--text-2);
    font: 600 .88rem var(--font-body);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: all .2s;
}
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.chip.is-active, .chip[aria-current="true"] { background: var(--grad-gold); color: #1b1203; border-color: transparent; }

/* Sections */
.section { padding-block: clamp(56px, 9vw, 110px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 70px); }
.section__head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 700 .75rem var(--font-body);
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--text-2); }

/* En-tête des pages internes */
.page-hero {
    position: relative;
    padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 5vw, 48px);
    text-align: center;
    isolation: isolate;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(600px 220px at 50% 35%, rgba(245,192,74,.14), transparent 70%);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: .3em; }
.page-hero .lead { max-width: 640px; margin-inline: auto; }

/* Grilles */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

/* Formulaires */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label, .label {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-2);
}
.input, .select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-2);
    background: rgba(0, 0, 0, .35);
    color: var(--text);
    font: 500 1rem var(--font-body);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: var(--text-3); }
.input:focus, .select:focus {
    outline: none;
    border-color: rgba(245,192,74,.6);
    box-shadow: 0 0 0 4px rgba(245,192,74,.12);
    background: rgba(0,0,0,.5);
}
.select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f5c04a' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.select option { background: #111726; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.input-icon .input { padding-left: 44px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-hint { font-size: .85rem; color: var(--text-3); margin-top: 4px; }
.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(245,192,74,.35);
    background: rgba(245,192,74,.05);
    margin-bottom: 16px;
}
.captcha-box strong { font-family: var(--font-display); color: var(--gold-2); font-size: 1.1rem; white-space: nowrap; }
.captcha-box .input { min-height: 42px; }

/* Segmented control / onglets */
.tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(0,0,0,.35);
    border: 1px solid var(--border);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--text-2);
    font: 600 .9rem var(--font-body);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .is-active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }

/* Barre de progression */
.progress {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    overflow: hidden;
}
.progress__fill {
    height: 100%;
    width: var(--value, 0%);
    border-radius: inherit;
    background: var(--grad-gold);
    box-shadow: 0 0 18px rgba(245,192,74,.55);
    transition: width 1.4s var(--ease);
}
.progress--thin { height: 6px; }

/* Tableau */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(0,0,0,.2); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th {
    position: sticky; top: 0;
    padding: 14px 16px;
    text-align: left;
    font: 700 .72rem var(--font-body);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
    background: rgba(10, 14, 24, .92);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(245,192,74,.04); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; min-height: 42px; padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    font-weight: 600;
    text-decoration: none;
}
.pagination a:hover { color: var(--gold); border-color: rgba(245,192,74,.4); }
.pagination .is-current { background: rgba(245,192,74,.12); border-color: rgba(245,192,74,.45); color: var(--gold-2); }

/* États vides */
.empty {
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 48px 20px;
    text-align: center;
    color: var(--text-3);
}
.empty svg { width: 44px; height: 44px; opacity: .6; }

/* Alertes inline */
.alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-2);
    background: var(--surface);
    font-size: .95rem;
    margin-bottom: 16px;
}
.alert--info    { border-color: rgba(96,165,250,.35);  background: rgba(96,165,250,.08); color: #dbeafe; }
.alert--warning { border-color: rgba(245,192,74,.35);  background: rgba(245,192,74,.08); color: #fde68a; }
.alert--success { border-color: rgba(52,211,153,.35);  background: rgba(52,211,153,.08); color: #d1fae5; }
.alert--error   { border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.08); color: #fee2e2; }

/* Toasts */
.toast-stack {
    position: fixed;
    z-index: 2000;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 440px;
    padding: 14px 16px 14px 18px;
    border-radius: 14px;
    background: rgba(17, 22, 36, .92);
    border: 1px solid var(--border-2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    font-size: .95rem;
    animation: toast-in .45s var(--ease) both;
}
.toast::before { content: ''; width: 4px; align-self: stretch; border-radius: 4px; background: var(--info); flex-shrink: 0; }
.toast--success::before { background: var(--success); }
.toast--error::before   { background: var(--danger); }
.toast--warning::before { background: var(--gold); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--text-3); font-size: 1.1rem; cursor: pointer; padding: 4px; }
.toast.is-leaving { animation: toast-out .35s ease forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes toast-out { to   { opacity: 0; transform: translateX(30px); } }

/* Dialogues (<dialog>) */
.dialog {
    width: min(440px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 0;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #121828, #0b0f1a);
    color: var(--text);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(245,192,74,.08);
    overflow: auto;
}
.dialog::backdrop { background: rgba(3, 5, 10, .72); backdrop-filter: blur(6px); }
.dialog[open] { animation: dialog-in .35s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.dialog__inner { padding: clamp(22px, 4vw, 32px); }
.dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dialog__head h2 { font-size: 1.5rem; margin: 0; }
.dialog__head p { margin: 6px 0 0; color: var(--text-2); font-size: .95rem; }
.dialog__close {
    display: grid; place-items: center;
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--border-2);
    background: var(--surface);
    color: var(--text-2);
    cursor: pointer;
    font-size: 1.1rem;
}
.dialog__close:hover { color: var(--text); }
.dialog__foot { margin-top: 16px; text-align: center; font-size: .92rem; color: var(--text-2); }
.dialog__foot button { background: none; border: 0; color: var(--gold); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

/* Apparition au scroll (désactivée si l'utilisateur préfère moins d'animations) */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- 4. HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--header-h);
    background: rgba(5, 7, 13, .6);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s;
}
.site-header.is-scrolled { background: rgba(5, 7, 13, .85); border-bottom-color: var(--border); }
.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text);
    flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand__mark {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--grad-gold);
    color: #1b1203;
    font-size: 1.05rem;
    box-shadow: var(--shadow-gold);
}
.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-inline: auto;
}
.nav a {
    position: relative;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-2);
    font-weight: 600;
    font-size: .93rem;
    white-space: nowrap;
    transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-gold);
}
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.lang-switch {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,.3);
}
.lang-switch a {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--text-3);
}
.lang-switch a.is-active { background: var(--surface-3); color: var(--text); }
.points-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px 0 6px;
    border-radius: 999px;
    border: 1px solid rgba(245,192,74,.3);
    background: rgba(245,192,74,.08);
    color: var(--gold-2);
    font-weight: 700;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}
.points-pill:hover { color: var(--gold-2); border-color: rgba(245,192,74,.55); }
.points-pill__avatar {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--grad-gold);
    color: #1b1203;
    font-family: var(--font-display);
    font-size: .8rem;
}
.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-2);
    background: var(--surface);
    cursor: pointer;
    position: relative;
}
.nav-toggle span {
    position: absolute;
    left: 12px; right: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.nav__mobile-only { display: none; }
.logout-form { margin: 0; }

@media (max-width: 1080px) {
    .nav-toggle { display: inline-block; }
    .header-actions .btn--login, .header-actions .logout-form { display: none; }
    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        height: calc(100dvh - var(--header-h));
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 20px var(--gutter) 40px;
        background: var(--bg);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s, transform .3s var(--ease), visibility .25s;
    }
    .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
    .nav a { font-size: 1.15rem; padding: 16px 12px; border-bottom: 1px solid var(--border); border-radius: 0; }
    .nav a.is-active::after { display: none; }
    .nav a.is-active { color: var(--gold); }
    .nav__mobile-only { display: block; }
    .nav__mobile-only .btn, .nav__mobile-only form { width: 100%; margin-top: 14px; }
    .nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
    .site-header__inner { gap: 10px; }
    .brand { font-size: 1.15rem; letter-spacing: .08em; }
    .points-pill { padding-right: 10px; }
}
@media (max-width: 359px) {
    .brand__text { display: none; }
}

/* ---------- 5. FOOTER ---------- */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(5,7,13,0), rgba(5,7,13,.9) 30%);
    padding: clamp(48px, 7vw, 72px) 0 28px;
    color: var(--text-2);
    font-size: .95rem;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
}
.site-footer h4 {
    font-family: var(--font-body);
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text-2); }
.site-footer ul a:hover { color: var(--gold); }
.site-footer__tagline { margin-top: 14px; max-width: 34ch; color: var(--text-3); }
.site-footer__community { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.site-footer__community img.epvp { height: 34px; width: auto; opacity: .8; transition: opacity .2s; }
.site-footer__community img.epvp:hover { opacity: 1; }
.site-footer__bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: .85rem;
    color: var(--text-3);
}
@media (max-width: 860px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- 6. ACCUEIL ---------- */
.hero {
    position: relative;
    min-height: min(92vh, 900px);
    display: flex;
    align-items: center;
    padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 8vw, 90px);
    margin-top: calc(var(--header-h) * -1);
    padding-top: calc(var(--header-h) + clamp(48px, 8vw, 100px));
    isolation: isolate;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('../../assets/bg.jpg') center 30% / cover no-repeat;
    transform: scale(1.06);
    animation: hero-zoom 30s ease-in-out infinite alternate;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(80% 60% at 70% 40%, transparent, rgba(5,7,13,.55) 70%),
        linear-gradient(90deg, rgba(5,7,13,.95) 0%, rgba(5,7,13,.7) 45%, rgba(5,7,13,.25) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
@keyframes hero-zoom { to { transform: scale(1.14) translateX(-1.5%); } }
.hero__content { max-width: 680px; }
.hero h1 { margin-bottom: .35em; }
.hero h1 span { display: block; }
.hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 54ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.servers { margin-top: clamp(-90px, -6vw, -40px); position: relative; z-index: 2; }
.server-card { display: flex; flex-direction: column; gap: 18px; }
.server-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.server-card__name { font-family: var(--font-display); font-size: 1.2rem; margin: 0; }
.server-card__count { display: flex; align-items: baseline; gap: 10px; }
.server-card__count strong {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.server-card--lowrate .server-card__count strong { color: #a5f3fc; }
.server-card--main .server-card__count strong { color: var(--gold-2); }
.top-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.top-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0,0,0,.25);
    font-size: .92rem;
}
.top-list .rank { width: 22px; font-weight: 800; color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; }
.top-list .lv { margin-left: auto; color: var(--text-2); font-variant-numeric: tabular-nums; font-size: .85rem; }
.top-list img, .job-icon { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border-2); background: rgba(255,255,255,.04); flex-shrink: 0; }
.top-list .is-empty { justify-content: center; color: var(--text-3); background: transparent; }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; height: 44px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.bento {
    display: grid;
    gap: clamp(14px, 2vw, 20px);
    grid-template-columns: repeat(6, 1fr);
}
.bento > * { grid-column: span 2; }
.bento > .bento--wide { grid-column: span 3; }
.bento > .bento--xl { grid-column: span 4; }
.bento > .bento--full { grid-column: 1 / -1; }
@media (max-width: 960px) { .bento > *, .bento > .bento--wide, .bento > .bento--xl { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento > *, .bento > .bento--wide, .bento > .bento--xl { grid-column: auto; } }
.feature { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.feature__icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: rgba(245,192,74,.1);
    border: 1px solid rgba(245,192,74,.25);
    color: var(--gold);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature--violet .feature__icon { background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.3); color: #c4b5fd; }
.feature--cyan .feature__icon { background: rgba(34,211,238,.1); border-color: rgba(34,211,238,.3); color: #67e8f9; }
.feature h3 { margin: 0; }
.feature p { margin: 0; color: var(--text-2); }
.feature__link { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.feature--art { min-height: 260px; justify-content: flex-end; background: linear-gradient(0deg, rgba(5,7,13,.95), rgba(5,7,13,.2)), url('../../assets/bg.jpg') 70% 20% / cover; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
    counter-increment: step;
    content: '0' counter(step);
    position: absolute;
    top: 20px; left: clamp(18px, 3vw, 28px);
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    background: var(--grad-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: .9;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); }

.goal { display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 4vw, 40px); align-items: center; }
.goal__stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 18px; color: var(--text-2); font-size: .95rem; }
.goal__stats b { color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .goal { grid-template-columns: 1fr; } }

.video-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    font: inherit;
}
.video-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; opacity: .85; }
.video-card:hover img { transform: scale(1.05); opacity: 1; }
.video-card__play {
    position: absolute;
    top: 50%; left: 50%;
    width: 64px; height: 64px;
    margin: -32px 0 0 -32px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--grad-gold);
    color: #1b1203;
    box-shadow: var(--shadow-gold);
    transition: transform .3s var(--ease);
}
.video-card:hover .video-card__play { transform: scale(1.1); }
.video-card__meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(0deg, rgba(0,0,0,.9), transparent); }
.video-card__meta small { color: var(--gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.video-card__meta div { font-weight: 600; }
.video-card__duration { position: absolute; top: 12px; right: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.75); font-size: .78rem; font-weight: 700; }
.video-dialog { width: min(1000px, calc(100vw - 24px)); background: #000; }
.video-dialog iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-dialog .dialog__close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(0,0,0,.6); }

.faq { display: grid; gap: 12px; }
.faq__item { padding: 0; }
.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-weight: 700;
    font-size: 1.02rem;
    cursor: pointer;
    list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border-2);
    color: var(--gold);
    font-size: 1.2rem;
    transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0; padding: 0 22px 20px; color: var(--text-2); }

.cta-band {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(28px, 5vw, 48px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(400px 200px at 90% 0%, rgba(88,101,242,.4), transparent 70%),
        radial-gradient(400px 220px at 0% 100%, rgba(245,192,74,.18), transparent 70%),
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid var(--border-2);
}
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: var(--text-2); }

/* ---------- 7. BOUTIQUE ---------- */
.shop-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.shop-filters {
    position: sticky;
    top: calc(var(--header-h) + 8px);
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(200px, 1fr) auto;
    gap: 12px;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: var(--radius);
    background: rgba(10, 14, 24, .85);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.shop-filters .select { min-width: 190px; }
@media (max-width: 620px) { .shop-filters { grid-template-columns: 1fr; position: static; } }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: thin; }

.balance-card { display: flex; align-items: center; gap: 16px; }
.balance-card__value { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-2); line-height: 1; font-variant-numeric: tabular-nums; }

.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.product {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.product:hover { transform: translateY(-4px); border-color: rgba(245,192,74,.35); box-shadow: 0 24px 50px -24px rgba(0,0,0,.9); }
.product__media {
    position: relative;
    display: grid;
    place-items: center;
    height: 96px;
    border-radius: 14px;
    background: radial-gradient(circle at 50% 60%, rgba(245,192,74,.18), transparent 65%), rgba(0,0,0,.3);
}
.product__media img { width: 56px; height: 56px; border-radius: 10px; image-rendering: auto; box-shadow: 0 8px 20px rgba(0,0,0,.5); transition: transform .35s var(--ease); }
.product:hover .product__media img { transform: scale(1.12) rotate(-3deg); }
.product__badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 1; }
.product__badges .badge { font-size: .62rem; padding: 3px 8px; }
.product__cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.product__name {
    font-family: var(--font-body);
    letter-spacing: 0;
    font-weight: 700;
    line-height: 1.3;
    font-size: .95rem;
    min-height: 2.6em;
    margin: 0;
    overflow-wrap: anywhere;          /* coupe les mots très longs au lieu de déborder */
    hyphens: auto;
    display: -webkit-box;             /* 3 lignes max, nom complet au survol */
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: -4px; }
.product__tags span {
    padding: 1px 7px;
    border-radius: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-3);
    font-size: .68rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product__qty { color: var(--text-3); font-weight: 600; }
.product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product__price { font-family: var(--font-display); font-weight: 700; color: var(--gold-2); font-size: 1.1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.product__price small { font-family: var(--font-body); font-size: .72rem; color: var(--text-3); margin-left: 3px; }
.product form { margin: 0; }

.reassure { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 40px; }
.reassure div { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-weight: 600; }
.reassure svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }

.buy-preview { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--radius-sm); background: rgba(0,0,0,.3); border: 1px solid var(--border); margin-bottom: 18px; }
.buy-preview img { width: 56px; height: 56px; border-radius: 10px; }
.buy-lines { display: grid; gap: 8px; margin-bottom: 20px; font-size: .95rem; }
.buy-lines div { display: flex; justify-content: space-between; color: var(--text-2); }
.buy-lines b { color: var(--text); font-variant-numeric: tabular-nums; }
.buy-lines .total { padding-top: 8px; border-top: 1px dashed var(--border-2); }

/* ---------- 8. LOOTBOX ---------- */
.lb-boxes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 28px; }
.lb-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 22px 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%), rgba(255,255,255,.03);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.lb-box:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--rc) 50%, transparent); }
.lb-box.is-selected { border-color: var(--rc); box-shadow: 0 0 0 1px var(--rc), 0 18px 40px -18px color-mix(in srgb, var(--rc) 70%, transparent); }
.lb-box__emoji { font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--rc) 60%, transparent)); }
.lb-box__name { font-family: var(--font-display); font-weight: 700; text-align: center; }
.lb-box__cost { color: var(--gold-2); font-weight: 700; font-variant-numeric: tabular-nums; }
/* Couleur par défaut (spécificité nulle : la classe rarity-* l'emporte toujours) */
:where(.lb-box, .lb-reel-item, .lb-odd, .lb-result, .lb-feed li) { --rc: var(--r-common); }
.rarity-common    { --rc: var(--r-common); }
.rarity-rare      { --rc: var(--r-rare); }
.rarity-epic      { --rc: var(--r-epic); }
.rarity-legendary { --rc: var(--r-legendary); }

.lb-stage {
    position: relative;
    padding: 26px 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-2);
    background: radial-gradient(500px 160px at 50% 50%, rgba(245,192,74,.08), transparent 70%), rgba(0,0,0,.4);
    overflow: hidden;
}
.lb-stage::before, .lb-stage::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 18%;
    z-index: 2;
    pointer-events: none;
}
.lb-stage::before { left: 0; background: linear-gradient(90deg, #070a12, transparent); }
.lb-stage::after  { right: 0; background: linear-gradient(-90deg, #070a12, transparent); }
.lb-cursor {
    position: absolute;
    top: 8px; bottom: 8px;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    z-index: 3;
    background: var(--gold);
    box-shadow: 0 0 16px var(--gold), 0 0 4px var(--gold);
}
.lb-cursor::before, .lb-cursor::after {
    content: '';
    position: absolute;
    left: 50%;
    border: 8px solid transparent;
    transform: translateX(-50%);
}
.lb-cursor::before { top: -8px; border-top-color: var(--gold); }
.lb-cursor::after  { bottom: -8px; border-bottom-color: var(--gold); }
.lb-track { display: flex; gap: 10px; will-change: transform; padding-inline: 10px; }
.lb-reel-item {
    flex: 0 0 120px;
    height: 136px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--rc) 35%, transparent);
    border-bottom: 3px solid var(--rc);
    background: linear-gradient(180deg, rgba(255,255,255,.04), color-mix(in srgb, var(--rc) 14%, transparent));
    text-align: center;
}
.lb-reel-item img { width: 48px; height: 48px; border-radius: 8px; }
.lb-reel-item__emoji { font-size: 2rem; line-height: 1; }
.lb-reel-item__name { font-size: .74rem; font-weight: 600; line-height: 1.2; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb-reel-item.is-winner { box-shadow: 0 0 0 2px var(--rc), 0 0 30px color-mix(in srgb, var(--rc) 70%, transparent); transform: scale(1.06); transition: transform .3s var(--ease), box-shadow .3s; }
.lb-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin: 24px 0 8px; }
.lb-odds { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.lb-odd {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--rc) 30%, transparent);
    background: color-mix(in srgb, var(--rc) 6%, transparent);
    text-align: center;
}
.lb-odd img { width: 42px; height: 42px; border-radius: 8px; }
.lb-odd__name { font-size: .82rem; font-weight: 600; line-height: 1.25; }
.lb-odd__pct { font-weight: 800; color: var(--rc); font-variant-numeric: tabular-nums; font-size: .9rem; }
.lb-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb-feed li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.25); font-size: .92rem; }
.lb-feed .dot { background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.lb-feed__time { margin-left: auto; color: var(--text-3); font-size: .82rem; white-space: nowrap; }
.lb-result { text-align: center; }
.lb-result__emoji { font-size: 3.6rem; line-height: 1; margin: 6px 0 12px; }
.lb-result__icon { width: 84px; height: 84px; margin: 6px auto 14px; border-radius: 16px; box-shadow: 0 0 40px var(--rc); }
.lb-result__rarity { font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--rc); font-size: .8rem; }
.lb-result__name { font-family: var(--font-display); font-size: 1.5rem; margin: 6px 0 4px; }
.lb-result .dialog__inner { background: radial-gradient(300px 180px at 50% 0%, color-mix(in srgb, var(--rc) 25%, transparent), transparent 70%); }
.lb-flash { position: fixed; inset: 0; z-index: 1500; pointer-events: none; background: radial-gradient(circle, rgba(255,255,255,.35), transparent 60%); opacity: 0; transition: opacity .12s; }
.lb-flash.is-on { opacity: 1; }
.confetti { position: fixed; top: -10px; z-index: 2100; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; animation: confetti-fall linear forwards; }
@keyframes confetti-fall { to { transform: translateY(110vh) rotate(720deg); opacity: 0; } }
@media (max-width: 600px) { .lb-reel-item { flex-basis: 96px; height: 116px; } .lb-reel-item img { width: 38px; height: 38px; } }

/* ---------- 9. CLASSEMENT ---------- */
.rank-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.rank-filters { display: grid; grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(140px, auto)) auto; gap: 10px; margin-bottom: 22px; }
@media (max-width: 760px) { .rank-filters { grid-template-columns: 1fr 1fr; } .rank-filters .input-icon { grid-column: 1 / -1; } }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: clamp(10px, 2vw, 20px); margin-bottom: 32px; }
.podium__item {
    --pc: #cbd5e1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 14px 22px;
    border-radius: var(--radius);
    border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent);
    background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--pc) 22%, transparent), transparent 70%), rgba(255,255,255,.03);
    text-align: center;
    min-width: 0;
}
.podium__item--1 { --pc: #fbbf24; padding-top: 40px; box-shadow: 0 30px 70px -30px rgba(251,191,36,.45); }
.podium__item--2 { --pc: #cbd5e1; }
.podium__item--3 { --pc: #d97706; }
.podium__place {
    position: absolute;
    top: -16px;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--pc);
    color: #111;
    font-weight: 800;
    box-shadow: 0 0 20px color-mix(in srgb, var(--pc) 60%, transparent);
}
.podium__item img { width: 52px; height: 52px; border-radius: 14px; border: 2px solid color-mix(in srgb, var(--pc) 60%, transparent); }
.podium__name { font-weight: 800; font-size: 1.05rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium__value { font-family: var(--font-display); font-weight: 700; color: var(--pc); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
    .podium { grid-template-columns: 1fr; }
    .podium__item--1 { order: -1; }
}
.rank-pos { width: 56px; font-weight: 800; color: var(--text-3); font-variant-numeric: tabular-nums; }
.player-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-cell strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-cell small { display: block; color: var(--text-3); font-size: .8rem; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-3); white-space: nowrap; }
.status.is-online { color: #a7f3d0; }
.guild-icon { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; border: 1px solid var(--border-2); flex-shrink: 0; }
@media (max-width: 640px) { .table .hide-sm { display: none; } }

/* ---------- 10. PROFIL ---------- */
.profile-layout { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .profile-layout { grid-template-columns: 1fr; } }
.profile-id { text-align: center; }
.avatar-xl {
    width: 88px; height: 88px;
    margin: 0 auto 14px;
    display: grid; place-items: center;
    border-radius: 28px;
    background: var(--grad-gold);
    color: #1b1203;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}
.profile-id h2 { font-size: 1.5rem; margin-bottom: 4px; word-break: break-word; }
.meta-list { display: grid; gap: 0; margin: 18px 0 0; text-align: left; }
.meta-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.meta-list div:last-child { border-bottom: 0; }
.meta-list dt { color: var(--text-3); }
.meta-list dd { margin: 0; font-weight: 600; text-align: right; word-break: break-all; }
.stack { display: grid; gap: 22px; }
.vote-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(0,0,0,.25); }
.vote-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vote-card__reward { font-family: var(--font-display); font-weight: 700; color: var(--gold-2); font-size: 1.2rem; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; }
.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.history-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.22); font-size: .92rem; }
.history-list img { width: 34px; height: 34px; border-radius: 8px; }
.history-list .when { margin-left: auto; color: var(--text-3); font-size: .82rem; white-space: nowrap; }
.char-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.char-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--border); }
.char-card img { width: 42px; height: 42px; border-radius: 10px; }
.char-card strong { display: block; }
.char-card small { color: var(--text-3); }

/* ---------- 11. DONS ---------- */
.donate-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .donate-layout { grid-template-columns: 1fr; } }
.amount-input { position: relative; }
.amount-input .input { min-height: 64px; padding-right: 54px; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.amount-input span { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-size: 1.4rem; color: var(--text-3); }
.points-preview {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 18px;
    margin: 16px 0;
    border-radius: var(--radius-sm);
    background: rgba(245,192,74,.07);
    border: 1px solid rgba(245,192,74,.25);
}
.points-preview strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold-2); line-height: 1; font-variant-numeric: tabular-nums; }
.points-preview small { color: var(--text-2); }
.tier-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tier {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,.22);
    transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.tier.is-active { border-color: rgba(245,192,74,.55); background: rgba(245,192,74,.08); transform: translateX(4px); }
.tier__icon { font-size: 1.4rem; width: 36px; text-align: center; }
.tier__body { flex: 1; min-width: 0; }
.tier__body strong { display: block; }
.tier__body small { color: var(--text-3); }
#paypal-button { min-height: 50px; }

/* ---------- 12. TÉLÉCHARGEMENT / CRÉDITS ---------- */
.server-block { margin-bottom: clamp(36px, 6vw, 60px); }
.server-block__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.server-block__head h2 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.dl-card { display: flex; flex-direction: column; gap: 14px; }
.dl-card__top { display: flex; align-items: center; gap: 14px; }
.dl-card__logo { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(245,192,74,.1); border: 1px solid rgba(245,192,74,.25); color: var(--gold); flex-shrink: 0; }
.dl-card__logo svg { width: 28px; height: 28px; }
.dl-card--cyan .dl-card__logo { background: rgba(34,211,238,.1); border-color: rgba(34,211,238,.3); color: #67e8f9; }
.dl-card h3 { margin: 0; }
.dl-card p { margin: 0; color: var(--text-2); }
.dl-card .btn { margin-top: auto; }
.credit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.credit { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.credit__avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(245,192,74,.1); border: 1px solid rgba(245,192,74,.25); color: var(--gold-2); font-family: var(--font-display); font-weight: 700; flex-shrink: 0; }
.credit strong { display: block; }
.credit small { color: var(--text-3); }

/* ---------- 13. ACCESSIBILITÉ : MOINS D'ANIMATIONS ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
    .hero__bg { animation: none; }
}
