.carousel-superpose {
    position: relative;
    width: 80%;
    max-width: 500px;
    margin: auto;
}

.conteneur-photos-superposees {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: inherit;
    margin: auto;
}

.conteneur-photos-superposees .photo-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    cursor: not-allowed;
    opacity: 0;
    z-index: 1;
    display: block;
}

.conteneur-photos-superposees .photo-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* États superposés */
.conteneur-photos-superposees .photo-link[data-display="active"] {
    transform: rotate(6deg);
    opacity: 1;
    z-index: 4;
    cursor: pointer;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.conteneur-photos-superposees .photo-link[data-display="second"] {
    transform: rotate(-10deg);
    opacity: 1;
    z-index: 3;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.conteneur-photos-superposees .photo-link[data-display="third"] {
    transform: rotate(0deg);
    opacity: 1;
    z-index: 2;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

/* Animations de sortie */
.conteneur-photos-superposees .photo-link.slide-out-next {
    transform: translateX(100%) translateY(100%) rotate(30deg);
    opacity: 0;
    z-index: 5;
    transition: transform 0.5s ease-in, opacity 0.5s ease-in;
}

.conteneur-photos-superposees .photo-link.slide-out-prev {
    transform: translateX(-100%) translateY(100%) rotate(-30deg);
    opacity: 0;
    z-index: 5;
    transition: transform 0.5s ease-in, opacity 0.5s ease-in;
}

/* Flèches */
.carousel-superpose .prev-btn,
.carousel-superpose .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    color: #F8F6E6;
}

.carousel-superpose .prev-btn:hover,
.carousel-superpose .next-btn:hover,
.carousel-superpose .prev-btn:focus,
.carousel-superpose .next-btn:focus {
    background: rgba(0, 0, 0, 0);
}

.carousel-superpose .prev-btn {
    left: -45px;
}

.carousel-superpose .next-btn {
    right: -45px;
}
