/* Styles de support pour la fonctionnalité de zoom avec navigation */
.gallery-item {
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.gallery-item:hover::before {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Instructions de zoom qui apparaissent au survol */
.gallery-item::after {
    content: 'Cliquez pour zoomer';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Modification de l'instruction pendant le zoom */
.gallery-item:has(.zoomed)::after {
    content: 'Glissez pour naviguer • Double-cliquez pour fermer';
    opacity: 1;
}

/* Assurer que le z-index est correct pour l'élément zoomé */
.zoomable-img.zoomed {
    z-index: 1000;
}
