/* =============================== */
/* COMPOSANT - CARTES CATÉGORIES   */
/* (Style identique aux films)     */
/* =============================== */

.film-category {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #0f1115;
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.film-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,.3);
    filter: saturate(1.02);
}

.film-category-image {
    position: relative;
    aspect-ratio: 16/9;
    background: #12141a;
}

.film-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.film-category-image.with-title::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%);
}

/* Fallback si aucune image */
.film-category-image.no-image {
    background: linear-gradient(135deg, #0ea5e9, #a855f7);
}

.film-category-image.no-image::before {
    content: "👤";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: .22;
}

.film-decade-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    color: white;
    z-index: 2;
    font-weight: 700;
    font-size: 1.1rem;
}

.count-chip {
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 700;
    line-height: 1.2;
    background: #eef2f7;
    color: #333;
    margin-left: 6px;
    display: inline-block;
}

.film-category-image.no-image .film-decade-title {
    position: relative;
    background: rgba(0,0,0,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

@media (min-width: 768px) {
    .film-category-image.with-title .film-decade-title {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }
}
