/* ==========================================================
   TROCBUY
   TEMPLATE PREMIUM DES SOUS-CATÉGORIES
========================================================== */


/* ==========================================================
   BASE
========================================================== */

.trocbuy-category-premium {
    background: #f7f9fc;
    color: #172b43;
}

.trocbuy-category-container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}


/* ==========================================================
   FIL D'ARIANE
========================================================== */

.trocbuy-category-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;

    padding: 22px 0 12px;

    color: #8090a3;

    font-size: 12px;
    font-weight: 600;
}

.trocbuy-category-breadcrumb a {
    color: #55708d;
    text-decoration: none;

    transition: color .2s ease;
}

.trocbuy-category-breadcrumb a:hover {
    color: #ff7200;
}


/* ==========================================================
   HERO PREMIUM
========================================================== */

.trocbuy-category-hero {
    padding: 10px 0 34px;
}

.trocbuy-category-hero-grid {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(280px, .75fr);

    gap: 32px;

    align-items: stretch;

    overflow: hidden;

    padding: 42px;

    border: 1px solid rgba(255, 122, 0, .18);
    border-radius: 28px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255, 122, 0, .13),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 100%,
            rgba(37, 99, 235, .06),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fffaf5 100%
        );

    box-shadow:
        0 22px 60px
        rgba(20, 42, 67, .08);
}


/* ==========================================================
   HERO — CONTENU
========================================================== */

.trocbuy-category-hero-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trocbuy-category-eyebrow,
.trocbuy-category-section-eyebrow {
    display: inline-flex;

    width: fit-content;

    margin-bottom: 10px;

    color: #c65d00;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: .08em;

    text-transform: uppercase;
}

.trocbuy-category-hero h1 {
    max-width: 760px;

    margin: 0;

    color: #172b43;

    font-size: clamp(36px, 4vw, 58px);
    font-weight: 900;

    line-height: 1.05;

    letter-spacing: -.04em;
}

.trocbuy-category-hero-text {
    max-width: 720px;

    margin: 20px 0 0;

    color: #5f7186;

    font-size: 18px;
    line-height: 1.7;
}


/* ==========================================================
   HERO — BOUTONS
========================================================== */

.trocbuy-category-hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 26px;
}

.trocbuy-category-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 48px;

    padding: 0 19px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 900;

    text-decoration: none !important;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.trocbuy-category-button:hover {
    transform: translateY(-2px);
}

.trocbuy-category-button--primary {
    background:
        linear-gradient(
            135deg,
            #ff7200,
            #ff941f
        );

    color: #ffffff !important;

    box-shadow:
        0 10px 26px
        rgba(255, 114, 0, .22);
}

.trocbuy-category-button--primary:hover {
    box-shadow:
        0 14px 32px
        rgba(255, 114, 0, .30);
}

.trocbuy-category-button--secondary {
    border: 1px solid #dfe6ee;

    background: #ffffff;

    color: #20364e !important;
}

.trocbuy-category-button--secondary:hover {
    border-color: rgba(255, 114, 0, .35);
}


/* ==========================================================
   HERO — CARTES À DROITE
========================================================== */

.trocbuy-category-hero-visual {
    position: relative;
    z-index: 2;

    display: grid;

    gap: 14px;

    align-content: center;
}

.trocbuy-category-hero-card {
    display: grid;

    gap: 6px;

    padding: 22px;

    border: 1px solid #edf0f4;
    border-radius: 18px;

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

    box-shadow:
        0 10px 28px
        rgba(20, 42, 67, .06);
}

.trocbuy-category-hero-icon {
    display: grid;

    width: 42px;
    height: 42px;

    place-items: center;

    margin-bottom: 4px;

    border-radius: 12px;

    background: #fff1e2;

    color: #ff7200;

    font-size: 18px;
    font-weight: 900;
}

.trocbuy-category-hero-card strong {
    color: #172b43;

    font-size: 16px;
    font-weight: 900;
}

.trocbuy-category-hero-card span:last-child {
    color: #748196;

    font-size: 13px;
    line-height: 1.55;
}


/* ==========================================================
   LAYOUT PRINCIPAL
========================================================== */

.trocbuy-category-main {
    padding: 0 0 70px;
}

.trocbuy-category-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 34px;

    align-items: start;
}

.trocbuy-category-content,
.trocbuy-category-sidebar {
    min-width: 0;
}


/* ==========================================================
   DESCRIPTION DE LA CATÉGORIE
========================================================== */

.trocbuy-category-intro {
    margin-bottom: 30px;

    padding: 28px;

    border: 1px solid #e8edf2;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 12px 32px
        rgba(20, 42, 67, .05);
}

