
body, h1, h2, h3, p, div {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Additional styles for the gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto; /* Ajoute un scroll vertical si la galerie dépasse la hauteur de la fenêtre */
    max-height: calc(100vh - 100px); /* Limite la hauteur de la galerie pour laisser de l'espace pour le reste du contenu de la page */
}

.image-container {
    margin: 10px;
    position: relative;
}

#button-container {
    position: absolute;
    top: 10px; /* Place le conteneur au-dessus de l'image */
    left: 50%;
    transform: translateX(-50%); /* Centre le conteneur */
    display: flex; /* Alignement horizontal des éléments à l'intérieur */
    align-items: center; /* Centre les éléments verticalement */
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent pour les icônes */
    padding: 5px;
    border-radius: 5px;
    z-index: 10; /* Assurez-vous qu'il est au-dessus de l'image */
}

.gallery-image {
    Margin: 10px;
	width: 200px;
    height: auto;
    cursor: pointer;
}

.modal {
    display: none;
	justify-content: flex-end;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    height: auto;
	transition: transform 0.3s;
}

.modal-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 50px;
}
/* Styles pour les icônes */
.download-icon,
#alt-icon,
.close {
    margin: 0 5px; /* Espacement entre les icônes */
    color: #fff; /* Couleur blanche pour une meilleure visibilité */
    cursor: pointer;
}

.close:hover,
.close:focus,
#alt-icon:hover,
.download-icon:hover {
    opacity: 0.7; /* Effet d'opacité au survol pour indiquer l'interaction */
}

.download-icon {
    width: 20px;
    height: 20px;
}

/*gallery*/

/* Styles pour la fenêtre modale d'affichage du texte alt */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    z-index: 9999; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content-alt {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 80%;
	max-height: 80vh; /* Hauteur maximale avant d'ajouter le défilement */
    overflow-y: auto;
    text-align: center;
}
@media (max-width: 600px) {
    .modal-content-alt {
        max-width: 90%; /* Plus large sur les petits écrans pour une meilleure lisibilité */
        max-height: 80vh; 
        overflow-y: auto;
    }
}

.modal-content-alt h2 {
    margin-bottom: 10px;
}

.modal-content-alt p {
    margin-bottom: 20px;
}

.close-modal {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.close-modal:hover {
    background-color: #0056b3;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    background-color: #f4f4f4; 
    color: #333; 
    line-height: 1.6;
    padding: 20px;
}

h1, h3 {
    text-align: center; 
    margin-top: 20px; 
}

h1 {
    font-size: 2.5em; 
    color: #025; 
}

h3 {
    font-size: 1.2em; 
    color: #027; 
    margin-bottom: 20px; 
}

.faq-item {
    background-color: white;
    padding: 20px;
    margin: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#mainCounter {
    font-size: 4em; 
    text-align: center;
    color: #d00; 
    padding: 10px 0; 
}

a {
    color: #0066cc; 
    text-decoration: none; 
}

nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
    background-color: #025;
    margin-bottom: 20px; /* Espace entre la navigation et le contenu de la section */
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
}

nav ul li a:hover {
    text-decoration: underline;
    color: #ccc;
}

main section {
    background-color: white;
    padding: 20px;
    margin: 20px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: left; /* Alignement du texte à gauche pour le contenu principal */
}

a:hover {
    text-decoration: underline; 
}

p {
    text-align: center;
    margin-top: 10px; 
}
p a {
    line-height: 1.2;
}

footer {
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
    background-color: #e5e5e5; 
    border-top: 1px solid #ddd; 
}

footer p {
    margin-top: 10px;
    margin-bottom: 10px;
}

footer a {
    color: #025a70;
}

footer a:hover {
    color: #333;
    text-decoration: underline;
}
