/* ==========================================================================
   Lumynis — design « braise & or »
   Sommaire : 1. Jetons  2. Base  3. Mise en page  4. En-tête / menu  5. Pied de page
   6. Composants (boutons, cartes, formulaires, tableaux, alertes, onglets...)  7. Accueil
   8. Pages (compte, boutique, vote, VIP, battle pass, classements...)  9. Responsive
   ========================================================================== */

/* 1. Jetons ---------------------------------------------------------------- */
:root {
    --bg: #0c0907;
    --bg-2: #120d0a;
    --surface: rgba(255, 236, 220, .045);
    --surface-2: rgba(255, 236, 220, .075);
    --surface-solid: #18110d;
    --line: rgba(255, 190, 140, .13);
    --line-2: rgba(255, 190, 140, .24);
    --text: #f6ede5;
    --text-2: #d6c6b8;
    --muted: #9c8a7c;
    --ember: #ff6a2b;
    --ember-2: #ff8a3d;
    --gold: #ffb547;
    --gold-2: #ffd27a;
    --grad: linear-gradient(135deg, #ff5a1f 0%, #ff8a3d 45%, #ffc15a 100%);
    --grad-soft: linear-gradient(135deg, rgba(255, 106, 43, .18), rgba(255, 181, 71, .1));
    --ok: #4ade80;
    --err: #ff5d5d;
    --warn: #ffc15a;
    --info: #6cb6ff;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 26px;
    --shadow: 0 18px 50px -18px rgba(0, 0, 0, .75);
    --glow: 0 0 0 1px rgba(255, 138, 61, .35), 0 12px 40px -10px rgba(255, 106, 43, .55);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Sora', 'Inter', system-ui, sans-serif;
    --header-h: 90px;
    --container: 1220px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
/* Fond : lueurs de braise + grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1100px 600px at 85% -10%, rgba(255, 106, 43, .16), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(255, 181, 71, .08), transparent 60%),
        radial-gradient(800px 600px at 50% 120%, rgba(255, 70, 20, .1), transparent 60%),
        var(--bg);
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.lock { overflow: hidden; }
img, svg, video, canvas { max-width: 100%; display: block; }
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); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
small { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: rgba(255, 138, 61, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a2a20; border-radius: 10px; border: 2px solid var(--bg); }

/* 3. Mise en page ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.container.tight { max-width: 520px; }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(255, 106, 43, .035) 30%, rgba(255, 106, 43, .035) 70%, transparent); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 34px; }
.section-head h2 { margin: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 .78rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
    margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-2); max-width: 680px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }

/* En-tête de page interne */
.page-hero { position: relative; padding: calc(var(--header-h) + 54px) 0 40px; text-align: center; overflow: hidden; isolation: isolate; }
.page-hero::before {
    content: ''; position: absolute; left: 50%; top: 0; width: min(900px, 120vw); height: 420px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(255, 106, 43, .22), transparent); z-index: -1;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead { margin: 0 auto; }
.page-body { padding: 10px 0 90px; }

/* 4. En-tête / menu -------------------------------------------------------- */
.header {
    position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.header.scrolled, .header.solid {
    background: rgba(12, 9, 7, .78);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-color: var(--line);
}
.header .inner { height: 100%; display: flex; align-items: center; gap: 22px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 78px; width: auto; filter: drop-shadow(0 4px 18px rgba(255, 106, 43, .35)); transition: transform .3s var(--ease); }
.logo:hover img { transform: scale(1.04) rotate(-1deg); }
.nav { flex: 1; display: flex; justify-content: center; }
.nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav a, .nav button {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-radius: 10px; border: 0; background: none; cursor: pointer;
    color: var(--text-2); font: 500 .95rem/1 var(--font); transition: color .2s, background .2s;
}
.nav a:hover, .nav button:hover, .nav .open > button { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); }
.nav > ul > li > a[aria-current="page"]::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad);
}
.chev { width: 12px; height: 12px; transition: transform .25s; }
.has-sub.open .chev, .has-sub:hover .chev { transform: rotate(180deg); }
.dropdown {
    position: absolute; top: calc(100% + 10px); left: 50%; min-width: 240px; list-style: none; margin: 0; padding: 8px;
    background: rgba(24, 17, 13, .97); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow);
    backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: .2s var(--ease);
}
.dropdown::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-sub:hover > .dropdown, .has-sub:focus-within > .dropdown, .has-sub.open > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { width: 100%; padding: 11px 12px; border-radius: 9px; font-size: .92rem; display: block; line-height: 1.3; }
.dropdown a small { display: block; font-size: .78rem; margin-top: 3px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.coin-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px;
    background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--gold-2); font-weight: 700; font-size: .9rem; white-space: nowrap;
}
.coin-chip:hover { color: #fff; }
.og { width: 1.05em; height: 1.05em; flex-shrink: 0; display: inline-block; vertical-align: -.15em; }
.burger {
    display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2);
    background: var(--surface); cursor: pointer; position: relative; flex-shrink: 0;
}
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: .3s var(--ease); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.drawer-only { display: none; }

