/* ==========================================================
   MODÈLE ARTICLE TROCBUY
   Article à gauche - Sidebar à droite
========================================================== */

.trocbuy-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;

    width: 100%;
    max-width: 1280px;

    margin-right: auto;
    margin-left: auto;

    padding-top: 50px;
    padding-bottom: 70px;
}


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

.trocbuy-single-content {
    width: 100%;
    min-width: 0;
}

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


/* En-tête de l'article */

.trocbuy-single-header {
    margin-bottom: 30px;
}

.trocbuy-single-categories {
    margin-bottom: 14px;
}

.trocbuy-single-categories a {
    color: #f47b20;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.trocbuy-single-categories a:hover {
    text-decoration: underline;
}

.trocbuy-single-title {
    margin: 0 0 18px;

    color: #111111;

    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.trocbuy-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    color: #737373;
    font-size: 15px;
}


/* Image principale */

.trocbuy-single-featured-image {
    width: 100%;

    margin: 0 0 35px;

    overflow: hidden;

    border-radius: 24px;
}

.trocbuy-single-featured-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;
}


/* Contenu de l'article */

.trocbuy-single-entry {
    color: #30343b;

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

.trocbuy-single-entry p {
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.62;
}

.trocbuy-single-entry h2 {
    margin-top: 38px;
    margin-bottom: 14px;

    color: #111111;

    font-size: 34px;
    line-height: 1.18;
    font-weight: 800;
}

.trocbuy-single-entry h3 {
    margin-top: 28px;
    margin-bottom: 12px;

    color: #161616;

    font-size: 26px;
    line-height: 1.22;
    font-weight: 750;
}

.trocbuy-single-entry h4 {
    margin-top: 24px;
    margin-bottom: 10px;

    color: #1c1c1c;

    font-size: 21px;
    line-height: 1.25;
}

.trocbuy-single-entry ul,
.trocbuy-single-entry ol {
    margin-top: 10px;
    margin-bottom: 18px;
    padding-left: 25px;
    line-height: 1.62;
}

.trocbuy-single-entry li {
    margin-bottom: 5px;
    line-height: 1.62;
}

.trocbuy-single-entry a {
    color: #e86f12;
}

.trocbuy-single-entry img,
.trocbuy-single-entry video,
.trocbuy-single-entry iframe,
.trocbuy-single-entry table {
    max-width: 100%;
}

.trocbuy-single-entry img {
    height: auto;
}

.trocbuy-single-entry blockquote {
    margin: 26px 0;
    padding: 22px 26px;

    border-left: 5px solid #f47b20;
    border-radius: 12px;

    background: #fff6ee;

    line-height: 1.62;
}


/* ==========================================================
   NAVIGATION AUTOMATIQUE DES ARTICLES
========================================================== */

.tb-reading-more {
    width: 100%;
    margin-top: 48px;
}

.tb-reading-more-title {
    margin: 0 0 24px;

    color: #111111;

    font-size: 28px;
    line-height: 1.25;
    font-weight: 800;
}


/* ==========================================================
   CTA - DÉCOUVREZ DAVANTAGE DE GUIDES TROCBUY
========================================================== */

.tb-reading-cta {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    width: 100%;

    margin-top: 42px;
    padding: 30px 34px;

    overflow: hidden;

    border: 1px solid #ffd9b8;
    border-radius: 22px;

    background:
        radial-gradient(
            circle at 92% 15%,
            rgba(244, 123, 32, 0.16),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #fff8f2 0%,
            #ffffff 55%,
            #fff3e8 100%
        );

    box-shadow:
        0 14px 34px rgba(17, 17, 17, 0.06);

    box-sizing: border-box;
}


/* Petit accent décoratif */

.tb-reading-cta::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 6px;
    height: 100%;

    background: #f47b20;
}


/* Texte */

.tb-reading-cta h3 {
    margin: 0 0 8px;

    color: #111111;

    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.tb-reading-cta p {
    max-width: 620px;

    margin: 0;

    color: #60646c;

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


/* Bouton */

.tb-reading-cta > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    min-height: 48px;

    padding: 13px 22px;

    border: 2px solid #f47b20;
    border-radius: 12px;

    background: #f47b20;

    color: #ffffff;

    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;

    white-space: nowrap;

    box-shadow:
        0 8px 20px rgba(244, 123, 32, 0.22);

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

.tb-reading-cta > a:hover {
    background: #df6810;
    border-color: #df6810;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 12px 24px rgba(244, 123, 32, 0.28);
}

.tb-reading-cta > a:focus-visible {
    outline: 3px solid rgba(244, 123, 32, 0.28);
    outline-offset: 3px;
}


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

.trocbuy-article-sidebar {
    display: block;

    width: 100%;
    min-width: 0;

    position: sticky;
    top: 30px;

    align-self: start;
}


/* Les éléments de la sidebar ne doivent pas dépasser */

.trocbuy-article-sidebar,
.trocbuy-article-sidebar * {
    box-sizing: border-box;
}

.trocbuy-article-sidebar img {
    max-width: 100%;
    height: auto;
}


/* ==========================================================
   NAVIGATION ET COMMENTAIRES
========================================================== */

.trocbuy-single-content .post-navigation {
    margin-top: 50px;
}

.trocbuy-single-footer {
    margin-top: 40px;
}

.trocbuy-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trocbuy-single-tags a {
    padding: 8px 14px;

    border-radius: 30px;

    background: #f4f4f4;

    color: #333333;
    font-size: 14px;
    text-decoration: none;
}


/* ==========================================================
   ÉCRANS INTERMÉDIAIRES
========================================================== */

@media (max-width: 1100px) {

    .trocbuy-single-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 28px;
    }

    .trocbuy-single-title {
        font-size: clamp(34px, 4.5vw, 50px);
    }

    .tb-reading-cta {
        padding: 28px;
        gap: 24px;
    }

    .tb-reading-cta h3 {
        font-size: 22px;
    }

}


/* ==========================================================
   TABLETTE ET MOBILE
========================================================== */

@media (max-width: 900px) {

    .trocbuy-single-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 45px;

        padding-top: 35px;
        padding-bottom: 55px;
    }

    .trocbuy-article-sidebar {
        position: static;

        width: 100%;
        max-width: 680px;

        margin-right: auto;
        margin-left: auto;
    }

    .tb-reading-cta {
        align-items: flex-start;
        flex-direction: column;

        gap: 20px;
    }

    .tb-reading-cta > a {
        width: auto;
    }

}


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

