/* style.css */

body {
font-family: Arial, Helvetica, sans-serif;
line-height: 1.5;
margin: 0;
padding: 0;
color: #333;
background: #fafafa;
}

header {
background: #2c3e50;
color: #fff;
text-align: center;
padding: 2rem 1rem;
}

header h1 {
margin: 0 0 0.5rem 0;
font-size: 2rem;
}

header .subtitle {
font-size: 1rem;
margin: 0;
white-space: pre-line;
}

main {
max-width: 900px;
margin: 0 auto;
padding: 2rem 1rem;
background: #fff;
}

section {
margin-bottom: 2.5rem;
}

h2 {
font-size: 1.6rem;
margin-bottom: 1rem;
color: #2c3e50;
border-bottom: 2px solid #ecf0f1;
padding-bottom: 0.3rem;
}

h3 {
font-size: 1.2rem;
margin-top: 1.2rem;
margin-bottom: 0.5rem;
color: #34495e;
}

h4 {
font-size: 1.05rem;
margin-top: 1rem;
margin-bottom: 0.4rem;
color: #34495e;
}

ul {
margin-top: 0.3rem;
margin-bottom: 1rem;
padding-left: 1.3rem;
}

.lang-block {
margin-bottom: 1.2rem;
}

/* Galerie photos */

.gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 0.6rem;
margin-top: 1rem;
}

.gallery-item img {
width: 100%;
height: auto;
display: block;
border-radius: 4px;
border: 1px solid #ddd;
cursor: pointer;
transition: transform 0.15s ease;
}

.gallery-item img:hover {
transform: scale(1.03);
}

footer {
text-align: center;
padding: 1.5rem;
font-size: 0.9rem;
color: #777;
border-top: 1px solid #eee;
background: #fafafa;
}

/* Responsive */

@media (max-width: 600px) {
header h1 {
font-size: 1.6rem;
}
.gallery {
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

<dialog id="photo-dialog">
<button id="close-photo" aria-label="Fermer la photo">×</button>
<img id="large-photo" src="" alt="Photo agrandie" />
</dialog>

<script>
const photoDialog = document.getElementById("photo-dialog");
const largePhoto = document.getElementById("large-photo");
const closePhoto = document.getElementById("close-photo");
const galleryPhotos = document.querySelectorAll(".gallery-item img");

galleryPhotos.forEach(function(photo) {
photo.addEventListener("click", function() {
largePhoto.src = photo.src;
largePhoto.alt = photo.alt;
photoDialog.showModal();
});
});

closePhoto.addEventListener("click", function() {
photoDialog.close();
});

photoDialog.addEventListener("click", function(event) {
if (event.target === photoDialog) {
photoDialog.close();
}
});
</script>
