/*
 * rx-master.css — Rif Xalima v9.37
 * ============================================================
 * Feuille de style maîtresse chargée EN DERNIER dans la file
 * d'attente WordPress. Elle réinitialise et unifie tous les
 * composants qui avaient des définitions multiples et
 * contradictoires dans style.css (accumulation de versions
 * v2→v9). Toutes les règles ici ont la priorité finale sans
 * abus de !important.
 * ============================================================
 */

/* ════════════════════════════════════════════
   0. CORRECTIFS CRITIQUES — orbs et hero
   Cause du bug "page en cercle" :
   style.css ligne 3064 applique
   filter:none!important à TOUS les orbs,
   supprimant le blur → cercles solides visibles.
   rx-master.css est chargé après → on rétablit.
════════════════════════════════════════════ */

/* 0-a. Rétablir le blur sur les orbs du blog hero */
.rx-blog-hero__orb {
  filter: blur(70px) !important;
  opacity: 0.22 !important;
  will-change: transform;
}
.rx-blog-hero__orb--g {
  width: 380px !important; height: 380px !important;
  background: #00853F !important;
  opacity: 0.28 !important;
}
.rx-blog-hero__orb--y {
  width: 280px !important; height: 280px !important;
  background: #FDEF42 !important;
  opacity: 0.14 !important;
}
.rx-blog-hero__orb--r {
  width: 220px !important; height: 220px !important;
  background: #E31B23 !important;
  opacity: 0.16 !important;
}

/* 0-b. Le conteneur des orbs doit être DERRIÈRE le contenu */
.rx-blog-hero__bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;      /* style.css l.6040 le force à 1 — on remet à 0 */
  overflow: hidden !important;
  pointer-events: none !important;
}
/* Le contenu toujours devant */
.rx-blog-hero__content {
  position: relative !important;
  z-index: 2 !important;
}
/* Le hero lui-même : fond Sénégal + bonne isolation */
.rx-blog-hero {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: linear-gradient(155deg, #052b14 0%, #00853F 55%, #1a3a0f 100%) !important;
  color: #fff !important;
  padding: clamp(56px, 8vw, 96px) 20px clamp(44px, 6vw, 72px) !important;
  text-align: center !important;
  border-bottom: none !important;
}

/* ────────────────────────────────────────────
   1. LAYOUT — CONTENEUR UNIQUE
──────────────────────────────────────────── */
.rx-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
  box-sizing: border-box;
}

/* ────────────────────────────────────────────
   2. TAG PILLS — articles / mots-clés
   (écrase les 3 définitions contradictoires
    de style.css : l. 2147, 6218, 7583)
──────────────────────────────────────────── */
.rx-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
.rx-tag-pill:hover,
.rx-tag-pill:focus {
  background: #00853F;
  border-color: #00853F;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(0,133,63,.35);
}
body.rx-dark .rx-tag-pill {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  color: #cbd5e1;
}
body.rx-dark .rx-tag-pill:hover {
  background: #00853F;
  border-color: #00853F;
  color: #fff;
}

/* ────────────────────────────────────────────
   3. PILLS CATÉGORIES BLOG
   (écrase les 4 définitions contradictoires
    de style.css : l. 1882, 5271, 6067, 11087)
   Le blog hero a un fond sombre → texte blanc.
──────────────────────────────────────────── */
.rx-blog-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.95);
  font-size: .83rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .22s, border-color .22s, transform .22s;
  backdrop-filter: none; /* évite les bugs mobile */
  -webkit-backdrop-filter: none;
}
.rx-blog-cat-pill:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.55);
  color: #fff;
  transform: translateY(-2px);
}
.rx-blog-cat-pill.active {
  background: #fff;
  border-color: #fff;
  color: #00853F;
  font-weight: 800;
}
.rx-blog-cat-pill__n {
  background: rgba(0,0,0,.2);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
}
.rx-blog-cat-pill.active .rx-blog-cat-pill__n {
  background: rgba(0,133,63,.15);
  color: #00853F;
}

/* ────────────────────────────────────────────
   4. GRILLE BLOG MAGAZINE
   (résout les conflits grid/flex entre les
    multiples blocs .rx-mag-grid / .rx-mag-card)
──────────────────────────────────────────── */
.rx-mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .rx-mag-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .rx-mag-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* Article vedette = pleine largeur */
.rx-mag-featured {
  grid-column: 1 / -1;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(15,23,42,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.rx-mag-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0,133,63,.14);
}
.rx-mag-featured__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 280px;
}
@media (max-width: 768px) {
  .rx-mag-featured__inner { grid-template-columns: 1fr; }
}

