/* Corrections spécifiques pour masquer les éléments indésirables sur les avis de décès */

/* Masquer tous les boutons de partage social */
.post-share,
.sharing-buttons,
.social-share,
.addtoany_share_save_container,
.sharedaddy,
.sd-sharing,
.jetpack-social-widget,
.wp-social-login-provider-list,
.share-buttons,
.post-sharing,
.entry-share,
.social-links,
.share-post,
.share-wrapper,
.social-media-buttons,
.post-share-buttons,
.love-button,
[class*="share"],
[class*="social"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Masquer la navigation entre posts */
.post-navigation,
.nav-links,
.navigation,
.post-nav,
.single-post-nav,
.entry-navigation,
.prev-next-nav,
.post-pagination,
.next-post,
.prev-post,
.navigation-wrapper,
.post-nav-wrapper,
[class*="next"],
[class*="prev"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Masquer les informations d'auteur */
.author-info,
.post-author,
.entry-author,
.author-bio,
.author-box,
.vcard,
.author-avatar,
.author-description,
.post-meta .author,
.author-wrapper,
.post-author-info,
[class*="author"],
[class*="more-posts"],
.more-posts-by,
.author-posts,
.related-author-posts {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Masquer les images mises en avant / bannières */
.post-thumbnail,
.entry-thumbnail,
.featured-image,
.hero-image,
.banner-image,
.post-header-image,
.entry-header .wp-post-image,
.post-featured-image,
.single-post-thumbnail,
.entry-image,
.hero,
.banner,
.post-hero,
.entry-hero,
.hero-section,
.banner-section {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* S'assurer que nos images personnalisées sont visibles */
.necrologie-photo .wp-post-image,
.necrologie-photo img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

/* Corrections spécifiques pour certains thèmes populaires */

/* Thème Astra */
.ast-single-post .post-thumb,
.ast-single-post .single-post-nav-layout-1 {
    display: none !important;
}

/* Thème GeneratePress */
.generate-post-nav,
.featured-image {
    display: none !important;
}

/* Thème Twenty Twenty */
.post-thumbnail-wrapper,
.post-navigation-wrapper {
    display: none !important;
}

/* Thème Kadence */
.kadence-post-thumbnail,
.post-navigation {
    display: none !important;
}

/* Corrections pour les plugins de partage populaires */
.addthis_sharing_toolbox,
.addthis_inline_share_toolbox,
.wp-social-login-provider-list,
.simple-social-icons,
.social-warfare-buttons,
.scriptless-social-sharing {
    display: none !important;
}

/* Masquer les éléments de commentaires sur les avis de décès si nécessaire */
body.single-post.category-necrologie .comments-area,
body.single-post.category-necrologie #comments {
    display: none !important;
}

/* Style pour s'assurer que le contenu de nécrologie est bien visible */
.necrologie-header,
.necrologie-main-content,
.necrologie-photo,
.necrologie-title-section,
.necrologie-dates,
.necrologie-tribute,
.necrologie-ceremony {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