@media (max-width: 600px) {

    .trocbuy-single-layout {
        padding-top: 25px;
        padding-bottom: 45px;
    }

    .trocbuy-single-title {
        font-size: 34px;
        line-height: 1.16;
    }

    .trocbuy-single-entry {
        font-size: 17px;
        line-height: 1.6;
    }

    .trocbuy-single-entry h2 {
        font-size: 29px;
    }

    .trocbuy-single-entry h3 {
        font-size: 24px;
    }

    .trocbuy-single-meta {
        font-size: 14px;
    }


    /* CTA mobile */

    .tb-reading-more {
        margin-top: 36px;
    }

    .tb-reading-cta {
        margin-top: 32px;

        padding: 24px 20px 22px 24px;

        border-radius: 18px;
    }

    .tb-reading-cta h3 {
        font-size: 21px;
        line-height: 1.3;
    }

    .tb-reading-cta p {
        font-size: 15px;
        line-height: 1.6;
    }

    .tb-reading-cta > a {
        width: 100%;

        min-height: 46px;

        padding: 12px 18px;

        box-sizing: border-box;
    }

}

/* ==========================================================
   ESPACEMENT DU TEXTE DES ARTICLES
========================================================== */

.trocbuy-single-entry p {
    margin-top: 0;
    margin-bottom: 14px;
    line-height: 1.65;
}

/* Espace avant les titres */
.trocbuy-single-entry h2 {
    margin-top: 34px;
    margin-bottom: 16px;
}

.trocbuy-single-entry h3 {
    margin-top: 26px;
    margin-bottom: 12px;
}

/* Listes */
.trocbuy-single-entry ul,
.trocbuy-single-entry ol {
    margin-top: 12px;
    margin-bottom: 18px;
}

.trocbuy-single-entry li {
    margin-bottom: 6px;
}

/* ==========================================================
   RYTHME TYPOGRAPHIQUE GLOBAL DU CONTENU DE L'ARTICLE
   Réduit l'espace entre toutes les lignes du contenu rédactionnel
   sans toucher à la navigation, la sidebar ou les commentaires.
========================================================== */

.trocbuy-single-entry p,
.trocbuy-single-entry li,
.trocbuy-single-entry blockquote,
.trocbuy-single-entry figcaption,
.trocbuy-single-entry td,
.trocbuy-single-entry th {
    line-height: 1.62;
}

@media (max-width: 600px) {

    .trocbuy-single-entry p,
    .trocbuy-single-entry li,
    .trocbuy-single-entry blockquote,
    .trocbuy-single-entry figcaption,
    .trocbuy-single-entry td,
    .trocbuy-single-entry th {
        line-height: 1.60;
    }

}
/* =========================================================
   TROCBUY — TAGS / MOTS-CLÉS EN BAS DES ARTICLES
   ========================================================= */

.tb-article-tags,
.trocbuy-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 28px;
}

.tb-article-tags a,
.trocbuy-article-tags a {
    display: inline-flex;
    align-items: center;

    padding: 9px 16px;

    background: #f4f6f8;
    border: 1px solid #e1e6eb;
    border-radius: 999px;

    color: #17324d !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3;

    text-decoration: none !important;

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

.tb-article-tags a:hover,
.trocbuy-article-tags a:hover {
    background: #fff3e8;
    border-color: #ff7a00;
    color: #d95f00 !important;
    transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 600px) {
    .tb-article-tags,
    .trocbuy-article-tags {
        gap: 8px;
    }

    .tb-article-tags a,
    .trocbuy-article-tags a {
        padding: 8px 13px;
        font-size: 13px !important;
    }
}

/* Titres principaux des sections */
.tb-article-content h2,
.trocbuy-article-content h2,
.entry-content h2 {
    font-size: 18px !important;
    line-height: 1.25 !important;
    margin-top: 34px !important;
    margin-bottom: 12px !important;
}