/* =============================================
   LANDES ARENA GAMING — STYLESHEET v3
   Palette : #070202 · #c10000 · #bf7274 · #bda2a3
   ============================================= */

:root {
    /* Backgrounds */
    --bg:        #070202;
    --bg2:       #0d0505;
    --surface:   #110707;
    --surface2:  #1a0c0c;
    --surface3:  #221010;

    /* Palette LAG */
    --red:       #c10000;
    --red2:      #e02020;
    --bordeaux:  #7a0e1e;
    --red-soft:  #bf7274;
    --cream:     #bda2a3;
    --white:     #ffffff;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #7a0e1e, #c10000);
    --grad-text:    linear-gradient(135deg, #c10000, #bf7274);
    --grad-hero:    linear-gradient(135deg, #7a0e1e 0%, #c10000 60%, #bf7274 100%);

    /* Text */
    --text:      #e8d8d8;
    --text-dim:  #9a7a7a;
    --text-muted:#6a4a4a;

    /* Borders */
    --border:    rgba(193,0,0,0.15);
    --border2:   rgba(193,0,0,0.35);

    /* Glows */
    --glow:      rgba(193,0,0,0.3);
    --glow2:     rgba(122,14,30,0.4);

    --radius:    12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; color: var(--white); }
h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }
p  { font-weight: 400; color: var(--text-dim); }
a  { color: var(--red-soft); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--white); }

.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* PILL BADGE */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid var(--border2);
    background: rgba(193,0,0,0.1);
    color: var(--red-soft);
}

/* NOISE OVERLAY */
.noise-overlay {
    position: fixed; inset: 0; pointer-events: none; z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
}
.scanlines { display: none; }

/* HEADER */
.site-header {
    position: sticky; top: 0; z-index: 500;
    background: rgba(7,2,2,0.88);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 0 2rem;
    height: 68px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex; align-items: center; gap: 0.75rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
}
.logo-img { height: 38px; width: auto; }
.logo-full {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    display: none;
}
@media (min-width: 900px) { .logo-full { display: block; } }

.main-nav { display: flex; align-items: center; gap: 0.15rem; }
.main-nav a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dim);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    border: 1px solid transparent;
}
.main-nav a:hover {
    color: var(--white);
    background: rgba(193,0,0,0.08);
}
.main-nav a.active {
    color: var(--white);
    background: rgba(193,0,0,0.15);
    border-color: var(--border2);
}
.nav-external {
    color: var(--red-soft) !important;
    border-color: var(--border2) !important;
    background: rgba(193,0,0,0.08) !important;
}
.nav-external:hover { background: rgba(193,0,0,0.18) !important; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--white); border-radius: 2px; transition: all 0.3s;
}
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; top: 68px; left: 0; right: 0;
        background: var(--surface);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 0.75rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-110%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s;
        z-index: 400;
    }
    .main-nav.open { transform: translateY(0); visibility: visible; }
    .main-nav a { padding: 0.85rem 1rem; border-radius: var(--radius-sm); }
    .nav-external {
        border-color: transparent !important;
        background: transparent !important;
        border-top: 1px solid var(--border) !important;
        border-radius: 0 !important;
        margin-top: 0.25rem;
        padding-top: 1rem !important;
    }
}

/* MAIN */
.site-main { min-height: 80vh; }

