/* Image de l’article en pleine largeur */
.ms-wrap img,
.ms-wrap .wp-post-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
}

/* Si thème Astra */
.single-post .post-thumbnail img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Enlève le header fixe UNIQUEMENT sur les articles */
.single-post header,
.single-post .site-header,
.single-post .elementor-location-header{
  position: relative !important;
  top: auto !important;
}

/* Si ton thème force un sticky via une classe */
.single-post .is-sticky,
.single-post .sticky,
.single-post .header--sticky{
  position: relative !important;
}

/* 1) Les boutons Jetpack doivent être au-dessus et cliquables */
.sharedaddy,
.sharedaddy .share-icons,
.sharedaddy .share-icons a,
.wp-block-jetpack-sharing-buttons,
.wp-block-jetpack-sharing-buttons a{
  position: relative !important;
  z-index: 999999 !important;
  pointer-events: auto !important;
}

/* 2) Empêche un lien parent (card / container) de "manger" les clics sur la zone partage */
.sharedaddy a,
.wp-block-jetpack-sharing-buttons a{
  pointer-events: auto !important;
}

/* 3) Si un wrapper a un lien plein écran (souvent avec ::after) */
.home-post a::after,
.article-card a::after,
.post-card a::after{
  pointer-events: none !important;
}

/* Listing cards */
.articles-grid .article-title{
  white-space: normal !important;
  text-overflow: unset !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
}

.articles-grid .article-date{
  font-size: 12px;
  opacity: 0.7;
  margin: 6px 0 10px;
}

/* 1) SUPPRIME le gros titre du thème au-dessus */
.single-post .entry-title,
.single-post h1.entry-title{
  display: none !important;
}

/* =====================================================
   HEADER PROPRE (injecté via PHP) dans le carré gris
   ===================================================== */
.ms-gbp-header{ margin: 0 0 14px 0; }

.ms-gbp-title{
  font-size: 28px !important;
  line-height: 1.15 !important;
  margin: 0 0 8px 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  display: block !important;
}

.ms-gbp-date{
  font-size: 12px;
  opacity: 0.7;
  margin: 0 0 6px 0;
}

.ms-gbp-source{
  font-size: 12px;
  opacity: 0.7;
  font-style: italic;
}

/* =====================================================
   MASQUER le titre Google importé (celui avec ... + date)
   -> masque le 1er heading de la colonne gauche du contenu
   ===================================================== */
.ms-article > .wp-block-columns
  > .wp-block-column:first-child
  h1:first-of-type,
.ms-article > .wp-block-columns
  > .wp-block-column:first-child
  h2:first-of-type,
.ms-article > .wp-block-columns
  > .wp-block-column:first-child
  h3:first-of-type,

.ms-article > .elementor-section
  .elementor-column:first-child
  h1:first-of-type,
.ms-article > .elementor-section
  .elementor-column:first-child
  h2:first-of-type,
.ms-article > .elementor-section
  .elementor-column:first-child
  h3:first-of-type{
  display: none !important;
}

/* =====================================================
   SUPPRIMER le noir UNIQUEMENT côté image (colonne droite)
   ===================================================== */
.ms-article .elementor-column:last-child,
.ms-article .wp-block-column:last-child{
  background: transparent !important;
  background-image: none !important;
}

.ms-article .elementor-column:last-child::before,
.ms-article .elementor-column:last-child::after,
.ms-article .wp-block-column:last-child::before,
.ms-article .wp-block-column:last-child::after{
  content: none !important;
  display: none !important;
}

/* Empêche l'étirement vertical des colonnes (cause du gros bloc vide/noir) */
.ms-article .wp-block-columns{ align-items: flex-start !important; }
.ms-article .elementor-container{ align-items: flex-start !important; }

.ms-article .wp-block-column,
.ms-article .elementor-column,
.ms-article .elementor-widget-wrap{
  height: auto !important;
  min-height: 0 !important;
}

/* =====================================================
   Adapter UNIQUEMENT l'image principale (pas les emojis)
   -> première image de la colonne droite uniquement
   ===================================================== */
.ms-article .elementor-column:last-child img:first-of-type,
.ms-article .wp-block-column:last-child img:first-of-type{
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
  object-fit: contain !important;
}

/* Sécurité : ne pas forcer object-fit sur les petites images (emojis/pictos) */
.ms-article img[width],
.ms-article img[height]{
  object-fit: initial !important;
}

/* Bouton “Nous contacter” */
.ms-contact-btn{
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.ms-contact-btn:hover{ opacity: .9; }

/* ✅ Date Google en petit */
.ms-gbp-date{
  font-size: 12px !important;
  opacity: .75 !important;
  margin: 6px 0 14px !important;
}

/* ✅ Hero image full largeur, sans cadre */
.ms-hero{ margin: 0 0 18px 0; }
.ms-hero-img{
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ✅ Enlève tout fond/cadre noir autour de l’image (si thème/elementor) */
.single-post .post-thumbnail,
.single-post .post-thumbnail *{
  background: transparent !important;
}
.ms-article figure,
.ms-article .wp-block-image,
.ms-article .elementor-widget-image{
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
/* =========================
   MOBILE : image avant texte
   ========================= */
@media (max-width: 768px){

  /* Gutenberg Columns : inverse l’ordre */
  .ms-article .wp-block-columns{
    display: flex !important;
    flex-direction: column-reverse !important; /* ✅ image (colonne droite) au-dessus */
    gap: 16px !important;
  }

  /* Elementor : inverse l’ordre */
  .ms-article .elementor-section .elementor-container{
    display: flex !important;
    flex-direction: column-reverse !important; /* ✅ image au-dessus */
    gap: 16px !important;
  }
}

/* ==========================================
   MOBILE : Similaire thumbs plus petites
   et toutes à la même taille
   ========================================== */
@media (max-width: 768px){
  .ms-related-thumb{
    display: block;
    overflow: hidden;
    border-radius: 12px;
  }

  .ms-related-thumb img{
    width: 100% !important;
    height: 160px !important;   /* 👈 plus haut = moins de coupe */
    object-fit: cover !important;
    display: block !important;
  }
}
titre qui s'arrete a 14 caractères ou a un . ou - ou ?