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%;
    border-radius: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.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;
    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;
}

.special-photo {
    position: relative;
}

.photo-container {
    position: relative;
}

.photo-container img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: block;
    transition: opacity 0.3s ease;
}

/* Bouton de changement */
.switch-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: #b49c73;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.switch-btn:hover {
    background-color: #a0895c;
}

/* Message d'animation */
.switch-message {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(180, 156, 115, 0.95);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.switch-message.show {
    opacity: 1;
    animation: fadeOut 2.5s ease forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; transform: translateX(-50%) translateY(-5px); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-15px); }
}

/* 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);
}