/* HERO */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 5rem 2rem 4rem;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(122,14,30,0.35) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(193,0,0,0.1) 0%, transparent 50%),
        var(--bg);
}
/* Grille subtile */
.hero::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(193,0,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(193,0,0,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 820px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.hero-eyebrow { opacity: 0; animation: fadeUp 0.6s ease 0.1s forwards; }
.hero h1 { opacity: 0; animation: fadeUp 0.7s ease 0.3s forwards; letter-spacing: -0.02em; }
.hero-sub {
    font-size: 1.15rem; font-weight: 400; color: var(--text-dim);
    max-width: 560px;
    opacity: 0; animation: fadeUp 0.7s ease 0.5s forwards;
}
.hero-cta {
    display: flex; gap: 0.85rem; flex-wrap: wrap; justify-content: center;
    opacity: 0; animation: fadeUp 0.7s ease 0.65s forwards;
}
.hero-stats {
    display: flex; gap: 3.5rem; flex-wrap: wrap; justify-content: center;
    margin-top: 1.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    opacity: 0; animation: fadeUp 0.7s ease 0.85s forwards;
    width: 100%;
}
.hero-stat-num {
    font-size: 2.8rem; font-weight: 900;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.78rem; font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem;
}

/* SCROLL INDICATOR */
.scroll-hint {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    color: var(--text-muted); font-size: 0.75rem;
    animation: bounce 2s ease infinite; z-index: 2;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font); font-weight: 600; font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer; transition: all 0.2s;
    text-decoration: none; white-space: nowrap;
}
.btn-primary {
    background: var(--grad-primary);
    color: var(--white);
    box-shadow: 0 4px 20px var(--glow);
}
.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 6px 28px var(--glow);
    transform: translateY(-1px);
    color: var(--white);
}
.btn-outline {
    background: rgba(193,0,0,0.06);
    border-color: var(--border);
    color: var(--text);
}
.btn-outline:hover {
    background: rgba(193,0,0,0.12);
    border-color: var(--border2);
    color: var(--white);
}
.btn-ghost {
    background: transparent;
    border-color: var(--border2);
    color: var(--red-soft);
}
.btn-ghost:hover { background: rgba(193,0,0,0.1); color: var(--red-soft); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; border-radius: 6px; }
.btn-delete { color: var(--red-soft) !important; border-color: var(--border2) !important; }
.btn-delete:hover { background: rgba(193,0,0,0.12) !important; }

/* SECTIONS */
.section { padding: 6rem 2rem; max-width: 1280px; margin: 0 auto; }
.section-header { margin-bottom: 3rem; }
.section-label {
    display: inline-block;
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--red-soft); margin-bottom: 0.75rem;
}
.section-sep { border: none; border-top: 1px solid var(--border); margin: 0; }

