
body {
    background: linear-gradient(120deg, #2563eb 0%, #06b6d4 100%);
    min-height: 100vh;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #22223b;
    margin: 0;
}
.container {
    max-width: 600px;
    margin: 40px auto 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px #2563eb22;
    padding: 32px 24px 40px 24px;
    text-align: center;
}
h1 {
    color: #2563eb;
    font-size: 2.2em;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.add-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 18px 10px 10px 10px;
    box-shadow: 0 2px 8px #2563eb11;
}
.add-form input[type="text"] {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    font-size: 1em;
    width: 160px;
    background: #fff;
    transition: border 0.18s;
}
.add-form input[type="text"]:focus {
    border-color: #2563eb;
    outline: none;
}
.file-label {
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.18s;
    margin-right: 8px;
}
.file-label:hover {
    background: #06b6d4;
}
.file-label input[type="file"] {
    display: none;
}
.add-form button {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px #2563eb22;
    display: flex;
    align-items: center;
    gap: 6px;
}
.add-form button:hover {
    background: #06b6d4;
    box-shadow: 0 4px 16px #06b6d422;
}
.wheel-container {
    position: relative;
    width: 420px;
    height: 420px;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
#wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f1f5f9;
    box-shadow: 0 4px 24px #2563eb22;
}
.wheel-pointer {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 2.5em;
    color: #fbbf24;
    text-shadow: 0 2px 8px #2222;
    pointer-events: none;
    animation: pointer-bounce 1.2s infinite alternate;
}
@keyframes pointer-bounce {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-6px);}
}
.tirage-btn {
    margin-top: 18px;
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px 38px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 24px #2563eb22;
    transition: background 0.18s, transform 0.15s;
    letter-spacing: 1px;
}
.tirage-btn:active {
    transform: scale(0.97);
}
.tirage-btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}
.participants-list {
    margin: 18px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.participants-list .mini {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border-radius: 18px;
    padding: 4px 12px;
    font-size: 0.98em;
    box-shadow: 0 1px 4px #2563eb11;
    border: 1px solid #e0e7ef;
}
.participants-list .mini img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2563eb44;
    background: #fff;
}
.winner-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.25);
    align-items: center;
    justify-content: center;
}
.winner-modal.active {
    display: flex;
}
.winner-content {
    background: #fff;
    border-radius: 24px;
    padding: 38px 32px 32px 32px;
    text-align: center;
    box-shadow: 0 8px 32px #2563eb33;
    position: relative;
    min-width: 320px;
    animation: winner-pop 0.5s cubic-bezier(.4,2,.6,1);
}
@keyframes winner-pop {
    0% { transform: scale(0.7); opacity: 0.2;}
    80% { transform: scale(1.08);}
    100% { transform: scale(1); opacity: 1;}
}
.winner-content img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid #22d3ee;
    margin-bottom: 18px;
    background: #f1f5f9;
    box-shadow: 0 2px 12px #06b6d422;
}
.winner-content .pseudo {
    font-size: 1.5em;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.winner-content .gagnant {
    font-size: 1.2em;
    color: #16a34a;
    font-weight: bold;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.close-winner {
    position: absolute;
    top: 12px; right: 18px;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #64748b;
    cursor: pointer;
    transition: color 0.18s;
}
.close-winner:hover {
    color: #e11d48;
}
.confetti {
    position: fixed;
    left: 0; top: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 2000;
}
@media (max-width: 700px) {
    .container { max-width: 99vw; padding: 10px 2vw 24px 2vw; }
    .wheel-container { width: 98vw; height: 98vw; max-width: 98vw; max-height: 98vw; }
    #wheel { width: 100% !important; height: 100% !important; }
}
