/* ============================================================
   Nov'Angel Race — Feuille de style principale
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
    --red:       #e20a0a;
    --red-dark:  #a00808;
    --blue:      #1546d1;
    --blue-light:#4470f5;
    --gold:      #ffd700;
    --white:     #ffffff;
    --silver:    #c9ced7;

    /* Navy sombre — inspiré novangelrace.fr */
    --bg:        #0c1628;
    --bg2:       #0f1e3a;
    --bg3:       #122248;
    --bg4:       #172a5c;
    --border:    rgba(21,70,209,.30);
    --border2:   rgba(21,70,209,.65);

    --text:      #ffffff;
    --text2:     #7a90c0;
    --text3:     #3a4e80;

    --green:     #00cc66;
    --orange:    #ff6600;

    --nav-h: 72px;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 8px 32px rgba(0,0,0,.7);
    --transition: .25s ease;
}

/* ── RESET / BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 120% 40% at 50% 0%, rgba(21,70,209,.25) 0%, transparent 60%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
img.emoji { height: 1em; width: 1em; margin: 0 .05em 0 .1em; vertical-align: -0.1em; display: inline-block; }

/* ── FLAG IMAGE (via flagcdn.com) ────────────────────────────── */
.flag-img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    vertical-align: middle;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0,0,0,.5);
    display: inline-block;
    flex-shrink: 0;
}
/* ── Boutons du sélecteur de drapeau ─────────────────────────── */
.flag-pick-btn {
    padding: 3px 5px !important;
    background: var(--bg2) !important;
    border: 1px solid var(--border) !important;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
    transition: border-color .15s, background .15s;
}
.flag-pick-btn:hover {
    border-color: var(--red) !important;
    background: rgba(230,0,35,.08) !important;
}
/* ── FLAG BADGE fallback (si image indisponible) ─────────────── */
.flag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.30);
    border-radius: 3px;
    padding: 1px 5px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    font-family: 'Inter', sans-serif;
    color: #fff;
    line-height: 1.4;
    vertical-align: middle;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ── TYPOGRAPHY HELPERS ────────────────────────────────────── */
.font-race {
    font-family: 'Orbitron', 'Rajdhani', 'Arial Black', sans-serif;
    letter-spacing: .04em;
}

/* ── HEADER ────────────────────────────────────────────────── */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(12,22,40,.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(21,70,209,.4);
    z-index: 1000;
    transition: var(--transition);
}
#header.scrolled {
    border-bottom-color: var(--red);
    box-shadow: 0 2px 0 var(--red), 0 4px 30px rgba(226,10,10,.25);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    cursor: pointer;
}
.logo-img { height: 42px; width: auto; filter: brightness(1.1); }
.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.logo-text span { color: var(--red); display: block; font-size: .6rem; letter-spacing: .2em; }

/* Nav links */
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }

.nav-link {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text2);
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%; right: 50%;
    height: 2px;
    background: var(--red);
    border-radius: 1px;
    transition: var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.05); }
.nav-link:hover::after,
.nav-link.active::after { left: 14%; right: 14%; }
.nav-link.active { color: var(--white); }

.nav-link.btn-accent {
    background: var(--red);
    color: var(--white);
    margin-left: 8px;
}
.nav-link.btn-accent::after { display: none; }
.nav-link.btn-accent:hover { background: var(--red-dark); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: var(--transition);
}

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: rgba(12,22,40,.97);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    backdrop-filter: blur(20px);
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { font-size: 1.2rem; padding: 12px 32px; width: 100%; text-align: center; max-width: 300px; }

/* ── MAIN CONTENT ──────────────────────────────────────────── */
#main { padding-top: var(--nav-h); min-height: 100vh; }

/* ── PAGE SECTIONS ─────────────────────────────────────────── */
.page { display: none; animation: fadeUp .35s ease; }
.page.active { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-h) - 96px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0c1628;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../Figma/wireframe_assets/ref_banner_wide.jpg');
    background-size: cover;
    background-position: center 40%;
    opacity: .70;
    filter: saturate(1.1) brightness(0.95);
    pointer-events: none;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(12,22,40,.05) 0%, rgba(12,22,40,.82) 90%),
        linear-gradient(100deg, rgba(226,10,10,.12) 0%, transparent 40%);
}
/* Checkered strip decoration */
.hero-check {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        #fff 0px, #fff 20px,
        #111 20px, #111 40px
    );
    opacity: .15;
}
.hero-check-top {
    bottom: auto; top: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px 46px;
    max-width: 800px;
}
.hero-logo { width: min(320px, 80vw); margin-bottom: 32px; filter: drop-shadow(0 0 40px rgba(226,10,10,.4)); }
.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}
.hero-title .accent { color: var(--red); text-shadow: 0 0 30px rgba(226,10,10,.7), 0 0 60px rgba(226,10,10,.3); }
.hero-sub {
    font-size: 1rem;
    color: var(--text2);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto; margin-right: auto;
    line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── STATS BAR ─────────────────────────────────────────────── */
.stats-bar {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 32px 24px;
}
.stats-inner {
    max-width: 750px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.stat-item { text-align: center; }
.stat-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--blue-light);
    display: block;
    line-height: 1;
    text-shadow: 0 0 20px rgba(21,70,209,.6);
}
.stat-label { font-size: .78rem; color: var(--text2); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }

/* ── BANDS ACCUEIL (sections alternées) ─────────────────────── */
.home-band {
    position: relative;
}
.home-band-alt {
    background: rgba(21,70,209,.06);
}
.home-band::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(21,70,209,.5), transparent);
}
.home-band-alt::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(21,70,209,.5), transparent);
}

/* ── SECTION LAYOUT ────────────────────────────────────────── */
.section-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px;
}
.section-wrap.narrow { max-width: 900px; }

.section-header { margin-bottom: 40px; }
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: 16px;
}
.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 100%;
    min-height: 28px;
    background: var(--blue);
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(21,70,209,.8);
}
.section-sub { color: var(--text2); margin-top: 8px; font-size: .9rem; padding-left: 21px; }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .04em;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-red {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 16px rgba(226,10,10,.4);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.btn-red:hover {
    background: #ff1a1a;
    box-shadow: 0 6px 28px rgba(226,10,10,.65), 0 0 40px rgba(226,10,10,.25);
    transform: translateY(-2px);
}
.btn-outline {
    border: 1.5px solid rgba(21,70,209,.6);
    color: var(--silver);
    background: rgba(21,70,209,.08);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.btn-outline:hover { border-color: var(--blue-light); color: #fff; background: rgba(21,70,209,.20); box-shadow: 0 0 20px rgba(21,70,209,.35); transform: translateY(-2px); }

.btn-blue {
    background: var(--blue);
    color: #fff;
}
.btn-blue:hover { background: var(--blue-light); transform: translateY(-1px); box-shadow: 0 0 20px rgba(0,119,255,.4); }

.btn-green {
    background: var(--green);
    color: #000;
    font-weight: 700;
}
.btn-green:hover { filter: brightness(1.15); transform: translateY(-1px); }

.btn-sm { padding: 7px 16px; font-size: .78rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }

.btn-icon { font-size: 1.1em; }

/* ── CARD SHINE EFFECT (petite touche) ──────────────────────── */
@keyframes cardShine {
    from { transform: translateX(-120%) skewX(-20deg); }
    to   { transform: translateX(220%) skewX(-20deg); }
}
.champ-card::after,
.news-card::after,
.race-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 45%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
    transform: translateX(-120%) skewX(-20deg);
    pointer-events: none;
    z-index: 2;
    transition: none;
}
.champ-card:hover::after,
.news-card:hover::after,
.race-card:hover::after {
    animation: cardShine .6s ease forwards;
}

/* ── CHAMPIONSHIP CARDS ────────────────────────────────────── */
.champ-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.champ-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-bottom: 2px solid rgba(21,70,209,.35);
    box-shadow: 0 4px 20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}
.champ-card:hover {
    border-color: var(--border2);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(21,70,209,.5), 0 0 30px rgba(21,70,209,.20);
}
/* Image header remplace la barre colorée */
.champ-card-img {
    height: 52px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 20px;
}
.champ-card-img-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255,255,255,.10) 0%, transparent 70%),
        linear-gradient(to bottom, transparent 30%, rgba(12,22,40,.30) 100%);
    pointer-events: none;
}
.champ-card-img-foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.champ-card-body { padding: 14px 16px 16px; }
.champ-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}
.champ-card-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
}
.champ-card-short {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    padding: 4px 10px;
    border-radius: 4px;
    flex-shrink: 0;
    color: #fff;
}

