:root {
    --bg-body: #050509;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-nav: rgba(10, 10, 15, 0.9);
    --text-main: #f2f2f7;
    --text-muted: #d3d8e8;
    --accent: #8b5cf6;
    --accent-soft: rgba(139, 92, 246, 0.25);
    --border-soft: rgba(255, 255, 255, 0.08);
}

/* ============================= */
/* VISIBILITÉ DESKTOP / MOBILE   */
/* ============================= */

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

.mobile-menu {
    display: none;
}

body.light-theme {
    --bg-body: #f5f5fb;
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.9);
    --text-main: #14141c;
    --text-muted: #4b5563;
    --accent: #6366f1;
    --accent-soft: rgba(99, 102, 241, 0.16);
    --border-soft: rgba(15, 23, 42, 0.08);
}


/* ----------- RESET ----------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ----------- BODY / BACKGROUND ----------- */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    transition: background 0.4s ease, color 0.3s ease;
}

body:not(.light-theme) {
    background:
        radial-gradient(circle at top,
            #111827 0%,
            #050509 55%,
            #020617 100%);
}

body.light-theme {
    background:
        radial-gradient(circle at top,
            #ffffff 0%,
            #f4f6fb 60%,
            #eef1f8 100%);
}


/* ----------- NAVBAR ----------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 14, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
body.light-theme .nav {
    background: rgba(8, 8, 14, 0.92);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo {
    height: 32px;
    width: 32px;
    border-radius: 8px;
    object-fit: cover;
}
.nav-brand-name {
    font-size: 1rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.2px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}
.nav-link {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.07);
}
.nav-link-admin {
    color: rgba(167,139,250,0.7);
}
.nav-link-admin:hover {
    color: #c4b5fd;
    background: rgba(139,92,246,0.12);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.nav-theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
    flex-shrink: 0;
}
.nav-theme-btn:hover {
    background: rgba(255,255,255,0.11);
    border-color: rgba(255,255,255,0.15);
    transform: none;
    box-shadow: none;
}
.theme-icon { font-size: 1rem; transition: transform 0.25s ease; }
body.light-theme .theme-icon { transform: rotate(180deg); }

.nav-connect {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 9px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.nav-connect:hover {
    background: rgba(139,92,246,0.2);
    border-color: rgba(139,92,246,0.4);
}

/* Avatar + dropdown */
.nav-dropdown { position: relative; }
.nav-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    cursor: pointer;
    transition: all 0.15s;
}
.nav-avatar-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.15); box-shadow: none; transform: none; }
.nav-avatar-wrap { position: relative; width: 28px; height: 28px; flex-shrink: 0; }
.nav-avatar { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; display: block; }
.nav-avatar-dot {
    position: absolute; bottom: -1px; right: -1px;
    width: 9px; height: 9px; border-radius: 50%;
    background: #22c55e; border: 2px solid rgba(8,8,14,0.9);
}
.nav-avatar-name { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.nav-role {
    font-size: 0.65rem; font-weight: 700; padding: 2px 7px;
    border-radius: 20px; letter-spacing: 0.3px;
}
.nav-role.admin { background: rgba(239,68,68,0.2); color: #f87171; }
.nav-role.caster { background: rgba(139,92,246,0.2); color: #c4b5fd; }
.nav-chevron { color: rgba(255,255,255,0.35); transition: transform 0.2s; flex-shrink: 0; }
.nav-avatar-btn:has(+ .nav-dropdown-menu.open) .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 230px;
    background: rgba(14,14,20,0.97);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 13px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    display: none;
    z-index: 200;
}
.nav-dropdown-menu.open { display: block; animation: ddFade 0.15s ease; }
@keyframes ddFade { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

.nav-dd-user {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 8px 10px;
}
.nav-dd-avatar { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.nav-dd-name { font-size: 0.88rem; font-weight: 700; color: white; }
.nav-dd-role { font-size: 0.72rem; opacity: 0.4; margin-top: 2px; }
.nav-dd-sep { height: 1px; background: rgba(255,255,255,0.07); margin: 4px 0; }
.nav-dd-link {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: 8px;
    font-size: 0.83rem; font-weight: 500;
    color: rgba(255,255,255,0.65);
    text-decoration: none; transition: all 0.12s;
}
.nav-dd-link:hover { background: rgba(255,255,255,0.07); color: white; }
.nav-dd-admin { color: rgba(167,139,250,0.7); }
.nav-dd-admin:hover { background: rgba(139,92,246,0.12); color: #c4b5fd; }
.nav-dd-logout { color: rgba(248,113,113,0.7); }
.nav-dd-logout:hover { background: rgba(239,68,68,0.1); color: #f87171; }

/* Bouton burger mobile */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0 7px;
    border-radius: 9px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
    cursor: pointer;
    transition: background 0.15s;
}
@media (max-width: 768px) {
    .nav-burger { display: flex !important; }
}
.nav-burger:hover { background: rgba(255,255,255,0.11); box-shadow: none; transform: none; }
.nav-burger span {
    display: block; height: 2px; border-radius: 2px;
    background: rgba(255,255,255,0.7);
    transition: all 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: rgba(8,8,14,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    z-index: 99;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}
.mobile-menu.open { display: block; animation: mmSlide 0.18s ease; }
@keyframes mmSlide { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.mm-inner { padding: 12px 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.mm-link {
    display: block; padding: 11px 14px;
    font-size: 0.92rem; font-weight: 500;
    color: rgba(255,255,255,0.65);
    text-decoration: none; border-radius: 9px;
    transition: all 0.12s;
}
.mm-link:hover { background: rgba(255,255,255,0.07); color: white; }
.mm-sep { height: 1px; background: rgba(255,255,255,0.07); margin: 6px 0; }
.mm-admin { color: rgba(167,139,250,0.75); }
.mm-admin:hover { background: rgba(139,92,246,0.12); color: #c4b5fd; }
.mm-logout { color: rgba(248,113,113,0.75); }
.mm-logout:hover { background: rgba(239,68,68,0.1); color: #f87171; }
.mm-connect {
    margin-top: 4px; text-align: center;
    background: rgba(139,92,246,0.15);
    border: 1px solid rgba(139,92,246,0.3);
    color: #c4b5fd; font-weight: 600;
    border-radius: 10px;
}
.mm-connect:hover { background: rgba(139,92,246,0.25); color: white; }

/* Bouton Créer tournoi dans la nav (admin) */
.nav-btn-create {
    background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
    color: #fff !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.3px;
    transition: opacity 0.2s !important;
}
.nav-btn-create:hover { opacity: 0.88; box-shadow: none !important; transform: none !important; }

/* Zone droite legacy */
.nav-right { display: flex; align-items: center; gap: 12px; }

/* ----------- BOUTONS ----------- */
.btn,
button {
    background: linear-gradient(135deg, #8055ff, #a472ff);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
}

.btn-small {
    padding: 8px 14px;
    font-size: 0.9rem;
}

.btn:hover,
button:hover {
    box-shadow: 0 0 16px rgba(138, 90, 255, 0.8);
    transform: translateY(-2px);
}

/* ----------- CONTAINER / CARTES ----------- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 24px 24px 32px;
    background: var(--bg-card);
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.45);
}

h1,
h2 {
    margin-bottom: 18px;
    color: #e6e6ff;
    text-shadow: 0 0 12px rgba(145, 97, 255, 0.5);
}

body.light-theme h1,
body.light-theme h2 {
    color: #1e1b4b;
    text-shadow: none;
}

p {
    margin-bottom: 16px;
    font-size: 1rem;
    color: #d3d8e8;
}

body.light-theme p {
    color: #374151;
}

/* ----------- LISTE D'ÉVÉNEMENTS ----------- */
.events {
    list-style: none;
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.05);
}

.events li {
    padding: 14px 16px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #9f6bff;
    transition: 0.2s;
}

.events li:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(3px);
}

.events .muted {
    opacity: 0.7;
    margin-top: 5px;
    font-size: 0.9rem;
}

/* ----------- FORMULAIRES ----------- */
input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    background: #141417;
    border: 1px solid #2c2c35;
    color: #fff;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #9f6bff;
    box-shadow: 0 0 8px rgba(159, 107, 255, 0.6);
}

.event-item {
    display: block;
}

.twitch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(145, 70, 255, 0.18);
    border-radius: 10px;
    border: 1px solid rgba(145, 70, 255, 0.35);
    transition: 0.25s;
}

.twitch-btn:hover {
    background: rgba(145, 70, 255, 0.35);
    box-shadow: 0 0 12px rgba(145, 70, 255, 0.6);
    transform: translateY(-2px);
}

.twitch-btn img {
    width: 26px;
    height: 26px;
}

/* Filter bar */
.filter-bar {
    margin-bottom: 25px;
    display: flex;
}

.filter-bar form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-input {
    background: #141417;
    border: 1px solid #2c2c35;
    padding: 8px 12px;
    color: white;
    border-radius: 8px;
}

.reset {
    background: rgba(255, 80, 80, 0.25) !important;
}

/* Event row */
.event-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.notify-btn {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    transition: 0.25s;
}

.notify-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

/* LIVE badge */
.live-badge {
    width: 12px;
    height: 12px;
    background: #ff3355;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px rgba(255, 80, 120, 0.9);
    animation: pulse 1.5s infinite;
}

/* Filter bar */
.filter-bar {
    margin-bottom: 25px;
    display: flex;
}

.filter-bar form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-input {
    background: #141417;
    border: 1px solid #2c2c35;
    padding: 8px 12px;
    color: white;
    border-radius: 8px;
}

.reset {
    background: rgba(255, 80, 80, 0.25) !important;
}

.event-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Twitch btn */
.twitch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(145, 70, 255, 0.18);
    border-radius: 10px;
    border: 1px solid rgba(145, 70, 255, 0.35);
    transition: 0.25s;
}

.twitch-btn:hover {
    background: rgba(145, 70, 255, 0.35);
    box-shadow: 0 0 12px rgba(145, 70, 255, 0.6);
    transform: translateY(-2px);
}

.twitch-btn img {
    width: 26px;
    height: 26px;
}

.twitch-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* ratio 16:9 */
    height: 0;
}

.twitch-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Notifier */
.notify-btn {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    transition: 0.25s;
}

.notify-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

/* LIVE badge */
.live-badge {
    width: 12px;
    height: 12px;
    background: #ff3355;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px rgba(255, 80, 120, 0.9);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table th {
    text-align: left;
    opacity: 0.8;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.live-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.live-player iframe {
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
}

.live-side {
    max-height: 480px;
    overflow-y: auto;
    flex: 1;
    min-width: 260px;
}

@media (max-width: 900px) {
    .live-wrapper {
        grid-template-columns: 1fr;
    }
}

.discord-icon {
    width: 36px;
    cursor: pointer;
    filter: drop-shadow(0 0 6px #5865F2);
    transition: 0.2s;
}

.discord-icon:hover {
    transform: scale(1.1);
}

/* Transition globale du thème */
body, .container, .nav, .events li {
    transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}

/* @media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
        padding: 10px 14px;
        gap: 8px;
    }

    .nav-center {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-right {
        order: 2;
    }

    .nav-left {
        order: 1;
    }

    .container {
        width: 94%;
        margin: 20px auto;
        padding: 16px 14px 22px;
    }
} */

.calendar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 20px;
}

.cal-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-cell {
    padding: 10px 6px;
    text-align: center;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    font-size: 0.9rem;
}

.cal-header .cal-cell {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: transparent;
}

.cal-day {
    cursor: pointer;
}

.cal-day:hover {
    background: rgba(129, 140, 248, 0.35);
}

.cal-has-event {
    border: 1px solid var(--accent);
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.5);
}

.calendar-sidebar {
    margin-top: 22px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
}

.calendar-sidebar ul {
    list-style: none;
    margin-top: 10px;
}

.calendar-sidebar li {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
}

.muted {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Admin dashboard */
.admin-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-stat {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-soft);
    min-width: 140px;
}

.admin-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}

.admin-stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 4px;
}

.admin-stat-value.accent {
    color: #f97373;
}

.admin-table-wrapper {
    margin-top: 18px;
}

.admin-actions {
    white-space: nowrap;
}

/* Bouton ghost (Modifier) */
.btn-ghost {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    text-decoration: none !important;
    color: #a78bfa;
    /* violet clair */
    border: 1px solid #4c1d95;
    /* violet foncé */
    background: transparent;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: #4c1d95;
    color: white;
    border-color: #6d28d9;
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.7);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.35);
}

/* Pills */
.pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 6px;
}

