/* =============================================================
   ZEDD Filtered Carousel — zfc-style.css
   ============================================================= */

.zfc-track-wrapper {
    overflow: hidden;
    padding: 2rem;
}

.zfc-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 10px 0 80px;
}

.zfc-track {
    display: flex;
    gap: 40px;
}

.zfc-card {
    flex: 0 0 calc(33.333% - 27px);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid lightgray;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 450px;
}

.zfc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.zfc-card-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.zfc-card-body {
    padding: 24px;
    background: #fff;
}

.zfc-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #111;
}

.zfc-card-cat {
    display: inline-block;
    font-size: 14px;
    margin-bottom: 10px;
    color: #6b6b6b;
}

/* ── Nav desktop : boutons absolus sur les côtés ── */
.zfc-nav {
    margin-top: 30px;
    text-align: center;
    position: relative;
}

.zfc-prev,
.zfc-next {
    position: absolute;
    top: -260px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: #8CC63F;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.zfc-prev:hover,
.zfc-next:hover {
    background: #76b42f;
}

.zfc-prev {
    left: -80px;
}

.zfc-next {
    right: -80px;
}

.zfc-counter {
    font-size: 14px;
    color: #555;
}

@media (max-width: 1024px) {
    .zfc-card {
        flex: 0 0 calc(50% - 20px);
    }
}

/* ── Mobile ≤768px ── */
@media (max-width: 768px) {

    /* Wrapper : padding latéral réduit, pas de padding-bottom excessif */
    .zfc-wrapper {
        padding: 10px 0 20px;
    }

    /* Track : gap réduit */
    .zfc-track {
        gap: 16px;
    }

    /* Carte : 85vw pour qu'on voie le bord de la suivante */
    .zfc-card {
        flex: 0 0 85vw !important;
        width: 85vw !important;
        min-width: 85vw !important;
        height: auto;
    }

    /* track-wrapper : padding réduit pour ne pas couper la carte */
    .zfc-track-wrapper {
        padding: 1rem 0;
    }

    /* Nav : repositionnée en mode inline centré, plus absolue */
    .zfc-nav {
        margin-top: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
    }

    .zfc-prev,
    .zfc-next {
        position: static;
        /* annule le absolute */
        top: auto;
        left: auto;
        right: auto;
        width: 44px;
        height: 44px;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}