/* =========================================================
   PLAISIRS MARKET - CATEGORIES V2
   ========================================================= */

:root {
    --cat-black: #1c1e21;
    --cat-dark: #25272a;
    --cat-white: #ffffff;
    --cat-bg: #f4f5f6;
    --cat-line: #e1e3e6;
    --cat-muted: #73777d;
}


/* =========================================================
   RESET ANCIENNE PAGE
   ========================================================= */

body.pm-category-public,
body.pm-category-connected {
    padding: 0 !important;
    margin: 0 !important;

    background: var(--cat-bg) !important;

    color: #202225 !important;

    font-family:
        "Poppins",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;
}


/* =========================================================
   WRAPPER
   ========================================================= */

.pm-category-page {
    min-height: 100vh;

    padding: 42px 28px 55px;
}

.pm-category-connected .pm-category-page {
    width: calc(100% - 250px);

    margin-left: 250px;

    padding-top: 100px;
}

.pm-category-page > .container {
    max-width: 1380px !important;

    margin: 0 auto !important;
}


/* =========================================================
   HEADER PUBLIC
   ========================================================= */

.pm-category-public-header {
    position: sticky;

    top: 0;

    z-index: 9000;

    background:
        rgba(255,255,255,.96);

    border-bottom:
        1px solid var(--cat-line);

    backdrop-filter: blur(14px);
}

.pm-category-public-header-inner {
    width: min(
        calc(100% - 36px),
        1500px
    );

    min-height: 78px;

    margin: auto;

    display: grid;

    grid-template-columns:
        auto
        minmax(260px,1fr)
        auto
        auto;

    align-items: center;

    gap: 20px;
}

.pm-category-brand {
    display: flex;

    align-items: center;

    gap: 10px;

    color: #202225 !important;

    text-decoration: none !important;
}

.pm-category-brand img {
    width: 50px;
    height: 50px;

    object-fit: contain;
}

.pm-category-brand div {
    display: flex;
    flex-direction: column;
}

.pm-category-brand strong {
    font-size: 14px;
}

.pm-category-brand span {
    color: #8b8f95;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.pm-category-header-search {
    height: 44px;

    display: flex;

    padding: 4px;

    background: #f5f6f7;

    border: 1px solid var(--cat-line);

    border-radius: 11px;
}

.pm-category-header-search input {
    flex: 1;

    min-width: 0;

    padding: 0 13px;

    border: 0;

    outline: 0;

    background: transparent;

    font: inherit;

    font-size: 14px;
}

.pm-category-header-search button {
    padding: 0 16px;

    border: 0;

    border-radius: 8px;

    background: var(--cat-black);

    color: #fff;

    font-weight: 700;

    cursor: pointer;
}


.pm-category-language {
    height: 44px;

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 0 10px;

    background: #fff;

    border: 1px solid var(--cat-line);

    border-radius: 11px;
}

.pm-category-language select {
    max-width: 125px;

    border: 0;

    outline: 0;

    background: transparent;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;
}


.pm-category-account {
    display: flex;

    gap: 7px;
}

.pm-category-login,
.pm-category-register {
    min-height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0 14px;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none !important;
}

.pm-category-login {
    color: #202225 !important;

    background: #fff;

    border: 1px solid var(--cat-line);
}

.pm-category-register {
    color: #fff !important;

    background: var(--cat-black);

    border: 1px solid var(--cat-black);
}


/* =========================================================
   TITRE
   ========================================================= */

.pm-category-page h1 {
    margin: 8px 0 6px !important;

    color: #202225 !important;

    font-size: clamp(
        30px,
        5vw,
        46px
    ) !important;

    line-height: 1.05;

    letter-spacing: -1.8px;
}

.pm-category-page h2 {
    color: #202225 !important;
}


/* =========================================================
   CTA PUBLIC
   ========================================================= */

.pm-category-public-intro {
    margin: 20px 0 24px;

    padding: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    background: #202225;

    color: #fff;

    border-radius: 16px;
}