/* Image de l'article vedette */
.rx-mag-featured__img {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #00853F 0%, #22c55e 50%, #FDEF42 100%);
  min-height: 220px;
  opacity: 1 !important; /* sécurité anti-reveal-bug */
}
.rx-mag-featured__img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform .5s ease;
}
.rx-mag-featured:hover .rx-mag-featured__img img {
  transform: scale(1.03);
  filter: none;
}

.rx-mag-featured__body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
@media (max-width: 768px) {
  .rx-mag-featured__body { padding: 24px 20px; }
}

/* Carte standard */
.rx-mag-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8edf4;
  box-shadow: 0 2px 14px rgba(15,23,42,.06);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
  /* CORRECTIF : les cartes ne doivent pas partir d'opacity:0
     via l'animation rxRiseIn qui peut ne jamais se déclencher */
  opacity: 1 !important;
  animation: none !important;
}
.rx-mag-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15,23,42,.12);
}

.rx-mag-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #00853F 0%, #FDEF42 100%);
  opacity: 1 !important;
}
.rx-mag-card__img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform .4s ease;
}
.rx-mag-card:hover .rx-mag-card__img img {
  transform: scale(1.03);
  filter: none;
}

.rx-mag-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.rx-mag-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
  transition: color .2s;
}
.rx-mag-card:hover .rx-mag-card__title { color: #00853F; }
.rx-mag-card__exc {
  font-size: .85rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rx-mag-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Overlay cliquable commun (évite les <a> imbriqués) */
.rx-mag-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.rx-mag-featured__body a,
.rx-mag-card__body a,
.rx-mag-cta { position: relative; z-index: 2; }

/* Méta date/temps */
.rx-mag-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .78rem;
  color: #64748b;
}

/* CTA "Lire l'article" */
.rx-mag-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  font-weight: 700;
  color: #00853F;
  text-decoration: none;
  transition: gap .2s;
}
.rx-mag-cta:hover { gap: 9px; }
.rx-mag-cta--sm { font-size: .78rem; }

/* Avatar auteur */
.rx-mag-author {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  color: #334155;
  font-weight: 600;
}
.rx-mag-cat-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
}
.rx-mag-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}
.rx-mag-avatar--sm { width: 26px; height: 26px; }

/* Placeholder sans image */
.rx-mag-noimg {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
}
.rx-mag-noimg--lg { font-size: 5rem; }

