@media (max-width: 600px) {
  /* Largeur maximale pour le contenu des articles – étiré au max */
  .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;  /* Pas de marges globales pour full-width */
    padding: 0 !important;
  }
  
  /* Justification pour paragraphes (phrases à largeur max) */
  .entry-content p,
  .entry-content .wp-block-paragraph {
    text-align: justify !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    -ms-hyphens: auto !important;
    word-break: break-word !important;
    line-height: 1.7 !important;
    text-justify: inter-word !important;
    width: 100% !important;
    margin: 0 0 1em 0 !important;  /* Espacement en bas seulement pour séparer du texte suivant */
    padding: 0 !important;
  }
  
  /* Justification pour titres des articles (.entry-title) */
  .entry-title {
    text-align: justify !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    -ms-hyphens: auto !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
    text-justify: inter-word !important;
    width: 100% !important;
    margin: 1.5em 0 !important;  /* Espacement au-dessus et en-dessous pour aérer */
  }
  
  /* Justification pour H1 (titres principaux dans le contenu) */
  .entry-content h1 {
    text-align: justify !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    -ms-hyphens: auto !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
    text-justify: inter-word !important;
    width: 100% !important;
    margin: 1.5em 0 !important;  /* Espacement au-dessus et en-dessous */
  }
  
  /* Justification pour sous-titres (H2-H4) */
  .entry-content h2,
  .entry-content h3,
  .entry-content h4 {
    text-align: justify !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    -ms-hyphens: auto !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
    text-justify: inter-word !important;
    width: 100% !important;
    margin: 1.5em 0 !important;  /* Espacement au-dessus et en-dessous */
  }
}
/* Desktop */
.entry-content h2,
.post-content h2,
article h2 { font-size: 24px !important; }

.entry-content h3,
.post-content h3,
article h3 { font-size: 20px !important; }

/* Mobile */
@media (max-width: 768px) {
  .entry-content h2,
  .post-content h2,
  article h2 { font-size: 21px !important; }

  .entry-content h3,
  .post-content h3,
  article h3 { font-size: 18px !important; }
}
/* H1 - Titre principal de l'article */
.entry-content h1,
.post-content h1,
article h1,
.entry-title,
h1.entry-title { font-size: 28px !important; }

/* H1 sur mobile */
@media (max-width: 768px) {
  .entry-content h1,
  .post-content h1,
  article h1,
  .entry-title,
  h1.entry-title { font-size: 22px !important; }
}
body .entry-content h2,
body .post-content h2,
body article h2 { 
  margin-top: 16px !important;
  margin-bottom: 8px !important; 
}

body .entry-content h3,
body .post-content h3,
body article h3 { 
  margin-top: 12px !important;
  margin-bottom: 6px !important; 
}
/* Réduit l'espace en dessous des paragraphes */
body .entry-content p,
body .post-content p,
body article p { 
  margin-bottom: 10px !important; 
}
/* Espace en dessous des paragraphes (avant un sous-titre) */
body .entry-content p,
body .post-content p,
body article p { 
  margin-bottom: 10px !important;
  margin-top: 10px !important;
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}
/* AFThemes BlackNews - spécificité maximale */
html body.single .site-main p,
html body.single .site-main h2,
html body.single .site-main h3 {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

html body.single .site-main h2 {
  margin-top: 16px !important;
  margin-bottom: 6px !important;
}

html body.single .site-main h3 {
  margin-top: 12px !important;
  margin-bottom: 6px !important;
}
/* Justification titres page d'accueil - ciblage maximum */
html body .home .read-title h3 a,
html body .home .read-title h3,
html body .blog .read-title h3 a,
html body .blog .read-title h3,
html body .read-details.color-tp-pad .read-title h3,
html body .read-details.color-tp-pad .read-title h3 a,
html body .pos-rel.read-single .read-details .read-title h3 a {
  text-align: justify !important;
  display: block !important;
  width: 100% !important;
  float: none !important;
}
@media (min-width: 769px) {
  html body.home .read-title h3,
  html body.home .read-title h3 a,
  html body.home .read-single .read-title h3 a,
  html body.home .color-pad .read-title h3,
  html body.home .color-pad .read-title h3 a,
  html body.home .af-cat-widget-carousel .read-title h3 a {
    font-size: 24px !important;
    line-height: 1.4 !important;
  }
}