@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;800;900&display=swap');

:root {
    --neon-blue: #00d4ff; --neon-green: #39ff14; --neon-purple: #bc13fe;
    --neon-orange: #ff8c00; --neon-yellow: #f4ea10; --primary-neon: var(--neon-purple);
    --bg:#050713; --glass:rgba(15,15,15,.7); --text:#ffffff; 
    --muted:#aaa; --danger:#ff3333; --ok:#39ff14;
}

body.theme-blue { --primary-neon: var(--neon-purple); } /* Par défaut pour les Events */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: 'Oxanium', sans-serif; overflow-x: hidden; display: flex; flex-direction: column; }

.site-bg { position: fixed; inset: 0; z-index: -3; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/Fond.jpg') center/cover no-repeat; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .1; z-index: -2; background-size: 42px 42px; background-image: linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px); }

/* TOPBAR CAPSULE TRANSPARENTE */
.topbar { 
    width: 100%; height: 90px; box-sizing: border-box; z-index: 950; 
    display: flex; align-items: center; justify-content: flex-end; 
    padding: 10px 3%; position: sticky; top: 0; transition: top 0.3s;
    background: transparent; pointer-events: none; border: none;
}

.nav-bubble { 
    position: absolute; left: 3%; top: 0; width: 140px; height: 120px; 
    background: rgba(15, 15, 15, 0.8); backdrop-filter: blur(20px); 
    border-radius: 0 0 70px 70px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    display: flex; justify-content: center; align-items: center; 
    pointer-events: auto; text-decoration: none; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05); border-top: none; 
    border-left: 1px solid rgba(255, 255, 255, 0.15); transition: 0.3s;
}
.nav-bubble:hover { background: rgba(20, 20, 20, 0.95); box-shadow: 0 15px 40px var(--primary-neon); transform: translateY(3px); }
.nav-logo { width: 95px; filter: drop-shadow(0 0 15px var(--primary-neon)); transition: 0.4s ease; margin-bottom: 10px; }
.nav-bubble:hover .nav-logo { transform: scale(1.05); }

.nav-tools-group { 
    pointer-events: auto;
    background: rgba(15, 15, 15, 0.8); backdrop-filter: blur(25px); 
    padding: 10px 25px; border-radius: 50px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-top: 1px solid rgba(255, 255, 255, 0.2); 
    border-left: 1px solid rgba(255, 255, 255, 0.15); 
    display: flex; gap: 12px; align-items: center;
}

.nav-pill { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 10px 20px; border-radius: 20px; font-weight: 800; text-transform: uppercase; font-size: 0.8rem; text-decoration: none; transition: 0.3s; }
.nav-pill:hover { background: rgba(255,255,255,0.1); box-shadow: 0 0 10px currentColor; transform: translateY(-2px); }

.icon-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 10px; border-radius: 8px; transition: 0.3s; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; }
.icon-btn:hover { border-color: var(--primary-neon); color: var(--primary-neon); box-shadow: 0 0 10px var(--primary-neon); }

/* WIDGET DATE HEURE */
.datetime-widget { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding-left: 15px; border-left: 1px solid rgba(255,255,255,0.2); margin-left: 5px; }
#current-date { font-size: 0.6rem; color: #ccc; text-transform: uppercase; letter-spacing: 1px; }
#current-time { font-size: 1rem; font-weight: 800; color: white; text-shadow: 0 0 10px var(--primary-neon); }

/* BOUTONS GENERIQUES */
.btn { padding: 14px 25px; border-radius: 10px; font-family: 'Oxanium'; font-weight: 800; font-size: 0.95rem; text-transform: uppercase; cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; gap: 10px; border: 1px solid; }
.btn-primary { background: rgba(var(--primary-neon), 0.1); border-color: var(--primary-neon); color: var(--primary-neon); }
.btn-primary:hover { background: var(--primary-neon); color: black; box-shadow: 0 0 15px var(--primary-neon); }
.btn-secondary { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); color: white; }
.btn-secondary:hover { border-color: white; box-shadow: 0 0 10px rgba(255,255,255,0.2); }

/* LAYOUT */
.container { width: 100%; max-width: 1400px; margin: 30px auto; padding: 0 20px; flex-grow: 1; }
.main-grid { display: grid; grid-template-columns: 320px 1fr; gap: 30px; align-items: start; }
.glass-panel { background: var(--glass); backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.panel-header { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; margin-bottom: 20px; }
.sticky-panel { position: sticky; top: 120px; }

/* STEPPER */
.stepper-container { display: flex; align-items: center; justify-content: space-between; margin-bottom: 35px; background: rgba(0,0,0,0.3); padding: 15px 30px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.05); }
.stepper-step { display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0.5; transition: 0.3s; }
.stepper-step.active { opacity: 1; }
.stepper-step.completed { opacity: 1; }
.step-circle { width: 35px; height: 35px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem; transition: 0.3s; }
.stepper-step.active .step-circle { background: rgba(var(--primary-neon), 0.2); border-color: var(--primary-neon); color: var(--primary-neon); box-shadow: 0 0 15px rgba(var(--primary-neon), 0.4); }
.stepper-step.completed .step-circle { background: var(--primary-neon); border-color: var(--primary-neon); color: black; box-shadow: 0 0 10px var(--primary-neon); }
.step-label { font-size: 0.8rem; text-transform: uppercase; font-weight: 800; letter-spacing: 1px; }
.stepper-step.active .step-label { color: var(--primary-neon); }
.stepper-line { flex-grow: 1; height: 3px; background: rgba(255,255,255,0.1); margin: 0 15px; border-radius: 3px; position: relative; top: -12px;}

.step-title { font-size: 1.4rem; color: white; border-bottom: 2px solid var(--primary-neon); display: inline-block; padding-bottom: 5px; margin-top: 0; margin-bottom: 25px; }

