/* ===========================
   CUSTOM SLIDER STYLES
   =========================== */
.custom-slider-overlay {
  pointer-events: none; /* Laisse passer les clics vers les vignettes */
}

.custom-slider-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    box-shadow: 0 30px 50px #dbdbdb;
    overflow: hidden;
}

.custom-slider-slide .custom-slider-item {
    width: 250px;
    height: 150px;
    position: absolute;
    top: 90%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 0 30px 50px #505050;
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
}

.custom-slider-slide .custom-slider-item:nth-child(1),
.custom-slider-slide .custom-slider-item:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.custom-slider-slide .custom-slider-item:nth-child(3) {
    left: 55%;
}

.custom-slider-slide .custom-slider-item:nth-child(4) {
    left: calc(55% + 270px);
}

.custom-slider-slide .custom-slider-item:nth-child(5) {
    left: calc(55% + 540px);
}

/* here n = 0, 1, 2, 3,... */
.custom-slider-slide .custom-slider-item:nth-child(n + 6) {
    left: calc(55% + 770px);
    opacity: 0;
}

.custom-slider-item .custom-slider-content {
    position: absolute;
    top: 50%;
    left: 100px;
    width: 300px;
    text-align: left;
    color: #eee;
    transform: translate(0, -50%);
    font-family: system-ui;
    display: none;
}

.custom-slider-slide .custom-slider-item:nth-child(2) .custom-slider-content {
    display: block;
}

.custom-slider-content .custom-slider-name {
    font-size: 40px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: custom-slider-animate 1s ease-in-out 1 forwards;
}

.custom-slider-content .custom-slider-des {
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: custom-slider-animate 1s ease-in-out 0.3s 1 forwards;
}

.custom-slider-content button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: custom-slider-animate 1s ease-in-out 0.6s 1 forwards;
}

@keyframes custom-slider-animate {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to {
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

.custom-slider-button {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
}

.custom-slider-button button {
    width: 40px;
    height: 35px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border: 1px solid #000;
    transition: 0.3s;
}

.custom-slider-button button:hover {
    background: #ababab;
    color: #fff;
}