/* 5. Pied de page ---------------------------------------------------------- */
.footer { position: relative; margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 106, 43, .04), transparent 40%); }
.footer::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--ember), var(--gold), transparent); opacity: .6; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; padding: 60px 0 40px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 320px; }
.footer h4 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.footer-links a { display: block; color: var(--muted); padding: 5px 0; font-size: .93rem; }
.footer-links a:hover { color: var(--gold-2); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .82rem; }
.footer-bottom p { margin: 0; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.socials a:hover { color: #fff; border-color: var(--line-2); background: var(--surface-2); }
.socials svg { width: 18px; height: 18px; }

/* 6. Composants ------------------------------------------------------------ */
/* Boutons */
.btn {
    --b: var(--line-2);
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 22px; border-radius: 12px; border: 1px solid var(--b); cursor: pointer;
    background: var(--surface); color: var(--text); font: 600 .95rem/1.1 var(--font); white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .2s, filter .2s;
    text-decoration: none;
}
.btn:hover { color: #fff; background: var(--surface-2); border-color: rgba(255, 181, 71, .45); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { border: 0; color: #1a0b03; background: var(--grad); box-shadow: 0 10px 30px -10px rgba(255, 106, 43, .8); }
.btn-primary:hover { color: #1a0b03; background: var(--grad); box-shadow: var(--glow); filter: brightness(1.07); }
.btn-ghost { background: transparent; }
.btn-danger { --b: rgba(255, 93, 93, .45); color: #ffb3b3; }
.btn-danger:hover { background: rgba(255, 93, 93, .12); border-color: var(--err); color: #fff; }
.btn-sm { padding: 9px 14px; font-size: .86rem; border-radius: 10px; }
.btn-lg { padding: 16px 30px; font-size: 1.04rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Cartes */
.card {
    position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card.hover { transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.card.hover:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card.glow { border-color: rgba(255, 138, 61, .45); box-shadow: 0 0 0 1px rgba(255, 138, 61, .15), 0 30px 70px -30px rgba(255, 106, 43, .5); }
.card-title { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin-bottom: 16px; }
.card-title .ico { width: 40px; height: 40px; border-radius: 12px; }
.card > :last-child { margin-bottom: 0; }
.ico {
    width: 48px; height: 48px; display: grid; place-items: center; flex-shrink: 0; border-radius: 14px;
    background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--gold);
}
.ico svg { width: 55%; height: 55%; }
.feature h3 { margin: 16px 0 8px; }
.feature p { color: var(--text-2); margin: 0; font-size: .96rem; }

/* Badges / puces */
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600;
    background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; vertical-align: middle; line-height: 1.4;
}
.badge.gold { background: rgba(255, 181, 71, .14); border-color: rgba(255, 181, 71, .4); color: var(--gold-2); }
.badge.ember { background: rgba(255, 106, 43, .15); border-color: rgba(255, 106, 43, .45); color: #ffb08a; }
.badge.ok { background: rgba(74, 222, 128, .12); border-color: rgba(74, 222, 128, .35); color: #9df5bd; }
.badge.err { background: rgba(255, 93, 93, .12); border-color: rgba(255, 93, 93, .4); color: #ffb0b0; }
.badge.dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* Formulaires */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--text-2); }
.field small { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=tel], select, textarea {
    width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-2);
    background: rgba(0, 0, 0, .3); color: var(--text); font: 400 .98rem/1.3 var(--font);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: #6f6055; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ember-2); box-shadow: 0 0 0 4px rgba(255, 106, 43, .16); background: rgba(0, 0, 0, .42); }
input[readonly] { opacity: .7; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23ffb547' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }
select option { background: #1a120e; }
textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-2); font-weight: 400; }
.check input { width: 18px; height: 18px; accent-color: var(--ember); margin-top: 2px; flex-shrink: 0; }
.form-foot { text-align: center; color: var(--muted); font-size: .92rem; margin: 0; }

/* Alertes */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid; font-size: .95rem; margin-bottom: 18px; }
.alert p { margin: 0; }
.alert::before { content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; background: currentColor; -webkit-mask: var(--alert-ico) center/contain no-repeat; mask: var(--alert-ico) center/contain no-repeat; }
.alert-err { --alert-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 7v6M12 16.5v.5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); color: #ffb0b0; background: rgba(255, 93, 93, .1); border-color: rgba(255, 93, 93, .35); }
.alert-ok { --alert-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M7.5 12.5l3 3 6-6.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); color: #a6f4c2; background: rgba(74, 222, 128, .09); border-color: rgba(74, 222, 128, .32); }
.alert-warn { --alert-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l10 18H2z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M12 10v5M12 18v.5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); color: #ffd99a; background: rgba(255, 193, 90, .1); border-color: rgba(255, 193, 90, .35); }
.alert-info { --alert-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 11v6M12 7.5v.5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); color: #b9dcff; background: rgba(108, 182, 255, .09); border-color: rgba(108, 182, 255, .3); }

/* Tableaux */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font: 600 .74rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(255, 236, 220, .03); white-space: nowrap; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(255, 138, 61, .06); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .rank { width: 64px; font-family: var(--font-display); font-weight: 700; color: var(--muted); }
.table tr.top1 .rank { color: var(--gold); } .table tr.top2 .rank { color: #d9dde6; } .table tr.top3 .rank { color: #e0a47a; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who img, .avatar { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); flex-shrink: 0; }
.avatar { display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--gold); background: var(--grad-soft); }
.who b { display: block; font-weight: 600; color: var(--text); }
.who small { display: block; }

/* Onglets */
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { padding: 10px 16px; border-radius: 10px; color: var(--text-2); font: 600 .9rem/1 var(--font); background: none; border: 0; cursor: pointer; white-space: nowrap; transition: .2s; }
.tabs a:hover, .tabs button:hover { color: var(--text); background: var(--surface-2); }
.tabs .active, .tabs [aria-selected="true"], .tabs [aria-current="page"] { color: #1a0b03; background: var(--grad); }
.tabs .active:hover, .tabs [aria-selected="true"]:hover, .tabs [aria-current="page"]:hover { color: #1a0b03; background: var(--grad); }
.tab-panel[hidden] { display: none; }

/* Statistiques */
.stat { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat .label { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.stat strong { display: flex; align-items: center; gap: 8px; font: 700 clamp(1.5rem, 3vw, 2rem)/1.1 var(--font-display); }
.stat small { display: block; margin-top: 6px; }
.stat .ico { width: 44px; height: 44px; margin-bottom: 14px; }

/* Progression */
.progress { height: 10px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--grad); box-shadow: 0 0 14px rgba(255, 106, 43, .6); transition: width 1s var(--ease); }

/* Vide / pagination / divers */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .ico { margin: 0 auto 14px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-weight: 600; font-size: .9rem; }
.pagination a:hover { border-color: var(--line-2); color: #fff; }
.pagination .current { background: var(--grad); color: #1a0b03; border: 0; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list-check li { display: flex; gap: 10px; color: var(--text-2); }
.list-check li::before { content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; background: var(--grad-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23ffb547' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border: 1px solid var(--line-2); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.divider { height: 1px; background: var(--line); margin: 24px 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; font-size: .92rem; }
.live::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } }

/* Modale */
.modal { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 20px; background: rgba(5, 3, 2, .72); backdrop-filter: blur(6px); }
.modal.open { display: grid; }
.modal .card { width: 100%; max-width: 520px; max-height: 88vh; overflow: auto; background: var(--surface-solid); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-size: 18px; line-height: 1; }

/* 7. Accueil --------------------------------------------------------------- */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -4%; z-index: -3; background: url('../img/hero-champ.jpg') center 40%/cover no-repeat; opacity: .9; animation: heroPan 28s ease-in-out infinite alternate; will-change: transform; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background:
    radial-gradient(ellipse 44% 50% at 50% 50%, rgba(12, 9, 7, .58) 0%, rgba(12, 9, 7, .3) 60%, transparent 100%),
    linear-gradient(180deg, rgba(12, 9, 7, .55) 0%, rgba(12, 9, 7, .1) 30%, rgba(12, 9, 7, .35) 70%, var(--bg) 100%); }
@media (max-width: 720px) { .hero-bg { background-image: url('../img/hero-champ-m.jpg'); background-position: center top; opacity: .7; } }
@keyframes heroPan { from { transform: scale(1.02) translate3d(-1%, 0, 0); } to { transform: scale(1.1) translate3d(1%, -1.5%, 0); } }
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }
.hero-logo { width: min(520px, 82vw); margin: 0 auto 6px; filter: drop-shadow(0 18px 60px rgba(255, 90, 31, .45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero h1 { font-size: clamp(2.2rem, 6.4vw, 4.8rem); line-height: 1.04; margin: 16px 0 18px; }
.hero h1 .text-grad { display: inline-block; }
.hero .lead { margin: 0 auto 32px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 40px; color: var(--muted); font-size: .92rem; }
.hero-meta b { color: var(--text); font-family: var(--font-display); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; width: 24px; height: 38px; margin-left: -12px; border: 2px solid var(--line-2); border-radius: 14px; }
.scroll-hint::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: scroll 1.8s infinite; }
@keyframes scroll { 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.pillar { overflow: hidden; }
.pillar .num { position: absolute; right: 18px; top: 8px; font: 800 4.6rem/1 var(--font-display); color: rgba(255, 181, 71, .06); }

/* Podium */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: end; }
.podium .place { display: block; text-align: center; padding: 26px 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: transform .3s var(--ease), border-color .3s; }
.podium .place:hover { transform: translateY(-6px); border-color: var(--line-2); color: var(--text); }
.podium .place[data-rank="1"] { padding-top: 40px; padding-bottom: 40px; border-color: rgba(255, 181, 71, .5); background: linear-gradient(180deg, rgba(255, 181, 71, .14), var(--surface)); box-shadow: 0 30px 80px -30px rgba(255, 140, 50, .6); }
.podium .place img { width: 130px; height: 170px; object-fit: contain; margin: 0 auto 12px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .6)); }
.podium .place[data-rank="1"] img { width: 160px; height: 210px; }
.medal { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 800 .95rem/1 var(--font-display); color: #1a0b03; background: linear-gradient(135deg, #f1f1f1, #9aa0ab); margin-bottom: 10px; }
.place[data-rank="1"] .medal { background: var(--grad); }
.place[data-rank="3"] .medal { background: linear-gradient(135deg, #f0b089, #a2603e); }
.podium .pname { display: block; font: 700 1.2rem/1.2 var(--font-display); }
.podium .meta { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* Bandeau d'appel à l'action */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 7vw, 76px) 24px; border-radius: var(--radius-lg); border: 1px solid rgba(255, 138, 61, .35); background: radial-gradient(ellipse at 50% 0%, rgba(255, 106, 43, .28), transparent 70%), var(--surface); }
.cta-band h2 { margin-bottom: 12px; }
.cta-band .lead { margin: 0 auto 26px; }

/* 8. Pages ----------------------------------------------------------------- */
/* Authentification */
.auth-card { max-width: 480px; margin: 0 auto; padding: 34px; }
.auth-card.wide { max-width: 640px; }

/* Espace joueur */
.dash { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px; align-items: start; }
.dash-side { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 16px; }
.dash-main { min-width: 0; display: grid; gap: 22px; }
.profile { text-align: center; }
.profile .avatar { width: 74px; height: 74px; font-size: 1.8rem; margin: 0 auto 12px; border-radius: 20px; }
.profile h3 { margin-bottom: 2px; }
.profile .mail { color: var(--muted); font-size: .88rem; word-break: break-all; margin: 0; }
.balances { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.balances div { padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.balances span { display: block; font-size: .78rem; color: var(--muted); }
.balances b { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-display); font-size: 1.15rem; }
.side-nav { display: grid; gap: 4px; padding: 10px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; color: var(--text-2); font-weight: 500; font-size: .95rem; }
.side-nav a svg { width: 18px; height: 18px; opacity: .8; flex-shrink: 0; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a[aria-current="page"] { background: var(--grad-soft); color: var(--gold-2); box-shadow: inset 2px 0 0 var(--ember); }
.side-nav .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.acc-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .18); }
.acc-row + .acc-row { margin-top: 10px; }
.acc-row .grow { flex: 1; min-width: 0; }
.acc-row .grow b { display: block; overflow-wrap: anywhere; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.char { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); }
.char img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.char b { display: block; font-family: var(--font-display); }
.char.dead { opacity: .6; }

/* Boutique / VIP / battle pass : offres */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px 18px; }
.offer { position: relative; display: flex; flex-direction: column; text-align: center; padding: 32px 22px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.offer:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.offer.featured { border-color: rgba(255, 138, 61, .55); background: linear-gradient(180deg, rgba(255, 106, 43, .13), var(--surface) 55%); box-shadow: 0 30px 70px -30px rgba(255, 106, 43, .55); }
.offer .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: var(--grad); color: #1a0b03; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.offer h3 { margin-bottom: 4px; }
.offer .amount { font: 800 clamp(1.9rem, 4vw, 2.5rem)/1 var(--font-display); margin: 10px 0 4px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.offer .price { font: 700 1.25rem/1 var(--font-display); color: var(--gold-2); margin: 14px 0 18px; }
.offer .perks { text-align: left; margin: 10px 0 20px; flex: 1; }
.offer .btn { margin-top: auto; }
.offer img.art { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 6px; filter: drop-shadow(0 10px 24px rgba(255, 106, 43, .4)); }
.paypal-slot { margin-top: 12px; min-height: 45px; }

/* Étapes */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 18px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 28px 22px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: -14px; left: 22px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--grad); color: #1a0b03; font: 800 .95rem/1 var(--font-display); }
.steps h3 { margin: 6px 0 6px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--text-2); font-size: .93rem; }

/* Vote */
.vote-site { display: flex; align-items: center; gap: 18px; }
.vote-site img { width: 120px; height: 60px; object-fit: contain; border-radius: 10px; background: rgba(0, 0, 0, .3); padding: 6px; flex-shrink: 0; }
.vote-site .grow { flex: 1; min-width: 0; }
.vote-site h3 { margin-bottom: 4px; }
.countdown { font: 700 1.05rem/1 var(--font-display); color: var(--gold-2); font-variant-numeric: tabular-nums; }

/* Battle pass : paliers */
.track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 14px; overflow-x: auto; padding: 6px 2px 16px; scroll-snap-type: x mandatory; }
.tier { scroll-snap-align: start; padding: 18px 14px; border-radius: 16px; text-align: center; background: var(--surface); border: 1px solid var(--line); }
.tier .lvl { font: 800 .82rem/1 var(--font-display); color: var(--muted); letter-spacing: .08em; }
.tier img { width: 56px; height: 56px; object-fit: contain; margin: 12px auto; }
.tier.done { border-color: rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .06); }
.tier.current { border-color: rgba(255, 138, 61, .6); box-shadow: var(--glow); }
.tier.locked { opacity: .55; }

/* Classements */
.ladder-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ladder-tools form { display: flex; gap: 10px; flex-wrap: wrap; }
.ladder-tools input, .ladder-tools select { width: auto; min-width: 190px; }
.class-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.class-pick a { width: 46px; height: 46px; border-radius: 12px; padding: 4px; border: 1px solid var(--line); background: var(--surface); }
.class-pick a img { width: 100%; height: 100%; object-fit: contain; }
.class-pick a.active, .class-pick a:hover { border-color: var(--ember-2); background: var(--grad-soft); }

/* Wiki / documentation */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; align-items: start; }
.doc-nav { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 2px; padding: 12px; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }
.doc-nav a { padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-size: .92rem; }
.doc-nav a:hover, .doc-nav a.active { background: var(--surface-2); color: var(--gold-2); }
.prose { color: var(--text-2); min-width: 0; }
.prose h2 { color: var(--text); margin: 1.6em 0 .6em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text); margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose strong { color: var(--text); }
.prose img { border-radius: 12px; height: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .93rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); color: var(--text); }
.prose code { background: rgba(0, 0, 0, .35); padding: 2px 6px; border-radius: 6px; font-size: .88em; color: var(--gold-2); }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-left: 3px solid var(--ember); background: var(--surface); border-radius: 0 12px 12px 0; }

/* Recherche (encyclopédie, bestiaire) */
.search-bar { position: relative; max-width: 560px; }
.search-bar input { padding-left: 44px; }
.search-bar svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.item-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); color: var(--text-2); }
.item-card:hover { border-color: var(--line-2); transform: translateY(-2px); color: var(--text-2); }
.item-card img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.item-card b { display: block; color: var(--text); }
.item-card .stats { margin: 6px 0 0; padding: 0; list-style: none; font-size: .85rem; color: var(--text-2); }

/* Almanax / calendrier */
.day-card { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; }
.day-card .date { text-align: center; padding: 18px 10px; border-radius: 18px; background: var(--grad); color: #1a0b03; }
.day-card .date b { display: block; font: 800 2.6rem/1 var(--font-display); }
.day-card .date span { font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; }

/* Carte du monde */
.world-map { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #0a0806; }
.world-map img { width: 100%; height: auto; }

/* 404 */
.not-found { text-align: center; padding: calc(var(--header-h) + 80px) 0 120px; }
.not-found .big { font: 800 clamp(6rem, 22vw, 12rem)/1 var(--font-display); margin: 0; }

/* 9. Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-top { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .dash { grid-template-columns: 1fr; }
    .dash-side { position: static; }
    .doc { grid-template-columns: 1fr; }
    .doc-nav { position: static; max-height: none; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (max-width: 960px) {
    :root { --header-h: 74px; }
    .burger { display: block; }
    .header .inner { justify-content: space-between; gap: 12px; }
    .header-actions .hide-m { display: none; }
    .nav {
        position: fixed; inset: var(--header-h) 0 0; z-index: 99; display: block; padding: 18px 20px 40px; overflow-y: auto;
        background: rgba(12, 9, 7, .98); backdrop-filter: blur(16px);
        transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
    }
    .nav.open { transform: none; visibility: visible; }
    .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav a, .nav button { width: 100%; justify-content: space-between; padding: 15px 14px; font-size: 1.05rem; }
    .nav > ul > li > a[aria-current="page"]::after { display: none; }
    .nav a[aria-current="page"] { background: var(--grad-soft); color: var(--gold-2); }
    .dropdown { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; background: rgba(255, 236, 220, .03); margin: 4px 0 8px; border-radius: 12px; backdrop-filter: none; }
    .dropdown::before { display: none; }
    .has-sub:hover > .dropdown, .has-sub:focus-within > .dropdown { transform: none; }
    .has-sub.open > .dropdown { display: block; transform: none; }
    .has-sub:hover .chev { transform: none; }
    .has-sub.open .chev { transform: rotate(180deg); }
    .drawer-only { display: block; }
    .drawer-actions { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .logo img { height: 56px; }
}
@media (max-width: 720px) {
    body { font-size: 15px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .podium { grid-template-columns: 1fr; }
    .podium .place[data-rank="1"] { order: -1; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; }
    .card { padding: 20px; }
    .auth-card { padding: 24px 20px; }
    .section-head { align-items: flex-start; }
    .vote-site { flex-direction: column; align-items: stretch; text-align: center; }
    .vote-site img { margin: 0 auto; }
    .day-card { grid-template-columns: 1fr; }
    .ladder-tools input, .ladder-tools select { width: 100%; min-width: 0; }
    .ladder-tools form { width: 100%; }
    .ladder-tools form > * { flex: 1 1 100%; }
    .hero-meta { gap: 8px 18px; }
    .btn-lg { padding: 15px 22px; }
    .acc-row { flex-wrap: wrap; }
    .stat { padding: 18px; }
}
@media (max-width: 420px) {
    .container { padding: 0 16px; }
    .header-actions .coin-chip { display: none; }
    .balances { grid-template-columns: 1fr; }
    .hero-cta .btn { width: 100%; }
}

/* Compléments */
.nav button.is-active { color: var(--text); }
.char small { display: block; color: var(--muted); }
.char > div { min-width: 0; }
.char b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Classements : compléments */
.grow { flex: 1 1 240px; }
.ladder-tools .search-bar { max-width: none; }
.tabs a svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.table td .badge { margin-left: 4px; vertical-align: 1px; }
.avatar.guild-emblem { position: relative; overflow: hidden; }
.avatar.guild-emblem img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; background: var(--surface-2); }
form.ladder-tools { justify-content: flex-start; flex-wrap: wrap; }
.ladder-tools .search-bar input { width: 100%; min-width: 0; }
@media (max-width: 720px) {
    form.ladder-tools > * { flex: 1 1 100%; }
    .tabs a svg { display: none; }
}
@media (max-width: 720px) {
    .table-wrap .table { min-width: 0; }
    .table .opt { display: none; }
    .table th, .table td { padding: 12px 10px; }
    .table .rank { width: 34px; }
    .who { gap: 10px; }
    .who img, .who .avatar { width: 36px; height: 36px; }
}
@media (max-width: 720px) { .table th { letter-spacing: .03em; font-size: .68rem; } .table td.num, .table th.num { padding-left: 6px; } }

/* Encyclopédie */
.narrow-lg { max-width: 960px; }
.ency-search { display: grid; gap: 16px; margin-bottom: 22px; }
.ency-search .ladder-tools { margin: 0; }
.ency-input { position: relative; }
.suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: var(--bg-2, #15100c); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); }
.suggest li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--text); }
.suggest li small { color: var(--muted); }
.suggest li:hover, .suggest li.active { background: var(--grad-soft); }
.drop-card { padding: 0; overflow: hidden; }
.drop-card summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; }
.drop-card summary::-webkit-details-marker { display: none; }
.drop-card summary b { display: block; color: var(--text); font-size: 1.05rem; }
.drop-card summary small { display: block; color: var(--muted); }
.drop-card summary .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .25s var(--ease); }
.drop-card[open] summary .chev { transform: rotate(180deg); }
.drop-card[open] summary { border-bottom: 1px solid var(--line); }
.drop-card .table-wrap { border: 0; border-radius: 0; }
.drop-card .table a { color: var(--text); }
.drop-card .table a:hover { color: var(--gold-2); }
.stack > .drop-card + .drop-card { margin-top: 12px; }

/* Bestiaire */
.mob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.mob-card { display: grid; gap: 14px; align-content: start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.mob-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.mob-head { display: flex; gap: 12px; align-items: center; }
.mob-head .ico { width: 42px; height: 42px; flex-shrink: 0; }
.mob-head h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.mob-head small { color: var(--muted); }
.mob-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.mob-stats dt { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mob-stats dd { margin: 2px 0 0; font-weight: 600; color: var(--text); }
.mob-card .btn-block { margin-top: auto; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.mob-stats .wide { grid-column: 1 / -1; }

/* Statistiques */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 30px 92px minmax(0, 1fr) 54px; align-items: center; gap: 10px; font-size: .9rem; }
.bar-row.no-img { grid-template-columns: 92px minmax(0, 1fr) 54px; }
.bar-row img { width: 30px; height: 30px; object-fit: contain; }
.bar-label { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 999px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.killers { margin: 0; padding: 0; list-style: none; counter-reset: k; display: grid; gap: 4px; }
.killers li { counter-increment: k; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.killers li:nth-child(odd) { background: rgba(255, 236, 220, .03); }
.killers li::before { content: counter(k); width: 24px; font: 700 .9rem var(--font-display); color: var(--muted); }
.killers li:first-child::before { color: var(--gold); }
.killers a { flex: 1; color: var(--text); }
.killers b { color: var(--ember-2, #ff8a3d); font-size: .88rem; white-space: nowrap; }
.cols { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 8px; height: 220px; align-items: end; }
.col { display: grid; grid-template-rows: 20px 1fr auto; height: 100%; text-align: center; gap: 6px; }
.col b { font-size: .78rem; color: var(--text-2); align-self: end; }
.col span { align-self: end; width: 100%; max-width: 34px; margin: 0 auto; border-radius: 8px 8px 3px 3px; background: var(--grad); opacity: .85; transition: opacity .2s; }
.col:hover span { opacity: 1; }
.col small { font-size: .7rem; line-height: 1.2; color: var(--muted); }
@media (max-width: 720px) {
    .cols { gap: 3px; height: 180px; }
    .col b { font-size: .65rem; }
    .col small { font-size: .6rem; }
    .bar-row { grid-template-columns: 26px 78px minmax(0, 1fr) 44px; gap: 8px; }
}
@media (max-width: 720px) {
    .grid.stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-grid .stat { padding: 16px; }
    .stat-grid .stat .ico { width: 36px; height: 36px; margin-bottom: 10px; }
    .stat-grid .stat strong { font-size: 1.15rem; overflow-wrap: anywhere; }
}

/* Meilleur héros (Rejoindre) */
.best-hero { display: flex; align-items: center; gap: 16px; color: var(--text); border-color: rgba(255, 181, 71, .4); background: linear-gradient(135deg, rgba(255, 181, 71, .12), var(--surface) 60%); transition: transform .3s var(--ease), border-color .3s; }
.best-hero:hover { color: var(--text); transform: translateY(-4px); border-color: rgba(255, 181, 71, .7); }
.best-hero img { width: 74px; height: 110px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6)); animation: heroFloat 4s ease-in-out infinite; }
.best-hero > div { min-width: 0; }
.best-name { display: block; margin-top: 4px; color: var(--gold-2); font: 700 1.05rem/1.2 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes heroFloat { 50% { transform: translateY(-6px); } }
.mob-art { display: grid; place-items: center; height: 150px; margin: -4px -4px 0; border-radius: 14px; background: radial-gradient(ellipse at 50% 85%, rgba(255, 138, 61, .22), transparent 65%), rgba(0, 0, 0, .22); overflow: hidden; }
.mob-art img { max-width: 82%; max-height: 132px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); transition: transform .4s var(--ease); }
.mob-card:hover .mob-art img { transform: scale(1.08) translateY(-4px); }
.mob-art .ico { width: 56px; height: 56px; opacity: .6; }

/* Records de donjon */
.dungeon-card { color: var(--text); }
.dungeon-card:hover { color: var(--text); }
.record { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 181, 71, .08); border: 1px solid rgba(255, 181, 71, .3); }
.record-time { display: inline-flex; align-items: center; gap: 6px; font: 700 1.05rem/1 var(--font-display); color: var(--gold-2); white-space: nowrap; }
.record-time svg { width: 18px; height: 18px; }
.record-team { margin-top: -6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-rec { background: rgba(0, 0, 0, .2); border-color: var(--line); color: var(--muted); }
.empty-rec span { display: inline-flex; align-items: center; gap: 6px; }
.empty-rec svg { width: 16px; height: 16px; }
.team { display: inline-flex; flex-shrink: 0; }
.team img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 2px solid var(--bg); margin-left: -8px; }
.team img:first-child { margin-left: 0; }
.who .team img { width: 34px; height: 34px; border-radius: 50%; }
.dungeon-top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: center; }
.dungeon-top .mob-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 18px; }
.time b, .mob-stats .time { color: var(--gold-2); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .dungeon-top { grid-template-columns: 1fr; } }
.empty-rec small { white-space: nowrap; }

/* Ogrines */
img.og { object-fit: contain; }
.coin-chip img.og { width: 1.25em; height: 1.25em; }
.offer-art { position: relative; height: 92px; margin: 4px auto 2px; width: 120px; }
.offer-art img { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; filter: drop-shadow(0 10px 18px rgba(30, 200, 210, .35)); animation: ogFloat 3.6s ease-in-out infinite; }
.offer-art.n2 img:nth-child(1) { transform: translate(-22px, 6px) scale(.8); animation-delay: -1.2s; }
.offer-art.n2 img:nth-child(2) { transform: translate(14px, -4px); }
.offer-art.n3 img:nth-child(1) { transform: translate(-30px, 10px) scale(.72); animation-delay: -1.8s; }
.offer-art.n3 img:nth-child(2) { transform: translate(28px, 8px) scale(.78); animation-delay: -.9s; }
.offer-art.n3 img:nth-child(3) { transform: translate(0, -8px); }
@keyframes ogFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.offer:hover .offer-art img { filter: drop-shadow(0 12px 22px rgba(30, 220, 230, .6)); }
.offer-art.pack-img { height: 150px; width: 100%; }
.offer-art.pack-img img { width: 100%; height: 150px; margin: 0; left: 0; top: 0; object-fit: contain; filter: drop-shadow(0 14px 26px rgba(30, 210, 225, .35)); animation: ogFloat 4s ease-in-out infinite; transition: transform .35s var(--ease); }
.offer:hover .offer-art.pack-img img { transform: scale(1.06); }
.podium .place img { animation: heroFloat 5s ease-in-out infinite; }
.podium .place[data-rank="2"] img { animation-delay: -1.6s; }
.podium .place[data-rank="3"] img { animation-delay: -3.2s; }
.header.scrolled .logo img { height: 64px; }
.logo img { transition: transform .3s var(--ease), height .3s var(--ease); }
@media (max-width: 960px) { .header.scrolled .logo img { height: 52px; } }
/* Logo d'en-tête : logo complet, plus grand que la barre (il déborde légèrement en bas, comme un blason) */
.logo { position: relative; align-self: flex-start; height: 100%; }
.logo img { height: 106px; margin-top: 2px; -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .7)) drop-shadow(0 0 22px rgba(255, 90, 31, .35)); transition: height .3s var(--ease), transform .3s var(--ease); }
.header.scrolled .logo img { height: 84px; margin-top: 0; }
@media (max-width: 960px) { .logo img { height: 74px; margin-top: 0; } .header.scrolled .logo img { height: 68px; } }

/* Vote */
.vote-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; align-items: center; }
.vote-ring { position: relative; width: 210px; height: 210px; margin: 0 auto; }
.vote-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.vote-ring circle { fill: none; stroke-width: 9; }
.vote-ring .track { stroke: rgba(0, 0, 0, .35); }
.vote-ring .bar { stroke: var(--ember); stroke-dasharray: 100; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.vote-ring.ready .bar { stroke: #3fd4d6; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.ring-label b { font: 800 1.7rem/1.1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.ring-label small { color: var(--muted); }
.ring-label .og { width: 46px; height: 46px; margin: 0 auto 4px; animation: ogFloat 2.4s ease-in-out infinite; }
.vote-ring.ready { animation: ringGlow 2s ease-in-out infinite; border-radius: 50%; }
@keyframes ringGlow { 50% { box-shadow: 0 0 60px -10px rgba(63, 212, 214, .55); } }
.vote-steps h2 { font-size: 1.5rem; margin: 0 0 14px; }
.vote-steps ol { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.vote-steps li { display: flex; gap: 12px; align-items: center; }
.vote-steps li b { display: block; color: var(--text); }
.vote-steps li small { color: var(--muted); }
.vote-steps .dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad-soft); color: var(--gold-2); flex-shrink: 0; border: 1px solid var(--line-2); }
.vote-steps .dot svg { width: 18px; height: 18px; }
.btn .og { width: 22px; height: 22px; }
.btn.pulse { animation: btnPulse 1.8s ease-in-out infinite; }
@keyframes btnPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 43, .55); } 50% { box-shadow: 0 0 0 12px rgba(255, 106, 43, 0); } }
.tiers-line { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.tier-step { text-align: center; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); }
.tier-step b { display: flex; align-items: center; justify-content: center; gap: 4px; font: 700 1.05rem var(--font-display); color: var(--text-2); }
.tier-step .og { width: 18px; height: 18px; }
.tier-step small { color: var(--muted); font-size: .75rem; }
.tier-step.past { opacity: .6; }
.tier-step.on { border-color: var(--ember-2, #ff8a3d); background: var(--grad-soft); box-shadow: var(--glow); }
.tier-step.on b { color: var(--gold-2); }
.killers li.me { background: var(--grad-soft); }
@media (max-width: 720px) {
    .vote-hero { grid-template-columns: 1fr; text-align: center; }
    .vote-steps li { text-align: left; }
    .vote-steps .row { justify-content: center; }
    .tiers-line { grid-template-columns: 1fr 1fr; }
}

/* Très grands écrans : le site grossit pour garder le rendu d'un écran 1920 px (rien ne change jusqu'à 1920 px) */
@media (min-width: 2100px) { html { zoom: 1.12; } }
@media (min-width: 2400px) { html { zoom: 1.33; } }
@media (min-width: 3000px) { html { zoom: 1.6; } }
@media (min-width: 3600px) { html { zoom: 2; } }

/* Logo animé de l'accueil */
.logo-fx { position: relative; width: min(380px, 70vw); aspect-ratio: 1599 / 984; margin: 0 auto 6px; animation: float 6s ease-in-out infinite; isolation: isolate; }
.logo-fx .hero-logo { position: relative; display: block; width: 100%; margin: 0; animation: logoAura 3.2s ease-in-out infinite; }
@keyframes logoAura {
    0%, 100% { filter: drop-shadow(0 18px 50px rgba(255, 90, 31, .4)) brightness(1); }
    35% { filter: drop-shadow(0 14px 70px rgba(255, 120, 40, .65)) brightness(1.06); }
    55% { filter: drop-shadow(0 18px 46px rgba(255, 70, 20, .38)) brightness(.98); }
    75% { filter: drop-shadow(0 12px 80px rgba(255, 140, 50, .6)) brightness(1.08); }
}
/* Flammes : copie du logo déformée par la chaleur, visible seulement en haut */
.logo-heat { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: url(#logoHeat) saturate(1.3) brightness(1.15);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 22%, transparent 42%); mask-image: linear-gradient(180deg, #000 0%, #000 22%, transparent 42%); animation: heatFlicker 1.6s steps(1) infinite; }
@keyframes heatFlicker { 0% { opacity: .9; } 20% { opacity: .75; } 45% { opacity: 1; } 70% { opacity: .8; } }
/* Reflet doré qui balaie les lettres */
.logo-shine { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
    background: linear-gradient(105deg, transparent 0 38%, rgba(255, 200, 110, 0) 43%, rgba(255, 214, 140, .55) 48%, rgba(255, 190, 90, 0) 53%, transparent 55% 100%) no-repeat;
    background-size: 260% 100%; background-position: 160% 0;
    -webkit-mask: url('../img/logo.png') center/100% 100% no-repeat; mask: url('../img/logo.png') center/100% 100% no-repeat;
    animation: logoShine 5.5s ease-in-out infinite; }
@keyframes logoShine { 0%, 30% { background-position: 160% 0; } 70%, 100% { background-position: -60% 0; } }
/* Gouttes de sang */
.drip { position: absolute; width: 1.6%; aspect-ratio: 3 / 4.4; margin-left: -.8%; border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%; pointer-events: none; opacity: 0;
    background: radial-gradient(circle at 35% 35%, #ffb199 0 10%, #ff2a1a 30%, #a80c06 85%); box-shadow: 0 0 8px rgba(255, 40, 20, .7); animation: drip 6s ease-in infinite; }
.drip::before { content: ''; position: absolute; left: 50%; bottom: 70%; width: 50%; height: 60%; transform: translateX(-50%); border-radius: 50% 50% 0 0; background: inherit; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
@keyframes drip {
    0% { transform: translateY(-40%) scale(.2); opacity: 0; }
    12% { transform: translateY(0) scale(.8); opacity: 1; }
    30% { transform: translateY(10%) scale(1); opacity: 1; }
    62% { transform: translateY(520%) scale(.95, 1.1); opacity: .9; }
    72% { transform: translateY(680%) scale(.7); opacity: 0; }
    100% { opacity: 0; }
}
/* Étincelles qui s'envolent du logo */
.spark { position: absolute; bottom: 30%; width: 4px; height: 4px; border-radius: 50%; pointer-events: none; opacity: 0; background: #ffd27a; box-shadow: 0 0 6px 2px rgba(255, 140, 40, .8); animation: spark 3.5s ease-out infinite; }
@keyframes spark {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translate(18px, -190px) scale(.2); opacity: 0; }
}
.spark:nth-child(odd) { animation-name: spark2; background: #ff8a3d; }
@keyframes spark2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translate(-22px, -150px) scale(.2); opacity: 0; }
}


/* Oto Mustam (détouré) face à Goultard, à droite du fond officiel */
.hero-duel { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-duel img { position: absolute; bottom: 0; height: min(60%, 600px); width: auto;
    filter: brightness(.88) saturate(1.05) drop-shadow(0 0 3px rgba(255, 150, 70, .8)) drop-shadow(0 0 30px rgba(255, 90, 31, .45));
    animation: duelR 5.4s ease-in-out infinite; transform-origin: 50% 100%; }
/* décalé vers la droite et le bas : la jambe coupée de l'image d'origine sort de l'écran */
@keyframes duelR { 0%, 100% { transform: translate(22%, 8%); } 50% { transform: translate(22%, 7.2%) scale(1.01) rotate(.5deg); } }
@media (max-width: 1600px) { .hero-duel img { height: min(52%, 480px); } }
@media (max-width: 1100px) { .hero-duel img { height: min(40%, 380px); opacity: .7; } }
@media (max-width: 720px) { .hero-duel { display: none; } }
.hero h1, .hero .lead, .hero .eyebrow, .hero-meta { text-shadow: 0 2px 18px rgba(0, 0, 0, .85), 0 1px 3px rgba(0, 0, 0, .9); }
.hero .text-grad { text-shadow: none; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .8)); }

.hero-duel .duel-oto { right: 0; }
/* Tristepin à gauche, tourné vers le centre (décalé hors écran comme Oto Mustam) */
.hero-duel .duel-iop { left: 0; animation-name: duelL; animation-duration: 4.8s; }
@keyframes duelL { 0%, 100% { transform: translate(-14%, 6%); } 50% { transform: translate(-14%, 5.2%) scale(1.01) rotate(-.5deg); } }

/* Discord */
.dc-logo { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; box-shadow: 0 10px 30px -10px rgba(88, 101, 242, .8); }
.btn-discord .dc-logo { width: 18px; height: 18px; }
.btn-lg.btn-discord .dc-logo { width: 22px; height: 22px; }
/* Bouton flottant */
.discord-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px;
    background: #5865f2; color: #fff; font-weight: 700; font-size: .95rem; box-shadow: 0 12px 34px -8px rgba(88, 101, 242, .75), 0 0 0 0 rgba(88, 101, 242, .6);
    animation: dcPulse 2.4s ease-out infinite; transition: transform .25s var(--ease), background .25s; }
.discord-fab:hover { color: #fff; background: #4752c4; transform: translateY(-3px) scale(1.03); }
.discord-fab .dc-logo { width: 26px; height: 26px; animation: dcWiggle 4s ease-in-out infinite; }
@keyframes dcPulse { 0% { box-shadow: 0 12px 34px -8px rgba(88, 101, 242, .75), 0 0 0 0 rgba(88, 101, 242, .55); } 70%, 100% { box-shadow: 0 12px 34px -8px rgba(88, 101, 242, .75), 0 0 0 16px rgba(88, 101, 242, 0); } }
@keyframes dcWiggle { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-12deg); } 88% { transform: rotate(10deg); } 92% { transform: rotate(-6deg); } }
@media (max-width: 720px) { .discord-fab { right: 14px; bottom: 14px; padding: 14px; } .discord-fab span { display: none; } }
/* Bandeau de l'accueil */
.discord-band { position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px; padding: 36px 40px; border-radius: var(--radius-lg);
    background: radial-gradient(circle at 12% 50%, rgba(255, 255, 255, .14), transparent 45%), linear-gradient(120deg, #5865f2, #3b44b8 60%, #2a2f86);
    border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 30px 80px -30px rgba(88, 101, 242, .7); color: #fff; }
.discord-band::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.discord-band .eyebrow { color: #c9cdff; }
.discord-band .eyebrow::before { background: #c9cdff; }
.discord-band h2 { color: #fff; margin: 6px 0 8px; }
.discord-band p { color: #dfe2ff; margin: 0; max-width: 560px; }
.discord-logo { display: grid; place-items: center; width: 96px; height: 96px; flex-shrink: 0; border-radius: 28px; background: rgba(255, 255, 255, .14); animation: float 5s ease-in-out infinite; }
.discord-logo .dc-logo { width: 58px; height: 58px; color: #fff; }
.discord-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: .95rem; color: #dfe2ff; }
.discord-stats b { color: #fff; font-family: var(--font-display); }
.discord-stats .live { color: #b6f5cd; }
.discord-band .btn-discord { position: relative; z-index: 1; background: #fff; color: #3b44b8; border-color: #fff; flex-shrink: 0; }
.discord-band .btn-discord:hover { background: #eef0ff; color: #2a2f86; }
@media (max-width: 960px) { .discord-band { flex-direction: column; text-align: center; padding: 30px 22px; } .discord-band p { margin: 0 auto; } .discord-stats { justify-content: center; } }

/* Vérification par e-mail */
.verif-head { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--line-2); }
.verif-head p { margin: 0; color: var(--text-2); font-size: .94rem; }
.verif-head b { color: var(--gold-2); }
.verif-mail { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--grad); color: #1a0b03; animation: float 4s ease-in-out infinite; }
.verif-mail svg { width: 22px; height: 22px; }
.code-input { text-align: center; font: 800 2rem/1 var(--font-display); letter-spacing: .35em; padding: 16px 10px !important; color: var(--gold-2); }
.code-input::placeholder { color: var(--muted); letter-spacing: .35em; }
.verif-resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font-size: .9rem; }
.verif-resend .btn { padding-left: 8px; padding-right: 8px; color: var(--gold-2); }
.verif-done .btn + .btn { margin-top: 10px; }
.ladder-meta { margin: 14px 0 0; font-size: .88rem; }

/* Menu du haut (sans logo) : centré dans une capsule, capitales, soulignement de braise */
.header .inner { display: grid; grid-template-columns: 1fr auto 1fr; }
.header .inner .nav { grid-column: 2; }
.header .inner .header-actions { grid-column: 3; justify-self: end; }
@media (min-width: 961px) {
    .nav > ul { gap: 2px; padding: 6px; border-radius: 999px; background: rgba(20, 13, 10, .55); border: 1px solid rgba(255, 170, 110, .14);
        backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 40px -18px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 220, 190, .06); }
    .nav > ul > li > a, .nav > ul > li > button {
        position: relative; gap: 8px; padding: 11px 18px; border-radius: 999px;
        font: 700 .74rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
    .nav .nav-ico { width: 15px; height: 15px; color: var(--ember-2, #ff8a3d); opacity: .75; transition: transform .3s var(--ease), opacity .3s; }
    .nav > ul > li > a::after, .nav > ul > li > button::after {
        content: ''; position: absolute; left: 50%; right: 50%; bottom: 4px; height: 2px; border-radius: 2px;
        background: var(--grad); box-shadow: 0 0 10px rgba(255, 106, 43, .9); transition: left .3s var(--ease), right .3s var(--ease); }
    .nav > ul > li > a:hover, .nav > ul > li > button:hover, .nav .open > button { color: #fff; background: rgba(255, 138, 61, .08); }
    .nav > ul > li > a:hover::after, .nav > ul > li > button:hover::after, .nav .open > button::after { left: 22px; right: 22px; }
    .nav > ul > li > a:hover .nav-ico, .nav > ul > li > button:hover .nav-ico { opacity: 1; transform: translateY(-1px) scale(1.12); }
    /* Page en cours : pastille dégradée */
    .nav > ul > li > a[aria-current="page"], .nav > ul > li > button.is-active { color: #1a0b03; background: var(--grad); box-shadow: 0 6px 22px -6px rgba(255, 106, 43, .75); }
    .nav > ul > li > a[aria-current="page"] .nav-ico, .nav > ul > li > button.is-active .nav-ico { color: #1a0b03; opacity: 1; }
    .nav > ul > li > a[aria-current="page"]::after, .nav > ul > li > button.is-active::after { display: none; }
    .nav > ul > li > button.is-active .chev { color: #1a0b03; }
}
@media (max-width: 1240px) and (min-width: 961px) {
    .nav > ul > li > a, .nav > ul > li > button { padding: 11px 12px; letter-spacing: .1em; }
    .nav .nav-ico { display: none; }
}
@media (max-width: 960px) {
    .header .inner { display: flex; justify-content: flex-end; }
    .nav .nav-ico { width: 18px; height: 18px; color: var(--ember-2, #ff8a3d); margin-right: 10px; }
    .nav > ul > li > a, .nav > ul > li > button { justify-content: flex-start; }
    .nav > ul > li > button .chev { margin-left: auto; }
}
.nav .nav-ico { flex-shrink: 0; }
.header .container.inner { max-width: 1480px; }
@media (min-width: 961px) {
    .header .inner .nav { flex: none; justify-self: center; }
    .nav > ul > li > a, .nav > ul > li > button { padding: 11px 15px; letter-spacing: .13em; }
}
@media (min-width: 961px) {
    .header .inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
    .nav > ul > li > a, .nav > ul > li > button { padding: 11px 13px; letter-spacing: .1em; gap: 7px; }
}

/* Performance : animations du logo de l'accueil sans filtre ni fusion animés (seulement opacité et position) */
.logo-fx .hero-logo { animation: none; filter: drop-shadow(0 16px 40px rgba(255, 90, 31, .4)); }
.logo-glow { position: absolute; inset: -14% -10%; z-index: -1; pointer-events: none; border-radius: 50%;
    background: radial-gradient(ellipse at 50% 55%, rgba(255, 110, 40, .55), rgba(255, 80, 20, .18) 45%, transparent 70%);
    animation: glowPulse 3.2s ease-in-out infinite; will-change: opacity, transform; }
@keyframes glowPulse { 0%, 100% { opacity: .55; transform: scale(1); } 35% { opacity: 1; transform: scale(1.06); } 55% { opacity: .45; transform: scale(1.01); } 75% { opacity: .9; transform: scale(1.04); } }
.logo-shine { background: none; mix-blend-mode: normal; animation: none; overflow: hidden; }
.logo-shine::before { content: ''; position: absolute; top: 0; bottom: 0; left: -35%; width: 30%;
    background: linear-gradient(100deg, transparent, rgba(255, 214, 140, .5), transparent);
    animation: shineMove 5.5s ease-in-out infinite; will-change: transform; }
@keyframes shineMove { 0%, 30% { transform: translateX(0); } 70%, 100% { transform: translateX(560%); } }
.logo-fx, .hero-duel img, .drip, .spark { will-change: transform; }

/* ===================================================================================
   Barre du haut v3 : liens de chaque côté, logo au centre dans un écusson suspendu
   =================================================================================== */
.crest-m { display: none; }
@media (min-width: 961px) {
    :root { --header-h: 84px; }
    .header { background: linear-gradient(180deg, rgba(10, 7, 5, .92), rgba(10, 7, 5, .55)); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .header.scrolled, .header.solid { background: linear-gradient(180deg, rgba(10, 7, 5, .97), rgba(14, 9, 6, .9)); backdrop-filter: none; -webkit-backdrop-filter: none; }
    /* Ligne de braise sous la barre */
    .header::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
        background: linear-gradient(90deg, transparent, rgba(255, 106, 43, .55) 22%, #ffb547 50%, rgba(255, 106, 43, .55) 78%, transparent);
        box-shadow: 0 0 14px 1px rgba(255, 106, 43, .45); }
    .header .inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
    .nav > ul { gap: 4px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; align-items: stretch; height: var(--header-h); }
    .nav > ul > li { display: flex; align-items: center; }
    /* Liens : icône au-dessus du texte */
    .nav > ul > li > a, .nav > ul > li > button {
        flex-direction: column; justify-content: center; gap: 6px; height: 100%; padding: 0 16px; border-radius: 0; background: none !important; box-shadow: none !important;
        font: 700 .72rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: #cdbdb0; }
    .nav > ul > li > a > span, .nav > ul > li > button > span { display: inline-flex; align-items: center; gap: 4px; }
    .nav .nav-ico { width: 20px; height: 20px; opacity: .9; color: #ff9a4d; filter: none; transition: transform .3s var(--ease), color .3s; }
    .nav > ul > li > a .chev, .nav > ul > li > button .chev { width: 11px; height: 11px; }
    /* Survol : lueur et trait de braise */
    .nav > ul > li > a::after, .nav > ul > li > button::after { display: block !important; left: 50%; right: 50%; bottom: 14px; height: 2px; }
    .nav > ul > li > a:hover, .nav > ul > li > button:hover, .nav .open > button { color: #fff; }
    .nav > ul > li > a:hover::after, .nav > ul > li > button:hover::after, .nav .open > button::after { left: 18px; right: 18px; }
    .nav > ul > li > a:hover .nav-ico, .nav > ul > li > button:hover .nav-ico, .nav .open > button .nav-ico { transform: translateY(-2px) scale(1.15); color: #ffd27a; }
    .nav > ul > li > a::before, .nav > ul > li > button::before { content: ''; position: absolute; left: 50%; top: 50%; width: 70px; height: 50px; margin: -30px 0 0 -35px; border-radius: 50%;
        background: radial-gradient(closest-side, rgba(255, 120, 40, .28), transparent); opacity: 0; transition: opacity .3s; pointer-events: none; }
    .nav > ul > li > a:hover::before, .nav > ul > li > button:hover::before, .nav .open > button::before { opacity: 1; }
    /* Page en cours : texte doré + trait lumineux permanent */
    .nav > ul > li > a[aria-current="page"], .nav > ul > li > button.is-active { color: #ffd27a; }
    .nav > ul > li > a[aria-current="page"] .nav-ico, .nav > ul > li > button.is-active .nav-ico, .nav > ul > li > button.is-active .chev { color: #ffd27a; opacity: 1; }
    .nav > ul > li > a[aria-current="page"]::after, .nav > ul > li > button.is-active::after { left: 18px; right: 18px; }
    /* Écusson central */
    .nav-crest { position: relative; width: 230px; justify-content: center; margin: 0 14px; }
    .crest { position: absolute; top: 0; left: 50%; width: 230px; height: calc(var(--header-h) + 38px); margin-left: -115px; display: grid; place-items: center; z-index: 2;
        transition: height .35s var(--ease); }
    .crest::before { content: ''; position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%);
        background: linear-gradient(180deg, #ff8a3d, #ffb547 55%, #ff6a2b); }
    .crest::after { content: ''; position: absolute; inset: 0 2px 2px; clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%);
        background: radial-gradient(ellipse at 50% 40%, #3a1a0d, #120806 75%); }
    .crest img { position: relative; z-index: 1; width: 190px; height: auto; margin-top: -10px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .7)); transition: transform .35s var(--ease), width .35s var(--ease); }
    .crest:hover img { transform: scale(1.05) rotate(-1deg); }
    .nav-crest::after { content: ''; position: absolute; left: 50%; top: calc(var(--header-h) + 22px); width: 140px; height: 40px; margin-left: -70px; border-radius: 50%;
        background: radial-gradient(closest-side, rgba(255, 106, 43, .45), transparent); pointer-events: none; z-index: 1; }
    .header.scrolled .crest { height: calc(var(--header-h) + 18px); }
    .header.scrolled .crest img { width: 150px; margin-top: -8px; }
    /* Boutons à droite */
    .header-actions .btn-sm { padding: 9px 14px; }
}
@media (max-width: 1240px) and (min-width: 961px) {
    .nav > ul > li > a, .nav > ul > li > button { padding: 0 10px; letter-spacing: .1em; font-size: .68rem; }
    .nav .nav-ico { display: block; width: 18px; height: 18px; }
    .nav-crest, .crest { width: 190px; }
    .crest { margin-left: -95px; }
    .crest img { width: 160px; }
    .header-actions .hide-m { display: none; }
}
/* Mobile : logo centré dans la barre, menu dans le tiroir (sans l'écusson) */
@media (max-width: 960px) {
    .nav-crest { display: none; }
    .crest-m { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
    .crest-m img { height: 52px; width: auto; filter: drop-shadow(0 4px 12px rgba(255, 90, 31, .4)); }
    .header .inner { position: relative; }
    .header::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, #ff8a3d, transparent); }
}
@media (min-width: 961px) {
    /* Tous les liens ont la même largeur : l'écusson tombe pile au centre de la page */
    .nav > ul > li:not(.nav-crest) { width: 116px; justify-content: center; }
    .nav > ul > li:not(.nav-crest) > a, .nav > ul > li:not(.nav-crest) > button { width: 100%; padding: 0 6px; }
    .crest-wrap { position: absolute; inset: 0; }
}
@media (max-width: 1440px) and (min-width: 961px) {
    .nav > ul > li:not(.nav-crest) { width: 100px; }
    .nav > ul > li > a, .nav > ul > li > button { letter-spacing: .1em; }
}
@media (max-width: 1240px) and (min-width: 961px) {
    .nav > ul > li:not(.nav-crest) { width: 92px; }
}
@media (min-width: 961px) {
    .nav > ul > li:not(.nav-crest) { width: 100px; }
}
@media (max-width: 1440px) and (min-width: 961px) {
    .nav > ul > li:not(.nav-crest) { width: 94px; }
    .hide-l { display: none; }
}
@media (min-width: 961px) { .nav > ul > li:not(.nav-crest) { width: 96px; } }
@media (max-width: 1440px) and (min-width: 961px) { .nav > ul > li:not(.nav-crest) { width: 90px; } }
/* Menu en deux groupes autour de l'écusson (remplace les largeurs fixes) */
@media (min-width: 961px) {
    .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; }
    .nav .nav-left { justify-content: flex-end; }
    .nav .nav-right { justify-content: flex-start; }
    .nav > ul > li:not(.nav-crest) { width: auto; }
    .nav > ul > li > a, .nav > ul > li > button { padding: 0 13px !important; width: auto !important; letter-spacing: .12em; }
    .nav-crest { height: var(--header-h); margin: 0 10px; }
    .drawer-only { display: none; }
}
@media (max-width: 1440px) and (min-width: 961px) {
    .nav > ul > li > a, .nav > ul > li > button { padding: 0 9px !important; letter-spacing: .08em; font-size: .68rem; }
}
@media (max-width: 1180px) and (min-width: 961px) {
    .nav > ul > li > a, .nav > ul > li > button { padding: 0 6px !important; letter-spacing: .04em; font-size: .64rem; }
    .nav-crest { margin: 0 4px; }
}
/* Boutons de droite compacts (icône seule) sauf sur très grand écran */
@media (min-width: 961px) { .header .container.inner { max-width: 1760px; } }
@media (max-width: 1760px) and (min-width: 961px) {
    .act-l, .hide-l { display: none; }
    .act-btn { width: 38px; height: 38px; padding: 0 !important; justify-content: center; }
    .act-btn svg { width: 18px; height: 18px; }
}
/* Mobile : pas de flou sur la barre (sinon le menu plein écran reste enfermé dans la barre) */
@media (max-width: 960px) {
    .header, .header.scrolled, .header.solid { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .header.scrolled, .header.solid { background: rgba(12, 9, 7, .97); }
}
@media (max-width: 960px) {
    .nav > ul > li > button > span { display: flex; flex: 1; align-items: center; justify-content: space-between; }
    .nav > ul > li > button .chev { margin-left: auto; }
    .nav .drawer-actions .btn { justify-content: center; }
    .nav .drawer-actions .btn-primary { background: var(--grad); color: #1a0b03; }
    .nav .drawer-actions .btn:not(.btn-primary):not(.btn-ghost) { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
}

/* Écusson du haut : logo animé (aura, reflet, gouttes, étincelles) */
.crest .logo-fx { display: block; position: relative; z-index: 1; width: 190px; margin: -12px 0 0; aspect-ratio: 1599 / 984; animation: crestFloat 5s ease-in-out infinite; transition: width .35s var(--ease); }
.crest .logo-fx .fx-logo { display: block; width: 100% !important; height: auto; margin: 0 !important; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .7)); transform: none !important; }
.crest:hover .logo-fx { transform: scale(1.05) rotate(-1deg); }
.crest .logo-glow { inset: -18% -12%; }
.crest .spark { width: 3px; height: 3px; }
@keyframes crestFloat { 50% { transform: translateY(-3px); } }
.header.scrolled .crest .logo-fx { width: 150px; margin-top: -8px; }
@media (max-width: 1240px) and (min-width: 961px) { .crest .logo-fx { width: 160px; } }

/* Accueil sans grand logo : texte remonté */
.hero { align-items: start; place-items: start center; min-height: min(100svh, 980px); padding-top: calc(var(--header-h) + clamp(70px, 12vh, 140px)); }
@media (max-width: 960px) { .hero { padding-top: calc(var(--header-h) + 56px); } }
.crest .logo-fx { margin-top: 2px; } .header.scrolled .crest .logo-fx { margin-top: 0; }
/* Sous-menus réactifs : pas de flou d'arrière-plan (coûteux sur le décor animé), ouverture rapide,
   et pas d'ouverture « collée » après un clic (seulement survol, clic, ou navigation au clavier) */
.dropdown { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(24, 17, 13, .98); transition: opacity .14s ease-out, transform .14s ease-out, visibility 0s linear .14s; will-change: opacity, transform; }
.has-sub:hover > .dropdown, .has-sub.open > .dropdown, .has-sub:has(:focus-visible) > .dropdown { transition: opacity .14s ease-out, transform .14s ease-out, visibility 0s; }
@media (min-width: 961px) {
    .has-sub:focus-within:not(:hover):not(.open):not(:has(:focus-visible)) > .dropdown { opacity: 0; visibility: hidden; transform: translate(-50%, 6px); }
    .dropdown { top: calc(100% - 6px); }
}
/* Performance : plus de flou d'arrière-plan sur les cartes et le menu mobile (fonds légèrement plus opaques à la place) */
.card { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(var(--surface), var(--surface)), rgba(16, 11, 8, .72); }
@media (max-width: 960px) { .nav { backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Personnages de l'accueil : le conteneur bouge (composité), l'image et son contour lumineux sont dessinés une seule fois */
.hero-duel .duel { position: absolute; bottom: 0; height: min(60%, 600px); will-change: transform; transform-origin: 50% 100%; }
.hero-duel .duel img { display: block; position: static; height: 100% !important; width: auto; transform: none !important; animation: none !important; will-change: auto;
    filter: brightness(.88) saturate(1.05) drop-shadow(0 0 3px rgba(255, 150, 70, .8)) drop-shadow(0 0 30px rgba(255, 90, 31, .45)); }
.hero-duel .duel-l { left: 0; animation: duelL 4.8s ease-in-out infinite; }
.hero-duel .duel-r { right: 0; animation: duelR 5.4s ease-in-out infinite; }
@media (max-width: 1600px) { .hero-duel .duel { height: min(52%, 480px); } }
@media (max-width: 1100px) { .hero-duel .duel { height: min(40%, 380px); opacity: .7; } }

/* Lave animée du fond : calques visibles uniquement à travers le masque de la lave (opacité et position seulement) */
.hero-bg .lava { position: absolute; inset: 0; z-index: 1; pointer-events: none;
    -webkit-mask: url('../img/hero-champ-lave.png') center 40% / cover no-repeat; mask: url('../img/hero-champ-lave.png') center 40% / cover no-repeat; }
.lava-glow { background: linear-gradient(0deg, #ffc040, #ff6a14 60%, #ff3d0a); opacity: .2; animation: lavaPulse 4.2s ease-in-out infinite; will-change: opacity; }
@keyframes lavaPulse { 0%, 100% { opacity: .18; } 22% { opacity: .55; } 38% { opacity: .3; } 61% { opacity: .7; } 80% { opacity: .35; } }
.lava-flow { overflow: hidden; }
.lava-flow i { position: absolute; inset: -40% -60%; will-change: transform;
    background: repeating-linear-gradient(115deg, transparent 0 50px, rgba(255, 236, 160, .75) 80px, transparent 120px);
    animation: lavaFlow 3.5s linear infinite; }
@keyframes lavaFlow { from { transform: translate(0, 0); } to { transform: translate(109px, 51px); } }
@media (max-width: 720px) {
    .hero-bg .lava { -webkit-mask-image: url('../img/hero-champ-m-lave.png'); mask-image: url('../img/hero-champ-m-lave.png'); -webkit-mask-position: center top; mask-position: center top; }
}

/* Écusson : n'hérite pas du style des liens du menu (marges, coins arrondis, fond au survol) */
.nav .crest, .nav .crest:hover, .nav .crest:focus { padding: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; width: 230px; gap: 0; }
.nav .crest:focus-visible { outline: 2px solid var(--gold); outline-offset: -6px; }
.crest .logo-fx { width: 184px; margin: 0 auto; transform-origin: 50% 50%; }
.crest { place-items: center; padding-bottom: 22px !important; }
.crest:hover .logo-fx { transform: scale(1.04); }
.header.scrolled .crest .logo-fx { width: 150px; }
@media (max-width: 1240px) and (min-width: 961px) { .nav .crest { width: 190px; } .crest .logo-fx { width: 156px; } }

/* Sous-menus plus compacts, ombre discrète (ne « mangent » plus la page) */
@media (min-width: 961px) {
    .dropdown { min-width: 210px; padding: 6px; border-radius: 12px; border: 1px solid rgba(255, 170, 110, .22);
        box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .85); background: rgba(20, 14, 10, .98); top: calc(100% - 10px); }
    .dropdown a { padding: 8px 10px !important; font-size: .86rem !important; border-radius: 8px; }
    .dropdown a small { font-size: .74rem; margin-top: 2px; }
    .dropdown a:hover, .dropdown a[aria-current="page"] { background: rgba(255, 138, 61, .1); color: #ffd27a; }
    .dropdown::after { content: ''; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg);
        background: rgba(20, 14, 10, .98); border-left: 1px solid rgba(255, 170, 110, .22); border-top: 1px solid rgba(255, 170, 110, .22); }
}
/* Écusson un peu plus grand : le logo (et ses gouttes) tient entièrement dans la forme */
@media (min-width: 961px) {
    .nav-crest { width: 250px; }
    .nav .crest { width: 250px; margin-left: -125px; height: calc(var(--header-h) + 56px); padding-bottom: 30px !important; }
    .crest::before, .crest::after { clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%); }
    .crest .logo-fx { width: 176px; }
    .nav-crest::after { top: calc(var(--header-h) + 40px); }
    .header.scrolled .nav .crest { height: calc(var(--header-h) + 30px); padding-bottom: 18px !important; }
    .header.scrolled .crest .logo-fx { width: 140px; }
}
@media (max-width: 1240px) and (min-width: 961px) {
    .nav-crest { width: 206px; }
    .nav .crest { width: 206px; margin-left: -103px; }
    .crest .logo-fx { width: 148px; }
}
/* Survol de l'écusson : même largeur qu'au repos (il ne rétrécit plus et ne bouge plus) */
@media (min-width: 961px) {
    .nav .crest, .nav .crest:hover, .nav .crest:focus { width: 250px; }
    .crest:hover .logo-fx, .crest:hover img { transform: none; }
    .crest:hover .logo-fx { animation-play-state: running; }
    /* Plus d'espace entre les liens et l'écusson, et sous-menus toujours au-dessus de l'écusson */
    .nav-crest { margin: 0 34px; }
    .has-sub { z-index: 5; }
    .dropdown { z-index: 20; }
}
@media (max-width: 1440px) and (min-width: 961px) { .nav-crest { margin: 0 22px; } }
@media (max-width: 1240px) and (min-width: 961px) {
    .nav .crest, .nav .crest:hover, .nav .crest:focus { width: 206px; }
    .nav-crest { margin: 0 10px; }
}
/* Sous-menus ouverts vers l'extérieur (jamais sous l'écusson) */
@media (min-width: 961px) {
    .nav-left .dropdown { left: auto; right: 0; transform: translateY(6px); }
    .nav-right .dropdown { left: 0; transform: translateY(6px); }
    .nav-left .has-sub:hover > .dropdown, .nav-left .has-sub.open > .dropdown, .nav-left .has-sub:has(:focus-visible) > .dropdown,
    .nav-right .has-sub:hover > .dropdown, .nav-right .has-sub.open > .dropdown, .nav-right .has-sub:has(:focus-visible) > .dropdown { transform: none; }
    .nav-left .has-sub:focus-within:not(:hover):not(.open):not(:has(:focus-visible)) > .dropdown,
    .nav-right .has-sub:focus-within:not(:hover):not(.open):not(:has(:focus-visible)) > .dropdown { transform: translateY(6px); }
    .nav-left .dropdown::after { left: auto; right: 36px; margin-left: 0; }
    .nav-right .dropdown::after { left: 36px; margin-left: 0; }
}
/* Survol de l'écusson : même marge intérieure qu'au repos (le logo ne descend plus) */
@media (min-width: 961px) {
    .nav .crest, .nav .crest:hover, .nav .crest:focus { padding: 0 0 30px !important; }
    .header.scrolled .nav .crest, .header.scrolled .nav .crest:hover, .header.scrolled .nav .crest:focus { padding: 0 0 18px !important; }
}

/* Braises en CSS : uniquement position (transform) et opacité, gérées par la carte graphique */
.embers-css { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.embers-css i { position: absolute; bottom: -12px; width: var(--s); height: var(--s); border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, #ffe2a0 0, rgba(255, 140, 50, .8) 35%, rgba(255, 90, 20, 0) 70%);
    animation: emberRise var(--d) linear var(--dl) infinite; will-change: transform, opacity; }
@keyframes emberRise {
    0% { transform: translate3d(0, 0, 0); opacity: 0; }
    10% { opacity: var(--o); }
    50% { transform: translate3d(var(--x1), -48vh, 0); }
    85% { opacity: calc(var(--o) * .6); }
    100% { transform: translate3d(var(--x2), -100vh, 0); opacity: 0; }
}

/* Bouton Discord : pulsation par un anneau (transform + opacité) au lieu d'une ombre animée */
.discord-fab { animation: none !important; }
.discord-fab::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(88, 101, 242, .7);
    animation: dcRing 2.4s ease-out infinite; will-change: transform, opacity; pointer-events: none; }
@keyframes dcRing { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.35, 1.6); opacity: 0; } }
/* Reflets de lave : calque à peine plus grand que l'écran (il ne se décale que de 109 × 51 px) */
.lava-flow i { inset: -60px -120px -60px -120px; }
.hero-bg .lava, .embers-css { contain: strict; }
/* Bouton « Admin » (staff uniquement) */
.btn-admin { background: linear-gradient(135deg, rgba(255, 106, 43, .18), rgba(255, 181, 71, .1)); border: 1px solid rgba(255, 181, 71, .45); color: #ffd27a; font-weight: 700; }
.btn-admin:hover { background: var(--grad); color: #1a0b03; border-color: transparent; }
.btn-admin svg { width: 16px; height: 16px; }

/* Rejoindre : aide au premier lancement sur Mac */
.mac-help { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.mac-help summary { cursor: pointer; font-weight: 600; }
.mac-help ol { margin: 10px 0 6px; padding-left: 20px; color: var(--text-2); font-size: .9rem; }
.mac-help li { margin-bottom: 6px; }
.mac-help code { display: inline-block; margin-top: 4px; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, .35); color: var(--gold-2); font-size: .82rem; word-break: break-all; }


/* ------------------------------------------------------------------ serveur consulté (configuration/serveur.php) */
.srv-switch { display: inline-flex; gap: 2px; padding: 2px; border-radius: 99px; background: rgba(255, 236, 220, .06); border: 1px solid var(--line); flex: none; }
.srv-opt { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--text-2); text-decoration: none; transition: background .15s, color .15s; }
.srv-opt:hover { color: var(--text); background: rgba(255, 236, 220, .06); }
.srv-dot { width: 8px; height: 8px; border-radius: 50%; background: #e2492f; flex: none; }
.srv-opt-semi .srv-dot { background: #2f8fe0; }
.srv-opt.on { color: #fff; background: #e2492f; }
.srv-opt-semi.on { background: #2f8fe0; }
.srv-opt.on .srv-dot { background: #fff; }
.srv-banner { font-size: 12.5px; color: var(--text-2); background: rgba(255, 106, 43, .1); border-top: 1px solid var(--line); padding: 5px 0; }
.srv-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.srv-banner b { color: var(--ember-2); }
.srv-banner .srv-opt { text-decoration: none; }
@media (max-width: 700px) { .srv-txt { display: none; } }
/* semi-like : couleurs bleues à la place des braises */
body.srv-semi {
    --ember: #2f8fe0;
    --ember-2: #6cb6ff;
    --gold: #6cb6ff;
    --gold-2: #a8d4ff;
    --line: rgba(170, 190, 215, .11);
    --line-2: rgba(170, 190, 215, .2);
    --grad: linear-gradient(135deg, #1f6fd1 0%, #3d9cf0 45%, #7cc4ff 100%);
    --grad-soft: linear-gradient(135deg, rgba(47, 143, 224, .2), rgba(108, 182, 255, .1));
    --glow: 0 0 0 1px rgba(79, 179, 255, .35), 0 12px 40px -10px rgba(47, 143, 224, .55);
}
body.srv-semi .srv-banner { background: rgba(47, 143, 224, .12); }

/* Page d'achat : pack / montant choisi */
.offer.selected, .card.selected { border-color: rgba(255, 196, 92, .9); box-shadow: 0 0 0 2px rgba(255, 196, 92, .45), 0 30px 70px -30px rgba(255, 106, 43, .6); }
.offer.selected .js-choisir { background: var(--grad); color: #1a0b03; }

/* Page « Achat réussi » */
.achat-ok { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 22px; border-color: rgba(74, 222, 128, .45); background: linear-gradient(180deg, rgba(74, 222, 128, .10), var(--surface) 60%); }
.achat-ok-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(74, 222, 128, .16); color: var(--ok); animation: achatPop .5s var(--ease) both; }
.achat-ok-ico svg { width: 34px; height: 34px; }
.achat-ok-montant { font: 800 clamp(2.2rem, 6vw, 3.2rem)/1 var(--font-display); display: flex; align-items: center; gap: 10px; color: var(--gold-2); }
.achat-ok-montant .og { width: .9em; height: .9em; }
.achat-recap { width: 100%; border-collapse: collapse; }
.achat-recap th, .achat-recap td { padding: 9px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.achat-recap th { color: var(--muted); font-weight: 600; width: 45%; }
@keyframes achatPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* Page d'achat : encart achat par ticket Discord */
.ticket-bonus { display: flex; align-items: center; gap: 16px; border-color: rgba(88, 101, 242, .45); background: linear-gradient(90deg, rgba(88, 101, 242, .12), var(--surface) 70%); }
.ticket-bonus > .ico { flex: none; color: #8b95ff; }
.ticket-bonus > .ico .dc-logo { width: 26px; height: 26px; }
.ticket-bonus > div { flex: 1; min-width: 0; }
.ticket-bonus .btn { flex: none; }
@media (max-width: 640px) { .ticket-bonus { flex-wrap: wrap; } .ticket-bonus .btn { width: 100%; } }
