/* style.css - Design commun pour tout le site */

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Barre de navigation des unités */
.unite-nav {
    display: flex;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    gap: 10px;
}

.unite-nav a {
    text-decoration: none;
    color: #555;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.2s;
}

.unite-nav a:hover {
    background: #eef2f7;
    color: #0056b3;
}

.unite-nav a.active {
    background: #0056b3;
    color: white;
}

.unite-nav .back-btn {
    margin-right: auto;
    color: #0056b3;
}

/* Boîtes de leçons et d'exercices */
.lesson-box, .exercice-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

h1 { color: #0f172a; margin-top: 0; }
h2 { color: #0056b3; margin-top: 25px; border-bottom: 1px solid #ddd; padding-bottom: 5px; }

.rule-card, .dialogue-box {
    background: #f8fafc;
    border-left: 4px solid #0056b3;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Formulaires et Boutons */
.question {
    margin-bottom: 20px;
    font-size: 18px;
}

select {
    padding: 8px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-left: 10px;
}

button {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}

button:hover {
    background-color: #004085;
}

/* Résultats des exercices */
.resultat {
    margin-top: 20px;
    font-weight: bold;
    font-size: 18px;
}

.correct { color: green; }
.incorrect { color: red; }
