/**
 * CSS Frontend - Catégories mises en avant
 * Version sobre : image + titre.
 */

.mp-featured-categories {
    padding: 0 0 2rem;
}

.mp-featured-categories__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin: 0 -10px;
}

.categories-grid > [class*="col-"] {
    display: flex;
    padding-right: 10px;
    padding-left: 10px;
}

.category-card {
    height: 100%;
    width: 100%;
    border: 1px solid rgba(58, 63, 69, 0.1);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(11, 11, 11, 0.06);
    overflow: hidden;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(242, 74, 11, 0.22);
    box-shadow: 0 18px 36px rgba(11, 11, 11, 0.09);
}

.category-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.category-link:hover,
.category-link:focus {
    color: inherit;
    text-decoration: none;
}

.category-media {
    aspect-ratio: 4 / 3;
    background: #e5e7eb;
    overflow: hidden;
}

.category-media--empty {
    background:
        linear-gradient(135deg, rgba(229, 231, 235, 0.95) 0%, rgba(244, 245, 247, 1) 100%);
}

.category-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-title {
    margin: 0;
    padding: 1rem 1rem 1.1rem;
    flex: 1 0 auto;
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
}

@media (max-width: 767px) {
    .mp-featured-categories {
        padding-bottom: 1.5rem;
    }

    .category-title {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
}
