.peek-carousel-wrapper {
    padding: 60px 20px;
    background-color: #f0f5ed;
}

.peek-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.peek-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.peek-slide {
    position: absolute;
    width: 60%;
    height: 80%;
    max-width: 600px;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    transform-origin: center center;
}

.peek-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.peek-slide.active {
    opacity: 1 !important;
    z-index: 3 !important;
    transform: translateX(0) scale(1) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    filter: brightness(1) !important;
    pointer-events: auto;
}

.peek-slide.prev {
    opacity: 1 !important;
    z-index: 1 !important;
    filter: brightness(0.7) !important;
    pointer-events: auto;
}

.peek-slide.next {
    opacity: 1 !important;
    z-index: 1 !important;
    filter: brightness(0.7) !important;
    pointer-events: auto;
}

.peek-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #2d5016;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.peek-nav:hover {
    background-color: #3d6b1e;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.peek-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.peek-prev {
    left: 20px;
}

.peek-next {
    right: 20px;
}

.peek-nav svg {
    width: 24px;
    height: 24px;
}

.peek-slide-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

@media (max-width: 1024px) {
    .peek-carousel {
        height: 400px;
    }
    
    .peek-slide {
        width: 70%;
        height: 75%;
    }
}

@media (max-width: 768px) {
    .peek-carousel {
        height: 350px;
    }
    
    .peek-slide {
        width: 85%;
        height: 70%;
    }
    
    .peek-slide.prev,
    .peek-slide.next {
        opacity: 0.3 !important;
    }
    
    .peek-nav {
        width: 40px;
        height: 40px;
    }
    
    .peek-prev {
        left: 10px;
    }
    
    .peek-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .peek-carousel {
        height: 300px;
    }
    
    .peek-slide {
        width: 90%;
        height: 65%;
    }
    
    .peek-carousel-wrapper {
        padding: 40px 10px;
    }
}

/* Lightbox Styles */
.peek-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.peek-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.peek-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.peek-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.peek-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.peek-lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.peek-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.peek-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.peek-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.peek-lightbox-prev {
    left: -80px;
}

.peek-lightbox-next {
    right: -80px;
}

.peek-lightbox-title {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.peek-lightbox-counter {
    position: absolute;
    top: -60px;
    left: 0;
    color: white;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Curseur pointer sur l'image active */
.peek-slide.active img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.peek-slide.active img:hover {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
    .peek-lightbox-nav {
        width: 50px;
        height: 50px;
    }
    
    .peek-lightbox-prev {
        left: 10px;
    }
    
    .peek-lightbox-next {
        right: 10px;
    }
    
    .peek-lightbox-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
    }
    
    .peek-lightbox-counter {
        top: 10px;
        left: 10px;
        font-size: 14px;
    }
    
    .peek-lightbox-title {
        bottom: 20px;
        font-size: 16px;
        padding: 0 20px;
    }
    
    .peek-lightbox-content {
        max-width: 95vw;
    }
}