/* ==========================================================================
   Feature Card Carousel — front-end styles
   ========================================================================== */

.fcc-carousel-wrap {
    --fcc-slide-width: min(320px, 78vw);
    /* hauteur dérivée du ratio réel de l'image 1040x744 */
    --fcc-slide-height: calc(var(--fcc-slide-width) * 1040 / 744);
    --fcc-radius: 18px;
    --fcc-accent: #ffffff;
    --fcc-shadow-idle: 10px 10px 25px rgba(0, 0, 0, 0.18);
    --fcc-shadow-active: 10px 25px 55px rgba(0, 0, 0, 0.38);

    position: relative;
    padding: 0px 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.fcc-carousel-wrap * {
    box-sizing: border-box;
}

.fcc-swiper {
    width: 100%;
    padding-top: 60px;
    padding-bottom: 60px;
}

.swiper-slide {
    width: var(--fcc-slide-width);
    height: var(--fcc-slide-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------
   The card itself
   -------------------------------------------------------------------- */

.fcc-card {
    aspect-ratio: 744 / 1040 !important;
    height: auto; /* let aspect-ratio drive it */
    position: relative;
    width: 100%;
    border-radius: var(--fcc-radius);
    overflow: hidden;
    box-shadow: var(--fcc-shadow-idle);

    filter: brightness(0.62) saturate(0.85);
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.55s ease,
        box-shadow 0.55s ease;
    will-change: transform, filter;
}

.fcc-card-img {
    position: absolute;
    /* transform: scale(0.99); */
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* n'aura plus rien à recadrer puisque le ratio du conteneur = ratio de l'image */
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fcc-card-link {
    position: absolute;
    inset: 0;
    display: block;
    cursor: pointer;
}

.fcc-card-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 18px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
    pointer-events: none;
}

/* --------------------------------------------------------------------
   Active / centered slide: the "zoom" moment
   -------------------------------------------------------------------- */

.swiper-slide-active .fcc-card {
    filter: brightness(1) saturate(1.05);
    box-shadow: var(--fcc-shadow-active);
}

.swiper-slide-active .fcc-card-caption {
    opacity: 1;
    transform: translateY(0);
}

.swiper-slide:not(.swiper-slide-active):hover .fcc-card {
    transform: scale(0.9);
    filter: brightness(0.8) saturate(0.95);
}

.fcc-card:hover .fcc-card-img {
    transform: scale(1.08);
}

/* --------------------------------------------------------------------
   Navigation arrows
   -------------------------------------------------------------------- */

.fcc-swiper .swiper-button-prev,
.fcc-swiper .swiper-button-next {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    color: #fff;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.fcc-swiper .swiper-button-prev:hover,
.fcc-swiper .swiper-button-next:hover {
    color: rgba(20, 20, 20, 0.85);
    transform: scale(1.06);
}

.fcc-swiper .swiper-button-prev::after,
.fcc-swiper .swiper-button-next::after {
    font-size: 17px;
    color: #fff;
    font-weight: 700;
}

/* --------------------------------------------------------------------
   Pagination dots
   -------------------------------------------------------------------- */

.fcc-swiper .swiper-pagination {
    display: none !important;
    /* position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 12px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px; */
}

.fcc-swiper .swiper-pagination-bullet {
    margin: 0 !important;
}

.fcc-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: currentColor;
    color: #888;
    opacity: 0.5;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        width 0.3s ease;
    border-radius: 4px;
}

.fcc-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    color: #333;
    width: 22px;
}

/* --------------------------------------------------------------------
   Responsive tweaks
   -------------------------------------------------------------------- */

@media (max-width: 600px) {
    .fcc-carousel-wrap {
        --fcc-slide-height: 340px;
        padding: 24px 4px 48px;
    }

    .fcc-swiper .swiper-button-prev,
    .fcc-swiper .swiper-button-next {
        display: none;
    }
}
