body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

header {
    text-align: center;
    padding: 2rem;
    background-color: #333;
    color: white;
}

.galerie-style {
    padding: 2rem;
}

.galerie-photo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.galerie-photo img {
    width: 100%;
    height: 300px; /* Force une hauteur uniforme */
    object-fit: cover; /* Coupe l'image pour qu'elle remplisse l'espace */
    border-radius: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block; /* Évite les petits espaces en ligne */
}


.galerie-photo img:hover {
    transform: scale(1.05);
}

/* Modale */
.modale {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modale-contenu {
    max-width: 95%;
    max-height: 95vh;
    width: auto;
    height: auto;
    border-radius: 1rem;
}

.fermer {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

.fleche {
    position: absolute;
    top: 50%;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 1rem;
    transform: translateY(-50%);
    z-index: 1001;
}

.fleche.gauche {
    left: 20px;
}

.fleche.droite {
    right: 20px;
}

/* Bouton en bas à droite */
.comment-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #444;
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    z-index: 1000;
    transition: background 0.3s;
    font-family: 'Open Sans', sans-serif;
}
.comment-toggle:hover {
    background-color: #666;
}

/* Modale centrale */
.comment-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.comment-modal.ouvert {
    display: flex;
}

.comment-box {
    background: #fff;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    font-family: 'Open Sans', sans-serif;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    font-weight: bold;
    font-size: 18px;
}

.comment-header button {
    background: none;
    border: none;
    font-size: 22px;
    color: #333;
    cursor: pointer;
}

.comment-content {
    margin-top: 15px;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin: 40px auto 30px auto; 
    background-color: #34495e; /* Même gris que le hover de .switch-btn */
    border: 2px solid #34495e;
    color: white; /* Texte blanc */
    font-family: 'Open Sans', sans-serif;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
}




.back-link:hover {
    background-color: rgba(0, 0, 0, 0.9); /* même couleur que .switch-btn:hover */
    color: white;
}


.arrow-left {
    display: inline-block;
    border: solid white; /* Flèche blanche */
    border-width: 0 2px 2px 0;
    padding: 5px;
    margin-right: 10px;
    transform: rotate(135deg);
}