.trocbuy-category-description {
    color: #455d76;

    font-size: 17px;
    line-height: 1.75;
}

.trocbuy-category-description p {
    margin-top: 0;
    margin-bottom: 18px;
}

.trocbuy-category-description p:last-child {
    margin-bottom: 0;
}

.trocbuy-category-description strong {
    color: #263d55;
    font-weight: 800;
}

.trocbuy-category-description a {
    color: #0b66d4;

    font-weight: 750;

    text-decoration: none;
}

.trocbuy-category-description a:hover {
    color: #ff7200;
}


/* ==========================================================
   TITRES DES SECTIONS
========================================================== */

.trocbuy-category-section-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.trocbuy-category-section-header h2 {
    margin: 0;

    color: #172b43;

    font-size: 30px;
    font-weight: 900;

    line-height: 1.15;

    letter-spacing: -.025em;
}

.trocbuy-category-post-count {
    flex: 0 0 auto;

    padding: 7px 11px;

    border-radius: 999px;

    background: #eef3f8;

    color: #607086;

    font-size: 11px;
    font-weight: 850;
}


/* ==========================================================
   GRILLE DES ARTICLES
========================================================== */

.trocbuy-category-post-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}


/* ==========================================================
   CARTE ARTICLE
========================================================== */

.trocbuy-category-post-card {
    overflow: hidden;

    border: 1px solid #e7ecf1;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 14px 36px
        rgba(20, 42, 67, .06);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.trocbuy-category-post-card:hover {
    transform: translateY(-4px);

    border-color: rgba(255, 114, 0, .20);

    box-shadow:
        0 20px 46px
        rgba(20, 42, 67, .11);
}


/* ==========================================================
   IMAGE ARTICLE
========================================================== */

.trocbuy-category-post-image {
    display: block;

    width: 100%;
    height: 220px;

    overflow: hidden;

    background: #eef2f6;
}

.trocbuy-category-post-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.trocbuy-category-post-card:hover
.trocbuy-category-post-image img {
    transform: scale(1.035);
}

.trocbuy-category-post-placeholder {
    display: grid;

    width: 100%;
    height: 100%;

    place-items: center;

    font-size: 42px;
}


/* ==========================================================
   CONTENU ARTICLE
========================================================== */

.trocbuy-category-post-body {
    padding: 20px;
}

.trocbuy-category-post-category {
    display: inline-flex;

    margin-bottom: 8px;

    color: #c65d00;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .06em;

    text-transform: uppercase;
}

.trocbuy-category-post-body h3 {
    margin: 0 0 10px;

    font-size: 21px;
    font-weight: 900;

    line-height: 1.25;
}

.trocbuy-category-post-body h3 a {
    color: #172b43;

    text-decoration: none;

    transition: color .2s ease;
}

.trocbuy-category-post-body h3 a:hover {
    color: #ff7200;
}

.trocbuy-category-post-body p {
    margin: 0;

    color: #64758a;

    font-size: 14px;
    line-height: 1.65;
}


/* ==========================================================
   BAS DE CARTE ARTICLE
========================================================== */

.trocbuy-category-post-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 18px;

    padding-top: 14px;

    border-top: 1px solid #edf0f4;

    color: #9aa5b0;

    font-size: 11px;
}

.trocbuy-category-post-footer a {
    color: #c65d00;

    font-weight: 900;

    text-decoration: none;
}

.trocbuy-category-post-footer a:hover {
    color: #ff7200;
}


/* ==========================================================
   PAGINATION PREMIUM
========================================================== */

.trocbuy-category-pagination {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    justify-content: center;

    margin-top: 30px;
}

.trocbuy-category-pagination-item a,
.trocbuy-category-pagination-item .current {
    display: grid;

    min-width: 42px;
    height: 42px;

    place-items: center;

    padding: 0 10px;

    border: 1px solid #dde5ed;
    border-radius: 10px;

    background: #ffffff;

    color: #4d6178;

    font-size: 13px;
    font-weight: 850;

    text-decoration: none;

    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.trocbuy-category-pagination-item a:hover {
    border-color: rgba(255, 114, 0, .35);

    background: #fff8f1;

    color: #ff7200;

    transform: translateY(-1px);
}

.trocbuy-category-pagination-item .current {
    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            #ff7200,
            #ff941f
        );

    color: #ffffff;
}


/* ==========================================================
   AUCUN ARTICLE
========================================================== */

.trocbuy-category-empty {
    padding: 42px 24px;

    border: 1px dashed #dbe3eb;
    border-radius: 20px;

    background: #ffffff;

    text-align: center;
}

.trocbuy-category-empty > span {
    display: block;

    margin-bottom: 10px;

    font-size: 38px;
}

