/* ============================================================
   Gaming & Caux — Design "Netflix" (inspiré de docs/maquette.html)
   Fond zinc-950, accent rouge, typos Outfit + Plus Jakarta Sans
   ============================================================ */

/* ---- Polices auto-hébergées (RGPD) ---- */
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/PlusJakartaSans-latin.woff2') format('woff2');
    font-weight: 200 800;
    font-display: swap;
}

/* ---- Variables ---- */
:root {
    --bg: #09090b;            /* zinc-950 */
    --surface: #18181b;       /* zinc-900 */
    --surface-2: #0c0c0f;     /* entre 950 et noir */
    --border: #27272a;        /* zinc-800 */
    --border-soft: rgba(39, 39, 42, 0.6);
    --text: #f1f5f9;          /* slate-100 */
    --muted: #a1a1aa;         /* zinc-400 */
    --muted-2: #71717a;       /* zinc-500 */
    --accent: #e50914;        /* rouge Netflix */
    --accent-hover: #f6121d;
    --accent-soft: rgba(229, 9, 20, 0.12);
    --accent-text: #f87171;   /* red-400 */
    --green: #34d399;
    --green-soft: rgba(52, 211, 153, 0.1);
    --amber: #fbbf24;
    --amber-soft: rgba(251, 191, 36, 0.1);
    --purple: #c084fc;
    --purple-soft: rgba(192, 132, 252, 0.1);
    --discord: #5865f2;
    --radius: 12px;
    --radius-lg: 16px;
    --container: 1280px;
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ---- Base ---- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--accent-text); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
}

img { max-width: 100%; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.muted { color: var(--muted); }
.label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--muted);
    margin: 0 0 0.3rem;
}

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #18181b;
}
.site-header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 72px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--text);
}
.brand-logo {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--accent);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.35);
    transition: transform 0.3s ease;
}
.brand:hover .brand-logo { transform: scale(1.08); }
.brand-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    color: var(--accent);
    line-height: 1.1;
    text-transform: uppercase;
}
.brand-tagline {
    display: block;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0.02em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); border-bottom-color: var(--accent); }
.nav-discord {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--discord) !important;
    color: #fff !important;
    padding: 0.55rem 1rem !important;
    border-radius: 8px;
    border-bottom: none !important;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.25);
}
.nav-discord:hover { filter: brightness(1.1); }

/* Menu mobile */
.nav-toggle { display: none; }
@media (max-width: 860px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--surface-2);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 0;
    }
    .nav-links li a {
        display: block;
        padding: 0.85rem 1.5rem;
        border-bottom: none;
    }
    .nav-links.open { display: flex; }
    .nav-toggle {
        display: grid;
        place-items: center;
        background: var(--surface);
        border: 1px solid var(--border);
        color: var(--text);
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 1.2rem;
        cursor: pointer;
    }
}

/* ---- Flash ---- */
.flash {
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid transparent;
}
.flash-success {
    background: var(--green-soft);
    color: var(--green);
    border-color: rgba(52, 211, 153, 0.25);
}
.flash-error {
    background: var(--accent-soft);
    color: var(--accent-text);
    border-color: rgba(229, 9, 20, 0.3);
}

/* ---- Boutons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}
.btn-primary:hover { background: var(--accent-hover); transform: scale(1.04); }
.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: #27272a; border-color: var(--muted-2); }
.btn-big { padding: 0.95rem 2rem; font-size: 0.9rem; }
.btn-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--accent-text);
    cursor: pointer;
    text-decoration: underline;
}
.btn-link.danger { color: var(--accent-text); }
.inline-form { display: inline; }

/* ---- Billboard (hero accueil) ---- */
.billboard {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    background-color: var(--bg);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #18181b;
    padding: 5rem 0 3.5rem;
    overflow: hidden;
}
.billboard::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 5%, rgba(9, 9, 11, 0.7) 35%, rgba(9, 9, 11, 0.25) 70%, rgba(9, 9, 11, 0.85) 100%);
}
@media (min-width: 768px) {
    .billboard::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, var(--bg) 12%, rgba(9, 9, 11, 0.8) 45%, rgba(9, 9, 11, 0) 80%);
    }
}
.billboard .container { position: relative; z-index: 2; width: 100%; }
.billboard-content { max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.billboard-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.badge-date {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.3);
}
.badge-place {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-soft);
    color: #d4d4d8;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}
