/**
 * IEL Sondages - Styles
 */

/* ===========================================
   Sondage Wrapper
   =========================================== */
.iel-sondage-wrapper {
    max-width: 700px;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.iel-sondage-wrapper .card-title {
    color: #1a1a2e;
}

.iel-sondage-wrapper .form-check {
    padding: 10px 10px 10px 35px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.iel-sondage-wrapper .form-check:hover {
    background-color: #f8f0f5;
}

.iel-sondage-wrapper .form-check-input:checked + .form-check-label {
    font-weight: 600;
    color: #e7408f;
}

.iel-sondage-wrapper .form-check-input:checked {
    background-color: #e7408f;
    border-color: #e7408f;
}

/* ===========================================
   Résultats
   =========================================== */
.iel-sondage-results .progress {
    border-radius: 12px;
    background-color: #f0f0f1;
    overflow: hidden;
}

.iel-sondage-results .progress-bar {
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    transition: width 0.8s ease-in-out;
}

.iel-sondage-results .progress-bar.bg-primary {
    background-color: #e7408f !important;
}

/* ===========================================
   Popup Overlay
   =========================================== */
.iel-sondage-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.iel-sondage-popup-content {
    position: relative;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    animation: ielPopupSlideIn 0.4s ease-out;
}

.iel-sondage-popup-content .iel-sondage-wrapper {
    max-width: 100%;
    margin: 0;
}

.iel-sondage-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.iel-sondage-popup-close:hover {
    background: #fff;
    color: #d63638;
    transform: scale(1.1);
}

body.iel-sondage-popup-open {
    overflow: hidden;
}

@keyframes ielPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 768px) {
    .iel-sondage-popup-content {
        max-width: 100%;
        margin: 10px;
    }

    .iel-sondage-popup-overlay {
        padding: 10px;
    }
}