.champ-info-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.champ-badge {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--bg4);
    color: var(--text2);
    border: 1px solid var(--border);
}

.champ-progress { margin: 18px 0; }
.champ-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: var(--text2);
    margin-bottom: 6px;
}
.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .6s ease;
}

.champ-stats-row {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.champ-stat { text-align: center; flex: 1; }
.champ-stat-n { font-family:'Orbitron',sans-serif; font-size:1.4rem; font-weight:700; color:var(--white); display:block; }
.champ-stat-l { font-size:.68rem; color:var(--text2); text-transform:uppercase; letter-spacing:.1em; }

.champ-cta {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.status-active   { background: rgba(0,204,102,.15); color: var(--green); border: 1px solid rgba(0,204,102,.3); }
.status-active::before { background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 1.5s infinite; }
.status-upcoming { background: rgba(255,215,0,.1);  color: var(--gold);  border: 1px solid rgba(255,215,0,.3); }
.status-upcoming::before { background: var(--gold); }
.status-finished { background: rgba(100,100,150,.15); color: var(--text2); border: 1px solid var(--border); }
.status-finished::before { background: var(--text3); }

@keyframes pulse {
    0%,100% { opacity: 1; box-shadow: 0 0 6px currentColor; }
    50%      { opacity: .5; box-shadow: 0 0 2px currentColor; }
}

/* ── CHAMPIONSHIP DETAIL ───────────────────────────────────── */
.champ-detail { display: none; }
.champ-detail.active { display: block; animation: fadeUp .3s ease; }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text2);
    font-size: .85rem;
    font-weight: 600;
    padding: 8px 0;
    transition: var(--transition);
    margin-bottom: 28px;
}
.back-btn:hover { color: var(--white); }

.detail-hero {
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}
.detail-hero-bg {
    position: absolute;
    inset: 0;
    opacity: .08;
    background: linear-gradient(135deg, var(--detail-color, var(--red)) 0%, transparent 60%);
}
.detail-hero-inner { position: relative; z-index: 1; }
.detail-hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}
.detail-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }

