/* TeFus — direction artistique "forêt de nuit" (logo vert, liseré or) */
:root {
    --night: #07130e; --forest: #0e2419; --moss: #143223; --line: #24543a;
    --leaf: #7fd05a; --emerald: #3fae5a; --gold: #f0cb72; --cream: #f3ecd6; --sage: #9fb8a6; --ink: #0f2e1a;
    /* alias historiques utilisés par les pages */
    --bg: var(--night); --bg-alt: #0a1a12; --surface: var(--forest); --surface-2: var(--moss);
    --border: var(--line); --text: var(--cream); --text-dim: var(--sage);
    --accent: var(--emerald); --accent-2: var(--leaf); --gold-2: #ffe9a6;
    --danger: #e56b5c; --success: #7fd05a;
    --radius: 18px; --radius-sm: 12px;
    --font-display: 'Luckiest Guy', 'Nunito', sans-serif;
    --font-body: 'Nunito', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; background: var(--night); color: var(--cream);
    font-family: var(--font-body); line-height: 1.6; font-size: 16px;
    background-image: radial-gradient(1200px 600px at 80% -10%, rgba(63,174,90,.10), transparent 60%);
    background-attachment: fixed;
}
a { color: var(--leaf); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-body); font-weight: 800; margin: 0 0 .5em; color: var(--cream); line-height: 1.2; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: .5px; }
p { margin: 0 0 1em; color: var(--sage); }
::selection { background: var(--emerald); color: var(--night); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Barre du haut ---------- */
.topbar {
    background: rgba(7,19,14,.86); border-bottom: 1px solid rgba(36,84,58,.7);
    position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px);
}
.topbar-inner { display: flex; align-items: center; gap: 30px; padding: 10px 20px; max-width: 1240px; margin: 0 auto; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 48px; width: auto; flex-shrink: 0; display: block; filter: drop-shadow(0 3px 8px rgba(0,0,0,.45)); transition: transform .2s; }
.logo:hover .logo-img { transform: rotate(-2deg) scale(1.03); }

nav.main-nav { display: flex; gap: 24px; align-items: center; }
nav.main-nav a, .nav-item > .nav-trigger {
    color: var(--sage); font-size: 15px; font-weight: 700; padding: 8px 0; position: relative;
    background: none; border: none; cursor: pointer; font-family: inherit; transition: color .15s;
}
nav.main-nav > a::after, .nav-item > .nav-trigger::before {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 2px;
    background: var(--leaf); transform: scaleX(0); transition: transform .2s;
}
nav.main-nav a:hover, nav.main-nav a.active, .nav-item:hover > .nav-trigger, .nav-item.has-active > .nav-trigger { color: var(--cream); }
nav.main-nav > a.active::after, .nav-item.has-active > .nav-trigger::before { transform: scaleX(1); }
.nav-item { position: relative; }
.nav-item > .nav-trigger { display: inline-flex; align-items: center; gap: 6px; }
.nav-item > .nav-trigger::after { content: '▾'; font-size: 10px; opacity: .7; transition: transform .15s; }
.nav-item:hover > .nav-trigger::after { transform: rotate(180deg); }
.nav-dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
    background: var(--forest); border: 1px solid var(--line); border-radius: 14px;
    padding: 8px; min-width: 210px; box-shadow: 0 18px 40px rgba(0,0,0,.5);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, transform .15s;
    display: flex; flex-direction: column; gap: 2px; z-index: 50;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown a { padding: 10px 12px !important; border-radius: 9px; display: block; font-size: 14px !important; }
.nav-dropdown a:hover, .nav-dropdown a.active { background: var(--moss); color: var(--cream); }
.topbar-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.nav-toggle { display: none; background: none; border: none; color: var(--cream); font-size: 26px; cursor: pointer; }

/* ---------- Bandeau de vote ---------- */
.vote-bar { background: linear-gradient(90deg, rgba(240,203,114,.16), rgba(127,208,90,.10)); border-bottom: 1px solid rgba(240,203,114,.35); }
.vote-bar-inner { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 20px; font-weight: 700; font-size: 14px; color: var(--cream); flex-wrap: wrap; text-align: center; }

