#home-button-search {
    margin-left: -50px;
    background-color: black;
    border-color: black;
    color: white;
    border-radius: 15px;
    z-index: 400;
}

#home-input-search {
    border-radius: 15px;
    height: 50px;
}

#home-search-container {
    max-width: 600px;
}

/* Pictogrammes validés Collectionneur.net, extraits de la planche de référence. */
:root {
    --collectionneur-category-sprite: url('/images/icons/collectionneur-category-sprite.png');
}

/* Cartes catégories de la homepage */
.tp-category-2-area .row > a:nth-child(-n+6) .tp-category-2-icon > * {
    display: none !important;
}

.tp-category-2-area .row > a:nth-child(-n+6) .tp-category-2-icon::before {
    content: '';
    display: inline-block;
    width: 64px;
    height: 48px;
    background-image: var(--collectionneur-category-sprite);
    background-repeat: no-repeat;
    background-size: 384px 48px;
    vertical-align: middle;
    /* Le sprite source est noir. Sur les photos des catégories, les pictos doivent être blancs. */
    filter: brightness(0) invert(1);
}

.tp-category-2-area .row > a:nth-child(1) .tp-category-2-icon::before { background-position: 0 0; }
.tp-category-2-area .row > a:nth-child(2) .tp-category-2-icon::before { background-position: -64px 0; }
.tp-category-2-area .row > a:nth-child(3) .tp-category-2-icon::before { background-position: -128px 0; }
.tp-category-2-area .row > a:nth-child(4) .tp-category-2-icon::before { background-position: -192px 0; }
.tp-category-2-area .row > a:nth-child(5) .tp-category-2-icon::before { background-position: -256px 0; }
.tp-category-2-area .row > a:nth-child(6) .tp-category-2-icon::before { background-position: -320px 0; }

/* Texte des vignettes : blanc et même famille typographique que le menu du header. */
.tp-category-2-area .row > a:nth-child(-n+6) .tp-category-2-title,
.tp-category-2-area .row > a:nth-child(-n+6) .homepage-refresh-category-link {
    color: #fff !important;
    font-family: 'Inter', Arial, sans-serif !important;
}

/* Menu horizontal de catégories du header, homepage uniquement */
.category-menu > .category-link-item:nth-child(-n+6) a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Masque les anciens pictos Twig/SVG pour ne conserver que les pictos du sprite validé. */
.category-menu > .category-link-item:nth-child(-n+6) a > svg,
.category-menu > .category-link-item:nth-child(-n+6) a > .ux-icon,
.category-menu > .category-link-item:nth-child(-n+6) a > [class*="icon"] {
    display: none !important;
}

.category-menu > .category-link-item:nth-child(-n+6) a::before {
    content: '';
    display: inline-block;
    width: 34px;
    height: 26px;
    flex: 0 0 34px;
    background-image: var(--collectionneur-category-sprite);
    background-repeat: no-repeat;
    background-size: 204px 26px;
}

.category-menu > .category-link-item:nth-child(1) a::before { background-position: 0 0; }
.category-menu > .category-link-item:nth-child(2) a::before { background-position: -34px 0; }
.category-menu > .category-link-item:nth-child(3) a::before { background-position: -68px 0; }
.category-menu > .category-link-item:nth-child(4) a::before { background-position: -102px 0; }
.category-menu > .category-link-item:nth-child(5) a::before { background-position: -136px 0; }
.category-menu > .category-link-item:nth-child(6) a::before { background-position: -170px 0; }

@media (max-width: 991.98px) {
    .tp-category-2-area .row > a:nth-child(-n+6) .tp-category-2-icon::before {
        width: 52px;
        height: 39px;
        background-size: 312px 39px;
    }
    .tp-category-2-area .row > a:nth-child(1) .tp-category-2-icon::before { background-position: 0 0; }
    .tp-category-2-area .row > a:nth-child(2) .tp-category-2-icon::before { background-position: -52px 0; }
    .tp-category-2-area .row > a:nth-child(3) .tp-category-2-icon::before { background-position: -104px 0; }
    .tp-category-2-area .row > a:nth-child(4) .tp-category-2-icon::before { background-position: -156px 0; }
    .tp-category-2-area .row > a:nth-child(5) .tp-category-2-icon::before { background-position: -208px 0; }
    .tp-category-2-area .row > a:nth-child(6) .tp-category-2-icon::before { background-position: -260px 0; }
}