/* Server buttons */
.server-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.btn-server {
    background: linear-gradient(135deg, #e20a0a, #a8001a);
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .05em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(226,10,10,.3);
}
.btn-server:hover { transform: translateY(-2px); box-shadow: 0 4px 24px rgba(226,10,10,.5); }

.btn-livetiming {
    background: linear-gradient(135deg, #0055cc, #003fa0);
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .05em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(0,85,204,.3);
}
.btn-livetiming:hover { transform: translateY(-2px); box-shadow: 0 4px 24px rgba(0,85,204,.5); }
.live-dot { width: 8px; height: 8px; background: #f00; border-radius: 50%; animation: pulse 1s infinite; }

/* ── TABS ──────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}
.tab-btn {
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text2);
    padding: 12px 24px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}
.tab-btn:hover { color: var(--white); }
.tab-btn.active { color: var(--white); border-bottom-color: var(--red); }

.tab-content { display: none; animation: fadeUp .25s ease; }
.tab-content.active { display: block; }

/* ── TABLES ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead tr { background: var(--bg2); }
th {
    padding: 13px 16px;
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg4); }

.td-pos {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    width: 50px;
    text-align: center;
}
.pos-1 { color: var(--gold); }
.pos-2 { color: #c0c0c0; }
.pos-3 { color: #cd7f32; }

.td-num {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: .8rem;
    color: var(--text2);
    background: var(--bg4);
    border-radius: 4px;
    padding: 3px 8px;
    display: inline-block;
    min-width: 32px;
    text-align: center;
}
.td-driver { font-weight: 600; }
.td-team { color: var(--text2); font-size: .82rem; }
.td-pts {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--white);
}
.td-pts-small {
    font-size: .8rem;
    color: var(--text2);
    text-align: center;
}
.td-pts-small.has-pts { color: var(--white); }
.td-fl { color: #cc55ff; font-size: .78rem; font-weight: 600; }

/* Race status in table */
.race-status {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.rs-finished { background: rgba(100,100,150,.2); color: var(--text2); }
.rs-next     { background: rgba(0,204,102,.15);  color: var(--green); border: 1px solid rgba(0,204,102,.3); }
.rs-upcoming { background: rgba(255,215,0,.1);   color: var(--gold); }
.rs-live     { background: rgba(226,10,10,.2);    color: var(--red);  border: 1px solid rgba(226,10,10,.4); }

/* Calendar action buttons */
.cal-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── CALENDAR PAGE ─────────────────────────────────────────── */
.cal-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; align-items: center; }
.filter-label { font-size: .8rem; color: var(--text2); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.filter-btn {
    padding: 7px 18px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    border: 1.5px solid var(--border2);
    color: var(--text2);
    transition: var(--transition);
    background: transparent;
    letter-spacing: .04em;
}
.filter-btn:hover { border-color: var(--text); color: var(--text); }
.filter-btn.active { border-color: var(--red); color: var(--white); background: rgba(226,10,10,.15); }

/* ── RESULTS PAGE ──────────────────────────────────────────── */
.selectors { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.selector-wrap label { display: block; font-size: .75rem; color: var(--text2); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.select-custom {
    appearance: none;
    background: var(--bg3);
    border: 1.5px solid var(--border2);
    color: var(--text);
    padding: 10px 36px 10px 14px;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    cursor: pointer;
    transition: var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239999bb' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 220px;
}
.select-custom:hover, .select-custom:focus { border-color: var(--red); outline: none; }

.result-header {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.result-header-title { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--white); }
.result-header-meta { font-size: .82rem; color: var(--text2); margin-top: 4px; }
.fastest-lap { font-size: .8rem; color: #cc55ff; font-weight: 600; }

/* ── REGISTRATION FORM ─────────────────────────────────────── */
.form-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid.full { grid-template-columns: 1fr; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }

.form-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text2);
}
.form-label .req { color: var(--red); margin-left: 4px; }

.form-input, .form-select, .form-textarea {
    background: var(--bg4);
    border: 1.5px solid var(--border2);
    color: var(--text);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    transition: var(--transition);
    width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(226,10,10,.15);
}
.form-select { appearance: none; cursor: pointer; }
/* ── Champ mot de passe avec bouton œil ──────────────────────── */
.pw-wrap { position: relative; }
.pw-wrap .form-input { padding-right: 42px; }
.pw-toggle {
    position: absolute;
    right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none;
    color: var(--text2); cursor: pointer;
    padding: 4px; line-height: 1; font-size: 15px;
    transition: color .15s;
}
.pw-toggle:hover { color: var(--text); }
.form-textarea { resize: vertical; min-height: 100px; }

/* Platform radio */
.platform-group { display: flex; gap: 10px; flex-wrap: wrap; }
.platform-btn {
    flex: 1;
    min-width: 90px;
    border: 1.5px solid var(--border2);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    text-align: center;
    font-weight: 600;
    font-size: .85rem;
    color: var(--text2);
    transition: var(--transition);
    cursor: pointer;
    background: var(--bg4);
}
.platform-btn:hover { border-color: var(--text2); color: var(--text); }
.platform-btn.selected { border-color: var(--red); color: var(--red); background: rgba(226,10,10,.1); }

/* Championship checkboxes */
.champ-checks { display: flex; flex-direction: column; gap: 10px; }
.champ-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1.5px solid var(--border2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg4);
}
.champ-check:hover { border-color: var(--text2); }
.champ-check.selected { border-color: var(--blue); background: rgba(0,85,204,.1); }
.champ-check input { display: none; }
.champ-check-dot {
    width: 18px; height: 18px;
    border-radius: 4px;
    border: 2px solid var(--border2);
    flex-shrink: 0;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem;
}
.champ-check.selected .champ-check-dot { background: var(--blue); border-color: var(--blue); }
.champ-check.selected .champ-check-dot::after { content: '✓'; color: #fff; }
.champ-check-name { font-weight: 600; font-size: .875rem; }
.champ-check-sub { font-size: .75rem; color: var(--text2); }

/* Level */
.level-group { display: flex; gap: 10px; flex-wrap: wrap; }
.level-btn {
    flex: 1;
    min-width: 120px;
    border: 1.5px solid var(--border2);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg4);
}
.level-btn:hover { border-color: var(--text2); }
.level-btn.selected { border-color: var(--green); background: rgba(0,204,102,.1); }
.level-btn-icon { font-size: 1.4rem; display: block; margin-bottom: 6px; }
.level-btn-name { font-weight: 600; font-size: .85rem; display: block; }
.level-btn-sub { font-size: .72rem; color: var(--text2); display: block; margin-top: 2px; }

/* Checkbox rule */
.rule-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg4);
    border: 1.5px solid var(--border2);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.rule-check input { width: 18px; height: 18px; accent-color: var(--red); flex-shrink: 0; margin-top: 2px; cursor: pointer; }
.rule-check-text { font-size: .875rem; color: var(--text2); line-height: 1.5; }
.rule-check-text a { color: var(--red); text-decoration: underline; }

.form-divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.form-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text2);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.form-submit { margin-top: 28px; display: flex; justify-content: flex-end; }

/* Success message */
.form-success {
    display: none;
    text-align: center;
    padding: 48px 24px;
    animation: fadeUp .4s ease;
}
.form-success-icon { font-size: 4rem; display: block; margin-bottom: 16px; }
.form-success-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 12px;
}
.form-success-text { color: var(--text2); line-height: 1.6; }

/* ── DOWNLOADS ─────────────────────────────────────────────── */
.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.dl-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}
.dl-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.dl-icon {
    width: 48px; height: 48px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.dl-icon-pdf  { background: rgba(220,50,50,.15); }
.dl-icon-psd  { background: rgba(50,100,220,.15); }
.dl-icon-zip  { background: rgba(200,150,0,.15); }
.dl-icon-exe  { background: rgba(0,180,100,.15); }

.dl-info { flex: 1; min-width: 0; }
.dl-name { font-weight: 600; font-size: .9rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-meta { font-size: .75rem; color: var(--text2); display: flex; gap: 10px; flex-wrap: wrap; }
.dl-type {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 2px 7px;
    border-radius: 3px;
    background: var(--bg4);
    color: var(--text2);
}

/* ── HOME UPCOMING SECTION ─────────────────────────────────── */
.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.upcoming-card {
    background: linear-gradient(135deg, var(--bg4) 0%, var(--bg3) 100%);
    border: 1px solid var(--border2);
    border-left: 3px solid var(--blue);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    cursor: pointer;
}
.upcoming-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.upcoming-round {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text2);
    margin-bottom: 6px;
}
.upcoming-circuit {
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 4px;
}
.upcoming-info { font-size: .8rem; color: var(--text2); display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.upcoming-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text3); }
.upcoming-champ {
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    margin-top: 12px;
    display: inline-block;
    color: #fff;
}

/* ── FOOTER ────────────────────────────────────────────────── */
#footer {
    background:
        radial-gradient(ellipse 100% 80% at 50% 100%, rgba(226,10,10,.13) 0%, transparent 60%),
        radial-gradient(ellipse 120% 60% at 50% 50%,  rgba(21,70,209,.20) 0%, transparent 70%),
        var(--bg2);
    border-top: 1px solid var(--border);
    padding: 24px 24px 16px;
    margin-top: 48px;
    position: relative;
    overflow: hidden;
}
/* Ligne lumineuse rouge pulsée en bas */
#footer::after {
    content: '';
    position: absolute;
    bottom: 0; left: 8%; right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(226,10,10,.6) 20%, #e20a0a 50%, rgba(226,10,10,.6) 80%, transparent);
    box-shadow: 0 0 8px 2px rgba(226,10,10,.4);
    animation: footer-line-pulse 3s ease-in-out infinite;
    z-index: 0;
}
@keyframes footer-line-pulse {
    0%, 100% { opacity: .55; box-shadow: 0 0 6px 1px rgba(226,10,10,.3); }
    50%       { opacity: 1;   box-shadow: 0 0 14px 4px rgba(226,10,10,.6); }
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.footer-bottom { position: relative; z-index: 1; }
.footer-logo-img { height: 36px; margin-bottom: 12px; }
.footer-desc { font-size: .85rem; color: var(--text2); line-height: 1.6; max-width: 380px; }
.footer-title {
    font-family: 'Orbitron', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text2);
    margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link { font-size: .85rem; color: var(--text2); transition: var(--transition); cursor: pointer; }
.footer-link:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .78rem;
    color: var(--text3);
}
.footer-bottom .red { color: var(--red); }

