/* Styles pour le quiz de gratitude */

.quiz-header {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    color: #2c3e50;
    margin-bottom: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
    position: relative;
    overflow: hidden;
}

.quiz-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12, #e74c3c, #9b59b6);
    border-radius: 20px 20px 0 0;
}

.quiz-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.quiz-header:hover .quiz-icon {
    transform: scale(1.05);
}

.quiz-header h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.quiz-description {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    color: #5a6c7d;
    line-height: 1.7;
    font-weight: 400;
}

/* Container principal du quiz */
.quiz-container {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f3f4;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.quiz-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ecc71, #3498db, #9b59b6);
    border-radius: 20px 20px 0 0;
}

/* Barre de progression */
.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    background: #ecf0f1;
    border-radius: 25px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.progress-fill {
    background: linear-gradient(135deg, #2ecc71, #3498db);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 25px;
}

.progress-text {
    text-align: center;
    color: #6c757d;
    font-weight: 600;
    font-size: 1rem;
}

/* Questions du quiz */
.quiz-question {
    margin-bottom: 2.5rem;
}

.question-number {
    color: #3498db;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.question-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Options de réponse */
.quiz-options {
    display: grid;
    gap: 1rem;
}

.quiz-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quiz-option:hover {
    border-color: #3498db;
    background: #ebf3fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.quiz-option.selected {
    border-color: #3498db;
    background: #ebf3fd;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.quiz-option.correct {
    border-color: #2ecc71;
    background: #d5f4e6;
    color: #27ae60;
}

.quiz-option.incorrect {
    border-color: #e74c3c;
    background: #fdf2f2;
    color: #c0392b;
}

.quiz-option.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.option-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: inherit;
}

/* Explication des réponses */
.quiz-explanation {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 8px;
    display: none;
}

.quiz-explanation.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.explanation-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.explanation-text {
    color: #5a6c7d;
    line-height: 1.6;
}

/* Boutons d'action */
.quiz-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.quiz-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quiz-btn.primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.quiz-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.quiz-btn.secondary {
    background: #ecf0f1;
    color: #5a6c7d;
    border: 2px solid #bdc3c7;
}

.quiz-btn.secondary:hover {
    background: #d5dbdb;
    border-color: #95a5a6;
}

.quiz-btn.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.quiz-btn.success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.4);
}

.quiz-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Résultats du quiz */
.quiz-results {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f3f4;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.quiz-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #e74c3c, #2ecc71, #3498db);
    border-radius: 20px 20px 0 0;
}

.results-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 800;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.result-message {
    margin-bottom: 2rem;
}

.result-message h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.result-message p {
    font-size: 1.2rem;
    color: #5a6c7d;
    line-height: 1.6;
}

.result-badge {
    margin-bottom: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge.novice {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.badge.amateur {
    background: linear-gradient(135deg, #f39c12, #d35400);
    color: white;
}

.badge.expert {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.badge.master {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.result-details {
    text-align: left;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Section d'informations */
.quiz-info {
    margin: 4rem 0;
}

.quiz-info h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #2c3e50;
    font-size: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 16px 16px 0 0;
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.info-card p {
    color: #5a6c7d;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.quiz-question {
    animation: slideIn 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-header {
        padding: 3rem 1.5rem;
    }

    .quiz-header h1 {
        font-size: 2.5rem;
    }

    .quiz-container {
        padding: 2rem 1.5rem;
    }

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

    .quiz-btn {
        width: 100%;
    }

    .score-circle {
        width: 120px;
        height: 120px;
        font-size: 1.6rem;
    }

    .results-actions {
        flex-direction: column;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* États de chargement */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}