.pm-category-public-intro > div {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.pm-category-public-intro strong {
    font-size: 14px;
}

.pm-category-public-intro span {
    max-width: 750px;

    color: #b8bbc0;

    font-size: 14px;

    line-height: 1.55;
}

.pm-category-public-intro a {
    flex: 0 0 auto;

    padding: 11px 15px;

    background: #fff;

    color: #202225 !important;

    border-radius: 9px;

    font-size: 14px;

    font-weight: 750;

    text-decoration: none !important;
}


/* =========================================================
   BOUTONS EXPLORER
   ========================================================= */

.pm-category-page .nav-explorer {
    margin: 20px 0 25px !important;

    gap: 8px !important;
}

.pm-category-page .explorer-btn,
.pm-category-page .btn-retour {
    padding: 10px 14px !important;

    background: #202225 !important;

    color: #fff !important;

    border: 1px solid #202225 !important;

    border-radius: 9px !important;

    box-shadow: none !important;

    font-size: 14px !important;

    font-weight: 700 !important;

    text-decoration: none !important;
}

.pm-category-page .btn-retour {
    background: #fff !important;

    color: #202225 !important;

    border-color: var(--cat-line) !important;
}

.pm-category-page .explorer-btn:hover,
.pm-category-page .btn-retour:hover {
    transform: translateY(-2px) !important;

    background: #090909 !important;

    color: #fff !important;

    border-color: #090909 !important;
}


/* =========================================================
   RECHERCHES POPULAIRES / VILLES
   ========================================================= */

.pm-category-page .seo-links,
.pm-category-page .seo-villes {
    margin: 25px 0 !important;
}

.pm-category-page .seo-links h2,
.pm-category-page .seo-villes h2 {
    margin-bottom: 10px !important;

    font-size: 14px !important;
}

.pm-category-page .seo-links a,
.pm-category-page .seo-villes a,
.pm-category-page .categories a,
.pm-category-page .seo-categories a {
    display: inline-flex !important;

    align-items: center;

    margin: 4px !important;

    padding: 8px 11px !important;

    background: #fff !important;

    color: #36383c !important;

    border: 1px solid var(--cat-line) !important;

    border-radius: 8px !important;

    font-size: 14px !important;

    text-decoration: none !important;

    transition: .16s ease;
}

.pm-category-page .seo-links a:hover,
.pm-category-page .seo-villes a:hover,
.pm-category-page .categories a:hover,
.pm-category-page .seo-categories a:hover {
    background: #202225 !important;

    color: #fff !important;

    border-color: #202225 !important;
}


/* =========================================================
   RECHERCHE DANS CATEGORIE
   ========================================================= */

.pm-category-page .search-box {
    margin: 24px 0 !important;
}

.pm-category-page .search-box form {
    max-width: 760px !important;

    height: 48px;

    gap: 7px !important;

    padding: 4px;

    background: #fff;

    border: 1px solid var(--cat-line);

    border-radius: 11px;
}

.pm-category-page .search-box input {
    min-width: 0;

    padding: 0 12px !important;

    border: 0 !important;

    outline: 0 !important;

    background: transparent !important;

    font-family: inherit !important;

    font-size: 14px !important;
}

.pm-category-page .search-box button {
    padding: 0 17px !important;

    background: #202225 !important;

    color: #fff !important;

    border-radius: 8px !important;

    font-size: 14px !important;
}


/* =========================================================
   NOMBRE D'ANNONCES
   ========================================================= */

.pm-category-page .count {
    margin: 26px 0 14px !important;

    color: #777b81 !important;

    font-size: 12px !important;
}


/* =========================================================
   GRILLE ANNONCES
   ========================================================= */

.pm-category-page .grid {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0,1fr)) !important;

    gap: 15px !important;
}

