/* Peaxel Web v2 — Branding peaxel.me + responsive */
:root {
    /* Palette Peaxel (logo cyan → violet) */
    --peaxel-cyan: #22d3ee;
    --peaxel-blue: #3b82f6;
    --peaxel-purple: #7c3aed;
    --peaxel-violet: #a855f7;
    --peaxel-gradient: linear-gradient(135deg, #22d3ee 0%, #6366f1 45%, #7c3aed 100%);
    --peaxel-gradient-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(124, 58, 237, 0.15));

    --bg: #000000;
    --bg-elevated: #050505;
    --bg-card: #0a0a0a;
    --border: #1a1a28;
    --border-hover: #2a2a3e;
    --primary: var(--peaxel-cyan);
    --primary-dim: rgba(34, 211, 238, 0.12);
    --accent: var(--peaxel-purple);
    --accent-dim: rgba(124, 58, 237, 0.15);
    --neon: var(--peaxel-cyan);
    --neon-dim: rgba(34, 211, 238, 0.1);
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --nav-h: 72px;
    --sidebar-w: 260px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a { color: var(--peaxel-cyan); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { opacity: 0.9; }

/* ─── Logo ─── */
.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}
.logo-link:hover { opacity: 1; }
.logo-mark {
    border-radius: 0;
    box-shadow: none;
    flex-shrink: 0;
    object-fit: contain;
}
.logo-text {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--text);
}
.logo-text-lg { font-size: clamp(1.25rem, 4vw, 1.75rem); }
.logo-dot { color: var(--peaxel-cyan); }
.logo-sub {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-top: 0.1rem;
}
.logo-link.logo-md { flex-wrap: wrap; }
.logo-link.logo-md .logo-sub { width: 100%; margin-left: calc(36px + 0.65rem); margin-top: -0.35rem; }

/* ─── Landing ─── */
.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 90% 60% at 50% -15%, rgba(34, 211, 238, 0.12), transparent),
        radial-gradient(ellipse 70% 50% at 100% 80%, rgba(124, 58, 237, 0.1), transparent),
        radial-gradient(ellipse 50% 40% at 0% 60%, rgba(99, 102, 241, 0.08), transparent),
        var(--bg);
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    min-height: var(--nav-h);
    position: relative;
    z-index: 1100;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}
.nav-link {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    white-space: nowrap;
}
.nav-link:hover { color: var(--peaxel-cyan); }
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.nav-avatar { border-radius: 50%; border: 2px solid var(--peaxel-purple); }
.nav-username {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 8vw, 5rem);
    text-align: center;
    width: 100%;
}

.hero-logo {
    margin: 0 auto 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.hero-logo img {
    width: clamp(64px, 15vw, 88px);
    height: clamp(64px, 15vw, 88px);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.3), 0 0 80px rgba(124, 58, 237, 0.2);
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: var(--peaxel-gradient-soft);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: var(--peaxel-cyan);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(1.75rem, 5.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 1rem;
    background: var(--peaxel-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(0.95rem, 2.5vw, 1.125rem);
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 2rem;
    padding: 0 0.5rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    min-height: 44px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); opacity: 1; }
.btn-discord { background: #5865F2; color: white; box-shadow: 0 4px 24px rgba(88, 101, 242, 0.35); width: 100%; max-width: 360px; }
.btn-primary { background: var(--peaxel-gradient); color: white; box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3); }
.btn-neon { background: var(--peaxel-gradient); color: white; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; min-height: 40px; }

/* ─── Features ─── */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem) clamp(2rem, 6vw, 4rem);
    width: 100%;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(34, 211, 238, 0.35); transform: translateY(-2px); }
.feature-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.feature-card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.875rem; }

/* ─── Alerts ─── */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.875rem; margin-bottom: 1rem; text-align: left; width: 100%; max-width: 540px; margin-inline: auto; }
.alert-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-info { background: var(--neon-dim); border: 1px solid rgba(34,211,238,0.3); color: var(--peaxel-cyan); }

/* ─── App layout ─── */
.app-layout {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(1rem, 4vw, 2rem);
    width: 100%;
    flex: 1;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 4vw, 2rem);
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.profile-avatar {
    width: clamp(64px, 18vw, 80px);
    height: clamp(64px, 18vw, 80px);
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box, var(--peaxel-gradient) border-box;
    flex-shrink: 0;
}

.section-title {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1rem;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.stat-pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}
.stat-pill .value {
    display: block;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 800;
    background: var(--peaxel-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-pill .label { font-size: 0.65rem; text-transform: uppercase; color: var(--text-dim); letter-spacing: 0.05em; }

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 0.75rem;
}
.link-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    color: inherit;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, transform 0.2s;
}
.link-card:hover { border-color: var(--peaxel-cyan); transform: translateY(-2px); color: inherit; }
.link-card strong { display: block; margin-top: 0.35rem; }