.hero-brand {
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 5.2rem;
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.billboard h1 {
    width: 100%;
    max-width: 100%;
    font-size: 2.2rem;
    line-height: 1.02;
    margin: 0;
    color: var(--text);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.billboard h1 .accent { color: var(--accent-text); }
.billboard-sub,
.hero-description {
    color: #d4d4d8;
    font-size: 0.95rem;
    font-weight: 500;
    max-width: 640px;
    margin: 0;
}
.hero-next-title {
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: var(--accent-text);
    font-size: 2.2rem;
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.billboard-presence {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    max-width: 420px;
}
.presence-avatars { display: flex; }
.presence-avatars span {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.62rem;
    font-weight: 900;
    color: #fff;
    border: 2px solid var(--bg);
    margin-left: -8px;
}
.presence-avatars span:first-child { margin-left: 0; }
.presence-avatars .av-1 { background: var(--accent); }
.presence-avatars .av-2 { background: #4f46e5; }
.presence-avatars .av-3 { background: #059669; }
.presence-avatars .av-more { background: var(--border); color: var(--muted); font-size: 0.58rem; }
.billboard-presence p { margin: 0; font-size: 0.8rem; font-weight: 700; color: #e4e4e7; }
.billboard-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Panneau événements du billboard */
.billboard-events {
    background: rgba(24, 24, 27, 0.82);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.billboard-events h2 {
    margin: 0;
    font-size: 0.72rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.billboard-event-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
}
.billboard-event-row strong { display: block; font-size: 0.85rem; }
.billboard-event-row .seats { font-size: 0.7rem; color: var(--muted); }
.billboard-event-row .seats b { color: var(--accent-text); }
.billboard-event-row .btn-reserve {
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    background: #27272a;
    color: #e4e4e7;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}
.billboard-event-row .btn-reserve:hover { background: var(--accent); color: #fff; }

@media (max-width: 860px) {
    .hero-brand { font-size: 3.6rem; }
    .billboard h1 { font-size: 2.25rem; }
    .hero-next-title { font-size: 2.25rem; }
}

@media (max-width: 520px) {
    .hero-brand { font-size: 2.75rem; }
    .billboard h1 { font-size: 1.75rem; }
    .hero-next-title { font-size: 1.75rem; }
}

/* ---- Hero interne (pages) ---- */
.hero-small {
    position: relative;
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid #18181b;
    background:
        radial-gradient(ellipse 70% 90% at 15% 0%, rgba(229, 9, 20, 0.1) 0%, transparent 55%),
        var(--bg);
}
.hero-small h1 {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    margin: 0 0 0.5rem;
}
.hero-small.hero-with-media { min-height: 250px; display: flex; align-items: flex-end; overflow: hidden; background: var(--bg); }
.hero-small.hero-with-media::after { position: absolute; inset: 0; z-index: 1; content: ''; background: linear-gradient(90deg, rgba(9,9,11,.92) 0%, rgba(9,9,11,.66) 52%, rgba(9,9,11,.3) 100%); }
.hero-media-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focal-x, 50%) var(--hero-focal-y, 50%); }
.hero-small.hero-with-media .container { position: relative; z-index: 2; width: 100%; }
.hero-small.hero-with-media h1 { max-width: 800px; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.hero-small.hero-with-media .hero-sub, .hero-small.hero-with-media .label { color: #f4f4f5; text-shadow: 0 1px 8px rgba(0,0,0,.65); }
.hero-small.hero-with-media .hero-sub a { color: #fff; }
.hero-sub { color: var(--muted); font-size: 0.95rem; margin: 0; }
.hero-closed {
    background:
        radial-gradient(ellipse 70% 90% at 15% 0%, rgba(229, 9, 20, 0.2) 0%, transparent 55%),
        var(--bg);
}

/* ---- Sections ---- */
.section { padding-top: 3rem; padding-bottom: 3rem; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.section-head h2, .section h2 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem;
}
.section-head a {
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---- Cartes événements ---- */
.event-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.event-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: var(--text);
    background: linear-gradient(180deg, #19191c 0%, #141416 100%);
    border: 1px solid var(--border);
    border-radius: 7px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.event-card:hover {
    transform: translateY(-3px);
    border-color: #52525b;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .36);
}
.event-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.event-card-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface-2);
}
.event-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.event-card:hover .event-card-media img { transform: scale(1.025); }
.event-card-body {
    display: flex;
    flex: 1;
    align-items: flex-start;
    flex-direction: column;
    padding: .85rem .9rem .75rem;
}
.event-card-category {
    margin: 0 0 .2rem;
    color: var(--accent-text);
    font-size: .61rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.event-card h2,
.event-card h3 {
    margin: 0;
    color: var(--text);
    font: 800 1.3125rem/1.2 var(--font-display);
}
.event-card-excerpt {
    display: -webkit-box;
    margin: .42rem 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: .73rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.event-card-price { margin-top: .5rem; padding: .2rem .46rem; color: #fcd34d; background: var(--amber-soft); border: 1px solid rgba(251, 191, 36, .2); border-radius: 4px; font-size: .61rem; font-weight: 800; }
.event-card-footer {
    display: flex;
    flex-direction: column;
    color: var(--muted);
    background: rgba(9, 9, 11, .45);
    border-top: 1px solid var(--border);
    font-size: .66rem;
}
.event-card-date { display: flex; min-width: 0; align-items: center; gap: .45rem; padding: .65rem .9rem .25rem; color: #d4d4d8; }
.event-card-date svg { flex: 0 0 15px; }
.event-card-date span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-card-availability { min-height: 1.35rem; padding: 0 .9rem .6rem; color: #86efac; font-weight: 700; }
.event-card-availability.is-full { color: var(--accent-text); }
.event-card-past .event-card-availability { color: var(--muted); }
.event-card-cta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem .9rem; color: #f4f4f5; border-top: 1px solid var(--border); font-size: .7rem; font-weight: 800; }
.event-card-cta svg { flex: 0 0 15px; color: var(--accent-text); transition: transform .2s ease; }
.event-card:hover .event-card-cta svg { transform: translateX(3px); }

/* ---- Tags / badges ---- */
.tag, .card-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tag-open { background: var(--green-soft); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.2); }
.tag-closed { background: var(--accent-soft); color: var(--accent-text); border: 1px solid rgba(229, 9, 20, 0.25); }
.tag-special { background: var(--purple-soft); color: var(--purple); border: 1px solid rgba(192, 132, 252, 0.2); }
.tag-exceptional { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.2); }
.card-tag-official { background: var(--accent); color: #fff; }
.card-tag-limited { background: #d97706; color: #fff; }

/* ---- Agenda ---- */
.next-session-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    background: linear-gradient(120deg, rgba(229, 9, 20, 0.12), rgba(24, 24, 27, 0.9));
    border: 1px solid rgba(229, 9, 20, 0.25);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.75rem;
    margin-bottom: 2rem;
}
.next-session-banner .big {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 900;
    margin: 0.15rem 0;
}
.next-session-events { display: grid; gap: .12rem; margin-top: .35rem; }
.next-session-events a { color: #d4d4d8; font-size: .76rem; font-weight: 700; text-decoration: none; }
.next-session-events a:hover { color: var(--accent-text); text-decoration: underline; }
.agenda-table-wrap { overflow: hidden; }
.agenda-table { width: 100%; border-collapse: collapse; background: transparent; }
.agenda-table td { padding: .9rem .85rem; vertical-align: top; border-bottom: 1px solid #18181b; font-size: .78rem; transition: background .2s ease; }
.agenda-table td:first-child { width: 205px; }
.agenda-table td:nth-child(2) { width: 145px; }
.agenda-table td:nth-child(3) { width: 210px; }
.agenda-table td:last-child { width: 125px; }
.agenda-table td > strong,
.agenda-date-copy strong { display: block; font-size: .82rem; }
.agenda-date-copy small { display: block; margin-top: .12rem; color: var(--muted); font-size: .68rem; }
.agenda-table tr:hover td { background: #18181b; }
.session-closed { opacity: .55; }
.session-description { display: grid; gap: .18rem; margin-top: .25rem; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.session-description p { margin: 0; }
.session-description a { color: #d4d4d8; font-weight: 700; text-decoration: none; }
.session-description a:hover { color: var(--accent-text); text-decoration: underline; }
.session-link {
    white-space: nowrap;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
@media (max-width: 760px) {
    .next-session-banner { align-items: stretch; padding: 1.2rem; }
    .next-session-banner .btn { width: 100%; text-align: center; }
    .agenda-table-wrap { overflow: visible; border: 0; }
    .agenda-table,
    .agenda-table tbody,
    .agenda-table tr,
    .agenda-table td { display: block; width: 100%; }
    .agenda-table { background: transparent; }
    .agenda-table thead { display: none; }
    .agenda-table tr { margin-bottom: .4rem; overflow: hidden; background: transparent; border-bottom: 1px solid #18181b; }
    .agenda-table td,
    .agenda-table td:first-child,
    .agenda-table td:nth-child(2),
    .agenda-table td:nth-child(3),
    .agenda-table td:last-child { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: .75rem; width: 100%; padding: .7rem .85rem; border: 0; }
    .agenda-table td:not(:last-child) { border: 0; }
    .agenda-table td::before { content: attr(data-label); color: var(--muted); font-size: .59rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
    .agenda-table td > strong,
    .agenda-table td > .agenda-date-copy,
    .agenda-table td > .tag,
    .agenda-table td > .session-description,
    .agenda-table td > .session-link { grid-column: 2; }
    .session-description { margin-top: 0; }
    .session-link { white-space: normal; }
}

/* ---- Page soirée / notices ---- */
.notice {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.4rem;
    margin: 1.25rem 0;
    font-size: 0.92rem;
}
.notice-closed { border-color: rgba(229, 9, 20, 0.35); background: rgba(229, 9, 20, 0.06); }
.notice-confirm { border-color: rgba(52, 211, 153, 0.3); background: var(--green-soft); }

.attendance-banner {
    background: var(--green-soft);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: #bbf7d0;
    border-radius: var(--radius);
    padding: 0.9rem 1.25rem;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}

/* Qui vient */
.attendees { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 1.25rem; }
.attendee-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 700;
}
.attendee-maybe { opacity: 0.55; }

.event-list { list-style: none; padding: 0; }
.event-list li { padding: 0.65rem 0; border-bottom: 1px solid #18181b; font-size: 0.92rem; }

/* ---- Vote public ---- */
.vote-zone {
    position: relative;
    margin: 1.5rem 0 2rem;
}
.vote-prefill-notice { margin-bottom: 1rem; }
.vote-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.vote-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.vote-form legend {
    margin: 0 0 0.7rem;
    padding: 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.vote-step-card {
    position: relative;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    overflow: hidden;
    background: linear-gradient(145deg, #161619, #121215);
    border: 1px solid rgba(63, 63, 70, 0.72);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}
.vote-step-heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
}
.vote-step-heading h2,
.section .vote-step-heading h2 {
    margin: 0;
    color: var(--accent-text);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.3;
    text-transform: uppercase;
}
.vote-step-heading p {
    margin: 0 0 0 auto;
    color: var(--muted);
    font-size: 0.72rem;
}
.vote-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: var(--accent-text);
    background: var(--accent-soft);
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 900;
}

.attendance-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}
.attendance-option {
    position: relative;
    min-width: 0;
    cursor: pointer;
}
.attendance-option input,
.vote-game-choice > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.attendance-option > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 64px;
    padding: 0.65rem;
    color: var(--muted);
    background: rgba(9, 9, 11, 0.56);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: clamp(0.76rem, 1.5vw, 0.88rem);
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.attendance-option > span > span { font-size: 1.05rem; }
.attendance-option:hover > span { border-color: var(--muted-2); color: var(--text); }
.attendance-option input:checked + span {
    color: #fff;
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(229, 9, 20, 0.16);
}
.attendance-option input:focus-visible + span,
.vote-game-choice > input:focus-visible + .vote-game-check {
    outline: 2px solid var(--accent-text);
    outline-offset: 3px;
}

.group-size-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.group-size-field > label,
.vote-form .field > label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.quantity-control,
.vote-weight-control {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 3px;
    background: rgba(9, 9, 11, 0.86);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.quantity-control { justify-content: space-between; }
.quantity-control button,
.vote-weight-control button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--text);
    background: var(--surface);
    border: 0;
    border-radius: 9px;
    font: 800 1.05rem/1 var(--font-body);
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.16s ease, transform 0.16s ease;
}
.quantity-control button:hover,
.vote-weight-control button:hover { background: #303036; }
.quantity-control button:active,
.vote-weight-control button:active { transform: scale(0.94); }
.quantity-control button:focus-visible,
.vote-weight-control button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.quantity-control input,
.vote-weight-control input {
    min-width: 48px;
    max-width: 74px;
    height: 44px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    font: 800 0.95rem/1 var(--font-body);
    text-align: center;
    appearance: textfield;
}
.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button,
.vote-weight-control input::-webkit-inner-spin-button,
.vote-weight-control input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.quantity-control input:focus,
.vote-weight-control input:focus { outline: none; }

.vote-attendance-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-soft);
}
.vote-attendance-summary > strong {
    flex: 0 0 auto;
    padding-top: 0.2rem;
    color: var(--muted);
    font-size: 0.76rem;
}
.vote-attendee-list,
.vote-game-participants {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
}
.vote-person-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.48rem;
    color: #d4d4d8;
    background: rgba(39, 39, 42, 0.74);
    border: 1px solid rgba(82, 82, 91, 0.55);
    border-radius: 7px;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.2;
}
.vote-person-chip.is-current {
    color: var(--accent-text);
    background: var(--accent-soft);
    border-color: rgba(248, 113, 113, 0.38);
}
.vote-person-chip.is-maybe:not(.is-current) { opacity: 0.65; }

.vote-games-card { overflow: hidden; }
.vote-group-context {
    margin: 0 0 0.9rem;
    padding: 0.55rem 0.75rem;
    color: #fcd34d;
    background: var(--amber-soft);
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 9px;
    font-size: 0.75rem;
}
.vote-group-context strong { color: #fff; }
.vote-game-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.vote-game-row {
    --vote-progress: 0%;
    position: relative;
    min-height: 82px;
    overflow: hidden;
    background: rgba(9, 9, 11, 0.42);
    border: 1px solid rgba(63, 63, 70, 0.62);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.vote-game-row:hover { border-color: rgba(113, 113, 122, 0.78); }
.vote-game-row.is-selected {
    background: rgba(24, 24, 27, 0.64);
    border-color: rgba(229, 9, 20, 0.62);
    box-shadow: 0 0 18px rgba(229, 9, 20, 0.08);
}
.vote-game-progress {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--vote-progress);
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.08), rgba(229, 9, 20, 0.2));
    pointer-events: none;
    transition: width 0.35s ease;
}
.vote-game-row.has-votes .vote-game-progress {
    border-right: 2px solid rgba(248, 113, 113, 0.82);
    box-shadow: 4px 0 12px rgba(229, 9, 20, 0.16);
}
.vote-game-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 80px;
    padding: 0.8rem 0.9rem;
}
.vote-game-choice {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    flex: 1 1 auto;
    gap: 0.8rem;
    min-width: 0;
    color: inherit;
    cursor: pointer;
    text-transform: none;
}
.vote-game-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: transparent;
    background: rgba(9, 9, 11, 0.9);
    border: 1px solid #52525b;
    border-radius: 11px;
    transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.vote-game-check svg,
.vote-submit-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.vote-game-choice:hover .vote-game-check { border-color: var(--accent-text); }
.vote-game-choice > input:checked + .vote-game-check {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(229, 9, 20, 0.3);
}
.vote-game-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.vote-game-name {
    overflow-wrap: anywhere;
    color: #fff;
    font-size: clamp(0.9rem, 1.7vw, 1rem);
    letter-spacing: 0.01em;
}
.vote-game-total {
    margin-top: 0.05rem;
    color: #d4d4d8;
    font-size: 0.73rem;
    font-weight: 700;
}
.vote-user-weight { margin-left: 0.35rem; color: var(--accent-text); }
.vote-game-participants {
    justify-content: flex-start;
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(63, 63, 70, 0.55);
}
.vote-game-participants-label {
    margin-right: 0.15rem;
    color: var(--muted-2);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.vote-no-participant {
    color: var(--muted-2);
    font-size: 0.66rem;
    font-style: italic;
}
.vote-weight-control {
    flex: 0 0 auto;
    gap: 0.3rem;
}
.vote-weight-control input {
    width: 42px;
    min-width: 42px;
    color: var(--accent-text);
}
.vote-weight-control > span {
    margin-left: -0.35rem;
    padding-right: 0.3rem;
    color: var(--accent-text);
    font-size: 0.7rem;
    font-weight: 800;
}
.vote-absence-cover {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: var(--text);
    background: rgba(9, 9, 11, 0.93);
    text-align: center;
    backdrop-filter: blur(3px);
}
.vote-absence-cover[hidden] { display: none; }
.vote-absence-cover > span { font-size: 2rem; }
.vote-absence-cover strong { margin-top: 0.35rem; font-size: 0.92rem; }
.vote-absence-cover p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.76rem; }

.vote-form .field { display: flex; flex-direction: column; gap: 0.1rem; }
.vote-form .field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.vote-form .field-row .field { flex: 1; min-width: 220px; }
.vote-form input[type="text"],
.vote-form input[type="email"],
.vote-form input[type="number"],
.vote-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 0.7rem 0.85rem;
    color: var(--text);
    background: rgba(9, 9, 11, 0.82);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font: 600 0.86rem/1.3 var(--font-body);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.vote-form input[type="text"]:focus,
.vote-form input[type="email"]:focus,
.vote-form input[type="number"]:focus,
.vote-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.vote-form textarea { resize: vertical; }
.vote-form input[aria-invalid="true"] { border-color: var(--accent-text); }
.vote-form .hint {
    margin: 0.2rem 0 0;
    color: var(--muted-2);
    font-size: 0.7rem;
    font-weight: 500;
}
.field-error {
    margin: 0.25rem 0 0;
    color: var(--accent-text);
    font-size: 0.72rem;
    font-weight: 700;
}
.reminder-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}
.reminder-check input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0.05rem 0 0;
    accent-color: var(--accent);
}
.vote-submit-button {
    width: 100%;
    min-height: 50px;
    margin-top: 0.3rem;
    gap: 0.55rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.vote-submit-button:disabled { opacity: 0.7; cursor: wait; }
.vote-submit-button.is-loading svg { animation: vote-pulse 0.8s ease-in-out infinite alternate; }
.vote-submit-status {
    min-height: 1.2rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}
.vote-flow.is-saved .vote-submit-status { color: #86efac; }

.vote-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.7rem;
    width: min(380px, calc(100vw - 2rem));
    padding: 0.9rem;
    background: #18181b;
    border: 1px solid rgba(52, 211, 153, 0.32);
    border-radius: var(--radius);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
}
.vote-toast[hidden] { display: none; }
.vote-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #86efac;
    background: var(--green-soft);
    border-radius: 8px;
    font-weight: 900;
}
.vote-toast strong { display: block; font-size: 0.78rem; }
.vote-toast p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.7rem; line-height: 1.45; }
.vote-toast button {
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
}
.vote-toast button:hover { color: #fff; background: var(--surface); }
.vote-game-list.is-readonly .vote-game-content { padding-left: 1rem; }

@keyframes vote-pulse {
    from { opacity: 0.45; transform: scale(0.88); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 700px) {
    .vote-step-heading-split { flex-wrap: wrap; }
    .vote-step-heading-split p {
        flex-basis: 100%;
        margin-left: calc(22px + 0.55rem);
    }
    .vote-attendance-summary { flex-direction: column; gap: 0.65rem; }
    .vote-attendee-list { justify-content: flex-start; }
    .vote-game-content { align-items: stretch; flex-direction: column; gap: 0.6rem; }
    .vote-weight-control {
        align-self: stretch;
        justify-content: space-between;
        margin-left: calc(44px + 0.8rem);
    }
    .vote-weight-control input { flex: 1 1 auto; max-width: none; }
}

@media (max-width: 480px) {
    .attendance-options { gap: 0.4rem; }
    .attendance-option > span {
        flex-direction: column;
        gap: 0.15rem;
        min-height: 68px;
        padding: 0.45rem 0.2rem;
        font-size: 0.69rem;
        text-align: center;
    }
    .group-size-grid { gap: 0.65rem; }
    .vote-game-content { padding: 0.75rem; }
    .vote-game-choice { gap: 0.65rem; }
    .vote-weight-control { margin-left: calc(44px + 0.65rem); }
    .vote-form .field-row .field { min-width: 100%; }
    .vote-toast { right: 0.75rem; bottom: 0.75rem; width: calc(100vw - 1.5rem); }
}

@media (prefers-reduced-motion: reduce) {
    .event-card,
    .event-card-media img,
    .event-card-cta svg,
    .vote-game-progress,
    .vote-game-row,
    .vote-game-check,
    .attendance-option > span,
    .quantity-control button,
    .vote-weight-control button { transition: none; }
    .vote-submit-button.is-loading svg { animation: none; }
}

/* ---- Page événement ---- */
.event-detail { padding-top: 1.35rem; }
.event-detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; padding-bottom: 2.6rem; border-bottom: 1px solid var(--border); }
.event-detail-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--border); border-radius: 7px; }
.event-detail-content { padding-top: .2rem; }
.event-detail-category { margin: 0 0 .45rem; color: var(--accent-text); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.event-detail h1 { margin: 0; font-size: clamp(2.35rem, 4.6vw, 3.8rem); line-height: 1.02; }
.event-detail-facts { display: grid; gap: .8rem; margin-top: 1.35rem; }
.event-detail-facts p { display: flex; align-items: flex-start; gap: .7rem; margin: 0; color: #d4d4d8; }
.event-detail-facts svg { flex: 0 0 18px; margin-top: .15rem; color: var(--accent-text); }
.event-detail-facts span { display: flex; flex-direction: column; min-width: 0; }
.event-detail-facts strong { font-size: .78rem; }
.event-detail-facts small { margin-top: .12rem; color: var(--muted); font-size: .68rem; }
.event-detail-statuses { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.event-registered-tag { color: #d4d4d8; background: #222226; border: 1px solid var(--border); }
.event-detail-actions { display: grid; gap: .65rem; margin-top: 1.3rem; }
.event-detail-actions .btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; font-size: .7rem; }
.event-detail-primary-action { justify-self: start; min-width: min(100%, 230px); }
.event-detail-secondary-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.event-detail-actions button { font-family: var(--font-body); cursor: pointer; }
.event-content-section { padding-top: 2rem; }
.event-content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: clamp(1.25rem, 3vw, 2rem); align-items: stretch; }
.event-description { min-width: 0; font-size: .95rem; line-height: 1.8; }
.event-description img { border-radius: var(--radius); }
.event-description h2, .event-description h3 { margin-top: 1.75rem; }
.event-description > h2:first-child { margin-top: 0; }
.event-description-panel { padding: 1.3rem 1.45rem; background: #141416; border: 1px solid var(--border); border-radius: 7px; }
.event-practical-info { position: static; align-self: stretch; height: 100%; margin: 0; padding: 1.3rem; box-sizing: border-box; background: #141416; border-color: var(--border); border-radius: 7px; }
.event-practical-info h2 { margin: 0 0 1rem; }
.event-practical-list { display: grid; gap: .85rem; margin: 0; }
.event-practical-list div { padding-bottom: .85rem; border-bottom: 1px solid var(--border); }
.event-practical-list dt { margin-bottom: .22rem; color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.event-practical-list dd { margin: 0; color: #e4e4e7; font-size: .78rem; font-weight: 700; line-height: 1.55; }
.event-practical-list dd span { color: var(--muted); font-weight: 500; }
.event-practical-actions { display: grid; gap: .55rem; margin-top: 1rem; }
.event-practical-actions .btn { width: 100%; }
.event-rosters { margin-top: 2rem; }
.event-section-heading .label { margin-bottom: .3rem; }
.event-section-heading h2 { margin: 0; }
.event-roster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.event-roster-grid-single { grid-template-columns: 1fr; }
.event-roster-card { padding: 1.2rem; background: #141416; border: 1px solid var(--border); border-radius: 7px; }
.event-roster-card header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--border); }
.event-roster-card h3 { margin: 0; font-size: .9rem; }
.event-roster-card header > span { color: var(--muted); font-size: .66rem; font-weight: 800; }
.event-roster-card .attendees { margin: .9rem 0 0; }
.event-roster-empty { margin: .9rem 0 0; color: var(--muted); font-size: .75rem; }
.event-waitlist { display: grid; gap: .55rem; margin: .9rem 0 0; padding: 0; list-style: none; counter-reset: waitlist; }
.event-waitlist li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .65rem .7rem; background: #1a1a1d; border-radius: 6px; counter-increment: waitlist; }
.event-waitlist li::before { content: counter(waitlist); display: grid; width: 1.8rem; height: 1.8rem; place-items: center; color: var(--accent-text); background: var(--accent-soft); border-radius: 50%; font-size: .68rem; font-weight: 900; }
.event-waitlist li > span { min-width: 0; overflow: hidden; font-size: .78rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.event-waitlist li > span strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.event-waitlist li > span em { display: block; overflow: hidden; margin-top: .16rem; color: var(--muted); font-size: .62rem; font-style: normal; font-weight: 500; text-overflow: ellipsis; }
.event-waitlist small { color: var(--muted); font-size: .65rem; }
.event-registration-section { margin-top: 2rem; scroll-margin-top: 5.5rem; }
.event-content-section .event-registration-card { max-width: none; padding: clamp(1rem, 2.5vw, 1.5rem); background: #141416; border: 1px solid var(--border); border-radius: 7px; }
.event-registration-heading { margin-bottom: 1.2rem; }
.event-registration-heading .label { margin-bottom: .3rem; }
.event-registration-heading h2 { margin: 0; }
.event-registration-heading > p:last-child { margin: .45rem 0 0; color: var(--muted); font-size: .75rem; }
.event-registration-card .notice { margin-bottom: 1.1rem; }
.event-registration-danger { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.event-registration-danger strong { display: block; font-size: .78rem; }
.event-registration-danger p { margin: .2rem 0 0; color: var(--muted); font-size: .68rem; }
.event-cancel-dialog { width: min(92vw, 520px); max-height: 90vh; padding: 0; overflow: auto; color: var(--text); background: #171719; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 24px 80px rgba(0, 0, 0, .65); }
.event-cancel-dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(3px); }
.event-cancel-dialog-content { padding: 1.5rem; }
.event-cancel-dialog-content .label { margin-bottom: .35rem; }
.event-cancel-dialog-content h2 { margin: 0; }
.event-cancel-dialog-content > p:not(.label) { margin: .65rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.event-cancel-dialog-actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: 1.4rem; }
.event-cancel-dialog-actions form { margin: 0; }
.btn-danger { color: #fff; background: #b91c1c; }
.btn-danger:hover { background: #dc2626; }

/* ---- Univers (accueil) ---- */
.universe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 1.1rem;
    margin-top: 1.25rem;
}
.universe-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.4rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.universe-card:hover { transform: translateY(-3px); border-color: var(--border); }
.universe-card span { font-size: 1.9rem; }
.universe-card h3 { margin: 0.6rem 0 0.4rem; font-size: 1rem; font-family: var(--font-body); font-weight: 800; }
.universe-card p { margin: 0; color: var(--muted); font-size: 0.82rem; }

/* ---- Bloc local / rejoindre ---- */
.join-section { padding-bottom: 4.5rem; }
.join-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    background: linear-gradient(110deg, var(--surface) 0%, rgba(24, 24, 27, 0.5) 55%, var(--surface-2) 100%);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
}
.join-card h2 { margin: 0 0 0.6rem; font-size: 1.35rem; }
.join-card p { font-size: 0.92rem; max-width: 580px; }
.join-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---- Infos pratiques ---- */
.practical-info {
    margin-top: 0rem;
    padding: 1.4rem 1.6rem;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
}
.practical-info h2 { font-size: 1.1rem; margin-top: 0; }
.practical-info p { font-size: 0.9rem; margin: 0.5rem 0; }

/* ---- Contenu CMS ---- */
.cms-content { max-width: 720px; line-height: 1.8; font-size: 0.97rem; }
.cms-content img { border-radius: var(--radius); }
.cms-content blockquote {
    border-left: 3px solid var(--accent);
    margin-left: 0;
    padding-left: 1.25rem;
    color: var(--muted);
}
.cms-content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.cms-content h2, .cms-content h3 { margin-top: 2rem; }

.separator { border: none; border-top: 1px solid #18181b; margin: 2rem 0; }

/* ---- Catalogue public des jeux ---- */
.catalog-hero {
    padding: 3.2rem 0 2.4rem;
    background: linear-gradient(180deg, #111114 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border-soft);
}
.catalog-hero-inner {
    max-width: 760px;
    text-align: center;
}
.catalog-hero h1 { margin: 0; font-size: clamp(2.35rem, 5vw, 3.65rem); line-height: 1; }
.catalog-hero p { margin: 1rem auto 0; color: var(--muted); font-size: .95rem; }
.catalog-section { padding-top: 2rem; }
.catalog-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 260px auto;
    align-items: end;
    gap: .85rem;
}
.catalog-filters label { display: flex; flex-direction: column; gap: 0.4rem; }
.catalog-filters input,
.catalog-filters select {
    width: 100%; min-height: 48px; padding: .75rem .9rem;
    color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 7px;
    font: 600 .82rem/1.3 var(--font-body);
}
.catalog-filters input:focus,
.catalog-filters select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.catalog-filter-actions { display: flex; gap: 0.5rem; }
.catalog-filter-actions .btn { min-height: 46px; display: inline-flex; align-items: center; }
.catalog-results-head { margin: 1.15rem 0 .8rem; }
.catalog-results-head p { margin: 0; color: var(--muted); font-size: .76rem; }
.game-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.game-card-grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-card {
    display: flex; min-width: 0; overflow: hidden; flex-direction: column;
    color: var(--text); background: linear-gradient(180deg, #19191c 0%, #141416 100%);
    border: 1px solid var(--border); border-radius: 7px; text-decoration: none;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.game-card:hover { transform: translateY(-3px); border-color: #52525b; box-shadow: 0 18px 42px rgba(0, 0, 0, .36); }
.game-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.game-card > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.game-card-body { flex: 1; padding: .85rem .9rem .75rem; }
.game-card-category,
.game-card-body .game-card-category { margin: 0 0 .2rem; color: var(--accent-text); font-size: .61rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.game-card h2, .game-card h3 { margin: 0; color: var(--text); font: 800 1.3125rem/1.2 var(--font-display); }
.game-card-description { display: -webkit-box; margin: .42rem 0 0; overflow: hidden; color: var(--muted); font-size: .73rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.game-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.game-tags span, .game-tags a { padding: .2rem .46rem; color: var(--muted); background: #222226; border: 1px solid var(--border); border-radius: 4px; font-size: .6rem; font-weight: 700; text-decoration: none; }
.game-tags a:hover { color: var(--text); border-color: var(--muted-2); }
.game-card-schedule { display: flex; min-height: 42px; align-items: center; gap: .45rem; padding: .65rem .9rem; overflow: hidden; color: var(--muted); background: rgba(9,9,11,.45); border-top: 1px solid var(--border); font-size: .66rem; white-space: nowrap; }
.game-card-schedule svg { flex: 0 0 15px; }
.game-card-schedule span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.game-card-schedule strong { color: #d4d4d8; }
.catalog-empty { padding: 4rem 1.5rem; text-align: center; background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.catalog-empty h2 { margin: 0; }
.catalog-empty p { margin: 0.5rem auto 1.25rem; color: var(--muted); }

.game-detail { padding-top: 1.35rem; padding-bottom: 4rem; }
.game-breadcrumb { display: flex; gap: 0.55rem; align-items: center; margin-bottom: 1.25rem; color: var(--muted); font-size: 0.75rem; }
.game-breadcrumb a { color: var(--muted); }
.game-detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(310px, .85fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.game-detail-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--border); border-radius: 7px; }
.game-detail-content { padding-top: .25rem; }
.game-detail-category { margin: .7rem 0 0; color: var(--accent-text); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.game-detail h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; }
.game-detail-description { margin: 1rem 0 0; color: #d4d4d8; font-size: .94rem; line-height: 1.75; }
.game-tags-large { margin-top: 1.25rem; }
.game-tags-large a { padding: 0.38rem 0.7rem; font-size: 0.7rem; }
.game-schedule-section { padding-top: 2.2rem; }
.game-schedule-section > h2 { margin: 0 0 1rem; font-size: 1.45rem; }
.game-schedule-list { overflow: hidden; border: 1px solid var(--border); border-radius: 7px; }
.game-schedule-head,
.game-schedule-row { display: grid; grid-template-columns: minmax(300px, 1.35fr) minmax(170px, .8fr) minmax(115px, .5fr) minmax(160px, auto); gap: 1rem; }
.game-schedule-head { align-items: center; padding: .65rem 1.15rem; color: var(--muted); background: #19191c; border-bottom: 1px solid var(--border); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.game-schedule-head span:last-child { text-align: center; }
.game-schedule-row { align-items: start; padding: 1rem 1.15rem; background: #141416; border-bottom: 1px solid var(--border); }
.game-schedule-row:last-child { border-bottom: 0; }
.game-schedule-date { display: flex; align-items: flex-start; gap: 1rem; min-width: 0; }
.game-date-tile { display: flex; flex: 0 0 54px; flex-direction: column; align-items: center; color: #f4f4f5; line-height: 1; }
.game-date-tile > span { color: var(--accent-text); font-size: .61rem; font-weight: 900; letter-spacing: .06em; }
.game-date-tile > strong { margin-top: .12rem; font-size: 1.8rem; line-height: .95; }
.game-date-tile > small { margin-top: .28rem; color: #d4d4d8; font-size: .56rem; font-weight: 800; letter-spacing: .04em; }
.game-date-copy { min-width: 0; padding-top: .45rem; }
.game-date-copy > strong { display: block; color: #f4f4f5; font-size: .8rem; line-height: 1.35; }
.game-schedule-row small { display: block; margin-top: .25rem; color: var(--muted); font-size: .65rem; line-height: 1.4; }
.game-date-copy > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-schedule-status { padding-top: .45rem; }
.game-poll-status { color: var(--muted); font-size: .72rem; font-weight: 700; }
.game-poll-status::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: .4rem; background: var(--muted-2); border-radius: 50%; }
.game-poll-status.is-open { color: #86efac; }
.game-poll-status.is-open::before { background: var(--green); }
.game-interest-count { display: flex; align-items: flex-start; gap: .45rem; padding-top: .38rem; color: #e4e4e7; }
.game-interest-count > span { display: flex; flex-direction: column; }
.game-interest-count strong { font-size: 1.15rem; line-height: 1; }
.game-interest-count small { margin-top: .28rem; }
.game-schedule-action { display: flex; justify-content: stretch; padding-top: .15rem; }
.game-schedule-row .btn { width: 100%; min-width: 150px; text-align: center; }
.game-vote-unavailable { color: var(--muted-2); font-size: .7rem; font-weight: 700; }
.game-interest-note { display: flex; align-items: flex-start; gap: .9rem; margin-top: .75rem; padding: 1rem 1.15rem; color: var(--muted); background: #141416; border: 1px solid var(--border); border-radius: 7px; font-size: .74rem; line-height: 1.6; }
.game-interest-note > svg { flex: 0 0 24px; color: #a1a1aa; }
.game-interest-note strong { color: #e4e4e7; }
.game-schedule-empty { padding: 2.5rem; text-align: center; background: #141416; border: 1px dashed var(--border); border-radius: 7px; }
.game-schedule-empty h3 { margin: 0; }
.game-schedule-empty p { margin: .5rem 0 0; color: var(--muted); }
.game-discord-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 1rem; padding: 1.5rem; background: linear-gradient(100deg, #19191c, #141416); border: 1px solid var(--border); border-radius: 7px; }
.game-discord-cta h2 { margin: 0; font-size: 1.05rem; }
.game-discord-cta p { margin: .3rem 0 0; color: var(--muted); font-size: .75rem; }
.game-discord-button { color: #fff; background: var(--discord); }
.game-discord-button:hover { filter: brightness(1.1); }

@media (max-width: 900px) {
    .catalog-filters { grid-template-columns: 1fr 220px; }
    .catalog-filter-actions { grid-column: 1 / -1; }
    .event-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-detail-grid { grid-template-columns: 1fr; }
    .event-content-grid { grid-template-columns: 1fr; }
    .event-practical-info { position: static; height: auto; }
    .game-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .game-detail-grid { grid-template-columns: 1fr; align-items: start; }
    .game-schedule-head { display: none; }
    .game-schedule-row { grid-template-columns: minmax(0, 1.3fr) minmax(150px, .7fr); }
    .game-schedule-status { text-align: right; }
    .game-interest-count { padding-left: 70px; }
    .game-schedule-action { align-self: center; }
    .game-schedule-row .btn { width: 100%; }
}
@media (max-width: 620px) {
    .catalog-hero { padding: 2.5rem 0 2rem; }
    .catalog-hero h1 { font-size: 2.35rem; }
    .catalog-filters { grid-template-columns: 1fr; }
    .catalog-filter-actions { grid-column: auto; }
    .catalog-filter-actions .btn { flex: 1; justify-content: center; }
    .event-cards { grid-template-columns: 1fr; gap: .8rem; }
    .event-detail { padding-top: .9rem; }
    .event-detail h1 { font-size: 2.35rem; }
    .event-detail-actions { display: grid; grid-template-columns: 1fr; }
    .event-detail-actions .btn { width: 100%; }
    .event-detail-primary-action { justify-self: stretch; }
    .event-detail-secondary-actions { display: grid; grid-template-columns: 1fr; }
    .event-roster-grid { grid-template-columns: 1fr; }
    .event-registration-danger { align-items: stretch; flex-direction: column; }
    .event-registration-danger .btn { width: 100%; }
    .event-cancel-dialog-actions { flex-direction: column-reverse; }
    .event-cancel-dialog-actions .btn, .event-cancel-dialog-actions form { width: 100%; }
    .event-description-panel,
    .event-content-section .vote-form-card { padding: 1rem; }
    .event-card-date { font-size: .6rem; }
    .game-card-grid, .game-card-grid-home { grid-template-columns: 1fr; gap: .8rem; }
    .game-card-schedule { font-size: .6rem; }
    .game-detail { padding-top: 0.9rem; }
    .game-detail h1 { font-size: 2.4rem; }
    .game-schedule-row { grid-template-columns: 1fr; gap: .75rem; padding: 1rem; }
    .game-schedule-status { padding: .65rem 0 0; text-align: left; border-top: 1px solid var(--border); }
    .game-interest-count { padding: 0; }
    .game-schedule-action { padding: 0; }
    .game-date-copy > small { white-space: normal; }
    .game-discord-cta { align-items: stretch; flex-direction: column; }
    .game-discord-cta .btn { text-align: center; }
}

/* ---- Fiches de lieux ---- */
.location-detail-card { overflow: hidden; }
.location-detail-image {
    display: block;
    width: 100%;
    max-height: 280px;
    margin: 0 0 1.25rem;
    border-radius: 14px;
    object-fit: cover;
}
.event-card-location {
    margin: .35rem 0 0;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 600;
}
.hero-sub a,
.game-date-copy a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- Footer ---- */
.site-footer {
    margin-top: 3.5rem;
    padding: 2.5rem 0;
    background: var(--surface-2);
    border-top: 1px solid #18181b;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0.4rem 0; }
