/* ===== SUPPRIMER LA BANDE BLANCHE EN HAUT DES PAGES ===== */

.page #main{
    padding-top:0 !important;
    margin-top:0 !important;
}

.page .site-main{
    padding-top:0 !important;
    margin-top:0 !important;
}

.page .entry-content{
    margin-top:0 !important;
    padding-top:0 !important;
}

.page .wp-site-blocks{
    padding-top:0 !important;
    margin-top:0 !important;
}

.page .entry-header{
    margin-bottom:0 !important;
    padding-bottom:0 !important;
}

/* ==========================================================================
   LA BRIOCHERIE DE PASCAL — SUPPRESSION DU TITRE H1 UNIQUEMENT
   ========================================================================== */

h1.entry-title,
.entry-header h1.entry-title,
header.entry-header{
    display:none !important;
}

/* Header + Footer : si la bannière est une IMAGE DE FOND */
header [style*="background-image"],
footer [style*="background-image"],
.wp-block-template-part header [style*="background-image"],
.wp-block-template-part footer [style*="background-image"]{
  background-size:contain !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
}

/* Header + Footer : si la bannière est une image cover */
header img,
footer img{
  object-fit:contain !important;
}

/* SUPPRIMER L’ESPACE ENTRE LE H1 ET L’IMAGE SANS DÉCENTRER L’IMAGE */

.single-post .entry-header{
  margin:0 !important;
  padding:0 !important;
  min-height:auto !important;
}

.single-post .entry-title{
  margin:0 !important;
  padding:0 0 12px !important;
}

.single-post .post-thumbnail{
  margin:0 auto !important;
  padding:0 !important;
  line-height:0 !important;
  text-align:center !important;
}

.single-post .post-thumbnail img,
.single-post .wp-post-image{
  display:block !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding:0 !important;
  max-width:100% !important;
  height:auto !important;
  object-position:center !important;
}

/* WRAPPER DU THÈME */

.single-post article,
.single-post .site-main,
.single-post .entry-content{
  margin-top:0 !important;
  padding-top:0 !important;
}

/* ==========================================================================
   PAGES ROCKFIELD — MASQUER L’IMAGE DE MISE EN AVANT AUTOMATIQUE
   Sans toucher aux articles ni aux images dans les blocs de contenu.
   ========================================================================== */

body.page .site-main > article.page > .post-thumbnail,
body.page .site-main > article.page > .featured-image,
body.page .site-main > article.page > .featured-media,
body.page .site-main > article.page > .entry-image,
body.page .site-main > article.page > figure.post-thumbnail,
body.page .site-main > article.page > figure.featured-image,
body.page .site-main > article.page > figure.featured-media,
body.page .site-main > article.page > figure.wp-block-post-featured-image,
body.page article.page > .post-thumbnail,
body.page article.page > .featured-image,
body.page article.page > .featured-media,
body.page article.page > .entry-image,
body.page article.page > figure.post-thumbnail,
body.page article.page > figure.featured-image,
body.page article.page > figure.featured-media,
body.page article.page > figure.wp-block-post-featured-image,
body.page article.page > img.wp-post-image{
    display:none !important;
}

/* ==========================================================================
   ARTICLES ROCKFIELD — MASQUER L’IMAGE DE MISE EN AVANT AUTOMATIQUE
   Sans toucher aux miniatures des listes, blocs blog ou administration.
   ========================================================================== */

body.single-post .site-main > article.post > .post-thumbnail,
body.single-post .site-main > article.post > .featured-image,
body.single-post .site-main > article.post > .featured-media,
body.single-post .site-main > article.post > .entry-image,
body.single-post .site-main > article.post > figure.post-thumbnail,
body.single-post .site-main > article.post > figure.featured-image,
body.single-post .site-main > article.post > figure.featured-media,
body.single-post .site-main > article.post > figure.wp-block-post-featured-image,
body.single-post article.post > .post-thumbnail,
body.single-post article.post > .featured-image,
body.single-post article.post > .featured-media,
body.single-post article.post > .entry-image,
body.single-post article.post > figure.post-thumbnail,
body.single-post article.post > figure.featured-image,
body.single-post article.post > figure.featured-media,
body.single-post article.post > figure.wp-block-post-featured-image,
body.single-post article.post > img.wp-post-image{
    display:none !important;
}

/* ==========================================================================
   ARTICLES — MASQUER UNIQUEMENT LA PHRASE SEO AVANT LA BANNIÈRE
   ========================================================================== */

body.single-post .entry-content > p:first-of-type{
    display:none !important;
}