.pill-live {
    background: rgba(248, 113, 113, 0.18);
    color: #fecaca;
}

.pill-upcoming {
    background: rgba(52, 211, 153, 0.18);
    color: #bbf7d0;
}

.pill-past {
    background: rgba(148, 163, 184, 0.18);
    color: #e5e7eb;
}

/* Caster dashboard */
.caster-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.caster-stat {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-soft);
}

.caster-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.7;
}

.caster-stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 4px;
}

.caster-events .small {
    font-size: 0.8rem;
}

/* Calendar header */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 12px;
}

.calendar-header h2 {
    margin: 0;
    color: #e5e7ff;
}

.cal-nav-btn {
    background: transparent;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 4px 10px;
    cursor: pointer;
    color: var(--text-muted);
}

.cal-nav-btn:hover {
    background: var(--accent-soft);
}

/* Calendar sidebar title */
.calendar-sidebar h3 {
    margin-bottom: 6px;
}

.status-badge {
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Accepté */
/* .status-approved {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
} */

/* Refusé */
/* .status-denied {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
} */

/* En attente */
/* .status-pending {
    background: rgba(234, 179, 8, 0.18);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
} */

.pagination {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
}

.page-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

.page-btn.active {
    background: rgba(139, 92, 246, 0.5);
    border-color: rgba(139, 92, 246, 0.9);
    font-weight: bold;
}

/* ============================= */
/* EVENT DETAILS LAYOUT CLEAN    */
/* ============================= */

.event-details-wrapper {
    list-style: none;
    margin-top: -6px;
}

/* zone déroulante */
.event-details {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
    background: rgba(255, 255, 255, 0.035);
    border-radius: 0 0 14px 14px;
    padding: 0 20px;
}

.event-details.open {
    opacity: 1;
    padding: 18px 20px;
    max-height: 600px;
    /* sécurité */
}


/* CENTRAGE DES INFOS */
.event-details .teams {
    display: flex;
    justify-content: center;
    gap: 80px;
    text-align: center;
}

/* TEAM */
.team {
    max-width: 220px;
}

/* LOGOS UNIFORMES */
.team-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 8px;
    display: block;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px;
}

