/* ============================================================
   TABLE DES MATIÈRES
   1. Styles Généraux
   2. Navigation
   3. Mise en Page & Cartes (Module/Contact/Quiz)
   4. Images et Légendes
   5. Quiz (Alignement, Titres et Bouton Valider)
   6. Formulaire de Contact & Détails Professionnels
   7. Boutons et Icônes
   8. Pied de Page (Footer Bleu Professionnel)
   9. Responsive Design
   ============================================================ */

/* 1. Styles Généraux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
}

header {
    background-color: #1E3A8A;
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 2. Navigation */
nav {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #1E3A8A;
    font-weight: 600;
    transition: 0.3s ease;
}

nav ul li a:hover {
    color: #3B82F6;
}

/* 3. Mise en Page & Cartes */
main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
}

section, .module-card, .form-container {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e1e4e8;
}

/* 4. Images et Légendes */
figure {
    margin: 25px auto;
    text-align: center;
}

figure img {
    max-width: 90%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto 10px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

figcaption {
    font-size: 0.95em;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* 5. Quiz (Alignement, Titres et Bouton Valider) */
.quiz-title {
    text-align: center;
    margin: 40px 0;
    color: #1E3A8A;
    font-size: 2.2em;
    font-weight: 800;
}

.question {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 6px solid #1E3A8A;
}

.option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.option:hover {
    background-color: #eef2ff;
}

.option input[type="radio"] {
    margin-right: 15px;
    width: 18px;
    height: 18px;
    accent-color: #1E3A8A;
    flex-shrink: 0;
}

/* Centrage du bouton de validation du quiz */
.btn-quiz {
    display: flex;
    margin: 40px auto; /* Centre le bouton horizontalement */
}

/* 6. Formulaire de Contact & Détails Professionnels */
.contact-details ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #475569;
}

.contact-details i {
    color: #1E3A8A;
    font-size: 1.3em;
    width: 30px;
    text-align: center;
}

.contact-details a {
    color: #1E3A8A;
    text-decoration: none;
    font-weight: 500;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input, 
.form-group textarea {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

/* 7. Boutons et Icônes */
button[type="submit"], .btn-quiz {
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #1E3A8A;
    color: white;
    padding: 15px 45px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

button[type="submit"] i, .btn-quiz i {
    color: #93c5fd;
}


button[type="submit"]:hover, .btn-quiz:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

/* Centrage spécifique pour le bouton envoyer */
button[type="submit"] {
    display: flex;
    margin: 20px auto;
}

/* 8. Pied de Page (Footer Bleu Professionnel) */
footer {
    background-color: #1E3A8A;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

footer p {
    margin: 0;
    font-weight: 500;
}

/* 9. Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}