/* --- Base et Typographie --- */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
}

header {
    background-color: #0056b3; /* Bleu pour un look professionnel */
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 5px solid #28a745; /* Vert pour rappeler l'écologie */
}

h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5em;
    margin-bottom: 5px;
}

.subtitle {
    font-style: italic;
    font-size: 1.1em;
}

main {
    max-width: 950px;
    margin: 40px auto;
    padding: 0 20px;
}

section {
    background-color: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    font-family: 'Oswald', sans-serif;
    color: #0056b3;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-top: 0;
}

h3 {
    color: #28a745;
    font-size: 1.4em;
    margin-top: 20px;
}

/* --- Images et Mise en Page --- */
img {
    max-width: 75%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.img-full {
    display: block;
    margin: 15px auto;
}

.img-right {
    float: right;
    width: 40%;
    margin-left: 20px;
    margin-bottom: 15px;
}

.img-left {
    float: left;
    width: 40%;
    margin-right: 20px;
    margin-bottom: 15px;
}

/* Pour nettoyer les flottants */
section::after {
    content: "";
    display: table;
    clear: both;
}

/* --- Tableau --- */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    color: #0056b3;
    font-weight: bold;
}

/* --- Interactivité (Sondage et Quiz) --- */
.poll-box, #quiz-container {
    background-color: #e6f7ff; /* Bleu très clair */
    padding: 20px;
    border-radius: 6px;
    border-left: 5px solid #0056b3;
    margin: 25px 0;
}

.poll-box h4 {
    color: #0056b3;
    margin-top: 0;
}

button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1e7e34;
}

#poll-results, .quiz-feedback {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: none; /* Caché par défaut via JS */
}

.results-hidden {
    display: none !important;
}

.correct { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.incorrect { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }

/* --- Appel à l'Action --- */
.call-to-action {
    text-align: center;
    background-color: #d4edda;
    border-left: 5px solid #28a745;
}

.contact-button {
    display: inline-block;
    background-color: #ffc107; /* Jaune accrocheur */
    color: #333;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: #e0a800;
}

/* --- Ressources --- */
.resource-list {
    list-style-type: disc;
    padding-left: 20px;
}

.resource-list li a {
    color: #0056b3;
    text-decoration: none;
}

.resource-list li a:hover {
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    margin-top: 40px;
    font-size: 0.9em;
}

/* Media Queries pour la réactivité */
@media (max-width: 768px) {
    .img-right, .img-left {
        float: none;
        width: 100%;
        margin: 15px 0;
    }
}