/* Reset des styles par défaut */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS pour les couleurs */
:root {
    --primary-color: #333;
    --highlight-color: #DAF7A6;
    --secondary-color: #555;
    --background-light: #f9f9f9;
    --background-dark: #333;
    --text-light: #fff;
    --text-dark: #333;
    --button-background: #DAF7A6;
    --button-hover: #ffcc00;
    --link-color: #007bff;
    --link-hover: #0056b3;
}

/* Styles généraux */
body {
    font-family: 'Lato', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.62;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* En-tête et pied de page */
header, footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 20px 0;
    text-align: center;
    border-bottom: 4px solid var(--highlight-color);
}

header h1 {
    margin: 0;
    font-size: 2em;
    color: var(--highlight-color);
}

footer p {
    margin: 0;
    color: var(--highlight-color);
}

/* Navigation */
nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    background-color: var(--background-dark);
    padding: 10px 20px;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

nav ul li a:hover {
    color: var(--highlight-color);
    background-color: var(--secondary-color);
}

/* Contenu principal */
main {
    padding: 20px 0;
    flex-grow: 1;
}

/* Images centrées */
.centered-image {
    display: block;
    margin: 0 auto;
    max-width: 35%;
    height: auto;
    border: 5px solid rgba(218, 247, 166, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.centered-image:hover {
    transform: scale(1.05);
}

/* Vidéos Facebook */
.last-video-facebook {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.last-video-facebook iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.facebook-videos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.facebook-videos article {
    flex: 1 1 calc(33.333% - 20px);
}
/* Animation d'apparition pour la section "Dernières actualités" */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.latest-news {
    background-color: #b3e76f;
    padding: 10px;
    width: 60%;
    margin: 20px auto;
    opacity: 0;
    animation: fade-in 4s ease forwards;
}

.latest-news .container {
    text-align: center;
}

.latest-news h2 {
    margin-bottom: 20px;
    color: var(--text-light);
}

.latest-news article {
    background-color: var(--text-light);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.latest-news article h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.latest-news article p {
    font-size: 14px;
    margin-bottom: 10px;
}

.latest-news article a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
}

.latest-news article a:hover {
    color: var(--link-hover);
}

/* Politique de confidentialité */
.policy-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    padding: 20px;
    background-color: var(--background-dark);
    color: var(--text-light);
    border-radius: 5px;
    text-align: center;
    border: 2px solid var(--highlight-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.policy-container p {
    margin-bottom: 10px;
}

.policy-container a {
    color: var(--highlight-color);
    text-decoration: underline;
}

.policy-container a:hover {
    color: var(--button-hover);
}

.policy-container button {
    background-color: var(--highlight-color);
    border: none;
    color: var(--text-dark);
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.policy-container button:hover {
    background-color: var(--button-hover);
}

/* Cartes */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    color: var(--text-dark);
    border-bottom: 2px solid var(--highlight-color);
    padding-bottom: 10px;
}

/* Items d'action */
.action-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.action-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

table th {
    background-color: #f4f4f4;
}

/* Media Queries */
@media only screen and (max-width: 768px) {
    .centered-image {
        max-width: 90%;
    }
    .last-video-facebook {
        flex-direction: column;
    }

    .last-video-facebook iframe {
        width: 100%;
        max-height: 56.25vw; /* 16:9 aspect ratio */
    }

    .facebook-videos {
        flex-direction: column;
        align-items: center;
    }

    .facebook-videos article {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    table {
        font-size: 14px;
    }

    table th, table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    table th {
        background-color: #e0e0e0;
        position: sticky;
        top: 0;
    }
}
/* Formulaire de contact */
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2E7D32;
}

input, textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    height: 150px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

.captcha {
    margin-top: 1rem;
    text-align: center;
}

#captcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

#captcha-canvas {
    border: 1px solid #ccc;
    border-radius: 4px;
}

#refresh-captcha {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.status-message.success {
    background-color: #DFF2BF;
    color: #4F8A10;
}

.status-message.error {
    background-color: #FFBABA;
    color: #D8000C;
}
