/* ==========================================================
   ApCategoryList — MOSAÏQUE
   Texte sous les images
   ========================================================== */

.tc-category-list-v15 {
    width: 100% !important;
    padding-top: 38px !important;
}

.tc-category-list-v15 > .title_block {
    display: none !important;
}


/* ==========================================================
   SECTIONS
   ========================================================== */

.tc-category-list-v15 .tc-category-group {
    margin: 0 0 58px !important;
}

.tc-category-list-v15 .tc-category-group:last-child {
    margin-bottom: 0 !important;
}


/* ==========================================================
   TITRES CUISINE / SALLE DE BAIN
   ========================================================== */

.tc-category-list-v15 .tc-category-group-title {
    position: relative !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 0 24px !important;

    font-size: 27px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;

    text-align: center !important;
}

.tc-category-list-v15 .tc-category-group-title a {
    position: relative !important;
    z-index: 2 !important;

    display: inline-block !important;

    padding: 0 22px !important;

    color: #5f7866 !important;
    background: #fff !important;

    text-decoration: none !important;
}

.tc-category-list-v15 .tc-category-group-title::before {
    content: "" !important;

    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 50% !important;

    height: 1px !important;

    background: rgba(95,120,102,.30) !important;
}


/* ==========================================================
   MOSAÏQUE
   ========================================================== */

.tc-category-list-v15 .tc-category-grid {
    display: flex !important;
    flex-flow: column wrap !important;
    align-content: stretch !important;

    width: 100% !important;
    height: 510px !important;

    gap: 14px !important;
}


/* ==========================================================
   CARTES
   ========================================================== */

.tc-category-list-v15 .tc-category-grid > .tc-category-card {
    display: flex !important;
    flex-direction: column !important;

    position: relative !important;

    flex: 0 0 248px !important;

    width: calc(25% - 10.5px) !important;
    max-width: calc(25% - 10.5px) !important;

    height: 248px !important;
    min-width: 0 !important;

    overflow: visible !important;

    color: inherit !important;
    text-decoration: none !important;

    box-sizing: border-box !important;
}


/* Grande carte */

.tc-category-list-v15
.tc-category-grid
> .tc-category-card:first-child {

    flex-basis: 510px !important;

    width: calc(50% - 7px) !important;
    max-width: calc(50% - 7px) !important;

    height: 510px !important;
}


/* ==========================================================
   IMAGES
   ========================================================== */

.tc-category-list-v15 .tc-category-image {
    display: block !important;

    width: 100% !important;

    overflow: hidden !important;

    background: #f5f5f5 !important;
}


/* Petite image */

.tc-category-list-v15
.tc-category-grid
> .tc-category-card
> .tc-category-image {

    height: 215px !important;
    flex: 0 0 215px !important;
}


/* Grande image */

.tc-category-list-v15
.tc-category-grid
> .tc-category-card:first-child
> .tc-category-image {

    height: 477px !important;
    flex: 0 0 477px !important;
}


.tc-category-list-v15 .tc-category-image img {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    height: 100% !important;

    object-fit: cover !important;

    transition: transform .3s ease !important;
}


/* ==========================================================
   TEXTE SOUS L'IMAGE
   ========================================================== */

.tc-category-list-v15 .tc-category-name {
    position: static !important;

    display: block !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 9px 4px 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    color: #59695d !important;

    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 400 !important;

    text-align: center !important;

    z-index: auto !important;
}


/* ==========================================================
   HOVER
   ========================================================== */

.tc-category-list-v15 .tc-category-card:hover .tc-category-image img {
    transform: scale(1.035) !important;
}

.tc-category-list-v15 .tc-category-card:hover .tc-category-name {
    color: #3f5947 !important;

    background: transparent !important;
    box-shadow: none !important;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .tc-category-list-v15 {
        padding-top: 25px !important;
    }

    .tc-category-list-v15 .tc-category-group {
        margin-bottom: 42px !important;
    }

    .tc-category-list-v15 .tc-category-group-title {
        margin-bottom: 18px !important;

        font-size: 23px !important;
    }

    .tc-category-list-v15 .tc-category-group-title a {
        padding: 0 14px !important;
    }


    /* On abandonne la mosaïque complexe sur mobile */

    .tc-category-list-v15 .tc-category-grid {
        flex-flow: row wrap !important;

        height: auto !important;

        gap: 18px 12px !important;
    }


    .tc-category-list-v15
    .tc-category-grid
    > .tc-category-card,

    .tc-category-list-v15
    .tc-category-grid
    > .tc-category-card:first-child {

        flex: 0 0 calc((100% - 12px) / 2) !important;

        width: calc((100% - 12px) / 2) !important;
        max-width: calc((100% - 12px) / 2) !important;

        height: auto !important;
    }


    .tc-category-list-v15
    .tc-category-grid
    > .tc-category-card
    > .tc-category-image,

    .tc-category-list-v15
    .tc-category-grid
    > .tc-category-card:first-child
    > .tc-category-image {

        width: 100% !important;

        height: 165px !important;
        flex: 0 0 165px !important;
    }


    .tc-category-list-v15 .tc-category-name {
        padding-top: 8px !important;

        font-size: 13px !important;
    }

}