.pm-category-page .card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    background: #fff !important;

    border:
        1px solid var(--cat-line) !important;

    border-radius: 14px !important;

    box-shadow:
        0 2px 8px rgba(0,0,0,.035) !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease !important;
}

.pm-category-page .card:hover {
    transform:
        translateY(-4px) !important;

    box-shadow:
        0 14px 30px rgba(0,0,0,.08) !important;
}


/* empêche la couleur des liens */
.pm-category-page .card > a {
    color: inherit !important;

    text-decoration: none !important;
}


.pm-category-page .pm-media-frame {
    position: relative !important;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #eff0f1;
}

.pm-category-page .card img,
.pm-category-page .card video,
.pm-category-page .pm-media-photo {
    width: 100% !important;
    height: 100% !important;

    display: block;

    object-fit: cover !important;

    border: 0 !important;
}


.pm-category-page .card-body {
    padding: 14px !important;
}

.pm-category-page .title {
    min-height: 42px;

    margin: 0 0 7px !important;

    color: #202225 !important;

    font-size: 15px !important;

    font-weight: 700 !important;

    line-height: 1.4 !important;
}

.pm-category-page .price {
    margin-top: 7px !important;

    color: #202225 !important;

    font-size: 16px !important;

    font-weight: 800 !important;
}


/* VIDEO / SPONSOR */

.pm-category-page .sponsored-label {
    top: 9px !important;

    left: 9px !important;

    padding: 5px 8px !important;

    background:
        rgba(28,30,33,.94) !important;

    color: #fff !important;

    border-radius: 7px !important;

    box-shadow: none !important;

    font-size: 13px !important;
}


/* =========================================================
   SEO FOOTER
   ========================================================= */

.pm-category-page .seo-footer {
    margin: 55px 0 30px !important;

    padding: 28px !important;

    background: #fff !important;

    color: #656970 !important;

    border:
        1px solid var(--cat-line) !important;

    border-radius: 16px !important;

    font-size: 14px !important;

    line-height: 1.7 !important;
}

.pm-category-page .seo-footer h2 {
    color: #202225 !important;

    font-size: 18px !important;
}


/* =========================================================
   FOOTER COMMUN SUR PAGE PUBLIQUE
   ========================================================= */

.pm-category-public + .pmc-footer,
body.pm-category-public .pmc-footer {
    width: 100% !important;

    margin-left: 0 !important;
}


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

@media (max-width: 1150px) {

    .pm-category-page .grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr)) !important;
    }

    .pm-category-public-header-inner {
        grid-template-columns:
            auto
            minmax(180px,1fr)
            auto;
    }

    .pm-category-language {
        display: none;
    }
}


@media (max-width: 1050px) {

    .pm-category-connected .pm-category-page {
        width: 100%;

        margin-left: 0;

        padding-top: 90px;
    }
}


@media (max-width: 780px) {

    .pm-category-page {
        padding:
            26px 12px 40px !important;
    }

    .pm-category-page .grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr)) !important;

        gap: 9px !important;
    }

    .pm-category-public-header-inner {
        grid-template-columns:
            1fr auto;

        gap: 10px;
    }

    .pm-category-header-search {
        grid-column: 1 / -1;

        grid-row: 2;

        margin-bottom: 9px;
    }

    .pm-category-account {
        justify-self: end;
    }

    .pm-category-login {
        display: none;
    }

    .pm-category-brand span {
        display: none;
    }

    .pm-category-public-intro {
        flex-direction: column;

        align-items: flex-start;
    }

    .pm-category-public-intro a {
        width: 100%;

        text-align: center;
    }

    .pm-category-page .title {
        min-height: 35px;

        font-size: 14px !important;
    }

    .pm-category-page .price {
        font-size: 14px !important;
    }

    .pm-category-page .search-box form {
        width: 100%;
    }
}


@media (max-width: 430px) {

    .pm-category-register {
        padding: 0 10px;

        font-size: 13px;
    }

    .pm-category-brand img {
        width: 42px;
        height: 42px;
    }
}

