/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

/* Zone image : hauteur fixe, image centrée sans déformation */
.slide img {
    display: block;
    height: 500px;
    width: 100%;
    object-fit: contain;     /* réduit si trop grand, sans recadrage ni déformation */
    background-color: #f0f0f0;
}

/* Caption sous l'image, en dehors de la zone 500px */
.slide-caption {
    display: block;
    background: none;
    color: #333;
    padding: 10px 20px;
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
}

/* Navigation arrows — centrées sur la zone image uniquement */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 250px; /* milieu de la zone image (500px / 2) */
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    background: rgba(0,0,0,0.5);
    border: none;
    user-select: none;
    transition: background 0.3s ease;
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.8);
}
