/* ==========================================================
   TROCBUY — SIDEBAR ARTICLES
   VERSION PREMIUM
========================================================== */


/* ==========================================================
   CONTENEUR PRINCIPAL
========================================================== */

.trocbuy-article-sidebar {
    width: 100%;
    min-width: 0;

    color: #172b43;

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


.trocbuy-sidebar-inner {
    display: grid;

    gap: 22px;

    width: 100%;
}


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

.trocbuy-sidebar-card {
    width: 100%;

    overflow: hidden;

    border:
        1px solid
        #e6ebf1;

    border-radius: 20px;

    background:
        #ffffff;

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


/* ==========================================================
   EN-TÊTES
========================================================== */

.trocbuy-sidebar-heading {
    padding:
        22px
        22px
        18px;

    border-bottom:
        1px solid
        #edf0f4;
}


.trocbuy-sidebar-heading-content {
    display: flex;

    align-items: flex-start;

    gap: 13px;
}


.trocbuy-sidebar-heading-icon {
    display: grid;

    width: 42px;
    height: 42px;

    flex:
        0
        0
        42px;

    place-items: center;

    border-radius: 13px;

    background:
        #fff2e7;

    font-size: 20px;
}


.trocbuy-sidebar-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: #c65d00;

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

    line-height: 1.3;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.trocbuy-sidebar-title {
    margin: 0 !important;

    color: #172b43 !important;

    font-size: 22px !important;
    font-weight: 900 !important;

    line-height: 1.25 !important;

    letter-spacing: -.025em;
}


/* ==========================================================
   BLOC CATÉGORIE CONTEXTUELLE
========================================================== */

.trocbuy-sidebar-context-card {
    border-color:
        rgba(255, 122, 0, .22);
}


.trocbuy-sidebar-context-card
.trocbuy-sidebar-heading {
    background:
        linear-gradient(
            135deg,
            #fffaf5 0%,
            #ffffff 100%
        );
}


/* ==========================================================
   LISTE DES SOUS-CATÉGORIES
========================================================== */

.trocbuy-sidebar-category-list {
    display: grid !important;

    gap: 0 !important;

    margin: 0 !important;

    padding: 8px !important;

    list-style: none !important;
}


.trocbuy-sidebar-category-list li {
    display: block !important;

    margin: 0 !important;

    padding: 0 !important;

    list-style: none !important;
}


.trocbuy-sidebar-category-link {
    display: flex !important;

    width: 100% !important;

    min-height: 58px;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding:
        10px
        11px !important;

    border-radius: 12px;

    color:
        #263d55 !important;

    text-decoration: none !important;

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


.trocbuy-sidebar-category-link:hover {
    background:
        #f5f7fa;

    color:
        #111f2f !important;

    transform:
        translateX(2px);
}


/* ==========================================================
   PARTIE GAUCHE
========================================================== */

.trocbuy-sidebar-category-left {
    display: flex;

    min-width: 0;

    align-items: center;

    gap: 10px;

    flex: 1;
}


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

    width: 35px;
    height: 35px;

    flex:
        0
        0
        35px;

    place-items: center;

    border-radius: 10px;

    background:
        #f3f5f8;

    font-size: 17px;
}


.trocbuy-sidebar-category-name {
    min-width: 0;

    color: inherit;

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

    line-height: 1.35;
}


/* ==========================================================
   PARTIE DROITE
========================================================== */

.trocbuy-sidebar-category-right {
    display: flex;

    flex:
        0
        0
        auto;

    align-items: center;

    gap: 6px;
}


.trocbuy-sidebar-category-count {
    display: inline-flex;

    min-width: 25px;
    height: 25px;

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

    padding:
        0
        7px;

    border-radius: 999px;

    background:
        #f1f3f6;

    color:
        #718096;

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


.trocbuy-sidebar-category-arrow {
    color:
        #a0a9b4;

    font-size: 16px;
}


/* ==========================================================
   SOUS-CATÉGORIE ACTUELLE
========================================================== */

.trocbuy-sidebar-category-list
li.is-current
.trocbuy-sidebar-category-link,
.trocbuy-sidebar-category-link--current {
    background:
        linear-gradient(
            135deg,
            #ff7300,
            #ff941f
        ) !important;

    color:
        #ffffff !important;

    box-shadow:
        0 9px 22px
        rgba(255, 115, 0, .20);
}


.trocbuy-sidebar-category-list
li.is-current
.trocbuy-sidebar-category-icon {
    background:
        rgba(255,255,255,.18);

    color:
        #ffffff;
}


.trocbuy-sidebar-current-label {
    display: inline-flex;

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

    min-height: 25px;

    padding:
        4px
        8px;

    border:
        1px solid
        rgba(255,255,255,.28);

    border-radius: 999px;

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

    color:
        #ffffff;

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

    letter-spacing: .05em;

    text-transform: uppercase;
}


/* ==========================================================
   LIEN VERS LA LANDING PRINCIPALE
========================================================== */

.trocbuy-sidebar-parent-link-wrap {
    padding:
        6px
        16px
        18px;
}


.trocbuy-sidebar-parent-link {
    display: grid;

    grid-template-columns:
        1fr
        auto;

    align-items: center;

    gap:
        2px
        10px;

    width: 100%;

    padding:
        15px
        16px;

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

    border-radius: 13px;

    background:
        #fff8f1;

    color:
        #9c4c00 !important;

    text-decoration: none !important;

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


.trocbuy-sidebar-parent-link:hover {
    background:
        #fff1e2;

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

    transform:
        translateY(-2px);
}


.trocbuy-sidebar-parent-link span:first-child {
    grid-column: 1;

    color:
        #8a705c;

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

    line-height: 1.3;
}


.trocbuy-sidebar-parent-link strong {
    grid-column: 1;

    color:
        #b45400;

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

    line-height: 1.35;
}


.trocbuy-sidebar-parent-link
span:last-child {
    grid-column: 2;

    grid-row:
        1
        /
        span 2;

    color:
        #ff7200;

    font-size: 21px;
}


/* ==========================================================
   RECHERCHE
========================================================== */

.trocbuy-sidebar-search-card form,
.trocbuy-sidebar-search-form {
    display: grid;

    gap: 9px;

    padding: 18px;
}


.trocbuy-sidebar-search-card input,
.trocbuy-sidebar-search-form input {
    width: 100%;

    min-height: 46px;

    padding:
        0
        13px;

    border:
        1px solid
        #dce3ea;

    border-radius: 10px;

    background:
        #ffffff;

    color:
        #172b43;

    font-size: 14px;

    outline: none;
}


.trocbuy-sidebar-search-card input:focus,
.trocbuy-sidebar-search-form input:focus {
    border-color:
        #ff8a1f;

    box-shadow:
        0 0 0 3px
        rgba(255, 122, 0, .09);
}


.trocbuy-sidebar-search-card button,
.trocbuy-sidebar-search-form button {
    min-height: 44px;

    padding:
        0
        16px;

    border: 0;

    border-radius: 10px;

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

    color:
        #ffffff;

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

    cursor: pointer;
}


/* ==========================================================
   ERREUR ADMIN
========================================================== */

.trocbuy-sidebar-section-error {
    padding: 18px;

    border-color:
        #e9b3b3;

    background:
        #fff5f5;

    color:
        #922;
}


.trocbuy-sidebar-section-error p {
    margin:
        8px
        0
        0;
}


/* ==========================================================
   STICKY — DESKTOP
========================================================== */

@media (min-width: 1000px) {

    .trocbuy-article-sidebar {
        position: sticky;

        top: 90px;
    }

}


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

@media (max-width: 999px) {

    .trocbuy-article-sidebar {
        position: static;
    }

}


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

@media (max-width: 700px) {

    .trocbuy-sidebar-inner {
        gap: 18px;
    }


    .trocbuy-sidebar-card {
        border-radius: 17px;
    }


    .trocbuy-sidebar-heading {
        padding:
            18px
            17px
            15px;
    }


    .trocbuy-sidebar-title {
        font-size:
            20px !important;
    }


    .trocbuy-sidebar-category-list {
        padding:
            7px !important;
    }


    .trocbuy-sidebar-category-link {
        min-height: 56px;

        padding:
            9px
            9px !important;
    }


    .trocbuy-sidebar-category-name {
        font-size: 13px;
    }


    .trocbuy-sidebar-category-icon {
        width: 33px;
        height: 33px;

        flex-basis: 33px;
    }


    .trocbuy-sidebar-parent-link-wrap {
        padding:
            5px
            13px
            15px;
    }

}

/* ==========================================================
   CARTE CONTRIBUER
========================================================== */

.trocbuy-sidebar-contribute-card {
    padding: 22px;

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

    border-radius: 20px;

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

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


/* ==========================================================
   HAUT DE LA CARTE
========================================================== */

.trocbuy-sidebar-contribute-top {
    display: grid;
    gap: 12px;
}


.trocbuy-sidebar-badge {
    display: inline-flex;

    width: fit-content;

    align-items: center;

    gap: 6px;

    padding:
        6px
        10px;

    border-radius: 999px;

    background:
        #fff0df;

    color:
        #c65d00;

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

    line-height: 1;

    letter-spacing: .06em;

    text-transform: uppercase;
}


.trocbuy-sidebar-contribute-card
.trocbuy-sidebar-title {
    margin: 0 !important;

    color: #172b43 !important;

    font-size: 22px !important;
    font-weight: 900 !important;

    line-height: 1.2 !important;

    letter-spacing: -.025em;
}


.trocbuy-sidebar-contribute-text {
    margin: 0;

    color: #607086;

    font-size: 14px;

    line-height: 1.65;
}


/* ==========================================================
   AVANTAGES
========================================================== */

.trocbuy-sidebar-contribute-benefits {
    display: grid;

    gap: 8px;

    margin-top: 18px;
}


.trocbuy-sidebar-benefit {
    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        9px
        10px;

    border-radius: 10px;

    background:
        rgba(246, 248, 251, .90);

    color:
        #31475e;

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

    line-height: 1.35;
}


.trocbuy-sidebar-benefit span:first-child {
    flex: 0 0 auto;

    font-size: 15px;
}


/* ==========================================================
   BOUTON
========================================================== */

.trocbuy-sidebar-primary-button {
    display: flex;

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

    gap: 8px;

    width: 100%;

    min-height: 46px;

    margin-top: 18px;

    padding:
        0
        15px;

    border-radius: 12px;

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

    color:
        #ffffff !important;

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

    text-decoration: none !important;

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

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


.trocbuy-sidebar-primary-button:hover {
    transform: translateY(-2px);

    color:
        #ffffff !important;

    box-shadow:
        0 14px 28px
        rgba(255, 114, 0, .28);
}


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

@media (max-width: 700px) {

    .trocbuy-sidebar-contribute-card {
        padding: 18px;
    }

    .trocbuy-sidebar-contribute-card
    .trocbuy-sidebar-title {
        font-size:
            20px !important;
    }

}

/* ==========================================================
   CARTE SPONSORISÉE
========================================================== */

.trocbuy-sidebar-sponsor-card {
    position: relative;

    padding: 22px;

    overflow: hidden;

    border:
        1px solid
        rgba(55, 92, 255, .16);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #f8faff 0%,
            #ffffff 58%,
            #f4f7ff 100%
        );

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


/* ==========================================================
   DÉCORATION
========================================================== */

.trocbuy-sidebar-sponsor-decoration {
    position: absolute;

    top: -28px;
    right: -24px;

    width: 110px;
    height: 110px;

    pointer-events: none;
}


.trocbuy-sidebar-sponsor-circle {
    position: absolute;

    display: block;

    border-radius: 50%;

    background:
        rgba(64, 92, 255, .06);
}


.trocbuy-sidebar-sponsor-circle:nth-child(1) {
    width: 88px;
    height: 88px;

    top: 0;
    right: 0;
}


.trocbuy-sidebar-sponsor-circle:nth-child(2) {
    width: 58px;
    height: 58px;

    top: 18px;
    right: 18px;

    background:
        rgba(64, 92, 255, .08);
}


.trocbuy-sidebar-sponsor-circle:nth-child(3) {
    width: 28px;
    height: 28px;

    top: 33px;
    right: 33px;

    background:
        rgba(255, 122, 0, .12);
}


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

.trocbuy-sidebar-sponsor-content {
    position: relative;

    z-index: 2;

    display: grid;

    gap: 12px;
}


.trocbuy-sidebar-sponsor-card
.trocbuy-sidebar-title {
    margin: 0 !important;

    color: #172b43 !important;

    font-size: 22px !important;
    font-weight: 900 !important;

    line-height: 1.2 !important;

    letter-spacing: -.025em;
}


.trocbuy-sidebar-sponsor-description {
    margin: 0;

    color: #607086;

    font-size: 14px;

    line-height: 1.65;
}


/* ==========================================================
   AVANTAGES
========================================================== */

.trocbuy-sidebar-sponsor-benefits {
    display: grid;

    gap: 8px;

    margin: 4px 0 0 !important;

    padding: 0 !important;

    list-style: none !important;
}


.trocbuy-sidebar-sponsor-benefits li {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin: 0 !important;

    padding:
        9px
        10px;

    border-radius: 10px;

    background:
        rgba(246, 248, 251, .92);

    color:
        #31475e;

    font-size: 13px;

    line-height: 1.45;

    list-style: none !important;
}


.trocbuy-sidebar-sponsor-benefits li > span:first-child {
    display: inline-grid;

    width: 20px;
    height: 20px;

    flex:
        0
        0
        20px;

    place-items: center;

    border-radius: 50%;

    background:
        #e8f8ee;

    color:
        #1b8a4b;

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


/* ==========================================================
   BOUTON
========================================================== */

.trocbuy-sidebar-sponsor-button {
    display: flex;

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

    gap: 8px;

    width: 100%;

    min-height: 46px;

    margin-top: 5px;

    padding:
        0
        15px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #263cff,
            #5269ff
        );

    color:
        #ffffff !important;

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

    text-decoration: none !important;

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

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


.trocbuy-sidebar-sponsor-button:hover {
    transform:
        translateY(-2px);

    color:
        #ffffff !important;

    box-shadow:
        0 14px 28px
        rgba(48, 74, 255, .26);
}


/* ==========================================================
   NOTE
========================================================== */

.trocbuy-sidebar-sponsor-note {
    margin:
        2px
        0
        0;

    color:
        #8a96a6;

    font-size: 11px;

    line-height: 1.45;

    text-align: center;
}


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

@media (max-width: 700px) {

    .trocbuy-sidebar-sponsor-card {
        padding: 18px;
    }

    .trocbuy-sidebar-sponsor-card
    .trocbuy-sidebar-title {
        font-size:
            20px !important;
    }

}

/* ==========================================================
   CARTE APPLICATION TROCBUY
========================================================== */

.trocbuy-sidebar-app-card {
    padding: 22px;

    border:
        1px solid
        rgba(20, 42, 67, .12);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #f8fbff 0%,
            #ffffff 58%,
            #f5f9ff 100%
        );

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


/* ==========================================================
   HAUT DE LA CARTE
========================================================== */

.trocbuy-sidebar-app-top {
    display: grid;

    gap: 12px;
}


.trocbuy-sidebar-app-card
.trocbuy-sidebar-title {
    margin: 0 !important;

    color: #172b43 !important;

    font-size: 22px !important;
    font-weight: 900 !important;

    line-height: 1.2 !important;

    letter-spacing: -.025em;
}


.trocbuy-sidebar-app-description {
    margin: 0;

    color: #607086;

    font-size: 14px;

    line-height: 1.65;
}


/* ==========================================================
   NOTE / AVIS
========================================================== */

.trocbuy-sidebar-app-rating {
    display: grid;

    grid-template-columns:
        1fr
        1px
        1fr;

    align-items: center;

    gap: 12px;

    margin-top: 18px;

    padding:
        12px
        14px;

    border-radius: 12px;

    background:
        #f6f8fb;
}


.trocbuy-sidebar-app-rating-item {
    display: flex;

    align-items: center;

    gap: 8px;
}


.trocbuy-sidebar-app-rating-icon {
    font-size: 18px;
}


.trocbuy-sidebar-app-rating-item div {
    display: grid;

    gap: 2px;
}


.trocbuy-sidebar-app-rating-item strong {
    color: #172b43;

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


.trocbuy-sidebar-app-rating-item span {
    color: #7b8795;

    font-size: 11px;
}


.trocbuy-sidebar-app-rating-separator {
    width: 1px;
    height: 34px;

    background:
        #dde3e9;
}


/* ==========================================================
   DISPONIBILITÉ
========================================================== */

.trocbuy-sidebar-app-availability {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 12px;

    padding:
        11px
        12px;

    border-radius: 11px;

    background:
        #fff8f1;
}


.trocbuy-sidebar-app-availability-icon {
    font-size: 18px;
}


.trocbuy-sidebar-app-availability div {
    display: grid;

    gap: 2px;
}


.trocbuy-sidebar-app-availability span {
    color: #8a705c;

    font-size: 11px;
}


.trocbuy-sidebar-app-availability strong {
    color: #a95200;

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


/* ==========================================================
   FONCTIONNALITÉS
========================================================== */

.trocbuy-sidebar-app-features {
    display: grid;

    gap: 8px;

    margin:
        16px
        0
        0 !important;

    padding: 0 !important;

    list-style: none !important;
}


.trocbuy-sidebar-app-features li {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin: 0 !important;

    padding:
        8px
        10px;

    border-radius: 10px;

    background:
        rgba(246, 248, 251, .92);

    color:
        #31475e;

    font-size: 13px;

    line-height: 1.45;

    list-style: none !important;
}


.trocbuy-sidebar-app-features li > span:first-child {
    display: inline-grid;

    width: 19px;
    height: 19px;

    flex:
        0
        0
        19px;

    place-items: center;

    border-radius: 50%;

    background:
        #e8f8ee;

    color:
        #1b8a4b;

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


/* ==========================================================
   BOUTONS STORES
========================================================== */

.trocbuy-sidebar-store-buttons {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 10px;

    margin-top: 16px;
}


.trocbuy-store-button {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 52px;

    padding:
        8px
        10px;

    border-radius: 12px;

    background:
        #17212e;

    color:
        #ffffff !important;

    text-decoration: none !important;

    transition:
        transform .2s ease,
        background .2s ease;
}


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

    background:
        #0f1822;
}


.trocbuy-store-button-icon {
    font-size: 20px;
}


.trocbuy-store-button-text {
    display: grid;

    gap: 1px;
}


.trocbuy-store-button-text small {
    color:
        rgba(255,255,255,.70);

    font-size: 9px;

    line-height: 1.1;
}


.trocbuy-store-button-text strong {
    color: #ffffff;

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

    line-height: 1.15;
}


/* ==========================================================
   QR CODE
========================================================== */

.trocbuy-sidebar-app-qr {
    display: grid;

    grid-template-columns:
        150px
        1fr;

    align-items: center;

    gap: 14px;

    margin-top: 18px;

    padding:
        14px;

    border:
        1px solid
        #e4e9ef;

    border-radius: 14px;

    background:
        #ffffff;
}


.trocbuy-sidebar-app-qr-image {
    display: flex;

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


.trocbuy-sidebar-app-qr-image img {
    display: block;

    width: 145px !important;
    height: 145px !important;

    max-width: 100%;

    border-radius: 8px;
}


.trocbuy-sidebar-app-qr-content {
    display: grid;

    gap: 5px;
}


.trocbuy-sidebar-app-qr-content strong {
    color: #172b43;

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

    line-height: 1.3;
}


.trocbuy-sidebar-app-qr-content span {
    color: #748197;

    font-size: 12px;

    line-height: 1.5;
}


/* ==========================================================
   PIED
========================================================== */

.trocbuy-sidebar-app-footer {
    margin:
        12px
        0
        0;

    color:
        #8995a3;

    font-size: 11px;

    line-height: 1.4;

    text-align: center;
}


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

@media (max-width: 700px) {

    .trocbuy-sidebar-app-card {
        padding: 18px;
    }

    .trocbuy-sidebar-app-card
    .trocbuy-sidebar-title {
        font-size:
            20px !important;
    }

    .trocbuy-sidebar-store-buttons {
        grid-template-columns:
            1fr;
    }

    .trocbuy-sidebar-app-qr {
        grid-template-columns:
            1fr;

        text-align: center;
    }

    .trocbuy-sidebar-app-qr-image img {
        width:
            150px !important;

        height:
            150px !important;
    }

}

/* ==========================================================
   ARTICLES POPULAIRES
========================================================== */

.trocbuy-sidebar-popular-card {
    overflow: hidden;
}


/* ==========================================================
   LISTE
========================================================== */

.trocbuy-sidebar-popular-list {
    display: grid;

    gap: 0;

    padding:
        5px
        14px
        10px;
}


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

.trocbuy-sidebar-popular-post {
    display: grid;

    grid-template-columns:
        34px
        70px
        1fr;

    gap: 10px;

    align-items: center;

    padding:
        14px
        0;

    border-bottom:
        1px solid
        #edf0f4;
}


.trocbuy-sidebar-popular-post:last-child {
    border-bottom: 0;
}


/* ==========================================================
   CLASSEMENT
========================================================== */

.trocbuy-sidebar-popular-rank {
    display: flex;

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

    width: 30px;
    height: 30px;

    border-radius: 9px;

    background:
        #fff3e7;

    color:
        #d26000;

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


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

.trocbuy-sidebar-popular-image {
    display: block;

    width: 70px;
    height: 70px;

    overflow: hidden;

    border-radius: 11px;

    background:
        #f2f4f7;

    text-decoration: none;
}


.trocbuy-sidebar-popular-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .25s ease;
}


.trocbuy-sidebar-popular-image:hover img {
    transform:
        scale(1.05);
}


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

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


.trocbuy-sidebar-popular-badge {
    display: inline-flex;

    margin-bottom: 5px;

    padding:
        4px
        7px;

    border-radius: 999px;

    background:
        #fff0df;

    color:
        #c65d00;

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

    letter-spacing: .05em;

    text-transform: uppercase;
}


.trocbuy-sidebar-popular-title {
    margin:
        0
        0
        6px !important;

    font-size:
        14px !important;

    font-weight:
        850 !important;

    line-height:
        1.35 !important;
}


.trocbuy-sidebar-popular-title a {
    color:
        #20364e !important;

    text-decoration:
        none !important;
}


.trocbuy-sidebar-popular-title a:hover {
    color:
        #e96e00 !important;
}


/* ==========================================================
   META
========================================================== */

.trocbuy-sidebar-popular-meta {
    display: flex;

    flex-wrap: wrap;

    gap:
        5px
        10px;

    margin-bottom: 6px;

    color:
        #8a96a4;

    font-size: 10px;
}


/* ==========================================================
   LIEN
========================================================== */

.trocbuy-sidebar-popular-link {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color:
        #c65d00 !important;

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

    text-decoration:
        none !important;
}


.trocbuy-sidebar-popular-link:hover {
    color:
        #e96e00 !important;
}


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

@media (max-width: 700px) {

    .trocbuy-sidebar-popular-post {
        grid-template-columns:
            30px
            64px
            1fr;
    }

    .trocbuy-sidebar-popular-image {
        width: 64px;
        height: 64px;
    }

}


/* ==========================================================
   COMMENTAIRES RÉCENTS
========================================================== */

.trocbuy-sidebar-comments-card {
    overflow: hidden;
}


/* ==========================================================
   LISTE
========================================================== */

.trocbuy-sidebar-comments-list {
    display: grid;

    gap: 0;

    padding:
        5px
        14px
        10px;
}


/* ==========================================================
   COMMENTAIRE
========================================================== */

.trocbuy-sidebar-comment {
    display: grid;

    grid-template-columns:
        42px
        1fr;

    gap: 11px;

    align-items: flex-start;

    padding:
        14px
        0;

    border-bottom:
        1px solid
        #edf0f4;
}


.trocbuy-sidebar-comment:last-child {
    border-bottom: 0;
}


/* ==========================================================
   AVATAR
========================================================== */

.trocbuy-sidebar-comment-avatar {
    width: 42px;
    height: 42px;

    overflow: hidden;

    border-radius: 50%;

    background:
        #f3f5f8;
}


.trocbuy-sidebar-comment-avatar img {
    display: block;

    width: 42px;
    height: 42px;

    object-fit: cover;
}


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

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


.trocbuy-sidebar-comment-top {
    display: flex;

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

    gap: 8px;

    margin-bottom: 5px;
}


.trocbuy-sidebar-comment-author {
    overflow: hidden;

    color:
        #20364e;

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

    line-height: 1.3;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.trocbuy-sidebar-comment-date {
    flex: 0 0 auto;

    color:
        #9aa4b0;

    font-size: 9px;

    line-height: 1.2;
}


/* ==========================================================
   EXTRAIT
========================================================== */

.trocbuy-sidebar-comment-excerpt {
    margin:
        0
        0
        7px !important;

    color:
        #607086;

    font-size: 12px;

    line-height: 1.5;
}


/* ==========================================================
   LIEN VERS L'ARTICLE
========================================================== */

.trocbuy-sidebar-comment-post {
    display: flex;

    align-items: center;

    gap: 4px;

    min-width: 0;

    color:
        #8a96a4 !important;

    font-size: 10px;

    line-height: 1.35;

    text-decoration:
        none !important;
}


.trocbuy-sidebar-comment-post strong {
    min-width: 0;

    overflow: hidden;

    color:
        #c65d00;

    font-weight: 850;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.trocbuy-sidebar-comment-post:hover strong {
    color:
        #e96e00;
}


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

@media (max-width: 700px) {

    .trocbuy-sidebar-comment {
        grid-template-columns:
            38px
            1fr;
    }


    .trocbuy-sidebar-comment-avatar,
    .trocbuy-sidebar-comment-avatar img {
        width: 38px;
        height: 38px;
    }

}

/* ==========================================================
   ÉTAT VIDE — SIDEBAR
========================================================== */

.trocbuy-sidebar-empty-state {
    padding: 26px 18px;

    text-align: center;

    color: #718096;
}

.trocbuy-sidebar-empty-icon {
    display: block;

    margin-bottom: 10px;

    font-size: 28px;
}

.trocbuy-sidebar-empty-state strong {
    display: block;

    margin-bottom: 6px;

    color: #20364e;

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

.trocbuy-sidebar-empty-state p {
    margin: 0 !important;

    color: #7b8795;

    font-size: 12px !important;

    line-height: 1.5;
}
/* ==========================================================
   TROCBUY — CORRECTION DERNIERS GUIDES
   ========================================================== */

/* Titre des articles dans "Derniers guides" */
[class*="sidebar-recent-content"] h3 {
    margin: 5px 0 7px !important;

    font-size: 15px !important;
    font-weight: 800 !important;

    line-height: 1.35 !important;

    letter-spacing: -0.01em !important;
}

/* Lien du titre */
[class*="sidebar-recent-content"] h3 a {
    color: #20364e !important;

    font-size: 15px !important;
    font-weight: 800 !important;

    line-height: 1.35 !important;

    text-decoration: none !important;

    overflow-wrap: break-word !important;
    word-break: normal !important;
}

/* Survol */
[class*="sidebar-recent-content"] h3 a:hover {
    color: #e96e00 !important;
}

/* Catégorie au-dessus du titre */
[class*="sidebar-recent-content"] > span,
[class*="sidebar-recent-content"] .category {
    font-size: 11px !important;
    line-height: 1.35 !important;
}

/* Meta : date / durée */
[class*="sidebar-recent-content"] [class*="meta"] {
    font-size: 11px !important;
    line-height: 1.4 !important;
}


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

@media (max-width: 700px) {

    [class*="sidebar-recent-content"] h3,
    [class*="sidebar-recent-content"] h3 a {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

}
