.blog-entry.post .thumbnail img {

max-width: 40%;

width: auto !important;

display: block;

margin-left: auto;

margin-right: auto;

}

.postid-12765 .sidebar {
    display: none;
}
.postid-12765 .content {
    width: 100%;
}

.postid-20204 .sidebar {
    display: none;
}
.postid-20204 .content {
    width: 100%;
}

/* Ajustement mobile pour la modale d'upload BBPress */
@media screen and (max-width: 768px) {
    /* Aligne et force la fenêtre TinyMCE à rester dans l'écran */
    div.mce-window, 
    .mce-floatpanel.mce-window.mce-in {
        width: 95% !important;
        max-width: 95vw !important;
        left: 2.5% !important;
        right: 2.5% !important;
        top: 10% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Redimensionne l'en-tête et le corps de la modale */
    .mce-window-head, 
    .mce-window-body {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Force le conteneur du bouton d'upload à s'adapter */
    .mce-container, 
    .mce-container-body, 
    .mce-abs-layout-item {
        width: auto !important;
        max-width: 100% !important;
        position: relative !important;
        left: 0 !important;
        display: block !important;
    }

    /* Ajuste la ligne spécifique du bouton d'upload de l'extension */
    .mce-formitem {
        margin-bottom: 10px !important;
    }
}

@media screen and (max-width: 768px) {
    /* 1. Force la ligne du champ URL à utiliser le Flexbox pour tout aligner */
    .mce-formitem {
        display: flex !important;
        flex-direction: row !important; /* Aligne champ + bouton sur la même ligne */
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 5px !important; /* Espace entre le champ et le bouton */
    }

    /* 2. Réduit la largeur du champ de l'adresse web source */
    .mce-formitem .mce-textbox {
        flex: 1 !important; /* Prend tout l'espace disponible sans pousser le bouton */
        width: 100% !important;
        min-width: 50px !important; /* Empêche le champ de s'écraser */
        max-width: calc(100% - 90px) !important; /* Laisse ~90px de libre pour le bouton */
        box-sizing: border-box !important;
    }

    /* 3. Ajuste et stabilise le bouton d'upload à droite du champ réduit */
    .mce-formitem .mce-btn {
        position: relative !important;
        left: 0 !important;
        margin: 0 !important;
        display: inline-block !important;
        width: auto !important;
        flex-shrink: 0 !important; /* Empêche le bouton de rétrécir */
    }
}

/* Forcer la taille sur la liste des sujets bbPress */
#bbpress-forums li.bbp-body ul.topic,
#bbpress-forums .bbp-topic-title a.bbp-topic-permalink {
    font-size: 0.9rem !important; /* Équivaut à environ 22px sur Essence Pro */
    font-weight: 500 !important;
}

/* Forcer la taille du texte à l'intérieur des messages et réponses */
#bbpress-forums div.bbp-reply-content, 
#bbpress-forums div.bbp-reply-content p {
    font-size: 0.9rem !important; /* Équivaut à environ 18px sur Essence Pro */
    line-height: 1.7 !important;
}

@media only screen and (max-width: 480px) {
    #bbpress-forums li.bbp-header .bbp-topic-voice-count, 
    #bbpress-forums li.bbp-header .bbp-topic-reply-count {
        margin-left: 15px; /* Aligne ou espace le texte de l'en-tête */
    }

    #bbpress-forums .bbp-body .bbp-topic-voice-count,
    #bbpress-forums .bbp-body .bbp-topic-reply-count {
        padding-left: 30px; /* Aligne les chiffres sous les en-têtes */
    }
}




/* Positionnement en haut du sujet et aligné à droite */
.bbp-custom-btn-container {
    display: flex;
    justify-flex-end; /* Aligne le bouton à droite */
    margin-top: 5px;
    margin-bottom: 15px;
    width: 100%;
}

/* Style du petit bouton bleu */
.bbp-custom-blue-btn {
    background-color: #0073aa !important;
    color: #ffffff !important;
    padding: 6px 12px !important;        /* Taille réduite (hauteur et largeur) */
    font-size: 12px !important;           /* Taille du texte plus petite */
    font-weight: bold !important;
    border-radius: 3px !important;        /* Arrondi légèrement plus fin */
    text-decoration: none !important;
    transition: background-color 0.2s ease-in-out;
    border: none !important;
    display: inline-block;
    cursor: pointer;
}

/* Effet au survol de la souris */
.bbp-custom-blue-btn:hover {
    background-color: #005177 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}