/* Style du sondage - simple, propre, responsive */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.page {
    width: 100%;
    max-width: 700px;
}

.card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 22px 16px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.16);
}

h1 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 6px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-round1 {
    background-color: #ffe4c4;
    color: #8b3a00;
}

.badge-round2 {
    background-color: #cde9ff;
    color: #004a89;
}

.badge-finished {
    background-color: #d4edda;
    color: #155724;
}

.votes-count {
    font-weight: 500;
    color: #444;
}

.alert {
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.alert.info {
    background: #e7f3ff;
    color: #0c4a7d;
    border-left: 4px solid #0c4a7d;
}

.alert.success {
    background: #e6ffed;
    color: #166534;
    border-left: 4px solid #166534;
}

h2 {
    font-size: 1.2rem;
    margin: 10px 0 10px;
}

h3 {
    font-size: 1rem;
    margin: 10px 0 6px;
}

.vote-form {
    margin-top: 6px;
    margin-bottom: 10px;
}

.option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 6px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.option:hover {
    background: #fff7f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #ffd5a8;
}

.option input[type="radio"] {
    transform: scale(1.2);
}

.btn-primary {
    margin-top: 8px;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #ff7e5f, #ff9966);
    color: #fff;
    transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(255, 126, 95, 0.4);
    opacity: 0.95;
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: none;
}

.hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 6px;
    text-align: center;
}

.results {
    margin-top: 10px;
    margin-bottom: 10px;
}

.result-row {
    margin-bottom: 8px;
}

.result-row.winner {
    background: #fffbea;
    border-radius: 12px;
    padding: 6px 8px;
}

.result-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.9rem;
    margin-bottom: 2px;
    gap: 8px;
}

.result-votes {
    font-size: 0.8rem;
    color: #555;
    white-space: nowrap;
}

.bar-container {
    background: #f1f1f1;
    border-radius: 999px;
    overflow: hidden;
    height: 8px;
}

.bar {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
}

.separator {
    margin: 14px 0;
    border: none;
    border-top: 1px dashed #ddd;
}

.finalists {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.big-winner {
    font-size: 1rem;
    text-align: center;
    margin-top: 10px;
}

.footer {
    text-align: center;
    margin-top: 14px;
    font-size: 0.8rem;
    color: #777;
}

.footer code {
    background: #f3f3f3;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 0.8rem;
}

@media (max-width: 500px) {
    .card {
        padding: 18px 15px 12px;
    }

    .status {
        flex-direction: column;
        align-items: flex-start;
    }

    h1 {
        font-size: 1.35rem;
    }
}