/* CARDS */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    position: relative;
    transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity 0.3s;
}
.card:hover {
    border-color: var(--border2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(193,0,0,0.12);
}
.card:hover::before { opacity: 1; }

/* ICON BOX */
.icon-box {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
    flex-shrink: 0;
}
.icon-box-red      { background: linear-gradient(135deg, #7a0e1e, #c10000); }
.icon-box-bordeaux { background: linear-gradient(135deg, #4a0610, #7a0e1e); }
.icon-box-soft     { background: linear-gradient(135deg, #8a3040, #bf7274); }
.icon-box-cream    { background: linear-gradient(135deg, #7a5050, #bda2a3); }
.icon-box-dark     { background: linear-gradient(135deg, #2a0808, #4a1010); border: 1px solid var(--border2); }
/* Alias pour la compatibilité */
.icon-box-purple  { background: linear-gradient(135deg, #7a0e1e, #c10000); }
.icon-box-teal    { background: linear-gradient(135deg, #4a0610, #7a0e1e); }
.icon-box-orange  { background: linear-gradient(135deg, #8a3040, #bf7274); }
.icon-box-pink    { background: linear-gradient(135deg, #7a5050, #bda2a3); }
.icon-box-green   { background: linear-gradient(135deg, #2a0808, #4a1010); border: 1px solid var(--border2); }

/* JEU TAG */
.jeu-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(193,0,0,0.08);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem; font-weight: 600;
    color: var(--text-dim); white-space: nowrap;
}

/* MEMBRE CARDS */
.membre-card { text-align: center; }
.membre-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--surface2);
    border: 2px solid var(--border2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 800; color: var(--red-soft);
    overflow: hidden;
}
.membre-avatar img { width: 100%; height: 100%; object-fit: cover; }
.membre-role {
    font-size: 0.72rem; font-weight: 700;
    color: var(--red-soft);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem;
}
.membre-name { font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 0.6rem; }
.membre-bio { font-size: 0.88rem; color: var(--text-muted); }

/* TOURNOI */
.tournoi-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--red-soft);
    background: rgba(193,0,0,0.1);
    border: 1px solid var(--border2);
    padding: 0.2rem 0.6rem; border-radius: 100px; margin-bottom: 0.85rem;
}
.tournoi-badge::before { content: '●'; font-size: 0.5rem; animation: pulse 2s infinite; }
.tournoi-name { font-size: 1.25rem; font-weight: 700; color: var(--white); line-height: 1.25; margin-bottom: 0.4rem; }
.tournoi-date-big {
    font-size: 2.2rem; font-weight: 900;
    background: var(--grad-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1;
}
.tournoi-month { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.tournoi-meta { display: flex; flex-direction: column; gap: 0.3rem; margin: 1rem 0; }
.tournoi-meta-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-dim); }

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem; margin-bottom: 2.5rem;
}
.stat-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem; text-align: center;
    position: relative; overflow: hidden;
}
.stat-block::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px; background: var(--grad-primary);
}
.stat-number {
    font-size: 3rem; font-weight: 900;
    background: var(--grad-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1;
}
.stat-label {
    font-size: 0.72rem; font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.4rem;
}

/* CHART */
.chart-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem; margin-bottom: 1.25rem;
}
.chart-title {
    font-size: 0.78rem; font-weight: 700;
    color: var(--red-soft);
    text-transform: uppercase; letter-spacing: 0.12em;
    margin-bottom: 1.5rem; padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.chart-container { position: relative; height: 280px; }

/* TABLE */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 0.65rem 1rem; text-align: left;
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(193,0,0,0.06);
    font-size: 0.9rem; color: var(--text);
}
.data-table tr:hover td { background: rgba(193,0,0,0.05); }

/* SYNC */
.sync-status {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; font-weight: 500;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    background: var(--surface);
}
.sync-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.sync-dot.ok { background: #4caf50; animation: pulse 2s infinite; }

/* MONO */
.mono { font-family: 'Courier New', monospace; font-size: 0.82em; color: var(--text-dim); }

/* ACTIVITE */
.activite-card { display: flex; align-items: flex-start; gap: 1rem; }
.activite-title { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }

/* EMPTY STATE */
.empty-state {
    text-align: center; padding: 4rem 2rem; color: var(--text-dim);
    border: 1px dashed var(--border2);
    border-radius: var(--radius);
    background: rgba(193,0,0,0.03);
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* FORM */
.form-group { margin-bottom: 1.1rem; }
.form-label {
    display: block; font-size: 0.75rem; font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.35rem;
}
.form-control {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--white); font-family: var(--font);
    font-size: 0.92rem; padding: 0.6rem 0.9rem;
    outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(193,0,0,0.15);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }

/* ALERTS */
.alert {
    padding: 0.8rem 1.1rem; border-radius: var(--radius-sm);
    border-left: 3px solid; margin-bottom: 1.25rem;
    font-size: 0.88rem; font-weight: 500;
}
.alert-success { background: rgba(76,175,80,0.1); border-color: #4caf50; color: #81c784; }
.alert-error   { background: rgba(193,0,0,0.1); border-color: var(--red); color: var(--red-soft); }

/* TABLE ACTIONS */
.table-actions { display: flex; gap: 0.4rem; }

/* BAR CHART */
.bar-chart { display: flex; align-items: flex-end; gap: 0.5rem; height: 200px; }
.bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; height: 100%; }
.bar {
    width: 100%; background: var(--grad-primary);
    border-radius: 4px 4px 0 0;
    transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 4px; opacity: 0.85;
}
.bar:hover { opacity: 1; }
.bar-val { font-size: 0.85rem; font-weight: 700; color: var(--white); }
.bar-lbl { font-size: 0.6rem; font-weight: 600; color: var(--text-muted); text-align: center; text-transform: uppercase; letter-spacing: 0.05em; }

/* PIE LEGEND */
.pie-legend { display: flex; flex-direction: column; gap: 0.5rem; }
.pie-legend-item { display: flex; align-items: center; gap: 0.75rem; }
.pie-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pie-legend-label { font-size: 0.88rem; color: var(--text); }
.pie-legend-val { margin-left: auto; font-size: 0.82rem; color: var(--text-dim); font-weight: 600; }

/* TOURNOI HISTORY */
.tournoi-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}
.tournoi-history-card {
    display: flex; align-items: center; gap: 1rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 0;
}
.tournoi-history-card:hover {
    border-color: var(--border2);
    box-shadow: 0 4px 20px rgba(193,0,0,0.1);
}
.th-logo {
    flex-shrink: 0; width: 56px; height: 56px;
    border-radius: 10px; overflow: hidden;
    background: var(--surface2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
}
.th-logo img { width: 100%; height: 100%; object-fit: cover; }
.th-logo span { font-size: 1.2rem; font-weight: 800; color: var(--red-soft); }
.th-body { flex: 1; min-width: 0; }
.th-name { font-size: 1rem; font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-name a { color: var(--white); }
.th-name a:hover { color: var(--red-soft); }
.th-jeux { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 0.4rem; }
.th-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.76rem; color: var(--text-muted); }
.th-format { border-radius: 4px; padding: 0.1rem 0.4rem; font-size: 0.68rem; font-weight: 600; }
.th-format.online  { color: #4ade80; border: 1px solid rgba(74,222,128,0.25); background: rgba(74,222,128,0.08); }
.th-format.offline { color: var(--red-soft); border: 1px solid var(--border2); background: rgba(193,0,0,0.08); }

/* ADMIN */
.admin-body { background: var(--bg); }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 250px; flex-shrink: 0;
    background: var(--surface); border-right: 1px solid var(--border);
    padding: 1.5rem 0;
}
.admin-logo {
    font-size: 1.1rem; font-weight: 800; color: var(--white);
    padding: 0 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.admin-logo span { color: var(--red-soft); }
.admin-nav a {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.65rem 1.25rem;
    color: var(--text-dim); font-size: 0.88rem; font-weight: 600;
    border-left: 3px solid transparent; transition: all 0.2s;
}
.admin-nav a:hover, .admin-nav a.active {
    color: var(--white);
    background: rgba(193,0,0,0.08);
    border-left-color: var(--red);
}
.admin-content { flex: 1; padding: 2rem; overflow-y: auto; }
.admin-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 2rem; padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.admin-title { font-size: 1.6rem; font-weight: 800; color: var(--white); }

/* FOOTER */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem; margin-top: 2rem;
}
.footer-inner {
    max-width: 1280px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 2rem;
}
@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-copy { text-align: center; }
}
.footer-logo { display: flex; align-items: center; gap: 0.5rem; }
.footer-logo img { height: 32px; width: auto; }
.footer-logo-name { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }
.footer-social {
    display: flex; align-items: center; gap: 0.5rem;
    flex-wrap: wrap; justify-content: center;
}
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--text-dim);
    transition: all 0.2s;
}
.footer-social a:hover {
    border-color: var(--border2);
    background: rgba(193,0,0,0.12);
    color: var(--white);
    transform: translateY(-2px);
}
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); }
.footer-links a:hover { color: var(--red-soft); }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); text-align: right; }

/* PARTENAIRES */
.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}
.partenaire-card {
    text-align: center;
    padding: 2rem 1.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
a.partenaire-card { cursor: pointer; }
a.partenaire-card:hover { color: var(--white); }
.partenaire-logo {
    width: 80px; height: 80px;
    border-radius: 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.partenaire-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.partenaire-logo span {
    font-size: 1.4rem; font-weight: 800;
    color: var(--red-soft);
}
.partenaire-name {
    font-size: 0.95rem; font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}
.partenaire-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.partenaire-link {
    font-size: 0.75rem; font-weight: 600;
    color: var(--red-soft);
    margin-top: auto;
}

/* TOURNOI UPCOMING CARD — responsive override */
@media (max-width: 600px) {
    .tournoi-upcoming-card {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .tournoi-upcoming-card > div:first-child {
        border-right: none !important;
        padding-right: 0 !important;
        border-bottom: 1px solid var(--border);
        padding-bottom: 1rem;
        min-width: unset !important;
    }
    .tournoi-upcoming-card > div:last-child {
        text-align: left !important;
    }
}

/* SESSIONS HEBDO GRID — responsive override */
@media (max-width: 640px) {
    .sessions-grid { grid-template-columns: 1fr !important; }
}

/* ADHÉSION GRID — responsive override */
@media (max-width: 640px) {
    .adhesion-grid { grid-template-columns: 1fr !important; }
}

/* RANKING SEARCH INPUT RESPONSIVE */
@media (max-width: 480px) {
    #search-joueur { width: 100% !important; }
}

/* REVEAL */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ANIMATIONS */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 10px; }

/* =============================================
   RESPONSIVE
   ============================================= */

/* --- Tablet & small desktop (≤ 768px) --- */
@media (max-width: 768px) {
    /* Sections & layout */
    .section { padding: 3.5rem 1.25rem; }
    .site-main > section { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

    /* Hero */
    .hero { padding: 4rem 1.25rem 3rem; min-height: 80vh; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat-num { font-size: 2rem; }

    /* Typography */
    h1 { font-size: clamp(2rem, 10vw, 3.5rem); }

    /* Grids — single column */
    .partenaires-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .cards-grid { grid-template-columns: 1fr !important; }
    .tournoi-history-grid { grid-template-columns: 1fr !important; }
    .tournoi-history-card { padding: 0.85rem; gap: 0.75rem; }
    .th-logo { width: 44px; height: 44px; border-radius: 8px; }
    .th-name { font-size: 0.9rem; white-space: normal; }
    .th-jeux { gap: 2px; }
    .th-jeux .jeu-tag { font-size: 0.65rem; padding: 0.15rem 0.45rem; }
    .th-meta { font-size: 0.68rem; gap: 0.4rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }

    /* Stats page — charts grid */
    .charts-grid { grid-template-columns: 1fr !important; }

    /* Stats page — pie chart layout */
    .pie-layout { flex-direction: column !important; align-items: center !important; }
    .pie-layout canvas { width: 140px !important; height: 140px !important; }

    /* Tables */
    .data-table th, .data-table td { padding: 0.6rem 0.5rem; font-size: 0.8rem; }

    /* Charts */
    .chart-section { padding: 1.25rem; }
    .chart-container { height: 200px; }
    .bar-chart { gap: 0.25rem; height: 160px !important; }
    .bar-val { font-size: 0.72rem; }
    .bar-lbl { font-size: 0.55rem; }

    /* Footer */
    .footer-inner { grid-template-columns: 1fr !important; text-align: center; gap: 1.5rem; }
    .footer-logo { justify-content: center; }
    .footer-social { justify-content: center; }
    .footer-links { justify-content: center; }
    .footer-copy { text-align: center !important; }

    /* Admin */
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .admin-content { padding: 1.25rem; }
    .admin-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .admin-grid { grid-template-columns: 1fr !important; }

    /* Ranking — filters */
    .ranking-filters { flex-direction: column !important; align-items: stretch !important; }
    .ranking-filters select { width: 100% !important; min-width: unset !important; }
    .ranking-filters .search-wrap { width: 100% !important; }
    #search-joueur { width: 100% !important; }

    /* Ranking — profil */
    .profil-header { flex-direction: column !important; align-items: flex-start !important; }

    /* Bureau — membre cards */
    .membre-card { padding: 2rem 1.5rem !important; }
    .membre-avatar { width: 90px !important; height: 90px !important; font-size: 2rem !important; }
    .membre-name { font-size: 1.5rem !important; }

    /* Empty state */
    .empty-state { padding: 2.5rem 1.25rem; }
}

/* --- Mobile (≤ 480px) --- */
@media (max-width: 480px) {
    /* Sections */
    .section { padding: 2.5rem 1rem; }
    .site-main > section { padding-left: 1rem !important; padding-right: 1rem !important; }

    /* Hero */
    .hero { padding: 3rem 1rem 2rem; min-height: 70vh; }
    .hero-sub { font-size: 0.95rem; }
    .hero-stats { gap: 1.25rem; padding-top: 1.5rem; }
    .hero-stat-num { font-size: 1.6rem; }
    .hero-stat-label { font-size: 0.68rem; }

    /* Typography */
    h2 { font-size: clamp(1.4rem, 6vw, 2rem); }

    /* Buttons */
    .btn { padding: 0.6rem 1.1rem; font-size: 0.82rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; justify-content: center; }

    /* Stats blocks */
    .stats-grid { grid-template-columns: 1fr !important; }
    .stat-block { padding: 1rem; }
    .stat-number { font-size: 2rem; }

    /* Cards */
    .card { padding: 1.25rem; }
    .membre-card { padding: 1.5rem 1rem !important; }
    .membre-avatar { width: 70px !important; height: 70px !important; font-size: 1.6rem !important; }
    .membre-name { font-size: 1.25rem !important; }

    /* Footer */
    .site-footer { padding: 2rem 1rem; }

    /* Tournoi */
    .tournoi-date-big { font-size: 1.8rem; }
    .tournoi-name { font-size: 1.05rem; }
}
