    /* Conteneur principal */
    .gallery-container {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .photo-gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    /* Chaque album */
    .photo-item {
        display: flex;
        flex-direction: column;
        width: 276px;
        /* Largeur fixe */
        text-align: center;
        text-decoration: none;
        color: black;
    }

    /* Conteneur pour uniformiser les images */
    .photo-thumbnail {
        width: 276px;
        height: 180px;
        /* Taille fixe */
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #f8f9fa;
        border-radius: 6px;
    }

    /* Images bien alignées */
    .thumbnail-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Ajuste et coupe l'image pour un affichage uniforme */
    }

    /* Titre sous l’image */
    .photo-title {
        font-size: 12px;
        font-weight: bold;
        margin-top: 8px;
    }

    /* Uniformisation de la taille des photos */
    .photo-wrapper {
        width: 100%;
        height: 150px;
        /* Taille fixe pour uniformiser */
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #f8f9fa;
    }

    .photo-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Uniformisation des images */
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .photo-wrapper img:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    /* Système de notation par étoiles */
    .rating {
        display: flex;
        justify-content: center;
        flex-direction: row-reverse;
        gap: 5px;
        cursor: pointer;
    }

    /* Étoiles non sélectionnées */
    .star {
        font-size: 24px;
        color: gray;
        transition: color 0.3s ease;
    }

    /* Survol : toutes les étoiles précédentes passent en jaune */
    .star:hover,
    .star:hover~.star {
        color: gold;
    }

    /* Étoiles sélectionnées après un vote */
    .star.active,
    .star.active~.star {
        color: gold;
    }

    /* Modifier la couleur des liens de pagination */
    .pagination .page-link {
        background-color: white !important;
        /* Fond blanc */
        color: #5E209F !important;
        /* Texte violet */
        border: 1px solid #5E209F !important;
        /* Bordure violette */
        font-weight: bold;
        transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    }

    /* Modifier la couleur au survol */
    .pagination .page-link:hover {
        background-color: #A854FF !important;
        /* Fond violet clair */
        color: white !important;
        /* Texte blanc */
    }

    /* Page active */
    .pagination .active .page-link {
        background-color: #5E209F !important;
        /* Fond violet foncé */
        color: white !important;
        /* Texte blanc */
        border: 1px solid #5E209F !important;
    }

    /* Désactiver les liens inactifs */
    .pagination .disabled .page-link {
        background-color: #E0E0E0 !important;
        /* Gris clair */
        color: #A0A0A0 !important;
        /* Texte gris */
    }

    .pagination-container {
        display: flex;
        justify-content: center;
        /* ✅ Centre tout l'élément pagination */
        margin-top: 20px;
        /* ✅ Ajoute un espace au-dessus si besoin */
    }

    .pagination-container .pagination {
        display: flex;
        list-style: none;
        padding: 20px;
        justify-content: center;
        /* ✅ Centre les boutons de pagination */
    }

    .pagination-container .pagination li {
        margin: 0 5px;
    }

    .pagination-container .pagination li a,
    .pagination-container .pagination li span {
        display: block;
        padding: 10px 15px;
        border-radius: 5px;
        text-decoration: none;
        background-color: #286fff;
        color: white;
        font-weight: bold;
        transition: background 0.3s;
    }

    .pagination-container .pagination li a:hover {
        background-color: #1a4fc3;
    }

    .pagination-container .pagination .active span {
        background-color: #1a4fc3;
    }

    /* Conteneur du bouton */
    .back-button {
        text-align: left;
        margin: 2em;
    }

    /* Style du bouton de retour */
    .custom-back-btn {
        background-color: #5E209F;
        /* Fond violet */
        color: white !important;
        /* Texte blanc */
        padding: 10px 20px;
        border-radius: 8px;
        font-weight: bold;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        /* Espace entre la flèche et le texte */
        transition: background-color 0.3s ease-in-out, transform 0.2s;
    }

    /* Changer la couleur au survol */
    .custom-back-btn:hover {
        background-color: #A854FF !important;
        /* Violet plus clair */
        transform: scale(1.05);
    }

    /* Flèche stylisée */
    .arrow-purple {
        color: white;
        /* Flèche blanche */
        font-size: 18px;
        transition: color 0.3s ease-in-out;
    }

    /* Flèche devient violette au survol */
    .custom-back-btn:hover .arrow-purple {
        color: #5E209F;
        /* Violet */
    }

    .blurred {
        filter: blur(10px);
        transform: scale(1.05);
    }

    .lock-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 14px;
        pointer-events: none;
    }

    .photo-card.locked {
        position: relative;
        cursor: not-allowed;
    }

    .photo-card.locked a {
        pointer-events: none;
    }