/* fallback */
.team-logo.fallback {
    opacity: 0.6;
}

/* joueurs */
.team div {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* flèche */
.toggle-arrow {
    margin-left: 8px;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* HEADER DE L'ÉVÉNEMENT (ligne fixe) */
.event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.event-item:hover {
    transform: none;
}

.event-header:hover {
    transform: translateX(3px);
}

/* ============================= */
/* PLANNING CENTERED LAYOUT     */
/* ============================= */

.planning-header {
    text-align: center;
    margin-bottom: 30px;
}

.planning-header h1 {
    margin-bottom: 18px;
}

.filter-bar.centered {
    justify-content: center;
}

.filter-bar.centered form {
    justify-content: center;
    flex-wrap: wrap;
}

/* Wrapper pour limiter la largeur */
.planning-wrapper {
    display: flex;
    justify-content: center;
}

/* Liste moins large */
.planning-wrapper .events {
    width: 100%;
    max-width: 1200px;
    /* 👈 ajuste ici si besoin */
}

/* ============================= */
/* FIX CONTAINER VIDE PLANNING   */
/* ============================= */

.page-planning .container:first-of-type {
    display: none;
}

#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    /* IMPORTANT */
    overflow: hidden;
    z-index: 9999;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    user-select: none;
    animation-name: fall;
    animation-timing-function: linear;
}

@keyframes fall {
    to {
        transform: translateY(110vh);
    }
}

.domain-warning {
    position: sticky;
    top: 0;
    z-index: 9999;

    background: #dc2626;
    color: #fff;

    text-align: center;
    font-weight: 600;
    font-size: 14px;

    padding: 8px 12px;
}

.domain-warning a {
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
}

/* ───────────────
   Badges de statut
   ─────────────── */

.status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-approved {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.status-denied {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-live {
    background: rgba(145, 70, 255, 0.15);
    color: #9146ff;
    border: 1px solid rgba(145, 70, 255, 0.4);
}

.status-past {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.status-deleted {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.4);
}

/* ───────────────
   Bouton annuler
   ─────────────── */

.btn-cancel {
    margin-left: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel:hover {
    background: rgba(239, 68, 68, 0.25);
}

.badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    margin-left: 6px;
}

.badge.live {
    background: #dc2626;
    color: white;
}

.badge.late {
    background: #f59e0b;
    color: black;
}

.badge.wait {
    background: #3b82f6;
    color: white;
}

.badge.soon {
    background: #6b7280;
    color: white;
}

.badge.ended {
    background: #111827;
    color: white;
}

/* ☰ Burger caché par défaut (desktop) */
.mobile-menu-btn {
    display: none;
}

/* ========================= */
/* FOOTER                    */
/* ========================= */

.site-footer {
  margin-top: 80px;
  background: radial-gradient(
    ellipse at top,
    rgba(30, 41, 59, 0.9),
    rgba(2, 6, 23, 0.95)
  );
  color: #cbd5f5;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

/* ========================= */
/* BRAND                     */
/* ========================= */

.footer-brand h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #e9d5ff;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* ========================= */
/* LINKS                     */
/* ========================= */

.footer-links h4,
.footer-social h4 {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #e9d5ff;
}

.footer-links ul,
.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-social li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-social a {
  text-decoration: none;
  color: #cbd5f5;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-social a:hover {
  color: #a78bfa;
}

/* ========================= */
/* BOTTOM                    */
/* ========================= */

.footer-bottom {
  text-align: center;
  padding: 18px 10px;
  font-size: 0.85rem;
  opacity: 0.6;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ========================= */
/* PARTENAIRE                */
/* ========================= */

.footer-partner h4 {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #e9d5ff;
}

.partner-card {
  display: inline-block;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.2s;
}

.partner-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08);
}

.partner-card img {
  width: 140px;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0.9);
  transition: 0.2s;
}

.partner-card:hover img {
  filter: brightness(1.2);
}

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

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links,
  .footer-social {
    margin-top: 20px;
  }
}

/* ========================= */
/* STICKY FOOTER FIX         */
/* ========================= */

html, body {
  height: 100%;
}

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* le main prend l'espace restant */
.site-body > main {
  flex: 1;
}

/* ============================================================ */
/* LIGHT THEME — OVERRIDES COMPLETS                            */
/* ============================================================ */

body.light-theme {
    color: #111827;
}

/* Container */
body.light-theme .container {
    background: rgba(255,255,255,0.9);
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    color: #111827;
}

/* Inputs */
body.light-theme input:not([type="file"]),
body.light-theme select,
body.light-theme textarea {
    background: #ffffff;
    border-color: rgba(0,0,0,0.14);
    color: #111827;
}
body.light-theme input:focus,
body.light-theme textarea:focus,
body.light-theme select:focus {
    border-color: #6d28d9;
    box-shadow: 0 0 0 3px rgba(109,40,217,0.12);
}

/* Events list */
body.light-theme .events li {
    background: rgba(0,0,0,0.03);
    border-left-color: #7c3aed;
}
body.light-theme .events li:hover {
    background: rgba(0,0,0,0.06);
}

/* Admin table */
body.light-theme .admin-table th,
body.light-theme .admin-table td {
    border-bottom-color: rgba(0,0,0,0.07);
}
body.light-theme .admin-table tr:hover {
    background: rgba(0,0,0,0.03);
}
body.light-theme .admin-stat,
body.light-theme .caster-stat {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
    color: #111827;
}

/* Calendar */
body.light-theme .cal-cell {
    background: rgba(0,0,0,0.04);
    color: #1e1b4b;
}
body.light-theme .cal-header .cal-cell { background: transparent; }
body.light-theme .calendar-sidebar li {
    background: rgba(0,0,0,0.04);
}

/* Page buttons */
body.light-theme .page-btn {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
    color: #374151;
}
body.light-theme .page-btn.active {
    background: rgba(109,40,217,0.15);
    border-color: rgba(109,40,217,0.4);
    color: #5b21b6;
}

/* Event details */
body.light-theme .event-details {
    background: rgba(0,0,0,0.03);
}

/* Filter bar */
body.light-theme .date-input {
    background: #fff;
    border-color: rgba(0,0,0,0.12);
    color: #111827;
}
body.light-theme .pl-date-input {
    background: #fff !important;
    border-color: rgba(0,0,0,0.14) !important;
    color: #111827 !important;
    color-scheme: light !important;
}
body.light-theme .pl-preset-btn {
    background: rgba(0,0,0,0.05) !important;
    border-color: rgba(0,0,0,0.12) !important;
    color: #374151 !important;
}
body.light-theme .pl-preset-btn:hover {
    background: rgba(109,40,217,0.12) !important;
    border-color: rgba(109,40,217,0.35) !important;
    color: #5b21b6 !important;
}

/* ---- PLANNING PAGE (pl-) ---- */
body.light-theme .pl-title { color: #111827 !important; }
body.light-theme .pl-sub { color: #6b7280 !important; }
body.light-theme .pl-card {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.09) !important;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
body.light-theme .pl-card:hover {
    border-color: rgba(109,40,217,0.25) !important;
}
body.light-theme .pl-card.is-live {
    border-color: rgba(239,68,68,0.3) !important;
    background: rgba(254,242,242,0.8) !important;
}
body.light-theme .pl-date-day { color: #374151 !important; }
body.light-theme .pl-date-time { color: #6b7280 !important; }
body.light-theme .pl-match-title { color: #111827 !important; }
body.light-theme .pl-caster-item { color: #4b5563 !important; }
body.light-theme .pl-no-caster { color: #9ca3af !important; }
body.light-theme .pl-details {
    background: rgba(0,0,0,0.03) !important;
    border-top-color: rgba(0,0,0,0.07) !important;
}
body.light-theme .pl-team-name { color: #374151 !important; }
body.light-theme .pl-empty {
    color: #6b7280 !important;
    background: rgba(0,0,0,0.03) !important;
    border-color: rgba(0,0,0,0.08) !important;
}
body.light-theme .pl-reset-btn {
    background: rgba(239,68,68,0.1) !important;
    border-color: rgba(239,68,68,0.3) !important;
    color: #b91c1c !important;
}
body.light-theme .pl-notify-btn {
    background: rgba(0,0,0,0.06) !important;
    border-color: rgba(0,0,0,0.1) !important;
}
body.light-theme .pl-toggle-arrow { color: #6b7280 !important; }

/* ---- HOMEPAGE (ix-) ---- */
body.light-theme .ix-hero-title {
    background: linear-gradient(135deg, #1e1b4b 30%, #7c3aed) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
body.light-theme .ix-hero-sub { color: #4b5563 !important; opacity: 1 !important; }
body.light-theme .ix-cta.secondary {
    background: rgba(0,0,0,0.06) !important;
    border-color: rgba(0,0,0,0.15) !important;
    color: #374151 !important;
}
body.light-theme .ix-cta.secondary:hover {
    background: rgba(0,0,0,0.1) !important;
    border-color: rgba(0,0,0,0.22) !important;
}
body.light-theme .ix-stat {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.09) !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    color: #111827 !important;
}
body.light-theme .ix-stat.is-live {
    border-color: rgba(239,68,68,0.3) !important;
    background: rgba(254,242,242,0.9) !important;
}
body.light-theme .ix-stat-val { color: #111827 !important; }
body.light-theme .ix-stat.is-live .ix-stat-val { color: #dc2626 !important; }
body.light-theme .ix-stat-lbl { color: #6b7280 !important; opacity: 1 !important; }
body.light-theme .ix-section-title { color: #111827 !important; }
body.light-theme .ix-section-link { color: #6b7280 !important; opacity: 1 !important; }
body.light-theme .ix-section-link:hover { color: #111827 !important; }
body.light-theme .ix-card {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.09) !important;
    color: #111827 !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
body.light-theme .ix-card:hover {
    border-color: rgba(109,40,217,0.25) !important;
    background: rgba(109,40,217,0.03) !important;
}
body.light-theme .ix-card.is-live {
    border-color: rgba(239,68,68,0.3) !important;
    background: rgba(254,242,242,0.8) !important;
}
body.light-theme .ix-card-time { color: #111827 !important; }
body.light-theme .ix-card-title { color: #111827 !important; }
body.light-theme .ix-card-caster { color: #6b7280 !important; opacity: 1 !important; }
body.light-theme .ix-badge.soon {
    background: rgba(0,0,0,0.07) !important;
    color: #6b7280 !important;
}
body.light-theme .ix-badge.ended {
    background: rgba(0,0,0,0.05) !important;
    color: #9ca3af !important;
}
body.light-theme .ix-empty {
    background: rgba(0,0,0,0.03) !important;
    border-color: rgba(0,0,0,0.08) !important;
    color: #6b7280 !important;
    opacity: 1 !important;
}
body.light-theme .ix-ql {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.09) !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
body.light-theme .ix-ql:hover {
    background: rgba(109,40,217,0.06) !important;
    border-color: rgba(109,40,217,0.2) !important;
}
body.light-theme .ix-ql-label { color: #374151 !important; opacity: 1 !important; }
body.light-theme .ix-hero-glow {
    background: radial-gradient(ellipse at center, rgba(109,40,217,0.08) 0%, transparent 70%) !important;
}

/* ---- REQUEST FORM (rf-) ---- */
body.light-theme .rf-wrap,
body.light-theme [class^="rf-"] { color: #111827; }
body.light-theme .rf-card,
body.light-theme .rf-section {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.09) !important;
}
body.light-theme .rf-input,
body.light-theme .rf-select,
body.light-theme .rf-textarea {
    background: #f9fafb !important;
    border-color: rgba(0,0,0,0.14) !important;
    color: #111827 !important;
}
body.light-theme .rf-label { color: #374151 !important; }

/* ---- ADMIN EDIT (ae-) ---- */
body.light-theme .ae-section {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.09) !important;
}
body.light-theme .ae-team-card {
    background: rgba(0,0,0,0.02) !important;
    border-color: rgba(0,0,0,0.08) !important;
}
body.light-theme .ae-input {
    background: #f9fafb !important;
    border-color: rgba(0,0,0,0.14) !important;
    color: #111827 !important;
}
body.light-theme .ae-label { color: #374151 !important; }
body.light-theme .ae-title { color: #111827 !important; }
body.light-theme .ae-sub { color: #6b7280 !important; }
body.light-theme .ae-back { color: #374151 !important; }
body.light-theme .ae-section-title { color: #4b5563 !important; opacity: 1 !important; }
body.light-theme .ae-vs { color: #374151 !important; opacity: 0.3 !important; }
body.light-theme .ae-file-label {
    border-color: rgba(0,0,0,0.16) !important;
    color: #374151 !important;
    background: rgba(0,0,0,0.03) !important;
}
body.light-theme .ae-cancel-btn {
    color: #4b5563 !important;
    border-color: rgba(0,0,0,0.12) !important;
}
body.light-theme .ae-cancel-btn:hover {
    color: #111827 !important;
    border-color: rgba(0,0,0,0.25) !important;
}

/* ---- MOBILE MENU (light) ---- */
body.light-theme .mobile-menu {
    background: rgba(245,245,251,0.98) !important;
    border-bottom-color: rgba(0,0,0,0.08) !important;
}
body.light-theme .mm-link { color: #374151 !important; }
body.light-theme .mm-link:hover { background: rgba(0,0,0,0.05) !important; color: #111827 !important; }
body.light-theme .mm-sep { background: rgba(0,0,0,0.07) !important; }

/* ---- FOOTER (light) ---- */
body.light-theme .site-footer {
    background: rgba(240,240,248,0.9) !important;
    border-top-color: rgba(0,0,0,0.08) !important;
}
body.light-theme .ft-logo span { color: #111827; }
body.light-theme .ft-desc { color: #4b5563; opacity: 1; }
body.light-theme .ft-social-btn {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
    color: #4b5563;
}
body.light-theme .ft-col a { color: #4b5563; }
body.light-theme .ft-col-title { color: #9ca3af; opacity: 1; }
body.light-theme .ft-partner {
    background: rgba(0,0,0,0.04) !important;
    border-color: rgba(0,0,0,0.08) !important;
}
body.light-theme .ft-partner span { color: #374151; opacity: 1; }
body.light-theme .ft-bottom { color: #9ca3af; }

/* ---- CALENDRIER (cal-) ---- */
body.light-theme .cal-panel,
body.light-theme .cal-events-panel {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.09) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
body.light-theme .cal-nav {
    border-bottom-color: rgba(0,0,0,0.07) !important;
}
body.light-theme .cal-nav-btn {
    background: rgba(0,0,0,0.05) !important;
    border-color: rgba(0,0,0,0.12) !important;
    color: #374151 !important;
}
body.light-theme .cal-nav-btn:hover {
    background: rgba(109,40,217,0.12) !important;
    border-color: rgba(109,40,217,0.3) !important;
    color: #5b21b6 !important;
}
body.light-theme .cal-month-label { color: #1e1b4b !important; }
body.light-theme .cal-title { color: #111827 !important; }
body.light-theme .cal-sub { color: #6b7280 !important; opacity: 1 !important; }
body.light-theme .cal-dow { color: #9ca3af !important; opacity: 1 !important; }
body.light-theme .cal-day-num { color: #374151 !important; }
body.light-theme .cal-cell.day:hover { background: rgba(0,0,0,0.05) !important; }
body.light-theme .cal-cell.today { background: rgba(109,40,217,0.08) !important; }
body.light-theme .cal-cell.today .cal-day-num { color: #7c3aed !important; }
body.light-theme .cal-cell.selected { background: rgba(109,40,217,0.18) !important; border-color: rgba(109,40,217,0.45) !important; }
body.light-theme .cal-cell.selected .cal-day-num { color: #5b21b6 !important; }
body.light-theme .cal-events-title { color: #111827 !important; font-weight: 700; }
body.light-theme .cal-no-event { color: #9ca3af !important; }
body.light-theme .cal-ev-card {
    background: rgba(0,0,0,0.03) !important;
    border-color: rgba(0,0,0,0.08) !important;
}
body.light-theme .cal-ev-time { color: #7c3aed !important; }
body.light-theme .cal-ev-title { color: #111827 !important; }
body.light-theme .cal-ev-caster { color: #6b7280 !important; }

/* ---- MES DEMANDES (mr-) ---- */
body.light-theme .mr-title { color: #111827 !important; }
body.light-theme .mr-sub { color: #6b7280 !important; opacity: 1 !important; }
body.light-theme .mr-card {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.09) !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
body.light-theme .mr-card.is-live {
    background: rgba(254,242,242,0.8) !important;
    border-color: rgba(239,68,68,0.3) !important;
}
body.light-theme .mr-date-day { color: #111827 !important; }
body.light-theme .mr-date-time { color: #6b7280 !important; opacity: 1 !important; }
body.light-theme .mr-match-title { color: #111827 !important; }
body.light-theme .mr-meta { color: #6b7280 !important; opacity: 1 !important; }
body.light-theme .mr-status.past {
    background: rgba(0,0,0,0.07) !important;
    color: #6b7280 !important;
}
body.light-theme .mr-status.deleted {
    background: rgba(0,0,0,0.05) !important;
    color: #9ca3af !important;
}
body.light-theme .mr-status.pending {
    background: rgba(217,119,6,0.12) !important;
    color: #b45309 !important;
}
body.light-theme .mr-status.approved {
    background: rgba(109,40,217,0.12) !important;
    color: #6d28d9 !important;
}
body.light-theme .mr-empty { color: #9ca3af !important; }
body.light-theme .mr-right { color: #374151 !important; }

/* ---- PANEL ADMIN (adm-) ---- */
body.light-theme .adm-quick-btn {
    background: rgba(0,0,0,0.05) !important;
    border-color: rgba(0,0,0,0.12) !important;
    color: #374151 !important;
}
body.light-theme .adm-quick-btn:hover {
    background: rgba(109,40,217,0.1) !important;
    border-color: rgba(109,40,217,0.3) !important;
    color: #5b21b6 !important;
}
body.light-theme .adm-stat-card {
    background: rgba(0,0,0,0.03) !important;
    border-color: rgba(0,0,0,0.1) !important;
    color: #111827 !important;
}
body.light-theme .adm-stat-card.live {
    border-color: rgba(239,68,68,0.3) !important;
    background: rgba(254,242,242,0.7) !important;
}
body.light-theme .adm-stat-card.pending {
    border-color: rgba(217,119,6,0.3) !important;
    background: rgba(255,251,235,0.8) !important;
}
body.light-theme .adm-stat-card.upcoming {
    border-color: rgba(109,40,217,0.25) !important;
    background: rgba(245,243,255,0.8) !important;
}
body.light-theme .adm-tabs {
    border-bottom-color: rgba(0,0,0,0.1) !important;
}
body.light-theme .adm-tab {
    color: #6b7280 !important;
}
body.light-theme .adm-tab:hover { color: #111827 !important; }
body.light-theme .adm-tab.active { color: #7c3aed !important; border-bottom-color: #7c3aed !important; }
body.light-theme .adm-search {
    background: #fff !important;
    border-color: rgba(0,0,0,0.14) !important;
    color: #111827 !important;
}
body.light-theme .adm-select {
    background: #fff !important;
    border-color: rgba(0,0,0,0.14) !important;
    color: #111827 !important;
}
body.light-theme .adm-table-wrap {
    border-color: rgba(0,0,0,0.09) !important;
}
body.light-theme .adm-table thead tr {
    background: rgba(0,0,0,0.03) !important;
}
body.light-theme .adm-table tbody tr {
    border-top-color: rgba(0,0,0,0.06) !important;
}
body.light-theme .adm-table tbody tr:hover {
    background: rgba(0,0,0,0.02) !important;
}
body.light-theme .adm-table td,
body.light-theme .adm-table th { color: #374151 !important; }
body.light-theme .adm-status.past {
    background: rgba(0,0,0,0.06) !important;
    color: #6b7280 !important;
}
body.light-theme .adm-btn.ghost {
    border-color: rgba(0,0,0,0.18) !important;
    color: #374151 !important;
}
body.light-theme .adm-btn.ghost:hover {
    background: rgba(0,0,0,0.07) !important;
}
body.light-theme .adm-page-btn {
    background: rgba(0,0,0,0.04) !important;
    border-color: rgba(0,0,0,0.1) !important;
    color: #374151 !important;
}
body.light-theme .adm-page-btn:hover {
    background: rgba(109,40,217,0.1) !important;
    border-color: rgba(109,40,217,0.3) !important;
    color: #5b21b6 !important;
}
body.light-theme .adm-page-btn.active {
    background: rgba(109,40,217,0.18) !important;
    border-color: rgba(109,40,217,0.5) !important;
    color: #5b21b6 !important;
}
body.light-theme .adm-setting-card {
    background: rgba(0,0,0,0.03) !important;
    border-color: rgba(0,0,0,0.09) !important;
    color: #111827 !important;
}
body.light-theme .adm-toggle-track {
    background: rgba(0,0,0,0.12) !important;
    border-color: rgba(0,0,0,0.18) !important;
}
body.light-theme .adm-toggle-label { color: #6b7280 !important; }
body.light-theme .adm-toggle.is-on .adm-toggle-label { color: #15803d !important; }
body.light-theme .adm-id { color: #6b7280 !important; }
body.light-theme .adm-date { color: #374151 !important; }
body.light-theme .adm-info { color: #111827 !important; }

/* ---- LOGO hero (fond blanc) ---- */
body.light-theme .ix-hero-logo img {
    background: linear-gradient(135deg, #6d28d9, #4f46e5) !important;
    box-shadow: 0 0 32px rgba(109,40,217,0.25) !important;
}

/* Titres h1/h2 & p hors container */
body.light-theme h1,
body.light-theme h2 {
    color: #1e1b4b;
    text-shadow: none;
}
body.light-theme p { color: #374151; }

/* ============================================================ */

@media (max-width: 768px) {

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* ----------- BOUTONS + TEXTE ----------- */
    button,
    .btn {
        padding: 14px 18px;
        font-size: 1rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    p {
        font-size: 1rem;
    }

    /* ----------- EVENTS ----------- */
    .events li {
        padding: 18px 16px;
    }

    .event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

}

/* ============================================================
   CASTER DASHBOARD — light theme overrides
   ============================================================ */
body.light-theme .cd-title { color: #111827 !important; }
body.light-theme .cd-sub   { color: #6b7280 !important; opacity: 1 !important; }

body.light-theme .cd-stat-card {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
}
body.light-theme .cd-stat-card.mine {
  background: #f5f3ff !important;
  border-color: #ddd6fe !important;
}
body.light-theme .cd-stat-card.free {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
}
body.light-theme .cd-stat-val  { color: #111827 !important; }
body.light-theme .cd-stat-card.mine .cd-stat-val { color: #7c3aed !important; }
body.light-theme .cd-stat-card.free .cd-stat-val { color: #16a34a !important; }
body.light-theme .cd-stat-lbl  { color: #6b7280 !important; opacity: 1 !important; }

body.light-theme .cd-card {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
}
body.light-theme .cd-card.is-live {
  background: #fff5f5 !important;
  border-color: rgba(239,68,68,0.35) !important;
}
body.light-theme .cd-card.is-mine {
  background: #f5f3ff !important;
  border-color: rgba(139,92,246,0.3) !important;
}
body.light-theme .cd-card.is-free {
  border-color: rgba(34,197,94,0.3) !important;
}

body.light-theme .cd-date-day  { color: #111827 !important; }
body.light-theme .cd-date-time { color: #6b7280 !important; opacity: 1 !important; }
body.light-theme .cd-match-title { color: #111827 !important; }

body.light-theme .cd-tag.assigned  { background: rgba(139,92,246,0.1) !important; color: #6d28d9 !important; }
body.light-theme .cd-tag.free      { background: rgba(34,197,94,0.1)  !important; color: #15803d !important; }
body.light-theme .cd-tag.cocaster  { background: rgba(99,102,241,0.1) !important; color: #4338ca !important; }
body.light-theme .cd-tag.requester { background: rgba(0,0,0,0.05)     !important; color: #6b7280 !important; }

body.light-theme .cd-btn.claim        { border-color: rgba(22,163,74,0.5)  !important; color: #15803d !important; }
body.light-theme .cd-btn.claim:hover  { background: rgba(22,163,74,0.08)   !important; }
body.light-theme .cd-btn.release      { border-color: rgba(220,38,38,0.4)  !important; color: #dc2626 !important; }
body.light-theme .cd-btn.release:hover{ background: rgba(220,38,38,0.07)   !important; }
body.light-theme .cd-btn.add          { border-color: rgba(109,40,217,0.4) !important; color: #6d28d9 !important; }
body.light-theme .cd-btn.add:hover    { background: rgba(109,40,217,0.07)  !important; }
body.light-theme .cd-btn.remove       { border-color: rgba(220,38,38,0.3)  !important; color: #ef4444 !important; }

body.light-theme .cd-select {
  background: #f9fafb !important;
  border-color: #d1d5db !important;
  color: #111827 !important;
}
body.light-theme .cd-taken { color: #9ca3af !important; opacity: 1 !important; }
body.light-theme .cd-empty { color: #9ca3af !important; opacity: 1 !important; }

}