/* ============================================================
   ExpoBéton RDC — couche Actualités ed13 (blog.html / blog-details.html)
   Charte stricte : rouge #c22439, bleu #112bb5, jaune #fdbd1b,
   angles droits (border-radius: 0), Archivo (héritée du thème).
   ============================================================ */

/* ------------------------------------------------------------
   1. CARTES ARTICLE : badge catégorie jaune + recadrage uniforme
   ------------------------------------------------------------ */
.cs_post_thumbnail { position: relative; display: block; }
.cs_post_thumbnail img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 25%; }
.eb-post-cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: #fdbd1b; color: #112bb5;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 0;
}
.eb-post-cat--inline { position: static; display: inline-block; }
/* Titres et extraits alignés sur 3 lignes maxi : grille régulière. */
.cs_post_title a,
.eb-post-excerpt {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ------------------------------------------------------------
   2. FILTRES PAR THÉMATIQUE + compteur live
   ------------------------------------------------------------ */
.eb-blog-intro { max-width: 780px; margin-inline: auto; color: #333; }
.eb-blog-intro a { color: #112bb5; text-decoration: underline; text-underline-offset: 3px; }
.eb-blog-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.eb-filter-btn {
  border: 1px solid #112bb5; background: #fff; color: #112bb5;
  padding: 9px 16px; font-size: 14px; font-weight: 600; font-family: inherit;
  border-radius: 0; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.eb-filter-btn:hover { background: #112bb5; color: #fff; }
.eb-filter-btn.is-active { background: #c22439; border-color: #c22439; color: #fff; }
.eb-blog-count { color: #666; margin: 14px 0 0; }
.eb-blog-item[hidden] { display: none; }

/* ------------------------------------------------------------
   3. PAGE DÉTAIL : métadonnées, typographie article, source
   ------------------------------------------------------------ */
/* object-position remonté : évite de couper les visages sur les photos portrait. */
.cs_post_banner img { width: 100%; height: 440px; object-fit: cover; object-position: center 25%; }
.eb-article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.eb-article-meta a { color: #112bb5; text-decoration: underline; text-underline-offset: 3px; }
.cs_post_details h2 { color: #112bb5; font-size: 34px; line-height: 1.25; font-weight: 700; margin-bottom: 18px; }
.eb-article-lead { font-size: 18px; line-height: 1.7; color: #333; font-weight: 500; }
.eb-article-body p { font-size: 16px; line-height: 1.85; color: #333; margin-bottom: 18px; }
.eb-article-body h3 { color: #112bb5; font-size: 24px; font-weight: 700; margin: 34px 0 14px; }
.eb-article-body h4 { color: #c22439; font-size: 18px; font-weight: 600; margin: 24px 0 10px; }
.eb-article-body ul, .eb-article-body ol { margin: 0 0 18px; padding-left: 22px; }
.eb-article-body li { font-size: 16px; line-height: 1.75; color: #333; margin-bottom: 8px; }
.eb-article-body li::marker { color: #c22439; }
.eb-article-body blockquote {
  border-left: 4px solid #c22439; background: #f8f9fa;
  padding: 20px 24px; margin: 26px 0; border-radius: 0;
  font-size: 18px; line-height: 1.7; color: #112bb5; font-weight: 500;
}
.eb-article-body a { color: #112bb5; text-decoration: underline; text-underline-offset: 3px; }
.cs_post_img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.eb-source-box {
  border-left: 4px solid #fdbd1b; background: #f8f9fa;
  padding: 16px 20px; margin: 30px 0 26px; border-radius: 0;
}
.eb-source-box a { color: #112bb5; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------
   4. NAVIGATION PRÉCÉDENT / SUIVANT
   ------------------------------------------------------------ */
.eb-post-nav { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-top: 34px; }
.eb-post-nav-link {
  flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px;
  border: 1px solid #112bb5; border-radius: 0; padding: 14px 18px; color: #112bb5;
  transition: background .25s ease, color .25s ease;
}
.eb-post-nav-link:hover { background: #112bb5; color: #fff; }
.eb-post-nav-link--next { text-align: right; }
.eb-post-nav-dir { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: #c22439; }
.eb-post-nav-link:hover .eb-post-nav-dir { color: #fdbd1b; }
.eb-post-nav-title {
  font-size: 14px; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ------------------------------------------------------------
   5. ASCENSEUR AUX COULEURS DE LA CHARTE (pages Actualités)
   ------------------------------------------------------------ */
html { scrollbar-color: #c22439 #eef0f6; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #eef0f6; }
::-webkit-scrollbar-thumb { background: #c22439; border: 2px solid #eef0f6; }
::-webkit-scrollbar-thumb:hover { background: #112bb5; }

/* ------------------------------------------------------------
   6. MOBILE
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .cs_post_banner img { height: 240px; }
  .cs_post_details h2 { font-size: 24px; }
  .eb-article-lead { font-size: 16px; }
  .eb-article-body blockquote { font-size: 16px; padding: 16px 18px; }
  .eb-post-nav-link--next { text-align: left; }
}