/* Checkered accent on footer */
.footer-check {
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--red) 0px, var(--red) 16px, var(--blue) 16px, var(--blue) 32px);
    margin-bottom: 0;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .hamburger { display: flex; }
    .stats-inner { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .champ-grid { grid-template-columns: 1fr; }
    .dl-grid { grid-template-columns: 1fr; }
    .race-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .section-wrap { padding: 40px 16px; }
    .champ-grid { grid-template-columns: 1fr; }
    .dl-grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; align-items: center; }
    .stats-inner { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stat-num { font-size: 1.6rem; }
    .server-btns { flex-direction: column; }
    .server-btns .btn-server, .server-btns .btn-livetiming { justify-content: center; }
    .selectors { flex-direction: column; }
    .select-custom { min-width: 100%; }
}


/* ── COUNTDOWN ──────────────────────────────────────────────── */
.upcoming-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(21,70,209,.12);
    border: 1px solid rgba(21,70,209,.35);
    border-radius: var(--radius-sm);
}
.cd-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text2);
}
.cd-value {
    font-family: 'Orbitron', monospace;
    font-size: .85rem;
    font-weight: 700;
    color: var(--blue-light);
    letter-spacing: .05em;
}

/* ── PODIUM ANIMÉ ───────────────────────────────────────────── */
.podium-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    padding: 32px 24px 0;
    margin-bottom: 32px;
}
.podium-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    animation: podiumRise .6s ease both;
}
.podium-step.p1 { animation-delay: .1s; }
.podium-step.p2 { animation-delay: .25s; }
.podium-step.p3 { animation-delay: .4s; }
@keyframes podiumRise {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.podium-trophy { font-size: 2rem; margin-bottom: 4px; }
.podium-num  { font-family: 'Orbitron', sans-serif; font-size: .9rem; font-weight: 700; color: var(--text2); margin-bottom: 2px; }
.podium-name { font-weight: 700; font-size: .85rem; text-align: center; margin-bottom: 8px; }
.podium-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px 6px 0 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
}
.p1-block { height: 90px;  background: linear-gradient(180deg,#ffd700,#b8860b); color: #000; }
.p2-block { height: 70px;  background: linear-gradient(180deg,#c0c0c0,#808080); color: #000; }
.p3-block { height: 55px;  background: linear-gradient(180deg,#cd7f32,#8b4513); color: #fff; }

/* ── MODAL PILOTE ───────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    animation: fadeIn .2s ease;
}
.modal-overlay.open { display: flex; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.modal-box {
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 600px;
    width: calc(100% - 32px);
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity:0; } to { transform: translateY(0); opacity:1; } }

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--bg4);
    border: 1px solid var(--border2);
    color: var(--text2);
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: .85rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.modal-close:hover { background: var(--red); color: #fff; border-color: var(--red); }

.driver-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.driver-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
}
.driver-modal-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}
.driver-modal-team { font-size: .82rem; color: var(--text2); margin-top: 4px; }
.driver-modal-pos {
    margin-left: auto;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text2);
}

.driver-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.driver-stat-box {
    background: var(--bg4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    text-align: center;
}
.dsb-val {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}
.dsb-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text2); }

.driver-modal-section {
    font-family: 'Orbitron', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text2);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* ── GRAPHIQUE ÉVOLUTION ────────────────────────────────────── */
.graph-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.graph-title {
    font-family: 'Orbitron', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text2);
    margin-bottom: 20px;
}
#evo-canvas { display: block; max-width: 100%; }
.graph-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}
.graph-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--text2);
}
.graph-legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── SÉLECTEUR DE PILOTES (graphique évolution) ─────────────── */
.evo-driver-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    align-items: center;
}
.evo-all-btn {
    padding: 4px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--border2);
    background: transparent;
    color: var(--text2);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    transition: var(--transition);
}
.evo-all-btn:hover { border-color: var(--text); color: var(--text); }
.evo-driver-chip {
    padding: 4px 11px;
    border-radius: 20px;
    border: 1.5px solid var(--border2);
    background: transparent;
    color: rgba(255,255,255,.55);
    font-size: .75rem;
    cursor: pointer;
    transition: var(--transition);
}
.evo-driver-chip.active {
    border-color: var(--chip-color, var(--red));
    color: #fff;
}
.evo-driver-chip:hover { color: rgba(255,255,255,.85); }
.evo-driver-chip:hover { opacity: 1; }

/* ── SEARCH INPUT ───────────────────────────────────────────── */
.search-input {
    min-width: 220px;
    padding: 10px 14px;
    background: var(--bg3);
}

/* ── ACCUEIL : DERNIERS RÉSULTATS ──────────────────────────── */
.home-last-result-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition);
}
.home-last-result-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.hlr-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.hlr-fl { color: #cc55ff; font-size: .8rem; font-weight: 600; margin-left: auto; }
.hlr-podium { display: flex; gap: 16px; flex-wrap: wrap; }
.hlr-step { display: flex; flex-direction: column; gap: 4px; min-width: 160px; flex: 1; }
.hlr-pos  { font-size: 1.6rem; }
.hlr-num  { font-family: 'Orbitron', sans-serif; font-size: .8rem; color: var(--text2); }
.hlr-name { font-weight: 700; font-size: .95rem; }
.hlr-team { font-size: .78rem; color: var(--text2); }
.hlr-pts  { font-family: 'Orbitron', sans-serif; font-size: .85rem; font-weight: 700; }

/* ── ACTUALITÉS ────────────────────────────────────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.news-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-bottom: 2px solid rgba(21,70,209,.35);
    box-shadow: 0 4px 20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
    border-radius: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.news-card:hover { border-color: var(--border2); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.6), 0 0 0 1px rgba(21,70,209,.5), 0 0 24px rgba(21,70,209,.18); }
.news-icon { display: none; } /* remplacé par .news-card-img */
.news-body { flex: 1; min-width: 0; padding: 16px; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.news-cat {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
}
.news-cat-résultats { background: rgba(0,204,102,.15);  color: var(--green); }
.news-cat-annonce   { background: rgba(226,10,10,.15);   color: var(--red); }
.news-cat-info      { background: rgba(0,85,204,.15);   color: #5599ff; }
.news-date  { font-size: .75rem; color: var(--text3); margin-left: auto; }
.news-title { font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--white); }
.news-text  { font-size: .82rem; color: var(--text2); line-height: 1.5; }

/* ── AGENDA MENSUEL ────────────────────────────────────────── */
.agenda-month {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.agenda-month-title {
    font-family: 'Orbitron', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 16px;
}
.agenda-dow-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}
.agenda-dow { text-align: center; font-size: .68rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; padding: 4px 0; }
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 20px;
}
.agenda-cell {
    min-height: 52px;
    border-radius: 6px;
    padding: 6px;
    background: var(--bg4);
    border: 1px solid transparent;
    position: relative;
    transition: var(--transition);
}
.agenda-cell.empty { background: transparent; border: none; }
.agenda-cell.race-day { border-color: var(--border2); cursor: pointer; }
.agenda-cell.race-day:hover { border-color: var(--red); transform: scale(1.04); }
.agenda-cell.today { border-color: var(--red) !important; background: rgba(226,10,10,.08); }
.agenda-cell.today .agenda-day-num { color: var(--red); font-weight: 700; }
.agenda-day-num { font-size: .72rem; font-weight: 600; color: var(--text2); display: block; }
.agenda-race-dot { width: 6px; height: 6px; border-radius: 50%; display: block; margin: 3px 0; }
.agenda-race-name { font-size: .6rem; font-weight: 700; display: block; color: var(--white); }
.agenda-races-list { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 16px; }
.agenda-race-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    cursor: pointer;
    padding: 6px 0;
    transition: var(--transition);
    flex-wrap: wrap;
}
.agenda-race-row:hover { color: var(--white); }
.agenda-race-bullet { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── CIRCUIT SVG ───────────────────────────────────────────── */
.circuit-svg-wrap {
    display: inline-block;
    position: relative;
    margin-left: 8px;
    vertical-align: middle;
}
.circuit-svg-wrap:hover .circuit-svg { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.circuit-svg {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: scale(0.8) translateY(8px) translateX(-50%);
    width: 120px;
    height: 72px;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    padding: 6px;
    color: var(--red);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 100;
    box-shadow: var(--shadow);
}

/* ── BARRE DE COMPARAISON ──────────────────────────────────── */
.compare-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg2);
    border-top: 2px solid var(--red);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    z-index: 500;
    animation: slideUpBar .3s ease;
}
@keyframes slideUpBar { from { transform: translateY(100%); } to { transform: translateY(0); } }
.compare-bar-label { font-weight: 700; font-size: .85rem; color: var(--text2); text-transform: uppercase; letter-spacing: .08em; }
.compare-bar-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(226,10,10,.15);
    border: 1px solid rgba(226,10,10,.3);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: .8rem;
    font-weight: 600;
}
.compare-bar-chip button { background: none; color: var(--red); font-size: .75rem; cursor: pointer; padding: 0; }
.compare-bar-hint { font-size: .8rem; color: var(--text2); font-style: italic; }
.compare-bar-clear { margin-left: auto; }

