:root {
    --neon-cyan: #00f2ff;
}

* { box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body, html {
    margin: 0; padding: 0;
    width: 100%; min-height: 100%;
    background: #000; color: white;
}

/* FIX SLIDER : On force l'affichage */
#bg-slider {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1; /* Derrière tout */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 0.6; /* On monte l'opacité pour bien voir les images */
}

/* L'OVERLAY S'ASSURE D'ÊTRE AU DESSUS DU SLIDER */
.overlay {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle, transparent 0%, rgba(0,0,0,0.7) 100%);
    padding: 60px 20px;
}

.logo-top {
    position: fixed; top: 20px; left: 20px;
    font-weight: bold; letter-spacing: 2px;
}

.header-box {
    border: 2px solid #fff;
    padding: 10px 40px;
    margin-bottom: 40px;
    background: rgba(0,0,0,0.5);
}

h1 {
    font-size: 2.5rem; letter-spacing: 8px; margin: 0;
    color: var(--neon-cyan); text-transform: uppercase;
    text-shadow: 0 0 15px var(--neon-cyan);
}

#poll-section {
    width: 100%; max-width: 750px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 40px rgba(0,0,0,1);
}

#user-identity-bar {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(0, 242, 255, 0.1);
    padding: 12px 20px; border-radius: 10px;
    margin-bottom: 25px; border: 1px solid var(--neon-cyan);
}

#display-user-name { color: var(--neon-cyan); }

.btn-modifier {
    background: transparent; border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan); padding: 5px 12px; border-radius: 5px; cursor: pointer;
}

.btn-creer-principal {
    width: 100%; padding: 18px;
    background: var(--neon-cyan); border: none;
    color: black; font-weight: 900; cursor: pointer;
    border-radius: 10px; text-transform: uppercase;
    box-shadow: 0 0 20px var(--neon-cyan);
}

.separator { margin: 30px 0; border-top: 1px solid rgba(255,255,255,0.1); }

.event-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 15px; padding: 25px; margin-bottom: 25px;
    position: relative;
}

.event-header h3 { margin: 0; text-transform: uppercase; border-left: 4px solid var(--neon-cyan); padding-left: 12px; }
.event-header small { color: rgba(255,255,255,0.5); font-size: 11px; }

.cat-title {
    margin-top: 25px; font-weight: bold; color: var(--neon-cyan);
    display: flex; justify-content: space-between; align-items: center;
    text-transform: uppercase; font-size: 0.9rem;
}

.btn-plus {
    background: var(--neon-cyan); color: black; border: none;
    padding: 3px 10px; border-radius: 4px; font-weight: bold; cursor: pointer;
}

.poll-option { margin-top: 15px; cursor: pointer; }
.option-info { display: flex; justify-content: space-between; margin-bottom: 5px; }

.progress-bar {
    height: 12px; background: rgba(255,255,255,0.1); border-radius: 6px; overflow: hidden;
}
.progress-fill {
    height: 100%; background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan); transition: width 0.5s ease;
}
.votants-list { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 5px; }

.btn-delete-icon { position: absolute; top: 15px; right: 15px; background:none; border:none; color:rgba(255,255,255,0.3); cursor:pointer; }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); display: none; justify-content: center; align-items: center; z-index: 2000;
}
.modal-content {
    background: #000; border: 2px solid var(--neon-cyan); padding: 40px; border-radius: 20px; width: 90%; max-width: 400px; text-align: center;
}
.modal-content input { width: 100%; padding: 15px; margin: 20px 0; background: #111; border: 1px solid #333; color: white; }
.btn-creer-modale { background: var(--neon-cyan); border: none; padding: 12px; width: 100%; font-weight: bold; border-radius: 8px; }

@media (max-width: 600px) {
    h1 { font-size: 1.8rem; letter-spacing: 4px; }
    .overlay { padding: 80px 15px 20px; }
}