/**
 * Icônes améliorées pour la galerie d'images
 * Des icônes plus belles et modernes pour une meilleure expérience utilisateur
 */

/* Base pour toutes les icônes */
.icon-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Styles communs pour les boutons avec icônes */
.btn-with-icon {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-with-icon:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-with-icon:hover:before {
    opacity: 1;
}

.btn-with-icon:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.btn-with-icon:active:after {
    opacity: 1;
    transform: scale(2);
    transition: transform 0.2s ease, opacity 0.3s ease;
}

/* Icônes de navigation (flèches) */
.icon-arrow-left, .icon-arrow-right {
    stroke: white;
    stroke-width: 2.5;
}

.mmz-nav-btn {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    width: 50px !important;
    height: 50px !important;
}

.mmz-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.05) !important;
}

.mmz-nav-btn:active {
    transform: scale(0.95) !important;
}

.mmz-nav-btn svg {
    width: 60% !important;
    height: 60% !important;
}

/* Icônes pour les boutons de la barre d'outils */
.mmz-toolbar-btn {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 40px !important;
    height: 40px !important;
}

.mmz-toolbar-btn:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px) !important;
}

.mmz-toolbar-btn:active {
    transform: translateY(0) !important;
}

.mmz-toolbar-btn.active {
    background: rgba(26, 115, 232, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Icône de diaporama (play) */
.icon-play {
    stroke: white;
    stroke-width: 2;
    fill: rgba(255, 255, 255, 0.2);
}

.mmz-slideshow-btn svg {
    width: 65% !important;
    height: 65% !important;
}

/* Icône de diaporama (pause) */
.icon-pause {
    stroke: white;
    stroke-width: 2;
}

/* Icône de zoom */
.icon-zoom {
    stroke: white;
    stroke-width: 1.8;
}

/* Icône de plein écran */
.icon-fullscreen {
    stroke: white;
    stroke-width: 2;
}

/* Icône de téléchargement */
.icon-download {
    stroke: white;
    stroke-width: 2;
}

/* Icône de fermeture */
.mmz-close-btn {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 0 !important; /* Cacher le texte */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mmz-close-btn:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: rotate(90deg) scale(1.05) !important;
}

.mmz-close-btn:before, .mmz-close-btn:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: white;
    border-radius: 1px;
}

.mmz-close-btn:before {
    transform: rotate(45deg);
}

.mmz-close-btn:after {
    transform: rotate(-45deg);
}

/* Boutons de navigation des miniatures */
.thumb-prev, .thumb-next, .slick-prev, .slick-next {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    width: 32px !important;
    height: 32px !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.thumb-prev:hover, .thumb-next:hover, .slick-prev:hover, .slick-next:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.thumb-prev svg, .thumb-next svg, .slick-prev svg, .slick-next svg {
    width: 60% !important;
    height: 60% !important;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
}

/* Masquer les flèches par défaut de Slick */
.slick-prev:before, .slick-next:before {
    display: none !important;
}

/* Positionnement des flèches Slick */
.slick-prev {
    left: 5px !important;
}

.slick-next {
    right: 5px !important;
}

/* Assurer que les flèches sont visibles */
.slick-prev, .slick-next {
    opacity: 1 !important;
}

/* Style pour les boutons désactivés */
.thumb-prev.disabled, .thumb-next.disabled, .slick-prev.slick-disabled, .slick-next.slick-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Effet de pulsation pour indiquer la présence des boutons */
@keyframes pulse-nav {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.thumb-prev, .thumb-next, .slick-prev, .slick-next {
    animation: pulse-nav 2s infinite;
}

/* Animation pour le bouton de diaporama */
@keyframes pulse-play {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(26, 115, 232, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
    }
}

.mmz-slideshow-btn.active {
    animation: pulse-play 2s infinite;
    background: rgba(26, 115, 232, 0.8) !important;
}

/* Styles pour ElevateZoom */
.zoomContainer {
    z-index: 9 !important;
}

.zoomWindow {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    border-radius: 4px !important;
}

.zoomLens {
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    cursor: crosshair !important;
}



/* Styles responsifs */
@media screen and (max-width: 768px) {
    .mmz-nav-btn {
        width: 40px !important;
        height: 40px !important;
    }

    .mmz-toolbar-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .mmz-close-btn {
        width: 38px !important;
        height: 38px !important;
    }

    .thumb-prev, .thumb-next {
        width: 28px !important;
        height: 28px !important;
    }

    /* Ajustements pour ElevateZoom sur mobile */
    .zoomWindow {
        display: none !important; /* Désactiver la fenêtre de zoom sur mobile */
    }

    .zoomLens {
        border-width: 1px !important;
    }
}

@media screen and (max-width: 480px) {
    .mmz-nav-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .mmz-toolbar-btn {
        width: 32px !important;
        height: 32px !important;
    }

    .mmz-close-btn {
        width: 34px !important;
        height: 34px !important;
    }

    .thumb-prev, .thumb-next {
        width: 24px !important;
        height: 24px !important;
    }
}