/* ── TOOLBAR CLASSEMENTS ───────────────────────────────────── */
.stand-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.stand-compare-hint { font-size: .78rem; color: var(--text3); margin-left: 8px; }

/* ── DRIVER COMPARE MODAL ──────────────────────────────────── */
.driver-compare-side {
    flex: 1;
    min-width: 160px;
    background: var(--bg4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
}

/* ── ADMIN ─────────────────────────────────────────────────── */
.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.admin-count {
    font-family: 'Orbitron', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    color: var(--red);
}

/* ── UTILITY ───────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.w-full { width: 100%; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text3);
}
.empty-state-icon { font-size: 3rem; display: block; margin-bottom: 16px; opacity: .5; }
.empty-state-text { font-size: .9rem; }

/* Toast notification */
.toast {
    position: fixed;
    bottom: 32px; right: 32px;
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-left: 4px solid var(--green);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
    z-index: 9999;
    transform: translateX(200%);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    box-shadow: var(--shadow);
    max-width: 320px;
}
.toast.show { transform: translateX(0); }

/* ── FEATURED GRID générique (2 colonnes égales) ─────────────── */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .featured-grid { grid-template-columns: 1fr; }
}

/* ── SECTION HEADER ROW (avec lien "Voir tout") ─────────────── */
.section-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 8px;
}
.section-header-row .section-header { margin-bottom: 0; }
.see-all-link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--red);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
    letter-spacing: .03em;
}
.see-all-link:hover { color: var(--white); }

/* ── NEWS CARD LARGE (1ère actualité — featured) ─────────────── */
.news-card-large {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.news-card-img {
    height: 70px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    flex-shrink: 0;
}
.news-card-img-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255,255,255,.08) 0%, transparent 70%),
        linear-gradient(to bottom, transparent 30%, rgba(12,22,40,.28) 100%);
    pointer-events: none;
}
.news-card-img-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}
.news-card-img-icon { font-size: 2rem; line-height: 1; }
.news-card-large .news-body { padding: 20px; }
.news-card-action {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}
.news-card-action-btn {
    box-shadow: 0 2px 8px rgba(0,0,0,.5);
}

/* ── PROCHAINE COURSE (carte featured) ──────────────────────── */
.next-race-featured {
    background: linear-gradient(180deg, var(--bg4) 0%, var(--bg3) 100%);
    border: 1px solid var(--border2);
    border-top: 3px solid var(--blue);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 6px 28px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
    cursor: pointer;
}
.next-race-featured:hover {
    border-color: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(226,10,10,.35);
}
.next-race-img {
    height: 65px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}
.next-race-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, rgba(12,22,40,.18) 100%);
    pointer-events: none;
}
.next-race-flag {
    position: absolute;
    top: 12px; right: 16px;
    opacity: .90;
    line-height: 1;
}
.next-race-flag { z-index: 2; }
.next-race-flag .flag-badge {
    font-size: .85rem;
    padding: 3px 9px;
    background: rgba(255,255,255,.20);
    border-radius: 5px;
    letter-spacing: .10em;
}
.race-card-flag { z-index: 2; }
.race-card-flag .flag-badge {
    font-size: .75rem;
    padding: 2px 7px;
    background: rgba(255,255,255,.20);
    border-radius: 4px;
    letter-spacing: .09em;
}
.next-race-img-content { position: relative; z-index: 1; }
.next-race-body { padding: 20px 24px 24px; }
.next-race-champ-badge {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}
.next-race-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.3;
}
.next-race-meta {
    font-size: .85rem;
    color: var(--text2);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.next-race-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.next-race-others { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 500px) { .next-race-others { grid-template-columns: 1fr; } }

/* ── CHAMPIONNATS LIST — FILTRE STATUT ──────────────────────── */
#champ-status-filter { margin-bottom: 28px; }

/* ── RACE CARD (calendrier liste — remplace le tableau) ─────── */
.race-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.race-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-bottom: 2px solid rgba(21,70,209,.35);
    box-shadow: 0 4px 20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
    border-radius: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.race-card:hover { border-color: var(--border2); transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,.6), 0 0 0 1px rgba(21,70,209,.5), 0 0 24px rgba(21,70,209,.18); }
