/* ============================================
   Moxie Top Categories — Page d'accueil
   ============================================ */

.moxie-topcategories {
    max-width: 1320px;
    margin: 48px auto 32px;
    padding: 0 20px;
}

/* Titre */
.moxie-topcategories__title {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 700;
    font-size: 32px;
    text-align: center;
    color: #0a0a0a;
    margin: 0 0 32px;
    letter-spacing: -0.5px;
    text-transform: none;
}

/* Grille responsive */
.moxie-topcategories__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    justify-items: center;
}

/* Item / lien */
.moxie-topcategories__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #0a0a0a;
    width: 100%;
    transition: transform 0.2s ease;
}

.moxie-topcategories__item:hover {
    transform: translateY(-4px);
    text-decoration: none;
    color: #0a0a0a;
}

/* Wrapper image */
.moxie-topcategories__image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s ease;
}

.moxie-topcategories__item:hover .moxie-topcategories__image-wrapper {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Image */
.moxie-topcategories__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.moxie-topcategories__item:hover .moxie-topcategories__image {
    transform: scale(1.05);
}

/* Placeholder quand pas d'image */
.moxie-topcategories__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #bbb;
}

/* Label */
.moxie-topcategories__label {
    display: block;
    margin-top: 12px;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    color: #0a0a0a;
    letter-spacing: 0.2px;
}

/* ============================
   RESPONSIVE
   ============================ */

/* Tablette paysage — 4 colonnes */
@media (max-width: 1100px) {
    .moxie-topcategories__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

/* Tablette portrait — 3 colonnes */
@media (max-width: 768px) {
    .moxie-topcategories {
        margin: 32px auto 24px;
        padding: 0 16px;
    }

    .moxie-topcategories__title {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .moxie-topcategories__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .moxie-topcategories__label {
        font-size: 14px;
        margin-top: 8px;
    }

    .moxie-topcategories__image-wrapper {
        border-radius: 12px;
    }
}

/* Mobile — 2 colonnes */
@media (max-width: 480px) {
    .moxie-topcategories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .moxie-topcategories__title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .moxie-topcategories__label {
        font-size: 13px;
    }
}