/* ─── Footer ─── */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 2rem clamp(1rem, 4vw, 2rem) calc(2rem + var(--safe-bottom));
    background: var(--bg-elevated);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
}
.footer-links a { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }
.footer-copy { margin: 0; font-size: 0.75rem; color: var(--text-dim); }

.lang-switch {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
}
.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-dim) !important;
    text-decoration: none;
}
.lang-btn:hover { color: var(--text) !important; opacity: 1; }
.lang-btn.is-active {
    background: var(--peaxel-gradient);
    color: #fff !important;
}
.admin-lang-wrap {
    padding: 0 1rem 0.75rem;
    display: flex;
    justify-content: center;
}
.login-card .lang-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

/* ─── Admin layout ─── */
.admin-body { display: flex; min-height: 100vh; min-height: 100dvh; }

.admin-sidebar {
    width: var(--sidebar-w);
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
    padding: 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 0 1.25rem 1.25rem;
    flex: 1;
    min-width: 0;
}
.admin-brand-title {
    display: block;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text);
    letter-spacing: -0.01em;
}
.admin-brand-sub {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-sidebar .sidebar-toggle {
    display: none;
    margin: 0.75rem 1rem 0;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0 1.5rem;
    flex: 1;
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    border-left: 3px solid transparent;
    min-height: 44px;
}
.admin-nav a:hover, .admin-nav a.active {
    color: var(--text);
    background: var(--primary-dim);
    border-left-color: var(--peaxel-cyan);
    opacity: 1;
}
.admin-nav .nav-logout { margin-top: auto; color: var(--danger) !important; }

.admin-main {
    flex: 1;
    min-width: 0;
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 4vw, 2rem);
    padding-bottom: calc(1.5rem + var(--safe-bottom));
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.admin-header h1 { margin: 0; font-size: clamp(1.25rem, 4vw, 1.5rem); font-weight: 800; }
.admin-header-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.status-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-dim);
    max-width: 100%;
}
.pill-online { color: var(--success); }
.pill-error { color: var(--danger); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.6} }

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 0.75rem;
    text-align: center;
}
.kpi-card .kpi-value { display: block; font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 800; word-break: break-word; }
.kpi-card .kpi-label { font-size: 0.6rem; text-transform: uppercase; color: var(--text-dim); letter-spacing: 0.04em; }
.kpi-card.highlight .kpi-value { color: var(--peaxel-cyan); }
.kpi-card.danger .kpi-value { color: var(--danger); }

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}
.panel h2 {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--peaxel-cyan);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
}

label { display: block; font-size: 0.75rem; color: var(--text-dim); margin-top: 0.75rem; }
input, textarea, select {
    width: 100%;
    padding: 0.7rem 0.875rem;
    min-height: 44px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 16px; /* évite zoom iOS */
}
textarea { min-height: 88px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--peaxel-cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12); }

.mod-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.75rem; }
.mod-actions .btn-ban { grid-column: span 2; background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }

.user-preview { display: none; align-items: center; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.user-preview img { width: 32px; height: 32px; border-radius: 50%; }

.console {
    background: #08080c;
    border: 1px solid var(--border);
    border-left: 4px solid var(--peaxel-cyan);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
}
.console-header {
    background: #11111b;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.console-body {
    height: clamp(160px, 30vh, 220px);
    overflow-y: auto;
    overflow-x: auto;
    padding: 0.75rem 1rem;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.75rem;
    -webkit-overflow-scrolling: touch;
}
.log-entry { margin-bottom: 0.25rem; display: flex; gap: 0.5rem; flex-wrap: wrap; word-break: break-word; }
.log-time { color: var(--text-dim); flex-shrink: 0; }
.type-SYSTEM { color: #3b82f6; } .type-COMMAND { color: var(--peaxel-violet); }
.type-BROADCAST { color: var(--peaxel-cyan); } .type-CONFIG { color: var(--warning); }
.type-MOD { color: var(--danger); } .type-FEEDBACK { color: #fbbf24; }

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
}
.table-scroll[data-scrollable]::after {
    content: '↔';
    display: block;
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-dim);
    padding-top: 0.35rem;
}

table { width: 100%; border-collapse: collapse; min-width: 480px; }
th { text-align: left; font-size: 0.6rem; text-transform: uppercase; color: var(--text-dim); padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--border); font-size: 0.8rem; vertical-align: top; word-break: break-word; }

.chart-wrap { height: clamp(180px, 35vw, 260px); position: relative; }

