/* Styles propres à la page index.php (déplacés depuis le fichier PHP, sans modification). */
/* border: 1px dashed rgba(255,255,255,0.06); */ /* <-- supprime ou corrige */

/* 2) Forcer l'image à rester nette (override des filters / blend modes) */
.ad-banner-wrapper img,
#adImage,
#adLink img {
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  transition: none !important;
}

/* 3) Masquer tout pseudo-élément overlay potentiellement sombre */
.ad-banner-wrapper::before,
.ad-banner-wrapper::after,
#adLink::before,
#adLink::after {
  display: none !important;
  background: transparent !important;
  content: none !important;
  pointer-events: none !important;
}

/* 4) Sécurité : si un overlay est une vraie balise enfant (div), la rendre transparente */
.ad-banner-wrapper > .overlay,
.ad-banner-wrapper .ad-overlay {
  background: transparent !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 5) Petite touche : assurer que la wrapper n'assombrit pas via background */
.ad-banner-wrapper {
  background: transparent !important;
}
/* === Masquer la barre de dédicaces sur mobile === */
@media (max-width: 768px) {
  .dedicace-bar {
    display: none !important;
  }
}
/* Container général (assure l'ordre vertical : logo > filtres > contenu) */
.blog-section .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Logo actus - placé en haut et centré */
.rmhaiti-logo-actus {
 display: block;
  max-width: 400px;     /* adapte la taille du logo */
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
  object-fit: contain;
}
.rmhaiti-main-logo {
  display: block;
  max-width: 400px;     /* adapte la taille du logo */
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
  object-fit: contain;
}

/* Tabs / filtres - centrés sous le logo */
.blog-tabs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 6px 0 12px;
  padding: 6px;
  width: 100%;
}
.blog-tabs-container .blog-tab-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: background .18s ease, transform .12s ease;
  border: 1px solid rgba(255,255,255,0.03);
}
.blog-tabs-container .blog-tab-trigger i.material-icons { font-size: 18px; opacity: .9; }
.blog-tabs-container .blog-tab-trigger.active,
.blog-tabs-container .blog-tab-trigger:hover {
  background: linear-gradient(90deg, rgba(255,64,129,0.10), rgba(124,31,62,0.06));
  transform: translateY(-2px);
  border-color: rgba(255,64,129,0.08);
}

/* Contenu */
.blog-content-area { width: 100%; }

/* Featured post layout */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
}
.featured-post-image img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform .6s cubic-bezier(.2,.9,.2,1);
}
.featured-post-image a { display:block; overflow:hidden; border-radius:10px; }
.featured-post:hover .featured-post-image img { transform: scale(1.03); }

/* Featured body */
.featured-post-body {
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.featured-post-category {
  font-size: .78rem;
  color: rgba(255,255,255,0.6);
  font-weight: 700;
  letter-spacing: .4px;
  display:inline-block;
}
.featured-post-body h3 {
  margin: 0;
  font-family: 'Oswald', 'Playfair Display', serif;
  font-size: 1.4rem;
  line-height: 1.12;
  color: #fff;
}
.featured-post-body h3 a { color: inherit; text-decoration: none; }
.post-excerpt {
  margin: 0;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  max-height: 4.8em;
  overflow: hidden;
}

/* btn read more */
.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,0.03);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .16s ease, background .16s ease;
}
.btn-read-more:hover {
  transform: translateY(-3px);
  background: linear-gradient(90deg, rgba(255,64,129,0.06), rgba(124,31,62,0.04));
}

/* Other posts grid */
.other-posts h4 {
  margin: 0 0 10px 0;
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
}
.post-grid.fixed-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid-post-item {
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.02);
}
.grid-post-image img { width:100%; height:150px; object-fit:cover; border-radius:8px; display:block; }
.grid-post-body { padding-top:8px; }
.grid-post-title { margin:0 0 6px 0; font-size:1rem; line-height:1.15; }
.grid-post-title a { color: #fff; text-decoration:none; font-weight:700; }
.grid-post-excerpt { margin:0 0 8px 0; color: rgba(255,255,255,0.78); font-size:.92rem; line-height:1.35; max-height:3.6em; overflow:hidden; }
.grid-post-meta { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.grid-post-meta .views { color: rgba(255,255,255,0.5); font-size:.85rem; }
.grid-post-meta .read-more { color: rgba(255,255,255,0.9); text-decoration:none; font-weight:700; }

/* No article text */
.no-article { color: #aaa; padding: 16px 0; }

/* Responsive */
@media (max-width: 980px) {
  .featured-post { grid-template-columns: 1fr; }
  .post-grid.fixed-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .rmhaiti-main-logo { max-width: 180px; }
  .post-grid.fixed-3 { grid-template-columns: 1fr; }
  .blog-tabs-container { gap:8px; padding:6px 2px; justify-content:flex-start; overflow-x:auto; -webkit-overflow-scrolling: touch; }
  .blog-tabs-container .blog-tab-trigger { flex: 0 0 auto; }
  .featured-post-image img { max-height: 260px; }
}

.dedicace-bar {
  display: none !important;
}
