.merlien-carousel-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: auto;
    padding-bottom: 60px;
}
.merlien-carousel {
    flex: 1 1 60%;
    /*max-width: 60%;*/
}
.merlien-carousel {
    position: relative;
    /*max-width: 700px;*/
    margin: 0 auto;
}
.merlien-text {
    flex: 1 1 35%;
    text-align: left;
    padding-right:20px;
    padding-left:20px;
}
.merlien-text h2 {
    font-size: 1.4em;
    margin-top: 0;
}

.merlien-slide img {
    width: 100%;
    height: auto;
}
.merlien-dots {
    text-align: center;
    margin: 10px 0;
}
.merlien-dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}
.merlien-dot.active {
    background-color: #717171;
}
.merlien-popup {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.merlien-popup-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    padding: 20px;
}
.merlien-popup-content iframe {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 70vh;
    max-width: 1300px;
    max-height: 870px;
}
#merlien-popup-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}


.merlien-text button {
    background-color: #2F8CCC;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}
.merlien-text button:hover {
    background-color: #2472a6;
}


.merlien-dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.merlien-popup-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.merlien-long-description {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 10px;
    text-align: justify;
    
}
    
.merlien-long-description p {
    padding: 0;
    padding-bottom: 10px;
    margin: 0;
    line-height: 1.3;
}

.merlien-description {
    font-weight: bold;
}

.merlien-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 24px;
    font-weight: bold;
    line-height: 40px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
}

.merlien-prev {
    left: 10px;
}

.merlien-next {
    right: 10px;
}

.merlien-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 11;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 20px;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
}


.merlien-carousel {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;

}


.merlien-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.merlien-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.merlien-slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 15px;
}


@media (max-width: 1100px) {
    .merlien-carousel-wrapper {
        flex-direction: column;
    }
    .merlien-carousel, .merlien-text {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .merlien-toggle {
        position: absolute;
        top: 25px;
    }
}

@media (max-width: 530px) {
    .merlien-toggle {
        position: absolute;
        top: 80px;
    }
}