.trocbuy-category-empty h3 {
    margin: 0 0 8px;

    color: #172b43;

    font-size: 22px;
    font-weight: 900;
}

.trocbuy-category-empty p {
    margin: 0;

    color: #718096;
}


/* ==========================================================
   MAILLAGE INTERNE
   AUTRES SOUS-CATÉGORIES
========================================================== */

.trocbuy-category-related {
    margin-top: 34px;

    padding: 28px;

    border: 1px solid #e8edf2;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 12px 32px
        rgba(20, 42, 67, .05);
}

.trocbuy-category-related-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.trocbuy-category-related-card {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    min-height: 60px;

    padding: 13px 15px;

    border: 1px solid #e5eaf0;
    border-radius: 12px;

    background: #f9fbfd;

    color: #263d55;

    text-decoration: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.trocbuy-category-related-card:hover {
    background: #fff8f1;

    border-color:
        rgba(255, 122, 0, .25);

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(20, 42, 67, .06);
}

.trocbuy-category-related-card.is-current {
    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            #ff7200,
            #ff941f
        );

    color: #ffffff;

    box-shadow:
        0 10px 24px
        rgba(255, 114, 0, .18);
}

.trocbuy-category-related-title {
    font-size: 13px;
    font-weight: 850;
}

.trocbuy-category-related-current {
    flex: 0 0 auto;

    padding: 4px 8px;

    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: 999px;

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

    font-size: 9px;
    font-weight: 900;

    text-transform: uppercase;
}


/* ==========================================================
   SIDEBAR
========================================================== */

.trocbuy-category-sidebar {
    position: relative;
}

.trocbuy-category-sidebar-instance {
    width: 100%;
}


/* ==========================================================
   TABLETTE
========================================================== */

@media (max-width: 1050px) {

    .trocbuy-category-layout {
        grid-template-columns: 1fr;
    }

    .trocbuy-category-sidebar {
        width: 100%;
        max-width: 680px;
    }

}


/* ==========================================================
   PETITE TABLETTE
========================================================== */

@media (max-width: 850px) {

    .trocbuy-category-hero-grid {
        grid-template-columns: 1fr;

        padding: 28px;
    }

    .trocbuy-category-hero-visual {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .trocbuy-category-post-grid {
        grid-template-columns: 1fr;
    }

}


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

@media (max-width: 650px) {

    .trocbuy-category-container {
        width: min(100% - 24px, 1240px);
    }


    /* Breadcrumb */

    .trocbuy-category-breadcrumb {
        padding-top: 15px;

        font-size: 10px;
    }


    /* Hero */

    .trocbuy-category-hero {
        padding-bottom: 24px;
    }

    .trocbuy-category-hero-grid {
        padding: 22px;

        border-radius: 20px;
    }

    .trocbuy-category-hero h1 {
        font-size: 34px;
    }

    .trocbuy-category-hero-text {
        margin-top: 15px;

        font-size: 16px;
        line-height: 1.6;
    }

    .trocbuy-category-hero-actions {
        display: grid;

        grid-template-columns: 1fr;
    }

    .trocbuy-category-button {
        width: 100%;
    }

    .trocbuy-category-hero-visual {
        grid-template-columns: 1fr;
    }


    /* Description */

    .trocbuy-category-intro {
        padding: 20px;

        border-radius: 16px;
    }

    .trocbuy-category-description {
        font-size: 16px;
    }


    /* Titres */

    .trocbuy-category-section-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .trocbuy-category-section-header h2 {
        font-size: 25px;
    }


    /* Articles */

    .trocbuy-category-post-image {
        height: 205px;
    }

    .trocbuy-category-post-body {
        padding: 18px;
    }

    .trocbuy-category-post-body h3 {
        font-size: 20px;
    }


    /* Maillage */

    .trocbuy-category-related {
        padding: 20px;

        border-radius: 16px;
    }

    .trocbuy-category-related-grid {
        grid-template-columns: 1fr;
    }

}
/* ==========================================================
   TROCBUY — HERO SOUS-CATÉGORIE V2
========================================================== */

.trocbuy-category-hero {
    padding: 8px 0 34px;
}


.trocbuy-category-hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(360px, .95fr);

    gap: 38px;

    min-height: 360px;

    align-items: center;

    padding: 34px;

    border:
        1px solid
        rgba(255, 122, 0, .17);

    border-radius: 26px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fffaf5 100%
        );

    box-shadow:
        0 18px 48px
        rgba(20, 42, 67, .07);
}


/* ==========================================================
   CONTENU
========================================================== */

.trocbuy-category-hero-content {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;
}