/* SELECTION JEUX */
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.game-card { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); border-radius: 15px; padding: 20px; text-align: center; cursor: pointer; transition: 0.3s; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 140px;}
.game-card img { max-height: 55px; max-width: 90%; object-fit: contain; margin-bottom: 15px; filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); transition: 0.3s; }
.game-card h3 { margin: 0; font-size: 1rem; text-transform: uppercase; }
.game-card:hover { transform: translateY(-5px); border-color: var(--card-color, var(--primary-neon)); box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 0 20px rgba(var(--card-color, var(--primary-neon)), 0.1); }
.game-card:hover img { filter: drop-shadow(0 0 15px var(--card-color, var(--primary-neon))); transform: scale(1.1); }

/* ÉTAT COMPLET */
.game-card.full { opacity: 0.6; filter: grayscale(80%); cursor: not-allowed; border-color: rgba(255,51,51,0.3); }
.game-card.full:hover { transform: none; box-shadow: none; border-color: rgba(255,51,51,0.3); }
.game-card.full:hover img { transform: none; filter: none;}
.badge-full { position: absolute; top: 15px; right: -30px; background: var(--danger); color: white; font-weight: 900; font-size: 0.7rem; padding: 5px 30px; transform: rotate(45deg); box-shadow: 0 0 10px var(--danger); text-transform: uppercase; }

/* ÉTAT LISTE D'ATTENTE */
.game-card.waitlist { border-color: var(--neon-orange); box-shadow: inset 0 0 20px rgba(255, 140, 0, 0.1); }
.game-card.waitlist:hover { border-color: var(--neon-orange); box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 0 20px rgba(255, 140, 0, 0.2); }
.game-card.waitlist img { filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.5)); }
.badge-waitlist { position: absolute; top: 15px; right: -30px; background: var(--neon-orange); color: black; font-weight: 900; font-size: 0.65rem; padding: 5px 30px; transform: rotate(45deg); box-shadow: 0 0 10px var(--neon-orange); text-transform: uppercase; }

/* FORMULAIRE */
.fieldset-card { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 25px; margin-bottom: 25px; }
.fieldset-card legend { font-size: 1.1rem; font-weight: 800; color: var(--primary-neon); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; width: 100%;}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px;}
.input-group label { font-size: 0.85rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.req { color: var(--danger); }
.input-group input, .input-group select { width: 100%; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 12px 15px; border-radius: 8px; font-family: 'Oxanium'; font-size: 0.95rem; transition: 0.3s; box-sizing: border-box;}
.input-group input:focus, .input-group select:focus { outline: none; border-color: var(--primary-neon); box-shadow: 0 0 10px rgba(var(--primary-neon), 0.2); }
.input-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 15px top 50%; background-size: 10px auto; }
.input-group select option { background: #111; }

.summary-card { background: rgba(0,0,0,0.4); border: 1px solid var(--primary-neon); border-radius: 12px; padding: 25px; margin: 20px 0; box-shadow: inset 0 0 20px rgba(var(--primary-neon), 0.1); }
.summary-card p { margin: 10px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 5px; font-size: 0.95rem;}
.summary-card strong { color: var(--primary-neon); display: inline-block; width: 140px;}

/* LISTE COMPTEURS GAUCHE (Couleurs adaptées) */
.counters-list-container { display: flex; flex-direction: column; gap: 8px; }
.counter-day-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; margin-top: 15px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; }
.c-white { color: #ffffff; border-bottom-color: rgba(255,255,255,0.3); }
.c-purple { color: var(--neon-purple); border-bottom-color: rgba(188,19,254,0.3); }

.hub-list-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px; background: rgba(0, 0, 0, 0.3); border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.05); }
.list-game-info { font-size: 0.8rem; font-weight: 800; width: 130px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-progress-wrapper { flex-grow: 1; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; margin: 0 10px; }
.list-progress-fill { height: 100%; transition: width 0.6s ease; }
.list-places { font-size: 0.85rem; font-weight: 900; width: 60px; text-align: right; white-space: nowrap; }
.list-places.complet { color: var(--danger); text-shadow: 0 0 8px rgba(255, 51, 51, 0.5); }

/* MODALES & LIENS */
.rules-link {
    background: none; border: none; color: var(--primary-neon); text-decoration: underline;
    cursor: pointer; font-family: 'Oxanium', sans-serif; font-size: 0.9rem; font-weight: 800; padding: 0;
}
.rules-link:hover { text-shadow: 0 0 10px var(--primary-neon); }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 2000; display: none; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal.active { display: flex; }
.modal-card { background: #0a0a0a; border: 2px solid var(--primary-neon); border-radius: 20px; position: relative; box-shadow: 0 0 40px rgba(0,0,0,0.8); }

/* FOOTER CAPSULE */
.glass-footer { 
    width: calc(100% - 6%); max-width: 1760px; margin: auto auto 20px auto; 
    border-radius: 50px; 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-top: 1px solid rgba(255, 255, 255, 0.2); 
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 15, 15, 0.8); backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center; gap: 15px; 
    padding: 10px 5%; box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}
.glass-footer img { height: 40px; border-radius: 5px; }

@media (max-width: 950px) {
    .topbar { position: relative !important; top: 0 !important; height: auto; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 15px; }
    .nav-bubble { position: relative; left: auto; top: auto; border-radius: 20px; height: 90px; width: 120px; border: 1px solid rgba(255,255,255,0.1); margin-top: 15px; }
    .nav-tools-group { flex-wrap: wrap; justify-content: center; border-radius: 25px; padding: 15px; }
    .main-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .stepper-container { padding: 15px; }
    .step-label { display: none; }
}