body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f5f5f5;
    color: #333;
}

header {
    background-color: #1F6357;
    color: #fff; 
    padding: 20px;
    text-align: center;
}

.banner {
    width: 100%; /* Prend toute la largeur du bandeau */
    overflow: hidden; /* Évite que l'image déborde */
    margin: 0; /* Retire la marge par défaut */
}

.responsive-banner {
    width: 100%; /* L'image prend 100% de la largeur de son conteneur */
    height: auto; /* La hauteur s'ajuste automatiquement pour garder les proportions */
    display: block; /* Supprime l'espace par défaut autour de l'image */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    display: inline-block;
    margin: 0 10px;
}

nav a {
    text-decoration: none;
    color: #333;
}

main {
    padding: 20px;
}

.post {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.post.liensarticles{
    background: #E5E4E2;
}

.post img {
    width: 100%;
    height: auto;
    border-radius: 5px 5px 0 0;
}

.post h2 {
    margin-top: 10px;
    color: #1F6357;
}

.post h3 {
    margin-top: 10px;
    color: #2E8B57;
}

.post p {
    line-height: 1.5;
}

.post a {
    display: block;
    text-align: center;
    padding: 10px;
    /*background-color: #007bff;*/
    color: #357EC7;
    text-decoration: none;
    border-radius: 5px;
}

.post a.linkurl {
    display: unset;
    text-align: left;
    padding: 0px;
    /*background-color: #007bff;*/
    color: #357EC7;
    text-decoration: none;
    
}

.post a.current{
    color: #1F6357;
    font-weight: bold;
}

.post .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-top: 10px;
}



.post .gallery img {
/*    width: 49%;
    height: 49%;
    margin-bottom: 10px;
    border-radius: 5px;*/



    width: 32%;
    height: 32%;
    margin-bottom: 10px;
    border-radius: 5px;
  object-fit: contain;
  object-position: center;

}

@media (max-width: 768px) { 

    .post .gallery iframe {
        width: 100%; /* Largeur des images sur toute la largeur */

        margin-bottom: 10px; /* Espacement entre les images */
    }

    .post .gallery {
        display: block; /* Affiche les images en colonne */
    }

    .post .gallery img {
        width: 100%; /* Largeur des images sur toute la largeur */
        margin-bottom: 10px; /* Espacement entre les images */
    }
}

footer {
    background-color: #1F6357;
    color: #fff; 
    padding: 10px;
    text-align: center;
}



/*---- popup -----*/
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0);
  width: 90vw; /* Largeur de 90% de la largeur de la fenêtre */
  height: 90vh; /* Hauteur de 90% de la hauteur de la fenêtre */
  z-index: 1000;
  overflow-y: auto; /* Ajout de la propriété overflow-y */
}

.popup-content {
  background-color: #fefefe;
  margin: 0; /* Supprimer la marge */
  padding: 0; /* Supprimer le padding */
  border: 1px solid #888;
  width: 99%; /* Ajuster la largeur au contenu */
  height: 99%; /* Ajuster la hauteur au contenu */
  text-align: center;
  display: flex; /* Utiliser flexbox pour centrer l'image */
  justify-content: center; /* Centrer horizontalement */
  align-items: center; /* Centrer verticalement */
  position: relative; /* Pour positionner la croix */
}



.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  margin: 10px; /* Ajouter une marge pour l'espacement */
  position: absolute; /* Positionner la croix par rapport à la popup-content */
  top: 10px; /* Positionner la croix en haut */
  right: 10px; /* Positionner la croix à droite */
  cursor: pointer; /* Changer le curseur en pointeur */
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}


#popupImage {
  max-width: 100%; 
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}


