body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.image-open {
    background-color: rgba(0, 0, 0, 0.808); /* Fond noir léger avec une opacité de 30% */
}

#header {
    position: fixed;
    top: 35px; /* Un peu de marge en haut */
    left: 0;
    right: 0;
    text-align: center; /* Centre les titres horizontalement */
    z-index: 1000;
    color: white;
    font-size: 24px;
    margin-bottom: 10px; /* Ajoute de l'espace sous les textes et le bouton */
}

#title1 {
    font-family: 'Pricedown', sans-serif; /* Utilisation de la police Pricedown */
    font-size: 20px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    margin-bottom: 5px; /* Augmente l'espace entre title1 et title2 */
}

#title2 {
    font-family: 'Bank Gothic', sans-serif; /* Utilisation de la police Bank Gothic */
    font-size: 16px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

#close-btn {
    position: fixed;
    top: 10px;
    right: 20px; /* Un peu de marge à droite */
    cursor: pointer;
    font-size: 45px; /* Taille augmentée pour plus de visibilité */
    color: white;
}

#pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 7px;
}

.custom-button {
    background-color: rgba(255, 255, 255, 0.171);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center; /* Assure l'alignement vertical */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-button i {
    color: white;
    font-size: 12.5px; /* Taille ajustée de l'icône */
    position: relative;
    top: -5px; /* Ajuste cette valeur pour centrer verticalement */
}


.custom-button:hover {
    background-color: rgba(255, 255, 255, 0.3); /* Couleur de fond au survol */
}

#page-number {
    font-size: 15px; /* Garde la même taille pour le numéro de page */
    color: white;
    cursor: default;
    margin: 0 15px; /* Espacement équilibré entre les flèches */
}



#image-container {
    position: relative;
    max-width: 100%;
    height: auto;
    text-align: center;
}

#image {
    max-width: 100%;
    max-height: 75vh;
    display: block;
    margin-top: 5px;
}
