/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

/* Conteneur principal */
.quiz-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* En-tête de navigation */
.nav-bar {
    background-color: #1e3a8a;
    padding: 10px 20px;
}

.nav-bar a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    font-weight: bold;
}

.nav-bar a:hover {
    text-decoration: underline;
}

/* Titres */
h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
}

h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

/* Cartes de QCM */
.quiz-card {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quiz-card p {
    color: #666;
    margin-bottom: 8px;
}

/* Boutons */
button, a.button {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-right: 8px;
}

button[type="submit"], a.button.primary {
    background-color: #2563eb;
}

button[type="submit"]:hover, a.button.primary:hover {
    background-color: #1e40af;
}

a.button.green {
    background-color: #16a34a;
}

a.button.green:hover {
    background-color: #15803d;
}

a.button.red {
    background-color: #dc2626;
}

a.button.red:hover {
    background-color: #b91c1c;
}


    a.button.info {
        background-color: #17a2b8;
    }

        a.button.info:hover {
            background-color: #118395;
        }
/* Formulaire */
.quiz-form {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-form label {
    display: block;
    color: #333;
    margin-bottom: 4px;
    font-weight: bold;
}

.quiz-form input[type="text"],
.quiz-form textarea,
.quiz-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 16px;
}

.quiz-form textarea {
    resize: vertical;
}

.quiz-form button.add {
    background: none;
    color: #2563eb;
    padding: 4px;
    font-weight: normal;
    text-decoration: underline;
}

.quiz-form button.add:hover {
    color: #1e40af;
}

/* Champs de question */
.question-field {
    background-color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.choice-field {
    border: 1px solid #e5e7eb;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Messages d'erreur et de succès */
.success-message,
.error-message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.success-message {
    background-color: #d1fae5;
    color: #065f46;
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 600px) {
    .quiz-container {
        padding: 10px;
    }

    .quiz-form {
        max-width: 100%;
    }

    button, a.button {
        width: 100%;
        margin-bottom: 8px;
    }
}