/* ---------- Boutons (style du logo : vert, liseré or, contour encre) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 24px; border-radius: 14px; font-family: var(--font-body);
    font-weight: 800; font-size: 15px; letter-spacing: .2px; border: 0; cursor: pointer;
    transition: transform .15s, box-shadow .15s, filter .15s; text-decoration: none; line-height: 1.2; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); filter: brightness(.95); }
.btn-primary {
    background: linear-gradient(180deg, #9be86a, #3fae5a 60%, #2b8a45); color: #0b2414;
    box-shadow: 0 0 0 3px #f0cb72 inset, 0 0 0 2px #0f2e1a, 0 6px 18px rgba(63,174,90,.35);
    text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { color: #0b2414; box-shadow: 0 0 0 3px #f0cb72 inset, 0 0 0 2px #0f2e1a, 0 10px 26px rgba(63,174,90,.5); }
.btn-gold { background: linear-gradient(180deg, #ffe9a6, #e6b54e 60%, #c38f2c); color: #3a2405; box-shadow: 0 0 0 2px #0f2e1a, 0 6px 18px rgba(240,203,114,.3); }
.btn-gold:hover { color: #3a2405; }
.btn-outline { background: rgba(7,19,14,.5); color: var(--cream); box-shadow: 0 0 0 1.5px rgba(240,203,114,.55) inset; }
.btn-outline:hover { color: var(--cream); box-shadow: 0 0 0 1.5px var(--gold) inset; background: rgba(20,50,35,.7); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn-block { width: 100%; }
button.btn { font-family: var(--font-body); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 640px; display: flex; align-items: center;
    background: url('/assets/img/brand/scene.jpg') center 40% / cover no-repeat; isolation: isolate; padding-bottom: 60px;
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(7,19,14,.75) 0%, rgba(7,19,14,.25) 60%, rgba(7,19,14,.1) 100%),
                linear-gradient(180deg, rgba(7,19,14,0) 60%, var(--night) 100%); }
.hero-inner { display: flex; align-items: center; gap: 40px; }
.hero-content { flex: 1; max-width: 620px; padding: 60px 0; }
.hero-logo { width: 460px; flex-shrink: 0; filter: drop-shadow(0 14px 30px rgba(0,0,0,.55)); }
.eyebrow { display: inline-block; color: var(--gold); font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.server-status {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
    background: rgba(7,19,14,.6); box-shadow: 0 0 0 1px rgba(127,208,90,.35) inset;
    font-weight: 700; font-size: 14px; color: #b9f08f; margin: 0;
}
.server-status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.server-status.is-online .server-status-dot { background: var(--leaf); box-shadow: 0 0 10px var(--leaf); animation: pulse-dot 2s ease-in-out infinite; }
.server-status.is-offline { color: #f2a197; box-shadow: 0 0 0 1px rgba(229,107,92,.4) inset; }
.server-status.is-offline .server-status-dot { background: var(--danger); }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.hero h1 { font-size: 62px; line-height: 1.04; margin: 22px 0 16px; color: var(--cream); text-shadow: 0 4px 0 #0f2e1a, 0 0 30px rgba(0,0,0,.4); text-wrap: balance; }
.hero h1 span { color: #9be86a; }
.hero p.lead { font-size: 18px; color: #cfe0d3; max-width: 52ch; line-height: 1.55; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.stat-strip { position: relative; z-index: 3; margin-top: -70px; }
.stat-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--forest); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 20px 40px rgba(0,0,0,.4); padding: 0; }
.stat-item { padding: 22px 26px; border-right: 1px solid var(--line); text-align: left; }
.stat-item:last-child { border-right: 0; }
.stat-item .num { font-family: var(--font-display); font-size: 34px; color: var(--gold); line-height: 1.1; letter-spacing: .5px; }
.stat-item .lbl { font-size: 14px; color: var(--sage); font-weight: 700; }

/* ---------- Sections ---------- */
section.block { padding: 70px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.section-head h2 { font-size: 38px; margin: 0; }
.section-head .sub { color: var(--sage); margin: 4px 0 0; }
.band { background: linear-gradient(180deg, rgba(14,36,25,.6), rgba(14,36,25,.2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Cartes ---------- */
.card { background: var(--forest); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--emerald), 0 14px 30px rgba(0,0,0,.35); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card img { height: 190px; object-fit: cover; width: 100%; }
.news-card .body { padding: 18px 20px 22px; }
.news-card .date { font-size: 13px; color: var(--leaf); font-weight: 800; }
.news-card h3 { font-size: 19px; margin: 6px 0 8px; }
.news-card p { font-size: 14.5px; margin-bottom: 12px; line-height: 1.5; }
.news-card .readmore { font-size: 14px; font-weight: 800; color: var(--gold); }

.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat { background: linear-gradient(180deg, var(--moss), var(--forest)); border-radius: var(--radius); padding: 22px; box-shadow: 0 0 0 1px var(--line); }
.feat .ic { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: #0b1d14; box-shadow: 0 0 0 1.5px rgba(240,203,114,.5) inset; margin-bottom: 14px; }
.feat h3 { font-size: 18px; margin-bottom: 6px; }
.feat p { font-size: 14.5px; margin: 0; line-height: 1.5; }

/* ---------- En direct ---------- */
.live-block { padding-bottom: 10px; }
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.live-card { background: linear-gradient(180deg, var(--moss), var(--forest)); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 0 0 1px var(--line); }
.live-card.is-on { box-shadow: 0 0 0 1.5px var(--gold), 0 10px 30px rgba(240,203,114,.12); }
.live-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.live-ic { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: #0b1d14; box-shadow: 0 0 0 1.5px rgba(240,203,114,.5) inset; }
.live-kind { font-weight: 800; color: var(--sage); font-size: 14px; }
.live-pill { margin-left: auto; font-size: 12px; font-weight: 800; color: #0b2414; background: var(--leaf); border-radius: 999px; padding: 2px 10px; }
.live-pill:empty { display: none; }
.live-card h3 { font-size: 19px; margin: 0 0 4px; }
.live-big { font-family: var(--font-display); font-size: 30px; color: var(--gold); line-height: 1.15; letter-spacing: .5px; margin-bottom: 6px; }
.live-big.small { font-family: var(--font-body); font-size: 15px; font-weight: 800; color: var(--leaf); letter-spacing: 0; }
.live-sub { font-size: 14px; margin: 0; }
.live-bar { height: 10px; border-radius: 6px; background: #0a1a12; box-shadow: 0 0 0 1px var(--line) inset; overflow: hidden; margin: 2px 0 8px; }
.live-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e56b5c, var(--gold)); }

/* ---------- Fiche personnage ---------- */
.perso-head { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.perso-sym { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.perso-head h1 { margin-bottom: 10px; text-align: left; }
.perso-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--moss); color: var(--cream); box-shadow: 0 0 0 1px var(--line) inset; }
.tag.gold { background: rgba(240,203,114,.14); color: var(--gold); box-shadow: 0 0 0 1px rgba(240,203,114,.4) inset; }
.tag.leaf { background: rgba(127,208,90,.12); color: #b9f08f; box-shadow: 0 0 0 1px rgba(127,208,90,.35) inset; }
.perso-stats { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--forest); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.perso-stats div { padding: 16px 14px; border-right: 1px solid var(--line); }
.perso-stats div:last-child { border-right: 0; }
.perso-stats b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--gold); line-height: 1.1; }
.perso-stats span { font-size: 13px; color: var(--sage); font-weight: 700; }
.ach-list { display: flex; flex-direction: column; gap: 8px; }
.ach { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: #0a1a12; box-shadow: 0 0 0 1px var(--line) inset; }
.ach.is-done { background: rgba(240,203,114,.08); box-shadow: 0 0 0 1px rgba(240,203,114,.35) inset; }
.ach-ic { font-size: 20px; color: var(--sage); width: 22px; text-align: center; }
.ach.is-done .ach-ic { color: var(--gold); }
.ach-txt { flex: 1; min-width: 0; }
.ach-txt b { display: block; font-size: 14.5px; color: var(--cream); }
.ach-txt small { color: var(--sage); font-size: 12.5px; }
.ach-n { font-size: 12.5px; font-weight: 800; color: var(--sage); white-space: nowrap; }
.ach.is-done .ach-n { color: var(--gold); }
.ach-bar { height: 5px; border-radius: 3px; background: var(--moss); margin-top: 5px; overflow: hidden; }
.ach-bar i { display: block; height: 100%; background: var(--leaf); }

/* ---------- Classes ---------- */
.classes-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.class-pill { display: flex; align-items: center; gap: 8px; padding: 7px 16px 7px 7px; border-radius: 999px; background: var(--forest); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s, transform .15s; }
.class-pill:hover { box-shadow: 0 0 0 1.5px var(--gold); transform: translateY(-2px); }
.class-pill img { width: 30px; height: 30px; object-fit: contain; }
.class-pill span { font-size: 14px; color: var(--cream); font-weight: 700; }

/* ---------- Panneaux / formulaires ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { background: var(--forest); border-radius: var(--radius); padding: 28px; box-shadow: 0 0 0 1px var(--line); }
details.panel { padding: 14px 20px; }
details.panel > summary { list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel[open] { padding-bottom: 20px; }
.panel h3 { font-size: 21px; margin-bottom: 6px; }
.panel .sub { font-size: 14px; margin-bottom: 20px; }
.sub { color: var(--sage); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--cream); margin-bottom: 6px; }
.field input, .field textarea, .field select, input.input, select.input {
    width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
    background: #0a1a12; color: var(--cream); font-family: var(--font-body); font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(127,208,90,.18); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.form-foot-link { font-size: 14px; margin-top: 14px; text-align: center; color: var(--sage); }
.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; font-weight: 600; }
.alert-error { background: rgba(229,107,92,.12); border: 1px solid rgba(229,107,92,.45); color: #f6b3aa; }
.alert-success { background: rgba(127,208,90,.12); border: 1px solid rgba(127,208,90,.45); color: #c4f0a6; }

/* ---------- Boutique ---------- */
.shop-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.shop-item { display: flex; align-items: center; justify-content: space-between; background: #0a1a12; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.shop-item .name { font-weight: 700; font-size: 14.5px; }
.shop-item .price { color: var(--gold); font-weight: 800; font-size: 14px; }

/* ---------- Classements ---------- */
table.ranking { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--forest); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
table.ranking th, table.ranking td { padding: 14px 16px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); }
table.ranking th { background: var(--moss); font-size: 13px; color: var(--gold); font-weight: 800; }
table.ranking tr:last-child td { border-bottom: none; }
table.ranking tr:hover td { background: rgba(127,208,90,.05); }
.rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: 13px; }
.rank-1 { background: linear-gradient(180deg,#ffe9a6,#e6b54e); color: #3a2405; box-shadow: 0 0 0 2px var(--ink); }
.rank-2 { background: linear-gradient(180deg,#eef2ef,#a9b8ae); color: #1d2a22; box-shadow: 0 0 0 2px var(--ink); }
.rank-3 { background: linear-gradient(180deg,#e9a873,#b46a3a); color: #2b1505; box-shadow: 0 0 0 2px var(--ink); }
.rank-n { background: var(--moss); color: var(--sage); }
.prestige-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: linear-gradient(180deg,#9be86a,#3fae5a); color: #0b2414; box-shadow: 0 0 0 1.5px var(--gold) inset; }

/* ---------- Téléchargement ---------- */
.download-box { text-align: center; padding: 60px 0; }
.download-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; text-align: left; }
.download-steps .card { padding: 24px; }
.step-num { font-family: var(--font-display); font-size: 36px; color: var(--gold); line-height: 1; margin-bottom: 8px; }

/* ---------- Pied de page ---------- */
footer { background: #06100b; border-top: 1px solid var(--line); padding: 54px 0 24px; margin-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.footer-grid h4 { font-size: 15px; color: var(--gold); margin-bottom: 14px; }
.footer-grid a { display: block; font-size: 14.5px; color: var(--sage); margin-bottom: 9px; }
.footer-grid a:hover { color: var(--cream); }
.footer-grid .logo-img { height: 64px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { display: inline-flex; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; color: var(--sage); text-align: center; }
.footer-bottom a { color: var(--sage); }

/* ---------- Pages internes ---------- */
.page-header {
    padding: 64px 0 44px; text-align: center; margin-bottom: 44px; position: relative; isolation: isolate;
    background: url('/assets/img/brand/scene.jpg') center 70% / cover; border-bottom: 1px solid var(--line);
}
.page-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,19,14,.55), rgba(7,19,14,.9)); }
.page-header h1 { font-size: 48px; margin-bottom: 8px; text-shadow: 0 3px 0 var(--ink); }
.page-header p, .page-header .sub { color: #cfe0d3; max-width: 640px; margin-left: auto; margin-right: auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { font-size: 17px; cursor: pointer; margin: 0; display: flex; justify-content: space-between; gap: 16px; }
.faq-item .a { display: none; padding-top: 10px; }
.faq-item.open .a { display: block; }
.faq-item h3::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; }
.faq-item.open h3::after { content: '−'; }
.badge-role { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--moss); color: var(--gold); border: 1px solid var(--line); }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body img { border-radius: var(--radius); margin-bottom: 24px; }
.article-meta { color: var(--sage); font-size: 14px; margin-bottom: 24px; }
.article-body .content, .article-body .content p { color: var(--cream); }
.dashboard-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.dashboard-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; color: var(--sage); font-weight: 700; margin-bottom: 6px; }
.dashboard-menu a:hover, .dashboard-menu a.active { background: var(--forest); color: var(--cream); box-shadow: 0 0 0 1px var(--line); }
.char-list { display: flex; flex-direction: column; gap: 10px; }
.char-row { display: flex; justify-content: space-between; align-items: center; background: #0a1a12; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.tabs, .wiki-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

/* Account hero + stat chips (compte.php) */
.account-hero {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px 28px; margin-bottom: 24px;
}
.account-hero-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 26px; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.account-hero-info h2 { margin: 0 0 4px; font-size: 22px; }
.account-hero-info .sub { margin: 0; }
.stat-chip-row { display: flex; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.stat-chip {
    background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 16px; text-align: center; min-width: 96px;
}
.stat-chip .value { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--gold-2); }
.stat-chip .label { display: block; font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

/* Character cards (compte.php "Mes personnages") */
.char-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.char-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; transition: border-color .15s, transform .15s;
}
.char-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.char-card-icon {
    width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
    background: var(--surface-2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.char-card-icon img { width: 36px; height: 36px; object-fit: contain; }
.char-card-body { min-width: 0; }
.char-card-body strong { display: block; font-size: 15px; color: #fff; }
.char-card-body .sub { display: block; font-size: 12px; margin-top: 2px; }
.char-card-link { margin-left: auto; color: var(--text-dim); font-size: 18px; flex-shrink: 0; }
.char-card:hover .char-card-link { color: var(--accent-2); }


@media (max-width: 1080px) {
    .hero-logo { display: none; }
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    nav.main-nav { gap: 16px; }
}
@media (max-width: 1180px) {
    nav.main-nav { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; overflow-y: auto; background: var(--night); flex-direction: column; align-items: stretch; padding: 20px; display: none; gap: 6px; }
    nav.main-nav.open { display: flex; }
    nav.main-nav > a::after, .nav-item > .nav-trigger::before { display: none; }
    .nav-toggle { display: block; }
    .nav-item { position: static; }
    .nav-item > .nav-trigger::after { content: ''; }
    .nav-dropdown { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; box-shadow: none; border: none; background: transparent; padding: 4px 0 4px 16px; margin: 0; }
}
@media (max-width: 900px) {
    .two-col, .footer-grid, .news-grid, .download-steps, .dashboard-grid, .live-grid { grid-template-columns: 1fr; }
    .stat-strip-inner, .perso-stats { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: 0; }
    .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .topbar-actions .btn-outline { display: none; }
    .hero { min-height: 520px; }
    .hero h1 { font-size: 40px; }
    .page-header h1 { font-size: 36px; }
    .section-head h2 { font-size: 30px; }
}
@media (max-width: 560px) {
    .feat-grid { grid-template-columns: 1fr; }
    .topbar-actions .btn-primary { display: none; }
    .logo-img { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
