/**
 * Styles pour le zoom d'images
 * Version: 1.0.0
 */

/* Wrapper pour les images avec icône loupe */
.image-zoom-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.image-zoom-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
}

.image-zoom-icon {
    position: absolute;
    bottom: 40px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.image-zoom-wrapper:hover .image-zoom-icon {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.image-zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-zoom-modal.active {
    display: block;
    opacity: 1;
}

.image-zoom-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.image-zoom-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-zoom-modal.active .image-zoom-img {
    transform: scale(1);
}

.image-zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 44px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    color: #333;
}

.image-zoom-close:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Style pour indiquer que les images sont cliquables */
.contenu-article .content-image {
    transition: opacity 0.3s ease;
}

.contenu-article .content-image:hover {
    opacity: 0.8;
}