.race-card-img {
    height: 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px 14px;
}
.race-card-img-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255,255,255,.08) 0%, transparent 70%),
        linear-gradient(to bottom, transparent 30%, rgba(12,22,40,.28) 100%);
    pointer-events: none;
}
.race-card-flag {
    position: absolute;
    top: 8px; right: 10px;
    opacity: .85;
}
.race-card-svg-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 110px; height: 66px;
    opacity: .18;
}
.race-card-badges {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.race-card-body { padding: 14px 16px 16px; }
.race-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
}
.race-card-meta {
    font-size: .78rem;
    color: var(--text2);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

/* ── DOWNLOAD CARD LARGE ────────────────────────────────────── */
.dl-card-large {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
}
.dl-card-large .dl-icon { width: 56px; height: 56px; font-size: 1.8rem; }
.dl-card-large .dl-name { font-size: 1rem; white-space: normal; }

/* ── PAGE TUTOS ─────────────────────────────────────────────── */
.tutos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.tuto-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tuto-card:hover {
    transform: translateY(-4px);
    border-color: var(--border2);
    box-shadow: 0 8px 28px rgba(0,0,0,.5);
}
.tuto-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: var(--bg3);
    overflow: hidden;
}
.tuto-thumb img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.tuto-card:hover .tuto-thumb img { transform: scale(1.04); }
.tuto-play {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.35);
    transition: background .2s ease;
}
.tuto-play-icon {
    width: 48px; height: 48px;
    background: rgba(226,10,10,.85);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(226,10,10,.5);
    transition: transform .2s ease, background .2s ease;
}
.tuto-card:hover .tuto-play-icon { transform: scale(1.12); background: var(--red); }
.tuto-body { padding: 14px 16px 16px; }
.tuto-category {
    display: inline-block;
    font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    padding: 2px 8px; border-radius: 20px;
    background: rgba(226,10,10,.15); color: var(--red);
    border: 1px solid rgba(226,10,10,.3);
    margin-bottom: 8px;
}
.tuto-title {
    font-family: 'Orbitron', sans-serif;
    font-size: .82rem; font-weight: 700;
    color: var(--white);
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tuto-desc {
    font-size: .78rem; color: var(--text2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tutos-empty {
    grid-column: 1/-1;
    text-align: center; padding: 60px 20px;
    color: var(--text2); font-size: .9rem;
}

/* Modal vidéo */
.video-modal-box {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    width: 100%;
    max-width: 860px;
    position: relative;
    animation: slideUp .2s ease;
    overflow: hidden;
}
.video-modal-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}
.video-modal-player iframe {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: none;
}
.video-modal-info { padding: 16px 20px 20px; }
.video-modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: .95rem; font-weight: 700;
    margin-bottom: 6px;
}
.video-modal-desc { font-size: .83rem; color: var(--text2); line-height: 1.5; }

/* ── FOOTER SOCIAL LINKS ────────────────────────────────────── */
.footer-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
}
.footer-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .85rem;
    color: var(--text2);
    transition: var(--transition);
    cursor: pointer;
    padding: 4px 0;
}
.footer-social-link:hover { color: var(--white); }
.footer-social-icon {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: var(--bg4);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
    transition: var(--transition);
}
.footer-social-icon img { width: 16px; height: 16px; object-fit: contain; }
.footer-social-link:hover .footer-social-icon {
    background: rgba(226,10,10,.15);
    border-color: rgba(226,10,10,.3);
}
@media (max-width: 500px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* ── LIVE ───────────────────────────────────────────────────── */
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230,0,35,.7); }
    60%       { box-shadow: 0 0 0 7px rgba(230,0,35,0); }
}
.live-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--red); display: inline-block; flex-shrink: 0;
    animation: livePulse 1.6s ease-in-out infinite;
}
.live-card { transition: transform .18s, box-shadow .18s; }
.live-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(230,0,35,.18); }
.live-card:hover .live-play-overlay { opacity: 1 !important; }

/* ═══════════════════════════════════════════════════════════
   CHAT — Layout Discord-like
════════════════════════════════════════════════════════════ */

/* La page chat prend toute la hauteur disponible */
/* Quand inactive, .page { display:none } prend le dessus.
   Quand active, on force display:flex à la place du display:block hérité. */
.page-chat { padding: 0 !important; margin-top: 0; }
.page-chat.active {
    display: flex !important;
    height: calc(100vh - var(--nav-h));
    overflow: hidden;
    position: relative;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.chat-sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--bg2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10;
    transition: transform .25s ease;
}

.chat-server-header {
    padding: 0 12px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg3);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.chat-server-name {
    font-family: 'Orbitron', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-sidebar-close {
    background: none;
    border: none;
    color: var(--text2);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: .9rem;
    display: none;
    transition: background .15s, color .15s;
}
.chat-sidebar-close:hover { background: rgba(255,255,255,.08); color: var(--text); }

.chat-channels-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.chat-channels-list::-webkit-scrollbar { width: 4px; }
.chat-channels-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.chat-category-header {
    padding: 12px 16px 4px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text3);
    cursor: default;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-channel-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    cursor: pointer;
    border-radius: 4px;
    margin: 0 8px;
    color: var(--text2);
    font-size: .9rem;
    transition: background .12s, color .12s;
    position: relative;
}
.chat-channel-item:hover {
    background: rgba(255,255,255,.06);
    color: var(--text);
}
.chat-channel-item.active {
    background: rgba(230,0,35,.15);
    color: var(--text);
}
.chat-channel-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--red);
    border-radius: 0 2px 2px 0;
}
.chat-channel-hash {
    color: var(--text3);
    font-size: .85rem;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}
.chat-channel-item.active .chat-channel-hash { color: var(--red); }
.chat-channel-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-channel-badge {
    font-size: .55rem;
    color: var(--red);
    font-weight: 700;
    display: none;
    flex-shrink: 0;
    line-height: 1;
}
/* Nom du salon en gras quand non lu */
.chat-channel-item.has-unread .chat-channel-name {
    color: var(--text);
    font-weight: 600;
}
.chat-channel-item.has-unread .chat-channel-hash {
    color: var(--red);
}
/* Badge compteur sur le bouton nav Chat */
.chat-nav-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--red);
    margin-left: 5px;
    vertical-align: middle;
    flex-shrink: 0;
    font-size: .6rem;
    font-weight: 700;
    color: #fff;
    padding: 0 4px;
    line-height: 1;
    animation: livePulse 2s ease-in-out infinite;
}
.chat-channel-lock {
    font-size: .65rem;
    color: var(--text3);
    flex-shrink: 0;
}

/* Overlay mobile */
.chat-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9;
}

/* ── Zone principale ─────────────────────────────────────── */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ── En-tête du salon ────────────────────────────────────── */
.chat-header {
    height: 48px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    background: var(--bg2);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    position: relative;
    z-index: 5;
}

.chat-menu-btn {
    background: none;
    border: none;
    color: var(--text2);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1rem;
    display: none;
    transition: background .15s, color .15s;
}
.chat-menu-btn:hover { background: rgba(255,255,255,.08); color: var(--text); }

.chat-header-hash {
    font-size: 1.2rem;
    color: var(--text3);
    flex-shrink: 0;
    font-weight: 700;
}

.chat-header-info {
    flex: 1;
    min-width: 0;
}
.chat-header-name {
    font-weight: 700;
    font-size: .9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-header-topic {
    font-size: .72rem;
    color: var(--text2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

/* ── Zone de messages ────────────────────────────────────── */
.chat-messages-wrap {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.chat-messages-wrap::-webkit-scrollbar { width: 6px; }
.chat-messages-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.chat-load-more {
    text-align: center;
    padding: 12px;
    flex-shrink: 0;
}

.chat-messages {
    flex: 1;
    padding: 16px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
}

/* Page d'accueil du salon */
.chat-welcome {
    margin: auto;
    text-align: center;
    padding: 40px 20px;
    color: var(--text2);
}
.chat-welcome-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--red);
    opacity: .4;
}
.chat-welcome-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.chat-welcome-sub { font-size: .85rem; }

/* Début de salon (quand on charge pour la première fois) */
.chat-channel-start {
    padding: 24px 0 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    flex-shrink: 0;
}
.chat-channel-start-icon {
    font-size: 3rem;
    color: var(--text3);
    margin-bottom: 8px;
}
.chat-channel-start h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.chat-channel-start p { font-size: .85rem; color: var(--text2); }

/* Séparateur de date */
.chat-date-sep {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    flex-shrink: 0;
}
.chat-date-sep span {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text3);
    white-space: nowrap;
}
.chat-date-sep::before,
.chat-date-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Groupes de messages */
.chat-msg-group {
    display: flex;
    gap: 12px;
    padding: 2px 0;
    border-radius: 4px;
    transition: background .1s;
    position: relative;
}
.chat-msg-group:hover { background: rgba(255,255,255,.03); }
.chat-msg-group:hover .chat-msg-actions { opacity: 1; }

.chat-msg-group.grouped { padding-left: 52px; }

/* Avatar */
.chat-msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
    color: #fff;
    background: var(--bg4);
    align-self: flex-start;
    margin-top: 2px;
    cursor: pointer;
    transition: opacity .15s;
}
.chat-msg-avatar:hover { opacity: .85; }