/* ─── Login ─── */
.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 58, 237, 0.12), transparent),
        var(--bg);
}
.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 5vw, 2rem);
    box-shadow: var(--shadow);
}
.login-brand { text-align: center; margin-bottom: 1.5rem; }
.login-brand img { margin: 0 auto 0.75rem; width: 56px; height: 56px; border-radius: 50%; }
.login-card h1 { text-align: center; font-size: 0.9rem; letter-spacing: 0.12em; color: var(--text); margin: 0 0 0.25rem; font-weight: 800; }
.login-card .subtitle { text-align: center; color: var(--text-dim); font-size: 0.8rem; margin-bottom: 1.25rem; }

.emergency-mode { background: #1a0505 !important; }
body.nav-open { overflow: hidden; }

/* ─── GW ticker (global — homepage + /app) ─── */
.gw-ticker {
    position: sticky;
    top: 0;
    z-index: 250;
    width: 100%;
    min-height: 44px;
    /* Fond opaque (fallback Safari mobile sticky) + dégradé */
    background-color: #1e1b4b;
    background-image: linear-gradient(90deg, #0c4a6e 0%, #5b21b6 50%, #0c4a6e 100%);
    border-bottom: 2px solid rgba(103, 249, 255, 0.45);
    box-shadow: 0 4px 24px rgba(34, 211, 238, 0.2);
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    isolation: isolate;
}

.gw-ticker-viewport {
    overflow: hidden;
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    position: relative;
}

.gw-ticker-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    animation: gw-ticker-scroll 32s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.gw-ticker-run {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.5rem;
    padding: 0 3rem;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: 0.01em;
}

.gw-ticker-item strong {
    color: #67f9ff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
}

.gw-ticker-sep {
    color: rgba(103, 249, 255, 0.65);
    font-weight: 700;
    flex-shrink: 0;
}

.gw-ticker-deadline [data-countdown] {
    color: #fde047;
    font-weight: 800;
}

@keyframes gw-ticker-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ─── Responsive breakpoints ─── */
@media (max-width: 900px) {
    .panel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1100;
    }

    .landing-nav > .logo-link {
        position: relative;
        z-index: 1100;
    }

    .nav-actions {
        display: none;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        max-width: none;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 1rem;
        /* Fond 100 % opaque — masque tout le hero */
        background: #000000;
        border-bottom: none;
        padding: calc(44px + var(--nav-h) + 0.5rem) 1.25rem calc(2rem + var(--safe-bottom));
        box-shadow: none;
        z-index: 1050;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-actions.is-open { display: flex; }
    .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--border);
        margin-bottom: 0.25rem;
    }
    .nav-links .nav-link {
        padding: 0.9rem 0.5rem;
        font-size: 1.05rem;
        color: var(--text);
    }
    .nav-user { flex-direction: column; align-items: stretch; }
    .nav-user .btn,
    .nav-actions > .btn {
        width: 100%;
        justify-content: center;
    }
    .nav-actions .lang-switch {
        justify-content: flex-start;
        margin: 0.25rem 0;
    }

    body.nav-open .home-bg,
    body.nav-open .hero,
    body.nav-open .features,
    body.nav-open .giveaway-strip,
    body.nav-open .site-footer {
        visibility: hidden;
    }

    .gw-ticker-run {
        font-size: 0.82rem;
        gap: 1.1rem;
        padding: 0 2rem;
    }
    .gw-ticker-track {
        animation-duration: 24s;
    }

    .admin-body { flex-direction: column; }
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .admin-sidebar .sidebar-toggle { display: flex; margin-left: auto; margin-right: 1rem; }
    .admin-sidebar .admin-brand { flex: 1; }
.admin-sidebar > .sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 0.75rem;
    border-bottom: 1px solid var(--border);
}
    .admin-nav {
        display: none;
        flex-direction: column;
        border-top: 1px solid var(--border);
        padding-bottom: 0.5rem;
    }
    .admin-nav.is-open { display: flex; }
    .admin-nav a { border-left: none; border-bottom: 1px solid var(--border); }

    .admin-header { flex-direction: column; }
    .status-pills { width: 100%; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }

    .profile-card { flex-direction: column; text-align: center; }
    .profile-card > div { width: 100%; }

    table { min-width: 640px; }
    .mod-actions { grid-template-columns: 1fr; }
    .mod-actions .btn-ban { grid-column: span 1; }
}

@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .hero-actions .btn-discord { font-size: 0.85rem; padding-inline: 1rem; }
    .footer-links { flex-direction: column; gap: 0.75rem; }
}

@media (min-width: 769px) {
    .admin-nav { display: flex !important; }
    .nav-actions { display: flex !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    /* Conserver le défilement du bandeau (sinon texte coupé / fond « vide ») */
    .gw-ticker-track {
        animation: gw-ticker-scroll 48s linear infinite !important;
    }
}
