/****************** CORPS ******************/
.blog-layout-1 {
    padding-bottom: 0;
    border-bottom: none;
}

.post-template-default div h2,
.post-template-default h3 {
    margin-top: 30px;
}

.post-thumb-img-content img {
    width: 100%;
    margin: 20px 0 !important;
    object-fit: cover;
}

.ast-article-single .post-thumb-img-content img {
    width: 100%;
}

/****************** MÉTA ******************/
.meta-author,
.meta-date,
.meta-reading-time {
    font-weight: 600;
}

.up-post-meta {
    background: var(--ast-global-color-1);
    color: var(--ast-global-color-4);
}

.up-post-meta-inside {
    color: var(--ast-global-color-1);
    display: flex;
    justify-content: left;
    gap: 40px;
    flex-wrap: wrap;
    padding: 0px;
    margin-top: 20px;
}

@media screen and (max-width: 640px) {
    .up-post-meta-inside {
        gap: 10px;
    }
}

.meta-item a {
    color: var(--ast-global-color-1);
}

.meta-item a:hover {
    color: var(--ast-global-color-0);
}

/****************** ENCARTS BLOG ******************/

/* Base commune pour tous les encarts */
.up_encart {
    border: 1px solid #ddd;
    padding: 30px 20px 20px;
    margin-bottom: 40px;
    border-radius: var(--mon-radius);
    box-shadow: var(--mon-ombre-2);
    background: var(--up-bg, var(--ast-global-color-4));
    color: var(--up-text, var(--ast-global-color-1));
}

.up_auteur-box {
    background: var(--ast-global-color-4);
    color: var(--ast-global-color-2);
}
.up_auteur-box a {
    color: var(--ast-global-color-1);
    font-weight: 600;
}

.up_auteur-img {
    border: 2px solid var(--ast-global-color-0);
}

/****************** SHARE ******************/
.up-share-buttons svg {
    margin-bottom: 4px;
    fill: #fff;
}

.up-share-buttons {
    text-align: center;
    justify-content: center;
    padding: 10px 0 30px 0;
}

.up-share {
    padding: 12px 25px 10px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
}

.up-share-facebook {
    background-color: #3b5998;
}
.up-share-x {
    background-color: #000;
}
.up-share-linkedin {
    background-color: #0077b5;
}

.up-share:hover,
.up-share:focus {
    text-decoration: underline;
    color: #fff;
}

/***************** FAQ *******************/
.single-post .faq-section {
    /*border: 0px solid #ddd;*/
    background: var(--ast-global-color-4);
    padding: 30px 20px 10px;
    margin-bottom: 40px;
    border-radius: var(--mon-radius);
    color: var(--ast-global-color-2);
    box-shadow: var(--mon-ombre-2);
}

.single-post .faq-section .faq-item {
    background-color: white;
}

/****************** SVG ******************/
.up_encart svg {
    margin-bottom: 5px;
    fill: currentColor; /* svg = même couleur que le texte */
}

.up-auteur-linkedin svg {
    fill: #0077b5;
}

.gmw-item-content svg {
    margin-bottom: 5px;
    fill: var(--ast-global-color-1);
}

.up-post-meta svg {
    fill: #fff;
}

.up-post-meta-inside svg {
    fill: var(--ast-global-color-1);
}

/****************** NOTES ******************/
.kk-star-ratings.kksr-align-center {
    margin: 40px 0;
}

/*******************SIDEBAR********************/
.blog-form-aside {
    padding: 10px 10px 10px !important;
    border: 0px solid #ddd;
    background: #f0f0f0; /*couleur salesforce*/
    border-radius: var(--mon-radius);
    box-shadow: var(--mon-ombre-2);
}

/**** SOMMAIRE ****/
.table-of-contents li a {
    font-size: 14px;
}

.table-of-contents li {
    line-height: 1.6 !important;
}

#secondary {
    line-height: 1.8;
}

.table-of-contents {
    background: var(--ast-global-color-1);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: var(--mon-radius);
    box-shadow: var(--mon-ombre-2);
    border: 1px solid #ddd;
}

.table-of-contents .widget-title {
    color: var(--ast-global-color-5);
}

.table-of-contents ul {
    list-style: disc;
    padding-left: inherit;
    margin: 0;
    color: var(--ast-global-color-5);
}

.table-of-contents ul a {
    color: var(--ast-global-color-5);
}

.table-of-contents ul a:hover {
    color: var(--ast-global-color-0);
}

.table-of-contents li.active > a {
    color: var(--ast-global-color-5) !important;
    font-weight: bold;
    text-decoration: underline;
}

.table-of-contents .toc-level {
    margin: 0.3em 0;
}

.table-of-contents .toc-level-3 {
    margin-left: 20px; /* décalage pour les H3 */
    font-size: 0.95em;
}

.table-of-contents .widget-title.open {
    margin-bottom: 1em !important;
}

.table-of-contents .panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.table-of-contents .panel.open {
    max-height: 1000px;
}

.table-of-contents .widget-title.toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-of-contents .toggle-symbol {
    font-size: 26px;
    font-weight: 700;
    color: var(--ast-global-color-5);
    width: 20px;
    display: inline-block;
    text-align: center;
    margin-right: 10px;
}

/****************** RELATED ******************/
.ast-blog-featured-section {
    margin-bottom: 0;
}

h3.ast-related-post-title,
.post-has-thumb + .entry-header,
.post-has-thumb + .entry-content {
    margin-top: 0 !important;
}
