body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 1em 0;
    text-align: center;
}

header h1 {
    margin: 0;
}
/* Centrer les titres */
h1, h2, h3, h4, h5, h6 {
    text-align: center;
}

/* Justifier les paragraphes et autres textes */
p, li, figcaption {
    text-align: justify;
}

main {
    padding: 2em;
    margin-bottom: 4em; /* Ajustez cette valeur en fonction de la hauteur de votre pied de page */
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    backgroung: white;
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 2em;
    gap: 1em;
}

.photo-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 2px solid #000; /* Ajoute un trait noir de 2 pixels autour de l'image */
}

.photo-gallery figure {
    flex: 1 1 calc(45% - 2em);
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
    overflow: hidden;
    padding: 0.5em;
    box-sizing: border-box;
}

.photo-gallery figcaption {
    text-align: center;
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #555;
}



.photo-nous {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 1em;
    gap: 1em;
}

.photo-nous img {
    width: 200px;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 2px solid #000; /* Ajoute un trait noir de 2 pixels autour de l'image */
}
.photo-nous figcaption {
    text-align: center;
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #555;
}


.video-gallery {
    margin-top: 1em;
}

.video-container {
    display: flex;
    justify-content: space-around;
    gap: 1em;
    margin-top: 1em;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne suivante si nécessaire */
    margin-bottom: 50px;
}

.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 300px; /* Permet aux éléments de s'ajuster et de passer à la ligne si nécessaire */
    min-width: 250px; /* Largeur minimale pour chaque vidéo */
}

.video-item video {
    width: 100%; /* Utilise toute la largeur disponible */
    height: auto;
    border-radius: 4px;
}

.video-item h3 {
    text-align: center;
    margin-bottom: 0.5em;
    font-size: 1em;
    color: #333;
}



/* Media query pour les petits écrans comme les téléphones */
@media (max-width: 600px) {
    .video-container {
        flex-direction: column;
        align-items: center;
    }

    .video-item {
        margin-bottom: 1em;
    }
}



footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    height: 3em; /* Ajustez cette valeur en fonction de la hauteur réelle de votre pied de page */
}

a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .photo-gallery {
        flex-direction: column;
    }

    .photo-gallery figure {
        width: 100%;
    }
}