/* Corps du message */
.chat-msg-body { flex: 1; min-width: 0; }

.chat-msg-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}
.chat-msg-username {
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
}
.chat-msg-username:hover { text-decoration: underline; }
.chat-msg-role-badge {
    font-size: .65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    opacity: .85;
    color: #fff;
}
.chat-msg-time {
    font-size: .68rem;
    color: var(--text3);
}
.chat-msg-edited {
    font-size: .65rem;
    color: var(--text3);
    font-style: italic;
}

/* Hover timestamp pour messages groupés */
.chat-msg-group.grouped .chat-msg-hover-time {
    display: none;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .6rem;
    color: var(--text3);
    white-space: nowrap;
}
.chat-msg-group.grouped:hover .chat-msg-hover-time { display: block; }

/* Contenu du message */
.chat-msg-content {
    font-size: .88rem;
    line-height: 1.5;
    color: var(--text);
    word-break: break-word;
    white-space: pre-wrap;
}

/* Réponse */
.chat-msg-reply {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: .78rem;
    color: var(--text3);
    padding-left: 4px;
    border-left: 2px solid var(--text3);
    cursor: pointer;
    transition: color .15s;
}
.chat-msg-reply:hover { color: var(--text2); }
.chat-msg-reply-username { font-weight: 700; }
.chat-msg-reply-content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* Réactions */
.chat-msg-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.chat-reaction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,.07);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2px 8px;
    font-size: .82rem;
    cursor: pointer;
    transition: background .12s, border-color .12s;
    user-select: none;
}
.chat-reaction:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.chat-reaction.reacted { background: rgba(230,0,35,.15); border-color: rgba(230,0,35,.4); }
.chat-reaction-count { font-size: .75rem; color: var(--text2); }

/* Actions rapides au survol */
.chat-msg-actions {
    position: absolute;
    right: 8px;
    top: 0;
    transform: translateY(-50%);
    display: flex;
    gap: 2px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 2;
}
.chat-msg-group:hover .chat-msg-actions { opacity: 1; pointer-events: all; }
.chat-action-btn {
    background: none;
    border: none;
    color: var(--text2);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: .8rem;
    transition: background .12s, color .12s;
    white-space: nowrap;
}
.chat-action-btn:hover { background: rgba(255,255,255,.1); color: var(--text); }
.chat-action-btn.danger:hover { background: rgba(230,0,35,.15); color: var(--red); }

/* Garder la barre d'actions visible quand le picker est ouvert */
.chat-msg-actions.picker-open { opacity: 1 !important; pointer-events: all !important; }

/* ── Bibliothèque emoji (position:fixed via JS) ───────────────── */
.emoji-picker {
    width: 338px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.45);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}
.emoji-picker-search {
    padding: 8px 8px 6px;
    border-bottom: 1px solid var(--border);
}
.emoji-picker-search input {
    width: 100%;
    background: var(--bg4);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    padding: 6px 10px;
    font-size: .82rem;
    outline: none;
    box-sizing: border-box;
}
.emoji-picker-search input:focus { border-color: rgba(230,0,35,.5); }
.emoji-picker-cats {
    display: flex;
    padding: 3px 6px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    gap: 1px;
    flex-shrink: 0;
}
.emoji-picker-cats::-webkit-scrollbar { display: none; }
.emoji-cat-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 7px;
    border-radius: 5px;
    font-size: .95rem;
    transition: background .1s;
    flex-shrink: 0;
    line-height: 1;
    color: var(--text2);
}
.emoji-cat-btn:hover { background: rgba(255,255,255,.1); }
.emoji-cat-btn.active { background: rgba(230,0,35,.2); }
.emoji-picker-grid {
    overflow-y: auto;
    padding: 4px 6px 6px;
    height: 270px;
    flex-shrink: 0;
}
.emoji-picker-grid::-webkit-scrollbar { width: 4px; }
.emoji-picker-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.emoji-picker-section-title {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text3);
    padding: 6px 2px 3px;
    position: sticky;
    top: 0;
    background: var(--bg3);
    z-index: 1;
}
.emoji-picker-empty {
    text-align: center;
    padding: 28px 10px;
    color: var(--text3);
    font-size: .82rem;
}
.emoji-item-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 1px;
}
.emoji-item {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 3px 1px;
    border-radius: 5px;
    transition: background .08s, transform .08s;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}
.emoji-item:hover { background: rgba(255,255,255,.12); transform: scale(1.2); }

/* Bouton emoji dans la zone de saisie */
.chat-emoji-open-btn {
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    padding: 4px 5px;
    border-radius: 4px;
    font-size: .95rem;
    flex-shrink: 0;
    transition: color .12s;
    display: flex;
    align-items: center;
}
.chat-emoji-open-btn:hover:not(:disabled) { color: var(--text2); }
.chat-emoji-open-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ── Zone de saisie ──────────────────────────────────────── */
.chat-input-area {
    border-top: 1px solid var(--border);
    background: var(--bg2);
    padding: 8px 16px 12px;
    flex-shrink: 0;
    position: relative;
}

/* ── Mention picker (@autocomplete) ─────────────────────────── */
.chat-mention-picker {
    position: absolute;
    bottom: 100%;
    left: 16px;
    right: 16px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 200;
    margin-bottom: 4px;
}
.chat-mention-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    cursor: pointer;
    transition: background .1s;
    font-size: .85rem;
}
.chat-mention-item:hover,
.chat-mention-item.selected { background: rgba(230,0,35,.12); }
.chat-mention-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .62rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.chat-mention-name { font-weight: 600; color: var(--text); }

/* ── Mentions inline dans les messages ───────────────────────── */
.chat-mention {
    background: rgba(88,101,242,.2);
    color: #8ea1ff;
    border-radius: 3px;
    padding: 0 3px;
    font-weight: 600;
    cursor: default;
}
.chat-mention-self {
    background: rgba(250,168,26,.22);
    color: #faa81a;
}
.chat-mention-role {
    font-weight: 700;
    border-radius: 3px;
    padding: 0 3px;
    cursor: default;
}

