/* Widget Sondage du Mois */
.poll-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    max-height: 280px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
}

.poll-widget::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.poll-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.poll-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Boutons de vote */
.poll-option-btn {
    background: white;
    border: none;
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.poll-option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #f8f9fa;
}

.poll-option-btn i {
    color: #667eea;
    font-size: 1.1rem;
}

/* Résultats du sondage */
.poll-result {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.poll-result.selected {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.poll-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.poll-result-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.poll-result-percentage {
    font-weight: 700;
    color: #667eea;
    font-size: 1rem;
}

.poll-result-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.poll-result-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

.poll-result-votes {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: right;
}

/* Footer du widget */
.poll-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.poll-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.poll-link:hover {
    gap: 0.75rem;
    opacity: 0.9;
}

.poll-details-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.poll-details-link:hover {
    color: white;
    border-bottom-color: white;
}

/* Modale résultats détaillés */
.poll-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.poll-modal-dialog {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.poll-modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.poll-modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.poll-modal-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.poll-modal-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.poll-modal-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    min-width: 40px;
}

.poll-modal-info {
    flex: 1;
}

.poll-modal-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.poll-modal-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.poll-modal-percentage {
    font-size: 1.25rem;
    font-weight: 700;
}

.poll-modal-votes {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.poll-modal-bar {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.poll-modal-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .poll-widget {
        padding: 1.5rem;
        max-height: none;
    }
    
    .poll-title {
        font-size: 1.25rem;
    }
    
    .poll-modal-dialog {
        margin: 10% 1rem;
        padding: 2rem 1.5rem;
    }
    
    .poll-footer {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}
