.cta-slider-wrapper {
    position: relative;
}

.cta-slider-inner {
    position: relative;
}

.cta-slider {
    padding: 18px 4px 24px;
    overflow: hidden;
}

/* Mobile: single slide per view, narrower container so the card itself is smaller and centered */
@media (max-width: 575.98px) {
    .cta-slider-inner {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-card__body {
        padding: 18px;
    }

    .cta-card__body .titre {
        font-size: 20px;
        line-height: 24px;
    }

    .cta-slider-inner .swiper-button-prev {
        left: -18px;
    }

    .cta-slider-inner .swiper-button-next {
        right: -18px;
    }

    .cta-slider-inner .swiper-button-custom {
        width: 38px;
        height: 38px;
    }
}

.cta-slider .swiper-wrapper {
    align-items: stretch;
}

/* Navigation buttons positioned outside the slider, vertically centered */
.cta-slider-inner .swiper-button-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 50%;
    background: #fff;
    color: #333;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cta-slider-inner .swiper-button-prev {
    left: -22px;
}

.cta-slider-inner .swiper-button-next {
    right: -22px;
}

@media (max-width: 767.98px) {
    .cta-slider-inner .swiper-button-prev {
        left: -8px;
    }

    .cta-slider-inner .swiper-button-next {
        right: -8px;
    }
}

.cta-slider-inner .swiper-button-custom:hover {
    background: #cadd3b;
    color: #fff;
    border-color: #cadd3b;
}

.cta-slider-inner .swiper-button-custom::after {
    content: none;
}

.cta-slider-inner .swiper-button-custom.swiper-button-disabled {
    opacity: 0.4;
    cursor: default;
}

/* Pagination below */
.cta-slider-pagination {
    position: static;
    margin-top: 18px;
    text-align: center;
}

.cta-slider-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d4d4d4;
    opacity: 1;
    margin: 0 5px !important;
    transition: background 0.2s ease, width 0.2s ease;
}

.cta-slider-pagination .swiper-pagination-bullet-active {
    background: #cadd3b;
    width: 24px;
    border-radius: 5px;
}

/* Cards */
.cta-card {
    height: auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.cta-card__media {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    transition: transform 0.4s ease;
}

.cta-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.cta-card:hover .cta-card__media {
    transform: scale(1.04);
}

.cta-card__media:hover::after {
    background: rgba(0, 0, 0, 0.08);
}

@supports not (aspect-ratio: 4 / 3) {
    .cta-card__media {
        padding-top: 75%;
    }
}

.cta-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 24px;
    color: #333;
}

.cta-card__body .intro {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 6px;
}

.cta-card__body .titre {
    display: block;
    font-size: 22px;
    line-height: 26px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.titre-mobile{
    font-size: 16px;
    line-height: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.text-mobile{
    font-size: 13px !important;
    line-height: 16px !important;
}

.cta-card__body p {
    font-size: 14px;
    line-height: 19px;
    color: #555;
    margin-bottom: 16px;
}

.cta-card__body .btn {
    align-self: flex-start;
}

.cta-card .echantillons-counter {
    font-size: 13px;
}

.cta-card .echantillons-counter .nombre {
    font-weight: 900;
    font-size: 22px;
    line-height: 1;
}

.cta-card-1 .cta-card__media { background-image: url("../img/bords-de-piscines.webp"); }
.cta-card-2 .cta-card__media { background-image: url("../img/echantillons-gratuits.webp"); }
.cta-card-3 .cta-card__media { background-image: url("../img/terrasse.webp"); }
.cta-card-4 .cta-card__media { background-image: url("../img/jardin.webp"); }
.cta-card-5 .cta-card__media { background-image: url("../img/rouleaux-complets.webp"); }
.cta-card-6 .cta-card__media { background-image: url("../img/sport.webp"); }
.cta-card-7 .cta-card__media { background-image: url("../img/mur-vegetal.webp"); }

.cta-card-5 {
    border: 3px solid #cadd3b;
}
