/* ============================================
   QUIZ PRÉ-QUALIFICATION
   ============================================ */

.quiz-prequalification {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    padding: 4rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin: 3rem auto;
    max-width: 700px;
}

.quiz-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.quiz-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d8b553 0%, #b8956a 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.quiz-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.quiz-subtitle {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.6;
}

.quiz-progress {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #d8b553 0%, #b8956a 100%);
    transition: width 0.4s ease;
    border-radius: 10px;
}

.quiz-question {
    display: none;
    animation: fadeInQuiz 0.5s ease;
}

.quiz-question.active {
    display: block;
}

@keyframes fadeInQuiz {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    display: block;
}

.question-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    position: relative;
}

.quiz-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.quiz-option label {
    display: block;
    padding: 1.25rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.quiz-option label:hover {
    border-color: #d8b553;
    background: rgba(216, 181, 83, 0.05);
    transform: translateX(5px);
}

.quiz-option input[type="radio"]:checked + label {
    border-color: #d8b553;
    background: rgba(216, 181, 83, 0.1);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(216, 181, 83, 0.2);
}

.quiz-option label::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #d8b553;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
}

.quiz-option input[type="radio"]:checked + label::before {
    background: #d8b553;
    box-shadow: inset 0 0 0 4px white;
}

.quiz-option label {
    padding-left: 3.5rem;
}

/* === STYLES POUR LES CASES À COCHER === */
.quiz-option-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.quiz-option-checkbox label::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #d8b553;
    border-radius: 4px; /* Carré avec coins arrondis pour checkbox */
    background: white;
    transition: all 0.3s ease;
}

.quiz-option-checkbox input[type="checkbox"]:checked + label::before {
    background: #d8b553;
}

.quiz-option-checkbox input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-quiz-prev,
.btn-quiz-next {
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 140px;
}

.btn-quiz-prev {
    background: #f5f5f5;
    color: #666;
}

.btn-quiz-prev:hover {
    background: #e0e0e0;
}

.btn-quiz-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-quiz-next {
    background: linear-gradient(135deg, #d8b553 0%, #b8956a 100%);
    color: white;
}

.btn-quiz-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 181, 83, 0.3);
}

.btn-quiz-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.quiz-result {
    display: none;
    text-align: center;
}

.quiz-result.active {
    display: block;
    animation: fadeInQuiz 0.6s ease;
}

.result-badge {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.result-formula {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin: 1rem 0;
    font-weight: 700;
}

.result-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.result-highlights {
    background: rgba(216, 181, 83, 0.08);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #d8b553;
}

.result-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.result-highlights li {
    padding: 0.6rem 0;
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: flex-start;
}

.result-highlights li::before {
    content: '✓';
    color: #22c55e;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.result-cta {
    display: inline-block;
    background: linear-gradient(135deg, #d8b553 0%, #b8956a 100%);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.result-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(216, 181, 83, 0.4);
}

.result-reassurance {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-prequalification {
        padding: 2.5rem 1.5rem;
        margin: 2rem 1rem;
    }

    .quiz-title {
        font-size: 1.6rem;
    }

    .quiz-subtitle {
        font-size: 0.95rem;
    }

    .question-label {
        font-size: 1.05rem;
    }

    .quiz-option label {
        padding: 1rem 1rem 1rem 3rem;
        font-size: 0.95rem;
    }

    .quiz-navigation {
        flex-direction: column;
    }

    .btn-quiz-prev,
    .btn-quiz-next {
        width: 100%;
    }

    .result-formula {
        font-size: 2rem;
    }

    .result-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
