/**
 * Styles pour la partie publique
 */

.quizz-materiautech-container {
    max-width: 920px;
    margin: 40px auto;
    padding: 36px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.quizz-materiautech-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.quizz-materiautech-header h2 {
    margin: 0 0 10px 0;
    color: #223;
    font-size: 30px;
    letter-spacing: .2px;
}

.quizz-materiautech-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.quizz-materiautech-question {
    margin-bottom: 28px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
    border-left: 4px solid #4f7dcf;
}

.quizz-materiautech-question-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.quizz-materiautech-question-number {
    display: inline-block;
    background: #4f7dcf;
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    margin-right: 10px;
}

.quizz-materiautech-answers {
    margin-top: 15px;
}

.quizz-materiautech-answer {
    margin-bottom: 12px;
}

.quizz-materiautech-answer label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quizz-materiautech-answer label:hover {
    border-color: #4f7dcf;
    background: #f3f7ff;
    transform: translateX(2px);
}

.quizz-materiautech-answer input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
}

.quizz-materiautech-answer input[type="radio"]:checked + label {
    border-color: #4f7dcf;
    background: #f0f5ff;
    font-weight: 600;
}

.quizz-materiautech-submit {
    text-align: center;
    margin-top: 30px;
}

.quizz-materiautech-button.quizz-prev {
    background: #e9eef8;
    color: #274c77;
    box-shadow: none;
    margin-right: 10px;
}

.quizz-materiautech-button.quizz-prev:hover {
    background: #dfe7f6;
    color: #274c77;
}

.quizz-materiautech-button {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #4f7dcf 0%, #5a9be6 100%);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(79, 125, 207, 0.35);
}

.quizz-materiautech-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(79, 125, 207, 0.45);
}

.quizz-materiautech-results {
    padding: 30px;
    background: #f0f4ff;
    border-radius: 10px;
    text-align: center;
    margin-top: 30px;
}

.quizz-materiautech-score {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    margin: 20px 0;
}

.quizz-materiautech-message {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.quizz-materiautech-message.success {
    color: #28a745;
}

.quizz-materiautech-message.fail {
    color: #dc3545;
}

.quizz-materiautech-progress {
    background: #e0e0e0;
    height: 8px;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.quizz-materiautech-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4f7dcf 0%, #5a9be6 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.quizz-materiautech-loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.quizz-materiautech-error {
    padding: 20px;
    background: #fee;
    border-left: 4px solid #d63638;
    border-radius: 4px;
    color: #d63638;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quizz-materiautech-question {
    animation: fadeIn 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .quizz-materiautech-container {
        padding: 20px;
        margin: 15px;
    }

    .quizz-materiautech-header h2 {
        font-size: 24px;
    }

    .quizz-materiautech-question-text {
        font-size: 16px;
    }

    .quizz-materiautech-button {
        padding: 12px 30px;
        font-size: 14px;
    }
}

