.custom-slider {
    position: relative;
    overflow: hidden;
    height: 90vh;
    max-width: 1600px;
    margin: 0 auto;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* display: flex;
    align-items: center;
    justify-content: space-between; */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 20px
}

.slide-item.is-active {
    opacity: 1;
    pointer-events: auto;
}

.caption-col h2 {
    color: var(--color-maron);
    font-size: 3.7rem;
    font-weight: 800;
    margin-bottom: 25px;
    width: 90%;
    line-height: 4.5rem;
}

.caption-col p {
    color: #eee9e5;
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 2.3rem;
    margin: 10px 0 20px;
    width: 70%;
    padding-bottom: 40px;
}

.cta-button {
    border: 1px solid var(--color-maron);
    background-color: transparent;
    color: #eee9e5;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 1rem;
    font-style: italic;
    font-weight: 300;
    cursor: pointer;
    transition: background-color 0.6s ease;
}

a.cta-button:hover {
    background-color: var(--color-dark-maron);
    color: white;
    text-decoration: none;
}


.product-col img {
    max-width: 100%;
    max-height: 650px;
    object-fit: contain;
    display: block;
    transition: all 2s ease-in-out;
}

.product-col img:hover {
    transform: scale(1.1) translateY(-5%);
    transition: all 2s ease-in-out;
}

@media screen and (max-width: 767px) {
    .slide-item {
        grid-template-columns: 1fr;
    }

    .caption-col {
        margin-top: 150px;
    }

    .product-col {
        display: flex;
        justify-content: center;
    }

    .product-col img {
        width: 100%;
        height: 450px;
        object-fit: contain;
        top: -20px;
        margin: 0 auto;

    }

    .caption-col h2{
        font-size: 2.8rem;
        width: 100%;
        line-height: 3.6rem;
    }

    .caption-col p {
        font-size: 1.3rem;
        line-height: 2.5rem;
        width: 100%;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px){
    .caption-col h2 {
        font-size: 3rem;
        width: 100%;
        line-height: 3.7rem;
    }

    .caption-col p {
        font-size: 1.2rem;
        line-height: 2.2rem;
        width: 100%;
    }
}


/* 1. Animation d'entrée du Texte (Caption) - Glisse depuis la gauche */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 2. Animation d'entrée du Produit (Image) - Glisse depuis le bas */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.slide-item.is-active .caption-col {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-item.is-active .product-col {
    animation: slideInUp 0.8s ease-out 0.5s forwards;
}


.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 24px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}

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

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

.custom-slider:hover .prev-btn,
.custom-slider:hover .next-btn {
    opacity: 1;
}

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