/* ────────────────────────────────────────────
   5. DARK MODE — cartes blog
──────────────────────────────────────────── */
body.rx-dark .rx-mag-featured,
body.rx-dark .rx-mag-card {
  background: #1e293b;
  border-color: #334155;
}
body.rx-dark .rx-mag-card__title { color: #f1f5f9; }
body.rx-dark .rx-mag-card__exc,
body.rx-dark .rx-mag-meta { color: #94a3b8; }
body.rx-dark .rx-mag-author { color: #cbd5e1; }
body.rx-dark .rx-mag-cat-label { background: #14532d; color: #bbf7d0; }
body.rx-dark .rx-mag-cta { color: #4ade80; }

/* ────────────────────────────────────────────
   6. SCROLL REVEAL — règle unique et propre
   (Les blocs précédents dans style.css ont
    été consolidés ici. Le JS ajoute la classe
    "rx-revealed", PAS "rx-in-view".)
──────────────────────────────────────────── */
[data-rx-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s cubic-bezier(.4,0,.2,1),
              transform .55s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
[data-rx-reveal].rx-revealed {
  opacity: 1;
  transform: none;
}
/* Sécurité : images jamais bloquées à opacity:0 */
.rx-mag-featured[data-rx-reveal],
.rx-mag-card[data-rx-reveal],
.rx-single__thumb[data-rx-reveal],
.rx-mag-featured__img,
.rx-mag-card__img,
.rx-single__thumb,
.rx-related-card__thumb {
  opacity: 1 !important;
  transform: none !important;
  transition: box-shadow .3s ease, transform .3s ease !important;
}
@media (prefers-reduced-motion: reduce) {
  [data-rx-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ────────────────────────────────────────────
   7. PAGINATION BLOG
──────────────────────────────────────────── */
.rx-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 20px;
}
.rx-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px; height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: all .2s;
}
.rx-pagination .page-numbers:hover,
.rx-pagination .page-numbers.current {
  background: #00853F;
  border-color: #00853F;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,133,63,.3);
}
body.rx-dark .rx-pagination .page-numbers {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}
body.rx-dark .rx-pagination .page-numbers:hover,
body.rx-dark .rx-pagination .page-numbers.current {
  background: #00853F;
  border-color: #00853F;
  color: #fff;
}

/* ────────────────────────────────────────────
   8. PAGE ARTICLE (single.php)
──────────────────────────────────────────── */
.rx-single__thumb {
  margin: 0 0 36px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(15,23,42,.1);
  opacity: 1 !important;
}
.rx-single__thumb img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
}
.rx-single .entry-content,
.rx-single .entry-content figure,
.rx-single .entry-content picture {
  max-width: 100%;
}
.rx-single .entry-content img {
  width: auto;
  max-width: 100%;
  height: auto !important;
  display: block;
  object-fit: contain;
  opacity: 1 !important;
  visibility: visible !important;
}
.rx-single .entry-content figure.wp-block-image {
  margin: 1.5rem 0;
}
.rx-single .entry-content figure.wp-block-image img {
  margin-left: auto;
  margin-right: auto;
}
.rx-single-hero__breadcrumb {
  margin: -4px 0 18px;
}
.rx-single-hero__breadcrumb .rx-breadcrumb {
  margin: 0;
  color: #64748b;
}
.rx-single-hero__breadcrumb .rx-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rx-single-hero__breadcrumb .rx-breadcrumb li {
  display: inline-flex;
  align-items: center;
}
.rx-single-hero__breadcrumb .rx-breadcrumb a {
  color: #00853F;
  font-weight: 700;
}
.rx-single-hero__dek {
  max-width: 760px;
  margin: -4px 0 22px;
  color: #475569;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.65;
}
.rx-article-toc {
  margin: 0 0 30px;
  border: 1px solid #d9e9df;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(253, 239, 66, .2), transparent 34%),
    linear-gradient(135deg, #f3fbf5, #fff);
  overflow: hidden;
}
.rx-article-toc details {
  width: 100%;
}
.rx-article-toc summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
}
.rx-article-toc summary::-webkit-details-marker { display: none; }
.rx-article-toc summary strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}
.rx-article-toc__eyebrow {
  padding: 4px 9px;
  border-radius: 999px;
  background: #00853F;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rx-article-toc__toggle {
  margin-left: auto;
  color: #00853F;
  font-size: 1.25rem;
  transition: transform .2s ease;
}
.rx-article-toc details[open] .rx-article-toc__toggle {
  transform: rotate(180deg);
}
.rx-article-toc ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0 22px 18px 44px;
}
.rx-article-toc__item {
  color: #475569;
  line-height: 1.4;
}
.rx-article-toc__item--h3 {
  margin-left: 18px;
  font-size: .92rem;
}
.rx-article-toc a {
  color: #166534;
  font-weight: 600;
  text-decoration: none;
}
.rx-article-toc a:hover,
.rx-article-toc a:focus-visible {
  color: #00853F;
  text-decoration: underline;
}
.rx-share2__btn--print:hover,
.rx-share2__btn--print:focus-visible {
  background: #475569;
}
.rx-share2__btn--print > span[aria-hidden="true"] {
  display: inline !important;
}
.rx-single .entry-content .rx-table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 1.6rem 0 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dbe5df;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.rx-single .entry-content .rx-table-scroll > table {
  display: table !important;
  width: 100%;
  min-width: 620px;
  max-width: none !important;
  height: auto;
  margin: 0;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}
.rx-single .entry-content .rx-table-scroll th,
.rx-single .entry-content .rx-table-scroll td {
  min-width: 120px;
  padding: 13px 15px;
  border-right: 1px solid #e5ece8;
  border-bottom: 1px solid #e5ece8;
  color: #1f2937;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.rx-single .entry-content .rx-table-scroll th {
  background: #00853F;
  color: #fff;
  font-weight: 800;
  white-space: normal;
}
.rx-single .entry-content .rx-table-scroll tr:last-child td {
  border-bottom: 0;
}
.rx-single .entry-content .rx-table-scroll th:last-child,
.rx-single .entry-content .rx-table-scroll td:last-child {
  border-right: 0;
}
.rx-single .entry-content .rx-table-scroll tbody tr:nth-child(even) td {
  background: #f8fbf9;
}
.rx-single .entry-content .rx-table-scroll tbody tr:hover td {
  background: #eef8f1;
}
.rx-single .entry-content .rx-table-scroll caption {
  padding: 12px 15px;
  color: #475569;
  font-size: .9rem;
  font-weight: 700;
  text-align: left;
  caption-side: top;
}
body.rx-dark .rx-single-hero__dek,
body.rx-dark .rx-single-hero__breadcrumb .rx-breadcrumb {
  color: #94a3b8;
}
body.rx-dark .rx-article-toc {
  border-color: #334155;
  background: radial-gradient(circle at 100% 0, rgba(253, 239, 66, .08), transparent 34%), #1e293b;
}
body.rx-dark .rx-article-toc summary,
body.rx-dark .rx-article-toc a {
  color: #e2e8f0;
}
body.rx-dark .rx-article-toc__item {
  color: #cbd5e1;
}
body.rx-dark .rx-single .entry-content .rx-table-scroll {
  border-color: #334155;
  background: #1e293b;
}
body.rx-dark .rx-single .entry-content .rx-table-scroll th,
body.rx-dark .rx-single .entry-content .rx-table-scroll td {
  border-color: #334155;
  color: #e2e8f0;
}
body.rx-dark .rx-single .entry-content .rx-table-scroll tbody tr:nth-child(even) td {
  background: #243244;
}
body.rx-dark .rx-single .entry-content .rx-table-scroll tbody tr:hover td {
  background: #334155;
}
@media (max-width: 680px) {
  .rx-single-hero__breadcrumb {
    margin-bottom: 14px;
  }
  .rx-article-toc__eyebrow {
    font-size: .6rem;
  }
  .rx-single .entry-content .rx-table-scroll {
    margin-left: 0;
    margin-right: 0;
    border-radius: 10px;
  }
  .rx-single .entry-content .rx-table-scroll > table {
    min-width: 560px;
  }
  .rx-single .entry-content .rx-table-scroll th,
  .rx-single .entry-content .rx-table-scroll td {
    padding: 11px 12px;
    font-size: .92rem;
  }
}
@media print {
  .rx-header,
  .rx-footer,
  .rx-reading-bar,
  .rx-single-hero__back,
  .rx-single-hero__breadcrumb,
  .rx-share2,
  .rx-single__author,
  .rx-single__nav,
  .rx-single__related,
  .rx-single__comments,
  .rx-article-toc {
    display: none !important;
  }
  .rx-single-hero {
    padding: 0 0 18px !important;
    border-bottom: 1px solid #cbd5e1 !important;
    background: #fff !important;
  }
  .rx-single-hero__title {
    color: #000 !important;
  }
  .rx-single__container,
  .rx-single__layout {
    max-width: none !important;
    padding: 0 !important;
    display: block !important;
  }
  .rx-single__main {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .rx-single .entry-content a {
    color: #000 !important;
    text-decoration: underline;
  }
}
.rx2-shead__chip--link,
.rx2-shead__title-link {
  color: inherit;
  text-decoration: none;
}
.rx2-shead__chip--link {
  cursor: pointer;
}
.rx2-shead__chip--link:hover,
.rx2-shead__chip--link:focus-visible,
.rx2-shead__title-link:hover,
.rx2-shead__title-link:focus-visible {
  color: #00853F;
}
.rx-single__tags {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}
.rx-single__taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* ────────────────────────────────────────────
   9. ARTICLES LIÉS (related cards)
──────────────────────────────────────────── */
.rx-single__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .rx-single__related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .rx-single__related-grid { grid-template-columns: 1fr; }
}
.rx-related-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8edf4;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 2px 10px rgba(15,23,42,.06);
}
.rx-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15,23,42,.12);
}
.rx-related-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  opacity: 1 !important;
}
.rx-related-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform .4s ease;
}
.rx-related-card:hover .rx-related-card__thumb img {
  transform: scale(1.03);
  filter: none;
}
.rx-related-card__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rx-related-card__meta { display: flex; gap: 10px; font-size: .75rem; color: #64748b; }
.rx-related-card__title { font-size: .9rem; font-weight: 800; color: #0f172a; line-height: 1.3; }
.rx-related-card__excerpt { font-size: .8rem; color: #475569; line-height: 1.45; }
body.rx-dark .rx-related-card { background: #1e293b; border-color: #334155; }
body.rx-dark .rx-related-card__title { color: #f1f5f9; }
body.rx-dark .rx-related-card__excerpt { color: #94a3b8; }

/* ────────────────────────────────────────────
   0-c. TAG HERO — page /tag/slug/
   Template dédié tag.php (v9.37)
──────────────────────────────────────────── */
.rx-tag-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(155deg, #052b14 0%, #006830 50%, #004d22 100%);
  color: #fff;
  padding: clamp(48px, 7vw, 80px) 20px clamp(36px, 5vw, 56px);
  text-align: center;
}
.rx-tag-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.rx-tag-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
}
.rx-tag-hero__orb--g {
  width: 300px; height: 300px;
  background: #00853F;
  opacity: 0.35;
  top: -80px; left: -60px;
  animation: rxOrbDrift 18s ease-in-out infinite;
}
.rx-tag-hero__orb--y {
  width: 240px; height: 240px;
  background: #FDEF42;
  opacity: 0.15;
  bottom: -60px; right: -40px;
  animation: rxOrbDrift 22s ease-in-out infinite reverse;
}
.rx-tag-hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}
.rx-tag-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.2);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  transition: color .2s, border-color .2s, background .2s;
}
.rx-tag-back:hover {
  color: #fff;
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.1);
}
.rx-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(253,239,66,.15);
  color: #FDEF42;
  border: 1.5px solid rgba(253,239,66,.3);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.rx-tag-hero__title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
}
.rx-tag-hero__desc {
  font-size: 1rem;
  color: rgba(255,255,255,.78);
  margin: 0 0 14px;
  line-height: 1.55;
}
.rx-tag-hero__count {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  margin: 0;
}
.rx-tag-hero__count strong {
  color: #fff;
  font-size: 1.1rem;
}
/* Séparateur entre hero et grille */
.rx-tag-section {
  padding-top: 52px;
}