/* ── Salons vocaux dans la sidebar ───────────────────────────── */
.voice-channel-item .chat-channel-voice-icon {
    font-size: .75rem;
    color: var(--text3);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.voice-channel-item:hover .chat-channel-voice-icon,
.voice-channel-item.active .chat-channel-voice-icon { color: var(--text); }
.voice-connected-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3ba55d;
    flex-shrink: 0;
    margin-left: auto;
    animation: livePulse 2s ease-in-out infinite;
}
.voice-participants-sidebar {
    padding: 2px 8px 4px 34px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.voice-participant-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .75rem;
    color: var(--text2);
    padding: 2px 4px;
    border-radius: 4px;
}
.voice-participant-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .5rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.voice-participant-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Barre vocale fixe en bas de page ────────────────────────── */
#voice-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: #0a0f1e;
    border-top: 1px solid rgba(59,165,93,.35);
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 500;
    gap: 12px;
}
.vbar-left {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.vbar-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .65rem;
    color: #3ba55d;
    font-weight: 600;
    letter-spacing: .04em;
}
.vbar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3ba55d;
    flex-shrink: 0;
    animation: livePulse 2s ease-in-out infinite;
}
.vbar-channel {
    font-size: .78rem;
    color: var(--text2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vbar-channel i { color: #3ba55d; margin-right: 4px; }
.vbar-controls {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.vbar-btn {
    background: rgba(255,255,255,.07);
    border: none;
    color: var(--text2);
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s, color .12s;
    position: relative;
}
.vbar-btn:hover { background: rgba(255,255,255,.13); color: var(--text); }
.vbar-btn.active { background: rgba(230,0,35,.2); color: var(--red); }
.vbar-btn.danger:hover { background: rgba(230,0,35,.25); color: var(--red); }
.vbar-slash {
    position: absolute;
    font-size: .5rem;
    right: 4px;
    bottom: 4px;
    color: var(--red);
}
/* Décaler le contenu de la page quand la barre vocale est visible */
body.voice-active main,
body.voice-active #page-chat { padding-bottom: 52px; }

/* ── Zone de partage vidéo ───────────────────────────────────── */
#voice-video-area {
    position: fixed;
    bottom: 52px;
    left: 0;
    right: 0;
    height: 148px;
    background: #050912;
    border-top: 1px solid rgba(255,255,255,.08);
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    z-index: 499;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}
#voice-video-area::-webkit-scrollbar { height: 3px; }
#voice-video-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

.voice-video-tile {
    position: relative;
    background: #000;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    overflow: hidden;
    height: 132px;
    width: 235px;   /* 16:9 de 132 ≈ 234.7 */
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color .15s;
}
.voice-video-tile:hover { border-color: rgba(255,255,255,.35); }
.voice-video-tile video { width: 100%; height: 100%; object-fit: contain; display: block; }

.voice-video-label {
    position: absolute;
    bottom: 6px;
    left: 7px;
    font-size: .65rem;
    background: rgba(0,0,0,.75);
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    max-width: calc(100% - 14px);
    overflow: hidden;
    text-overflow: ellipsis;
}
.voice-video-expand {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: rgba(255,255,255,0);
    background: rgba(0,0,0,0);
    transition: color .15s, background .15s;
    pointer-events: none;
}
.voice-video-tile:hover .voice-video-expand {
    color: rgba(255,255,255,.85);
    background: rgba(0,0,0,.25);
}
.voice-video-tile.local-tile { border-color: rgba(59,165,93,.4); }
.voice-video-tile.local-tile:hover { border-color: rgba(59,165,93,.7); }

/* Décaler le contenu quand la zone vidéo est visible */
body.voice-video-active main,
body.voice-video-active #page-chat { padding-bottom: calc(52px + 148px); }

/* ── Vue vidéo étendue dans chat-main ────────────────────────── */
#voice-expanded-view {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: #050912;
}
#chat-main.voice-video-mode .chat-header,
#chat-main.voice-video-mode .chat-messages-wrap,
#chat-main.voice-video-mode .chat-input-area { display: none !important; }
#chat-main.voice-video-mode #voice-expanded-view { display: flex !important; }

.vev-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
    flex-shrink: 0;
}
.vev-back {
    background: none;
    border: 1px solid var(--border);
    color: var(--text2);
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: .8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .12s, color .12s;
}
.vev-back:hover { background: var(--bg3); color: var(--text); }
.vev-title {
    font-size: .88rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vev-video-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 0;
    padding: 12px;
}
.vev-video-wrap video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* Boutons verts (écran/cam actif) */
.vbar-btn.green { background: rgba(59,165,93,.2); color: #3ba55d; }
.vbar-btn.green:hover { background: rgba(59,165,93,.3); }

.chat-reply-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg3);
    border-radius: 6px 6px 0 0;
    padding: 6px 10px;
    margin-bottom: -1px;
    font-size: .78rem;
    color: var(--text2);
    border: 1px solid var(--border);
    border-bottom: none;
}
.chat-reply-preview-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.chat-reply-preview-inner i { color: var(--red); flex-shrink: 0; }
.chat-reply-cancel {
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    flex-shrink: 0;
    transition: color .12s;
}
.chat-reply-cancel:hover { color: var(--text); }

.chat-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 8px;
    transition: border-color .15s;
}
.chat-input-wrap:focus-within { border-color: rgba(230,0,35,.5); }

.chat-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    resize: none;
    outline: none;
    min-height: 24px;
    max-height: 160px;
    line-height: 1.5;
    padding: 2px 0;
}
.chat-input::placeholder { color: var(--text3); }
.chat-input:disabled { opacity: .5; cursor: not-allowed; }

.chat-send-btn {
    background: var(--red);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
    transition: background .15s, transform .1s, opacity .15s;
}
.chat-send-btn:hover:not(:disabled) { background: var(--red-dark); transform: scale(1.05); }
.chat-send-btn:disabled { opacity: .4; cursor: not-allowed; }

.chat-input-hint {
    font-size: .72rem;
    color: var(--text3);
    margin-top: 4px;
    padding: 0 2px;
    min-height: 16px;
}

/* Message d'accès refusé / non connecté */
.chat-access-denied {
    text-align: center;
    padding: 40px 20px;
    color: var(--text2);
}
.chat-access-denied i { font-size: 2.5rem; color: var(--text3); display: block; margin-bottom: 12px; }

/* ── Admin chat modération — liste salons ──────────────────── */
.admin-mod-cat-wrap { display: flex; flex-direction: column; }
.admin-mod-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text3);
    cursor: pointer;
    user-select: none;
    border-radius: 4px;
    transition: background .12s;
}
.admin-mod-cat-header:hover { background: rgba(255,255,255,.05); color: var(--text2); }
.admin-mod-ch-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px 5px 14px;
    font-size: .8rem;
    color: var(--text2);
    cursor: pointer;
    border-radius: 4px;
    transition: background .1s, color .1s;
}
.admin-mod-ch-item:hover { background: rgba(255,255,255,.06); color: var(--text); }
.admin-mod-ch-item.active { background: rgba(230,0,35,.15); color: var(--text); }
.admin-mod-ch-item.active .admin-mod-ch-name { font-weight: 600; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 700px) {
    .chat-sidebar {
        position: fixed;
        left: 0;
        top: var(--nav-h);
        bottom: 0;
        transform: translateX(-100%);
        box-shadow: var(--shadow);
        z-index: 100;
    }
    .chat-sidebar.open {
        transform: translateX(0);
    }
    .chat-sidebar-overlay.open { display: block; }
    .chat-sidebar-close { display: flex !important; }
    .chat-menu-btn { display: flex !important; }
}