.trocbuy-category-hero h1 {
    max-width: 680px;

    margin: 0;

    color:
        #172b43;

    font-size:
        clamp(
            38px,
            3.3vw,
            48px
        );

    font-weight: 900;

    line-height: 1.08;

    letter-spacing: -.035em;
}


.trocbuy-category-hero-text {
    max-width: 650px;

    margin:
        18px
        0
        0;

    color:
        #60748c;

    font-size: 17px;

    line-height: 1.7;
}


.trocbuy-category-hero-actions {
    margin-top: 23px;
}


/* ==========================================================
   RETOUR CATÉGORIE PARENTE
========================================================== */

.trocbuy-category-parent-link {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-top: 17px;

    color:
        #708298 !important;

    font-size: 12px;

    text-decoration:
        none !important;
}


.trocbuy-category-parent-link strong {
    color:
        #405b76;

    font-weight: 850;
}


.trocbuy-category-parent-link:hover,
.trocbuy-category-parent-link:hover strong {
    color:
        #e96e00 !important;
}


/* ==========================================================
   IMAGE DU HERO
========================================================== */

.trocbuy-category-hero-visual {
    display: block;

    height: 100%;
}


.trocbuy-category-hero-image {
    position: relative;

    width: 100%;
    height: 292px;

    overflow: hidden;

    border-radius: 20px;

    background:
        #edf2f6;

    box-shadow:
        0 16px 38px
        rgba(20, 42, 67, .12);
}


.trocbuy-category-hero-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ==========================================================
   BADGE IMAGE
========================================================== */

.trocbuy-category-hero-image-badge {
    position: absolute;

    left: 16px;
    bottom: 16px;

    display: inline-flex;

    align-items: center;

    padding:
        7px
        11px;

    border-radius: 999px;

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

    color:
        #334b64;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: .04em;

    text-transform: uppercase;

    box-shadow:
        0 6px 18px
        rgba(20, 42, 67, .10);
}


/* ==========================================================
   FALLBACK SI AUCUNE IMAGE
========================================================== */

.trocbuy-category-hero-fallback {
    display: flex;

    height: 292px;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 30px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #f6f9fc,
            #fff5e9
        );

    text-align: center;
}


.trocbuy-category-hero-fallback-mark {
    display: grid;

    width: 54px;
    height: 54px;

    place-items: center;

    margin-bottom: 14px;

    border-radius: 15px;

    background:
        #ff7900;

    color:
        #ffffff;

    font-size: 24px;

    font-weight: 900;
}


.trocbuy-category-hero-fallback strong {
    color:
        #172b43;

    font-size: 20px;

    font-weight: 900;
}


.trocbuy-category-hero-fallback p {
    max-width: 300px;

    margin:
        8px
        0
        0;

    color:
        #708298;

    font-size: 13px;

    line-height: 1.6;
}


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

@media (max-width: 900px) {

    .trocbuy-category-hero-grid {
        grid-template-columns: 1fr;

        min-height: 0;
    }


    .trocbuy-category-hero-image,
    .trocbuy-category-hero-fallback {
        height: 300px;
    }

}


@media (max-width: 650px) {

    .trocbuy-category-hero-grid {
        gap: 25px;

        padding: 22px;

        border-radius: 20px;
    }


    .trocbuy-category-hero h1 {
        font-size: 34px;
    }


    .trocbuy-category-hero-text {
        font-size: 16px;
    }


    .trocbuy-category-hero-image,
    .trocbuy-category-hero-fallback {
        height: 225px;
    }

}

/* ==========================================================
   TROCBUY — CORRECTION PLATEFORMES DE VENTE
   4 CARTES = 2 x 2
   ========================================================== */

.trocbuy-category-related-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:22px !important;
    width:100% !important;
}

.trocbuy-category-related-grid > .trocbuy-category-related-card,
.trocbuy-category-related-grid > .trocbuy-category-related-card:nth-child(3),
.trocbuy-category-related-grid > .trocbuy-category-related-card:nth-child(4),
.trocbuy-category-related-grid > .trocbuy-category-related-card:nth-child(5){
    grid-column:auto !important;
    width:100% !important;
    min-width:0 !important;
}

.trocbuy-category-related-card--with-image{
    display:grid !important;
    grid-template-columns:118px minmax(0,1fr) auto !important;
    gap:16px !important;
    align-items:center !important;
}

.trocbuy-category-related-copy{
    min-width:0 !important;
}

.trocbuy-category-related-title,
.trocbuy-category-related-description{
    word-break:normal !important;
    overflow-wrap:break-word !important;
}

@media (max-width:760px){
    .trocbuy-category-related-grid{
        grid-template-columns:1fr !important;
    }

    .trocbuy-category-related-card--with-image{
        grid-template-columns:96px minmax(0,1fr) auto !important;
        gap:12px !important;
    }
}