/* Catégorie inline dans les cartes */
.rx-mag-cat-link {
  font-size: .75rem;
  font-weight: 700;
  color: #00853F;
  text-decoration: none;
  background: #dcfce7;
  padding: 2px 9px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.rx-mag-cat-link:hover {
  background: #00853F;
  color: #fff;
}
body.rx-dark .rx-mag-cat-link {
  background: rgba(0,133,63,.2);
  color: #4ade80;
}

/* ────────────────────────────────────────────
   10. HERO BLOG — fond dégradé sénégal
──────────────────────────────────────────── */
.rx-blog-hero {
  background: linear-gradient(135deg, #003d1c 0%, #00853F 45%, #1a6b2e 100%);
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rx-blog-hero__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin: 10px 0 16px;
  line-height: 1.15;
}
.rx-blog-hero__title mark {
  background: none;
  color: #FDEF42;
  font-style: normal;
}
.rx-blog-hero__eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 8px;
}
.rx-blog-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  max-width: 540px;
  margin: 0 auto 28px;
}
.rx-blog-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 860px;
  margin: 0 auto;
}

/* ────────────────────────────────────────────
   11. SECTION ARTICLES — fond léger
──────────────────────────────────────────── */
.rx-blog-section {
  padding: 60px 0 80px;
  background: #f8fafc;
}
body.rx-dark .rx-blog-section { background: #0f172a; }

/* Page vide */
.rx-blog-empty {
  text-align: center;
  padding: 80px 20px;
  color: #475569;
}
.rx-blog-empty__icon { font-size: 3.5rem; display: block; margin-bottom: 20px; }
.rx-blog-empty__cta {
  display: inline-flex;
  margin-top: 20px;
  padding: 11px 24px;
  border-radius: 12px;
  background: #00853F;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* ═══════════════════════════════════════════
   REFONTE ÉDITORIALE 2026
   Règles finales conservant les classes et la
   structure du thème pour rester compatible avec
   les extensions existantes.
════════════════════════════════════════════ */
:root {
  --rx-editorial-ink: #102a43;
  --rx-editorial-muted: #52606d;
  --rx-editorial-paper: #f7fafc;
  --rx-editorial-lime: #c8f169;
  --rx-editorial-cyan: #b9eff2;
}

.rx2-hero {
  background: linear-gradient(135deg, #03150d 0%, #073522 54%, #075331 100%) !important;
}

/* Hero statique : le message "Portail #1" reste lisible et sans
   mouvements décoratifs derrière lui, notamment sur mobile. */
.rx2-hero__bg,
.rx2-hero__orb,
.rx2-hero__grid {
  display: none !important;
}

.rx2-hero__badge {
  background: rgba(3, 21, 13, .82);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

.rx2-flag-pill {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}

/* Aucun mouvement décoratif ne doit détourner l'attention du badge
   "Portail #1 du Sénégal". Les transitions d'interaction restent actives. */
.rx2-hero,
.rx2-hero * {
  animation: none !important;
}

.rx2-hero__title {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .24);
}

.rx2-hero__lead,
.rx2-hero__tags-label {
  color: rgba(255,255,255,.94) !important;
}

.rx2-hero__flag,
.rx2-pulse,
.rx2-statcard__dot {
  animation: none !important;
  transform: none !important;
}

.rx2-hero__title {
  max-width: 760px;
  letter-spacing: -.045em;
}

.rx2-hero__lead {
  max-width: 620px;
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.rx2-bento__card {
  min-height: 265px;
  border-radius: 24px !important;
  box-shadow: 0 18px 44px rgba(16,42,67,.09);
  transform: translateZ(0);
}

.rx2-bento__card:hover {
  box-shadow: 0 24px 54px rgba(16,42,67,.17);
}

.rx2-bento__tag {
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rx2-blog-grid {
  align-items: stretch;
}

.rx2-blog-card {
  overflow: hidden;
  border: 1px solid rgba(16,42,67,.09);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16,42,67,.08);
}

.rx2-blog-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 210px;
  background: #dff4e7 url('../img/hero-banner.jpg') center/cover;
}

.rx2-blog-card--hero .rx2-blog-card__media {
  min-height: 330px;
}

.rx2-blog-card__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 210px;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 1 !important;
  visibility: visible !important;
  mix-blend-mode: normal;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s ease;
}

.rx2-blog-card--hero .rx2-blog-card__img {
  min-height: 330px;
}

.rx2-blog-card:hover .rx2-blog-card__img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.rx2-blog-card__body {
  padding: 24px 26px 27px;
}

.rx2-blog-card__title a {
  color: var(--rx-editorial-ink);
}

.rx2-blog-card__exc {
  color: var(--rx-editorial-muted);
  line-height: 1.7;
}

.rx-blog-categories {
  position: relative;
  z-index: 3;
  margin-top: -28px;
  padding: 0 0 28px;
}

.rx-blog-categories > .rx-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 28px;
  border: 1px solid rgba(16,42,67,.09);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 44px rgba(16,42,67,.11);
  backdrop-filter: blur(14px);
}

.rx-blog-categories__intro {
  flex: 0 0 auto;
}

.rx-blog-categories__kicker {
  display: block;
  margin-bottom: 3px;
  color: #00853f;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rx-blog-categories__intro h2 {
  margin: 0;
  color: var(--rx-editorial-ink);
  font-size: 1.05rem;
}

.rx-blog-categories__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.rx-blog-categories__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  color: var(--rx-editorial-ink);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: .25s ease;
}

.rx-blog-categories__link span {
  color: #7b8794;
  font-size: .72rem;
}

.rx-blog-categories__link:hover,
.rx-blog-categories__link--all {
  border-color: #00853f;
  background: #00853f;
  color: #fff;
  transform: translateY(-2px);
}

.rx-blog-categories__link--all span,
.rx-blog-categories__link:hover span {
  color: rgba(255,255,255,.8);
}

.rx-blog-hero__title {
  max-width: 760px;
  letter-spacing: -.055em;
}

.rx-blog-hero__sub {
  max-width: 610px;
}

@media (max-width: 760px) {
  .rx-blog-categories {
    margin-top: -18px;
    padding-bottom: 18px;
  }

  .rx-blog-categories > .rx-container {
    display: block;
    padding: 19px;
  }

  .rx-blog-categories__intro {
    margin-bottom: 14px;
  }

  .rx-blog-categories__list {
    justify-content: flex-start;
  }

  .rx2-blog-card__media,
  .rx2-blog-card--hero .rx2-blog-card__media,
  .rx2-blog-card__img,
  .rx2-blog-card--hero .rx2-blog-card__img {
    min-height: 220px;
  }
}
