/* ============================================================
   LAN Manager — Thème adapté de la vitrine Univers-LAN
   Polices auto-hébergées (CSP default-src 'self' — aucun CDN)
   ============================================================ */
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Rajdhani'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('../fonts/rajdhani-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Rajdhani'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('../fonts/rajdhani-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('../fonts/rajdhani-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('../fonts/rajdhani-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('../fonts/rajdhani-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('../fonts/rajdhani-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Couleurs de la vitrine */
    --bg: #020203;
    --panel: rgba(255, 255, 255, .06);
    --panel-strong: rgba(255, 255, 255, .11);
    --ink: #f8fbff;
    --muted: #b3bac8;
    --line: rgba(255, 255, 255, .2);
    --blue: #006cff;
    --cyan: #4da2ff;
    --red: #ff1024;
    --steel: #151821;
    --max: 1120px;

    /* Déclinaisons pour compatibilité */
    --blue-900: #0a1628;      /* Fond header */
    --blue-800: #1a2747;      /* Titres section */
    --blue-700: #143c6e;      /* Arrière-plan elements */
    --blue-600: #1e5bbf;      /* Accents */
    --blue-500: #2b78ff;      /* Principal */
    --blue-400: #5c9bff;      /* Secondaire */
    --blue-100: #dbe9ff;      /* Fond clair */
    --white: #ffffff;
    --danger: #ff1024;        /* Aligné sur le rouge vitrine */
    --ok: #0f9d58;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 18% 10%, rgba(0, 108, 255, .26), transparent 18rem),
        radial-gradient(circle at 82% 20%, rgba(255, 16, 36, .3), transparent 18rem),
        radial-gradient(circle at 54% 70%, rgba(0, 108, 255, .16), transparent 25rem),
        linear-gradient(180deg, #020203 0%, #07080d 46%, #020203 100%);
}

h1, h2, h3, .brand-name, .stat-num, .cd-num {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .02em;
    font-weight: 1000;
    text-transform: uppercase;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--ink); }

.container { width: min(var(--max), 92%); margin: 0 auto; }
main.container { flex: 1; padding: 28px 0 60px; }
.muted { color: var(--muted); }

/* --- Fond animé supprimé, remplacé par le fond de la vitrine --- */
.bg-grid {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    display: none; /* Désactivé, car le fond est géré par le body */
}

/* ---------- Header adapté (Vitrine) ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(2, 3, 6, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    box-shadow: 0 14px 42px rgba(0, 0, 0, .42);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand:hover { color: var(--cyan); }
.brand-mark {
    display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--blue);
    color: var(--ink);
    font-size: 20px;
    box-shadow: -4px 0 18px rgba(0, 108, 255, .4), 4px 0 18px rgba(255, 16, 36, .34);
    animation: pulseMark 2.6s ease-in-out infinite;
}
@keyframes pulseMark { 50% { box-shadow: 0 0 30px rgba(43, 120, 255, .9); transform: scale(1.05); } }
.brand-name { font-size: 22px; text-transform: uppercase; }
.brand-name em { font-style: normal; color: var(--cyan); font-size: 15px; }

.main-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
    color: rgba(248, 251, 255, .76); font-weight: 950; font-size: .76rem; text-transform: uppercase;
    padding: 8px 13px; border-radius: 9px;
    transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .08); }
.main-nav a.active {
    background: var(--blue);
    color: var(--ink);
    box-shadow: -8px 0 24px rgba(0, 108, 255, .22), 8px 0 24px rgba(255, 16, 36, .14);
}
.main-nav .nav-admin { border: 1px solid var(--line); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); font-size: 20px; border-radius: 8px; padding: 4px 10px; cursor: pointer; }

.archive-banner {
    background: rgba(255, 16, 36, .1);
    color: var(--red);
    text-align: center; padding: 9px 14px; font-size: 14px;
    border-bottom: 1px solid var(--line);
    font-weight: 900;
    text-transform: uppercase;
}

/* ---------- Hero (Vitrine) ---------- */
.hero {
    text-align: center; padding: 54px 20px 40px;
    background: rgba(2, 3, 6, .6);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.hero h1 {
    font-size: clamp(32px, 6vw, 58px);
    margin: 8px 0 6px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--blue) 0 26%, #f8fbff 44%, var(--red) 68% 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(255, 16, 36, .24));
}
.hero-tag {
    display: inline-block;
    background: rgba(255, 16, 36, .1);
    border: 1px solid var(--red);
    padding: 5px 16px;
    border-radius: 2px;
    font-weight: 950;
    font-size: 14px;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.hero-desc { max-width: 640px; margin: 6px auto 0; color: var(--muted); }
.hero-meta { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 18px; font-weight: 500; }
.event-status { margin-top: 22px; font-weight: 600; font-size: 18px; }
.live-status { display: flex; align-items: center; justify-content: center; gap: 10px; }

/* Compte à rebours */
.countdown { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.cd-cell {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 12px 16px;
    min-width: 84px;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.cd-num { display: block; font-size: 34px; font-weight: 1000; font-variant-numeric: tabular-nums; color: var(--ink); }
.cd-lbl { font-size: 12px; text-transform: uppercase; opacity: .85; color: var(--muted); font-weight: 1000; }
.cd-caption { margin: 8px 0 0; opacity: .8; color: var(--muted); }

/* Badge live */
.live-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--red);
    color: #fff; font-size: 11px; font-weight: 1000;
    padding: 3px 10px; border-radius: 2px; letter-spacing: .6px;
    animation: livePulse 1.4s ease-in-out infinite;
}
.live-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
@keyframes livePulse { 50% { opacity: .55; } }

/* Bandeau annonce */
.announce {
    margin: 22px 0 0; padding: 14px 18px;
    background: rgba(255, 16, 36, .1);
    border: 1px solid var(--red);
    border-radius: 2px;
    font-weight: 500;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

/* Brackets secondaires */
.bracket-section-secondary {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.bracket-secondary-title {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.match-secondary {
    border: 1px solid var(--border-secondary);
    background: var(--bg-secondary);
}

/* Loser Bracket */
.bracket-section-loser {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #ff4444;
}

.loser-bracket-title {
    color: #ff4444;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.match-loser {
    border: 1px solid #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

.match-loser.match-done {
    background: rgba(255, 68, 68, 0.1);
}

.loser-champion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid #ff4444;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.loser-champion-cup {
    font-size: 2rem;
}

.loser-champion-label {
    font-size: 0.875rem;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.loser-champion-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ff4444;
}
/* ---------- Sections ---------- */
.section-title {
    font-size: 24px; margin: 34px 0 16px;
    text-transform: uppercase;
    color: var(--ink);
    display: flex; align-items: center; gap: 10px;
}
.page-title {
    font-size: 32px;
    text-transform: uppercase;
    color: var(--ink);
    margin: 6px 0 24px;
}
.title-sub {
    display: block;
    font-size: 15px;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0;
}
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.legend { color: var(--muted); font-size: 14px; margin-top: 26px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot-blue { background: var(--blue); }

/* ---------- Matchs ---------- */
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.match-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.match-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--cyan); }
.match-card.is-live { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 16, 36, .12), var(--shadow); }
.match-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.match-foot { margin: 8px 0 0; }
.match-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 8px; border-radius: 2px; font-weight: 600;
}
.match-row.winner {
    background: rgba(0, 108, 255, .14);
    color: var(--ink);
    border-left: 2px solid var(--blue);
}
.match-team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.match-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-score { font-family: 'Rajdhani', sans-serif; font-size: 20px; font-weight: 700; color: var(--cyan); }

/* Avatars */
.avatar {
    display: inline-grid; place-items: center; flex: 0 0 auto;
    width: 34px; height: 34px; border-radius: 2px; object-fit: cover;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff; font-weight: 700; font-size: 12px; font-family: 'Rajdhani', sans-serif;
}
.avatar-sm { width: 26px; height: 26px; font-size: 10px; border-radius: 2px; }
.avatar-lg { width: 84px; height: 84px; font-size: 24px; border-radius: 2px; }
.avatar-tbd { background: rgba(179, 186, 200, .3); }

/* ---------- Équipes ---------- */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.team-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.team-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--shadow-lg); }
.team-card h3 { margin: 12px 0 8px; font-size: 19px; color: var(--ink); }
.team-tags { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.chip {
    display: inline-block; background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px; font-weight: 600;
    padding: 3px 10px; border-radius: 2px;
}
.chip-blue {
    background: rgba(0, 108, 255, .14);
    border-color: var(--blue);
    color: var(--cyan);
}

/* ---------- Poules ---------- */
.pools-layout { display: grid; gap: 34px; }
.pool-block {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 20px;
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.standings { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.standings th, .standings td { padding: 9px 10px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14px; }
.standings th {
    background: rgba(2, 3, 6, .8);
    color: var(--ink);
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}
.standings th:first-child { border-radius: 2px 0 0 0; }
.standings th:last-child { border-radius: 0 2px 0 0; }
.standings td:nth-child(2) { text-align: left; }
.standings tr.qualified td { background: rgba(0, 108, 255, .14); }
.standings .pts { font-weight: 700; color: var(--cyan); font-size: 16px; }
.standing-team { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.round-title { color: var(--cyan); margin: 18px 0 10px; font-size: 17px; text-transform: uppercase; }

/* ---------- Bracket ---------- */
.bracket-scroll { overflow-x: auto; padding-bottom: 10px; }
.bracket { display: flex; gap: 34px; min-width: max-content; align-items: stretch; }
.bracket-round { display: flex; flex-direction: column; }
.bracket-round-title { text-align: center; color: var(--cyan); text-transform: uppercase; font-size: 15px; margin: 0 0 14px; }
.bracket-matches { display: flex; flex-direction: column; justify-content: space-around; gap: 16px; flex: 1; }
.bracket .match-card { width: 250px; }
.champion {
    display: flex; align-items: center; gap: 18px; justify-content: center;
    background: linear-gradient(135deg, rgba(0, 108, 255, .2), rgba(255, 16, 36, .2));
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 2px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.champion-cup { font-size: 42px; }
.champion-label { text-transform: uppercase; font-size: 12px; letter-spacing: 2px; opacity: .85; color: var(--muted); }
.champion-name { font-family: 'Rajdhani', sans-serif; font-size: 30px; font-weight: 700; color: var(--ink); }

/* ---------- Horaires ---------- */
.timeline { display: grid; gap: 26px; }
.day-block {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 18px 20px;
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.day-title { color: var(--cyan); text-transform: uppercase; margin: 0 0 12px; border-bottom: 2px solid rgba(0, 108, 255, .2); padding-bottom: 8px; }
.tl-item { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.tl-item:last-child { border-bottom: 0; }
.tl-time { flex: 0 0 110px; font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--cyan); font-size: 17px; }
.tl-body p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.tl-match-body { flex: 1; }

/* ---------- Infos / Archives ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 20px;
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.info-card h2 { color: var(--ink); margin-top: 0; font-size: 20px; }
.info-content { line-height: 1.65; }

.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.archive-card {
    display: block;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 20px;
    box-shadow: var(--shadow);
    color: var(--ink);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.archive-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--cyan); color: var(--ink); }
.archive-game { font-size: 12px; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: 1px; }
.archive-card h3 { margin: 6px 0; color: var(--ink); font-size: 21px; }
.archive-meta { display: flex; gap: 14px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.archive-champion { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; color: var(--cyan); }
.archive-cta { display: inline-block; margin-top: 14px; color: var(--cyan); font-weight: 600; font-size: 14px; }

/* Quick links accueil */
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 36px; }
.ql-card {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 24px 14px;
    box-shadow: var(--shadow);
    color: var(--ink);
    transition: transform .25s, box-shadow .25s;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.ql-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--cyan); }
.ql-icon { font-size: 30px; }
.ql-card span:last-child { color: var(--muted); font-size: 13px; }

/* ---------- Boutons / formulaires (Vitrine) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    background: linear-gradient(135deg, #006cff, #4da2ff);
    border: 1px solid transparent;
    border-radius: 2px;
    color: var(--ink);
    font-weight: 1000;
    font-size: .76rem;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
    transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(0, 108, 255, .32);
}
.btn-ghost {
    background: rgba(0, 108, 255, .13);
    border: 1px solid rgba(0, 108, 255, .48);
    color: var(--ink);
}
.btn-ghost:hover { background: rgba(0, 108, 255, .25); box-shadow: 0 18px 44px rgba(0, 108, 255, .2); }
.btn-danger {
    background: linear-gradient(135deg, #8e0010, #ff1024 58%, #ff4b5b);
    border-color: rgba(255, 16, 36, .9);
}
.btn-danger:hover { box-shadow: 0 18px 44px rgba(255, 16, 36, .32); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { font-size: 16px; padding: 13px 28px; min-height: 54px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.btn-row form { margin: 0; }

label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: .7rem;
    font-weight: 1000;
    text-transform: uppercase;
    color: var(--ink);
}
input, select, textarea {
    font-family: inherit;
    font-size: 14px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: rgba(2, 3, 6, .66);
    color: var(--ink);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(255, 16, 36, .9);
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 3px rgba(255, 16, 36, .14), -10px 0 28px rgba(0, 108, 255, .08);
}
.input-xs { width: 74px; }
.input-score { width: 58px; text-align: center; font-weight: 700; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.form-full { grid-column: 1 / -1; }
.inline-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.inline-form label { flex-direction: row; align-items: center; gap: 8px; }

/* ---------- Admin ---------- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 26px 0 60px; flex: 1; width: min(var(--max), 92%); margin: 0 auto; }
.admin-side { display: flex; flex-direction: column; gap: 6px; align-self: start; position: sticky; top: 80px; }
.admin-side a {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 11px 14px;
    font-weight: 950;
    color: var(--ink);
    font-size: .76rem;
    text-transform: uppercase;
    transition: all .2s;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.admin-side a:hover { border-color: var(--cyan); color: var(--cyan); transform: translateX(3px); }
.admin-side a.active {
    background: var(--blue);
    color: var(--ink);
    border-color: var(--blue);
    box-shadow: -8px 0 24px rgba(0, 108, 255, .22), 8px 0 24px rgba(255, 16, 36, .14);
}
.admin-main { min-width: 0; }

.admin-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.admin-card h2 { margin-top: 0; color: var(--ink); font-size: 20px; text-transform: uppercase; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th { color: var(--red); text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
.table-scroll { overflow-x: auto; }
.edit-teams { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.edit-team { font-weight: 600; min-width: 90px; }
.edit-vs { color: var(--muted); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card {
    background: rgba(0, 108, 255, .14);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.stat-num { display: block; font-size: 36px; font-weight: 1000; }
.stat-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: .85; color: var(--muted); }

.admin-team-row { border: 1px solid var(--line); border-radius: 2px; padding: 14px; margin-bottom: 14px; }
.admin-team-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 16px; }
.sep { border: 0; border-top: 1px dashed var(--line); margin: 18px 0; }

.flash {
    padding: 12px 16px;
    border-radius: 2px;
    margin-bottom: 16px;
    font-weight: 800;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.flash-ok {
    background: rgba(15, 157, 88, .14);
    border: 1px solid #0f9d58;
    color: #0f9d58;
}
.flash-error {
    background: rgba(255, 16, 36, .14);
    border: 1px solid var(--red);
    color: var(--red);
}
.flash-info {
    background: rgba(0, 108, 255, .14);
    border: 1px solid var(--blue);
    color: var(--cyan);
}

.sticky-save { position: sticky; bottom: 14px; text-align: center; margin-top: 8px; }
.sticky-save .btn { box-shadow: 0 8px 26px rgba(0, 108, 255, .4); }

/* Login */
.login-body { display: grid; place-items: center; min-height: 100vh; }
.login-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    border-radius: 2px;
    box-shadow: var(--shadow-lg);
    padding: 34px;
    width: min(400px, 92%);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.login-card form { display: grid; gap: 14px; margin-top: 18px; }
.login-brand { justify-content: center; color: var(--ink); }
.login-brand .brand-mark { background: var(--blue); color: var(--ink); }
.login-back { text-align: center; margin: 16px 0 0; }

/* ---------- Footer (Vitrine) ---------- */
.site-footer {
    background: rgba(2, 3, 6, .8);
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 18px 0;
    font-size: 13px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .brand-mark { animation: none; }
    .live-badge { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .two-cols, .info-grid { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-side { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
    .nav-toggle { display: block; margin-left: auto; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(2, 3, 6, .98); padding: 10px; flex-direction: column; border-bottom: 1px solid var(--line); }
    .main-nav.open { display: flex; }
    .cd-cell { min-width: 64px; padding: 9px 10px; }
    .cd-num { font-size: 24px; }
    .tl-item { flex-direction: column; gap: 4px; }
    .tl-time { flex: none; }
}