/* --- RESET SIMPLE --- */
body, h1, h2, p, fieldset, legend, label {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- STYLE GLOBAL --- */
body {
    font-family: "Segoe UI", Roboto, sans-serif;
    background: #f5f7fa;
    color: #333;
    padding: 30px;
    line-height: 1.6;
}

/* --- TITRE --- */
h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: #3a506b;
}

/* --- FIELDSETS (questions) --- */
fieldset {
    background: #ffffff;
    border: 1px solid #dce3eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

fieldset:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* --- LEGEND (titre de la question) --- */
legend {
    font-weight: bold;
    color: #1f3c88;
    padding: 0 5px;
    font-size: 1.1rem;
}

/* --- OPTIONS --- */
label {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

label:hover {
    background: #eef3f8;
}

/* --- BOUTON CORRIGER --- */
button {
    display: block;
    margin: 30px auto;
    padding: 12px 25px;
    font-size: 1.1rem;
    background: #3a86ff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.1s ease;
}

button:hover {
    background: #2f6ed1;
}

button:active {
    transform: scale(0.97);
}

/* --- ZONE DE RÉSULTATS --- */
#resultat {
    background: #ffffff;
    border: 1px solid #dce3eb;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

#resultat h2 {
    text-align: center;
    color: #1f3c88;
    margin-bottom: 15px;
}

/* --- FEEDBACK --- */
#resultat p {
    background: #f7faff;
    border-left: 4px solid #3a86ff;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

#resultat p strong {
    color: #1f3c88;
}
.menu-matiere {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.menu-matiere a {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    background: #e8eef5;
    color: #1f3c88;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.1s ease;
}

.menu-matiere a:hover {
    background: #d4e0f0;
    transform: translateY(-2px);
}

.menu-matiere a.active {
    background: #3a86ff;
    color: white;
}


