/* ═══════════════════════════════════════════════════════════════════════════
   Azertix Bot — feuille de style commune à toutes les pages du site
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    --bg: #0b0c12;
    --bg2: #13141f;
    --bg3: #1c1d2e;
    --border: rgba(255,255,255,0.07);
    --border-strong: rgba(255,255,255,0.14);
    --primary: #7b6ef6;
    --primary-soft: #a99ff8;
    --primary-glow: rgba(123,110,246,0.22);
    --accent: #00d4ff;
    --gold: #ffd166;
    --green: #06d6a0;
    --red: #ef476f;
    --orange: #f9a825;
    --discord: #5865F2;
    --youtube: #FF0000;
    --text: #e8e8f0;
    --muted: #8b8ba3;
    --muted-2: #6b6b80;
    --radius: 14px;
    --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
a { color: var(--primary-soft); }
img { max-width: 100%; display: block; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── NAVBAR ─────────────────────────────────────────────────────────────── */
.topnav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-h);
    padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(11,12,18,0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.3px; }
.logo span { color: var(--primary); }
.logo-mark {
    width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.9rem; font-weight: 900;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
    background: var(--primary) !important; color: #fff !important;
    padding: 9px 18px; border-radius: 8px; font-weight: 600 !important;
    box-shadow: 0 0 24px var(--primary-glow);
}
.nav-live {
    display: inline-flex; align-items: center; gap: 7px;
    color: #ff6b81 !important; font-weight: 700 !important;
}
.nav-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 0 0 rgba(255,59,92,0.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,92,0.55); } 70% { box-shadow: 0 0 0 9px rgba(255,59,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); } }

.nav-toggle { display: none; }
.nav-burger {
    display: none; width: 40px; height: 40px; border-radius: 9px; cursor: pointer;
    align-items: center; justify-content: center; flex-direction: column; gap: 5px;
    border: 1px solid var(--border);
}
.nav-burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }

/* ── LAYOUT ─────────────────────────────────────────────────────────────── */
main { flex: 1; }
.container { max-width: 1040px; margin: 0 auto; padding-left: 24px; padding-right: 24px; width: 100%; }
.page { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px; }
.section { padding: 88px 0; }
.divider { height: 1px; background: var(--border); max-width: 1040px; margin: 0 auto; }
.section-label { text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.section-title { text-align: center; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; color: #fff; letter-spacing: -0.5px; margin-bottom: 12px; line-height: 1.15; }
.section-sub { text-align: center; color: var(--muted); font-size: 0.95rem; max-width: 520px; margin: 0 auto 52px; }

.page-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(123,110,246,0.1); border: 1px solid rgba(123,110,246,0.28);
    color: var(--primary-soft); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px;
    padding: 5px 14px; border-radius: 100px; margin-bottom: 18px;
}
.page-badge::before { content: '●'; color: var(--primary); font-size: 0.5rem; }
.page-badge.warn { background: rgba(249,168,37,0.1); border-color: rgba(249,168,37,0.3); color: var(--orange); }
.page-badge.warn::before { color: var(--orange); }
.page-header h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 900; letter-spacing: -1px; color: #fff; line-height: 1.1; margin-bottom: 10px; }
.page-header h1 span, .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-header p { color: var(--muted); font-size: 0.95rem; max-width: 560px; }

/* ── COMPOSANTS ─────────────────────────────────────────────────────────── */
.card {
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; transition: border-color 0.2s, transform 0.2s;
}
.card.hover:hover { border-color: rgba(123,110,246,0.35); transform: translateY(-3px); }
.card-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 26px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
    font-family: inherit; font-size: 0.93rem; font-weight: 700; text-decoration: none;
    transition: opacity 0.2s, transform 0.15s, border-color 0.2s; color: #fff; line-height: 1.2;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary { background: var(--primary); box-shadow: 0 0 32px var(--primary-glow); }
.btn-secondary { background: var(--bg3); border-color: var(--border); color: var(--text); font-weight: 600; }
.btn-secondary:hover { border-color: var(--primary); }
.btn-discord { background: var(--discord); }
.btn-youtube { background: var(--youtube); }
.btn-block { width: 100%; }
.btn-disabled, .btn[aria-disabled="true"] { background: var(--bg3); color: var(--muted); cursor: not-allowed; pointer-events: none; box-shadow: none; border-color: var(--border); }

.badge { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; white-space: nowrap; }
.b-purple { background: rgba(123,110,246,0.13); color: var(--primary-soft); }
.b-gold   { background: rgba(255,209,102,0.11); color: var(--gold); }
.b-green  { background: rgba(6,214,160,0.11); color: var(--green); }
.b-accent { background: rgba(0,212,255,0.11); color: var(--accent); }
.b-red    { background: rgba(239,71,111,0.12); color: var(--red); }

.notice { border-radius: 12px; padding: 16px 18px; font-size: 0.86rem; color: var(--muted); line-height: 1.65; border: 1px solid var(--border); background: var(--bg2); }
.notice strong { color: var(--text); }
.notice.info    { background: rgba(123,110,246,0.06); border-color: rgba(123,110,246,0.2); }
.notice.info strong { color: var(--primary-soft); }
.notice.success { background: rgba(6,214,160,0.06); border-color: rgba(6,214,160,0.22); }
.notice.success strong { color: var(--green); }
.notice.warn    { background: rgba(249,168,37,0.05); border-color: rgba(249,168,37,0.25); }
.notice.warn strong { color: var(--orange); }
.notice.danger  { background: rgba(239,71,111,0.06); border-color: rgba(239,71,111,0.25); }
.notice.danger strong { color: var(--red); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--bg2); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.data th { text-align: left; font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--border); }
table.data td { padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(255,255,255,0.02); }
.num { font-variant-numeric: tabular-nums; }

.legal { max-width: 780px; }
.legal h2 { font-size: 1.1rem; font-weight: 700; color: #fff; margin: 34px 0 10px; letter-spacing: -0.2px; }
.legal h2:first-of-type { margin-top: 10px; }
.legal p, .legal li { color: var(--muted); font-size: 0.93rem; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 6px; }
.legal .date { display: inline-flex; align-items: center; gap: 6px; background: var(--bg2); border: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; padding: 6px 14px; border-radius: 8px; margin: 12px 0 28px; }
.legal .highlight { background: var(--bg2); border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 16px 0; font-size: 0.9rem; color: var(--text); }
.legal code { background: var(--bg3); color: var(--accent); padding: 1px 6px; border-radius: 4px; font-size: 0.85em; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 24px 40px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.footer p { color: var(--muted-2); font-size: 0.82rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .topnav { padding: 0 16px; }
    .nav-burger { display: flex; }
    .nav-links {
        position: fixed; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #0d0e17; border-bottom: 1px solid var(--border-strong);
        box-shadow: 0 24px 48px rgba(0,0,0,0.6);
        padding: 8px 16px 16px; display: none; max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    }
    .nav-links a { padding: 13px 8px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links .nav-cta { margin-top: 10px; text-align: center; }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .container { padding-left: 16px; padding-right: 16px; }
    .page { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 48px; }
    .section { padding: 64px 0; }
    .footer { flex-direction: column; align-items: center; text-align: center; padding: 22px 16px; }
    .footer-links { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
