/* ==========================================================================
   Nourane – Blog (blog.html + pages d'articles)
   Mobile-first. Palette alignée sur le site : bleu & rose.
   ========================================================================== */

.blog-page,
.home-blog {
  --nb-blue-900: #0d2a5c;
  --nb-blue-700: #1a4b9c;
  --nb-blue-100: #e8eefb;
  --nb-blue-50: #f4f7fd;
  --nb-pink: #e85d94;
  --nb-pink-dark: #b8265f;      /* texte rose accessible (contraste AA sur blanc) */
  --nb-pink-100: #fdebf3;
  --nb-ink: #1a1f2e;
  --nb-soft: #4a5368;
  --nb-line: #e4e6f0;
  --nb-radius: 14px;
  --nb-shadow: 0 10px 34px rgba(13, 42, 92, .12);
  color: var(--nb-ink);
}

.blog-page *,
.home-blog * { box-sizing: border-box; }

.blog-page img,
.home-blog img { max-width: 100%; height: auto; display: block; }

.visually-hidden-nb {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.blog-page a:focus-visible,
.home-blog a:focus-visible,
.blog-page summary:focus-visible {
  outline: 3px solid var(--nb-pink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Listing hero ---------- */
.blog-hero {
  background: linear-gradient(135deg, var(--nb-blue-900) 0%, var(--nb-blue-700) 100%);
  color: #fff;
  padding: 118px 0 48px;
  position: relative;
  overflow: hidden;
}
.blog-hero::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(232, 93, 148, .55), transparent 70%);
  pointer-events: none;
}
.blog-hero .container { position: relative; z-index: 1; }
.blog-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #ffd3e4; margin-bottom: 10px;
}
.blog-hero h1 {
  font-family: "Poppins", sans-serif; font-weight: 700; color: #fff;
  font-size: clamp(1.9rem, 5vw + .5rem, 3rem); line-height: 1.15; margin: 0 0 14px;
}
.blog-hero p { font-size: clamp(1rem, 1.2vw + .8rem, 1.15rem); max-width: 640px; color: #e6ecfb; margin: 0; }

/* ---------- Breadcrumb ---------- */
.nb-breadcrumb { font-size: 13px; margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.nb-breadcrumb li + li::before { content: "›"; margin-right: 8px; opacity: .6; }
.nb-breadcrumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.blog-hero .nb-breadcrumb { color: #d5defa; }
.post-hero .nb-breadcrumb { color: var(--nb-soft); }

/* ---------- Cards grid ---------- */
.blog-list { padding: 40px 0 64px; background: var(--nb-blue-50); }
.blog-grid {
  display: grid; gap: 24px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .blog-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: #fff; border-radius: var(--nb-radius); overflow: hidden; box-shadow: var(--nb-shadow);
  display: flex; flex-direction: column; height: 100%; position: relative;
  transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(13, 42, 92, .2); }
.blog-card .card-media { aspect-ratio: 1200 / 630; background: var(--nb-blue-100); overflow: hidden; }
.blog-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .card-body-nb { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--nb-pink-dark); background: var(--nb-pink-100); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px;
}
.blog-card h2, .blog-card h3 {
  font-family: "Poppins", sans-serif; font-size: 1.2rem; line-height: 1.35; font-weight: 600; margin: 0 0 10px; color: var(--nb-blue-900);
}
.blog-card h2 a, .blog-card h3 a { color: inherit; text-decoration: none; }
/* carte entièrement cliquable */
.blog-card h2 a::after, .blog-card h3 a::after { content: ""; position: absolute; inset: 0; }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--nb-pink-dark); }
.blog-card p { font-size: .97rem; color: var(--nb-soft); margin: 0 0 16px; }
.blog-meta { margin-top: auto; font-size: 13px; color: var(--nb-soft); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.blog-meta i { color: var(--nb-blue-700); margin-right: 4px; vertical-align: -1px; }

/* ---------- Home preview ---------- */
.home-blog { padding: 56px 0; background: #fff; }
.home-blog .section-head { text-align: center; margin-bottom: 30px; }
.home-blog .section-head h2 { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--nb-blue-900); font-size: clamp(1.5rem, 3vw + .6rem, 2.1rem); margin: 0 0 8px; }
.home-blog .section-head p { color: var(--nb-soft); margin: 0 auto; max-width: 620px; }
.home-blog .more { text-align: center; margin-top: 30px; }

.nb-btn {
  display: inline-block; background: var(--nb-pink-dark); color: #fff !important; font-weight: 600;
  padding: 12px 26px; border-radius: 999px; text-decoration: none; transition: background .2s, transform .2s;
}
.nb-btn:hover { background: #9b1d4e; transform: translateY(-2px); }
.nb-btn.outline { background: transparent; color: var(--nb-blue-900) !important; border: 2px solid var(--nb-blue-900); }
.nb-btn.outline:hover { background: var(--nb-blue-900); color: #fff !important; }

/* ---------- Article hero ---------- */
.post-hero { padding: 112px 0 0; background: linear-gradient(180deg, var(--nb-blue-50), #fff); }
.post-hero .post-head { max-width: 820px; margin: 0 auto; }
.post-hero h1 {
  font-family: "Poppins", sans-serif; font-weight: 700; color: var(--nb-blue-900);
  font-size: clamp(1.7rem, 4.2vw + .5rem, 2.7rem); line-height: 1.2; margin: 6px 0 16px; overflow-wrap: anywhere;
}
.post-lede { font-size: clamp(1.05rem, 1vw + .9rem, 1.25rem); color: var(--nb-soft); line-height: 1.6; margin: 0 0 18px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--nb-soft); margin: 0 0 24px; padding: 0; list-style: none; }
.post-meta i { color: var(--nb-blue-700); margin-right: 5px; vertical-align: -1px; }
.post-cover { max-width: 980px; margin: 0 auto; }
.post-cover img { width: 100%; border-radius: var(--nb-radius); box-shadow: var(--nb-shadow); aspect-ratio: 1200 / 630; object-fit: cover; }

/* ---------- Article layout ---------- */
.post-wrap { padding: 36px 0 24px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 1040px; margin: 0 auto; }
@media (min-width: 992px) {
  .post-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; }
  .post-toc { position: sticky; top: 100px; align-self: start; }
}

/* sommaire */
.post-toc { background: var(--nb-blue-50); border: 1px solid var(--nb-line); border-radius: var(--nb-radius); padding: 14px 18px; }
.post-toc summary { font-weight: 700; color: var(--nb-blue-900); cursor: pointer; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.post-toc summary::-webkit-details-marker { display: none; }
.post-toc summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--nb-pink-dark); }
.post-toc[open] summary::after { content: "–"; }
.post-toc ol { margin: 12px 0 2px; padding-left: 20px; font-size: 14.5px; }
.post-toc li { margin: 7px 0; }
.post-toc a { color: var(--nb-ink); text-decoration: none; }
.post-toc a:hover { color: var(--nb-pink-dark); text-decoration: underline; }
@media (min-width: 992px) { .post-toc summary { pointer-events: none; } .post-toc summary::after { display: none; } }

/* corps */
.post-body { font-size: clamp(1rem, .35vw + .94rem, 1.1rem); line-height: 1.8; max-width: 740px; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 {
  font-family: "Poppins", sans-serif; font-weight: 700; color: var(--nb-blue-900);
  font-size: clamp(1.4rem, 2vw + .8rem, 1.85rem); line-height: 1.3; margin-top: 2em; scroll-margin-top: 96px;
  padding-bottom: 8px; border-bottom: 3px solid var(--nb-pink); display: inline-block;
}
.post-body h3 { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--nb-blue-700); font-size: 1.2rem; margin-top: 1.6em; scroll-margin-top: 96px; }
.post-body p { margin-bottom: 0; }
.post-body a { color: var(--nb-blue-700); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: break-word; }
.post-body a:hover { color: var(--nb-pink-dark); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin: .4em 0; }
.post-body strong { color: var(--nb-blue-900); }

/* encadrés */
.nb-key, .nb-note, .nb-warn, .nb-cta {
  border-radius: var(--nb-radius); padding: 20px 22px; border-left: 5px solid var(--nb-pink); line-height: 1.7;
}
.nb-key { background: var(--nb-blue-100); border-left-color: var(--nb-blue-700); }
.nb-note { background: #fff7fb; border-left-color: var(--nb-pink); }
.nb-warn { background: #fff8e8; border-left-color: #e0a100; }
.nb-key h2, .nb-key h3, .nb-note h3, .nb-warn h3, .nb-cta h3 {
  font-size: 1.05rem !important; margin: 0 0 8px !important; border: 0 !important; padding: 0 !important; display: block !important;
  font-family: "Poppins", sans-serif; color: var(--nb-blue-900);
}
.nb-key ul, .nb-note ul, .nb-warn ul { margin: 6px 0 0; }
.nb-cta { background: linear-gradient(135deg, var(--nb-blue-900), var(--nb-blue-700)); color: #fff; border-left-color: var(--nb-pink); }
.nb-cta h3 { color: #fff; }
.nb-cta p { margin: 0 0 14px; color: #e6ecfb; }
.nb-cta .nb-btn { background: var(--nb-pink); }
.nb-cta .nb-btn:hover { background: var(--nb-pink-dark); }

/* graphique en barres (liste accessible) */
.bars-fig { margin: 1.6em 0; background: #fff; border: 1px solid var(--nb-line); border-radius: var(--nb-radius); padding: 18px 18px 14px; }
.bars-fig figcaption { font-size: 14px; color: var(--nb-soft); line-height: 1.5; margin-top: 12px; }
.bars-fig .bars-title { font-weight: 700; color: var(--nb-blue-900); margin: 0 0 14px; font-size: 1rem; line-height: 1.4; }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li {
  display: grid; grid-template-columns: minmax(130px, 34%) 1fr 48px; align-items: center; gap: 10px; margin: 0; padding: 6px 0; font-size: 14.5px; line-height: 1.35;
}
.bars .bar-track { height: 14px; background: var(--nb-blue-100); border-radius: 999px; overflow: hidden; }
.bars .bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--nb-blue-700); }
.bars li.strong .bar-fill { background: var(--nb-pink); }
.bars .bar-val { font-weight: 700; text-align: right; color: var(--nb-blue-900); font-variant-numeric: tabular-nums; }
.bars-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--nb-soft); margin-top: 10px; }
.bars-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--nb-blue-700); }
.bars-legend span.l-strong::before { background: var(--nb-pink); }
@media (max-width: 520px) {
  .bars li { grid-template-columns: 1fr 44px; row-gap: 2px; }
  .bars .bar-label { grid-column: 1 / 2; }
  .bars .bar-val { grid-column: 2 / 3; grid-row: 1; }
  .bars .bar-track { grid-column: 1 / 3; grid-row: 2; }
}

/* cartes mécanismes */
.mech-grid { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 0; list-style: none; }
@media (min-width: 640px) { .mech-grid { grid-template-columns: 1fr 1fr; } }
.mech-grid li { margin: 0; background: var(--nb-blue-50); border: 1px solid var(--nb-line); border-radius: var(--nb-radius); padding: 18px 18px 16px; line-height: 1.65; font-size: .97em; }
.mech-grid .mech-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--nb-blue-700); color: #fff; font-weight: 700; margin-bottom: 8px; }
.mech-grid h3 { margin: 0 0 6px; font-size: 1.05rem; }

/* tableaux responsives */
.nb-table-wrap { margin: 1.4em 0; }
.nb-table { width: 100%; border-collapse: collapse; font-size: .93em; line-height: 1.5; background: #fff; }
.nb-table caption { caption-side: top; text-align: left; font-weight: 700; color: var(--nb-blue-900); padding: 0 0 10px; }
.nb-table th, .nb-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--nb-line); }
.nb-table thead th { background: var(--nb-blue-900); color: #fff; font-weight: 600; font-size: .92em; }
.nb-table tbody th { color: var(--nb-blue-900); font-weight: 700; }
.nb-table tbody tr:nth-child(even) { background: var(--nb-blue-50); }
@media (max-width: 700px) {
  .nb-table, .nb-table tbody, .nb-table tr, .nb-table td, .nb-table th, .nb-table caption { display: block; width: 100%; }
  .nb-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nb-table tbody tr { border: 1px solid var(--nb-line); border-radius: var(--nb-radius); margin-bottom: 14px; overflow: hidden; background: #fff !important; }
  .nb-table tbody th { background: var(--nb-blue-100); border-bottom: 0; }
  .nb-table td { border-bottom: 1px solid var(--nb-line); padding: 10px 14px; }
  .nb-table td:last-child { border-bottom: 0; }
  .nb-table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--nb-pink-dark); margin-bottom: 2px; }
}

/* blocs examens (article dépistage) */
.exam { margin-top: 2.2em !important; }
.exam-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 3px 12px; margin: 0 6px 6px 0; }
.exam-badge.depistage { background: #e1f5ea; color: #145a32; }
.exam-badge.diagnostic { background: var(--nb-blue-100); color: var(--nb-blue-900); }
.exam-reco { background: var(--nb-pink-100); border-radius: 10px; padding: 14px 18px; margin-top: 1em; line-height: 1.65; }
.exam-reco strong:first-child { color: var(--nb-pink-dark); }

/* partage */
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2.2em 0 0; padding-top: 18px; border-top: 1px solid var(--nb-line); font-size: 14px; }
.post-share strong { margin-right: 4px; }
.post-share a {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--nb-blue-100);
  color: var(--nb-blue-900) !important; text-decoration: none !important; font-size: 20px; transition: background .2s, color .2s;
}
.post-share a:hover { background: var(--nb-blue-900); color: #fff !important; }

/* sources */
.post-sources { font-size: .9em; line-height: 1.6; color: var(--nb-soft); background: var(--nb-blue-50); border-radius: var(--nb-radius); padding: 18px 22px; }
.post-sources h2 { font-size: 1.15rem !important; border: 0 !important; padding: 0 !important; margin: 0 0 8px !important; display: block !important; }
.post-sources ol { margin: 0; padding-left: 1.2em; }
.post-sources li { margin: .5em 0; }
.post-disclaimer { font-size: .9em; color: var(--nb-soft); border-top: 1px solid var(--nb-line); padding-top: 16px; }

/* articles liés */
.post-related { background: var(--nb-blue-50); padding: 44px 0 56px; margin-top: 32px; }
.post-related h2 { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--nb-blue-900); font-size: clamp(1.3rem, 2vw + .7rem, 1.7rem); margin: 0 0 20px; }
.post-related .blog-grid { max-width: 1040px; margin: 0 auto; }

/* don */
.blog-donate { background: linear-gradient(135deg, var(--nb-blue-900), var(--nb-blue-700)); color: #fff; padding: 36px 0; }
.blog-donate .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.blog-donate h2 { font-family: "Poppins", sans-serif; font-size: clamp(1.2rem, 2vw + .6rem, 1.6rem); margin: 0; color: #fff; max-width: 640px; line-height: 1.35; }
.blog-donate .nb-btn { background: var(--nb-pink); }
.blog-donate .nb-btn:hover { background: var(--nb-pink-dark); }

@media (prefers-reduced-motion: reduce) {
  .blog-card, .nb-btn { transition: none; }
  .blog-card:hover { transform: none; }
}
@media (max-width: 480px) {
  .post-hero { padding-top: 98px; }
  .blog-hero { padding-top: 104px; }
  .nb-key, .nb-note, .nb-warn, .nb-cta { padding: 16px 16px; }
  .post-sources { padding: 16px; }
}
@media print {
  .post-toc, .post-share, .post-related, .blog-donate, #header, #footer, .back-to-top { display: none !important; }
}

/* ---------- Chiffres clés (stat tiles) & barres en valeurs absolues ---------- */
.post-body .stat-grid { display: grid; gap: 14px; grid-template-columns: 1fr; padding: 0; list-style: none; }
@media (min-width: 560px) { .post-body .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat-grid li { margin: 0; background: var(--nb-blue-50); border: 1px solid var(--nb-line); border-top: 4px solid var(--nb-pink); border-radius: var(--nb-radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; line-height: 1.4; }
.stat-num { font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(1.8rem, 3vw + 1rem, 2.4rem); color: var(--nb-blue-900); line-height: 1.1; }
.stat-label { font-size: .95rem; color: var(--nb-ink); }
.stat-src { font-size: 12.5px; color: var(--nb-soft); margin-top: auto; padding-top: 6px; }
.bars.counts li { grid-template-columns: minmax(130px, 34%) 1fr 76px; }
@media (max-width: 520px) { .bars.counts li { grid-template-columns: 1fr 76px; } }
.post-body .stat-grid { margin-top: 1.5em; }

/* ==========================================================================
   Correctifs de robustesse (compatibilité avec le CSS du thème du site)
   - le thème applique `section { padding: 60px 0 }` : on neutralise dans l'article
   - les en-têtes de tableaux gardent toujours fond bleu foncé + texte blanc
   ========================================================================== */
.blog-page { color-scheme: light; background: #fff; }
.blog-page .post-body section,
.blog-page .post-body .post-section { padding: 0 !important; margin-left: 0; margin-right: 0; overflow: visible !important; }
.blog-page .post-body .post-section { margin-top: 0; }
.blog-page .post-body .post-section + .post-section { margin-top: 0; }

.blog-page .nb-table { background: #fff !important; color: var(--nb-ink) !important; border-collapse: collapse; }
.blog-page .nb-table thead,
.blog-page .nb-table thead tr,
.blog-page .nb-table thead th {
  background: #0d2a5c !important;
  background-color: #0d2a5c !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  text-shadow: none !important;
  opacity: 1 !important;
}
.blog-page .nb-table tbody th { color: #0d2a5c !important; background: transparent; }
.blog-page .nb-table tbody td { color: var(--nb-ink) !important; }
.blog-page .nb-table tbody tr:nth-child(even) { background: #f4f7fd; }
.blog-page .nb-table caption { color: #0d2a5c !important; }
@media (max-width: 700px) {
  .blog-page .nb-table tbody th { background: #e8eefb !important; }
  .blog-page .nb-table thead, .blog-page .nb-table thead tr, .blog-page .nb-table thead th { background: transparent !important; }
}

/* rythme vertical à l'intérieur des blocs de l'article */
.blog-page .post-body .post-section > * + *,
.blog-page .post-body .post-sources > * + * { margin-top: 1.1em; }
.blog-page .post-body .post-section > h2 { margin-top: 1.8em; margin-bottom: 0; }
.blog-page .post-body .post-section > h2 + * { margin-top: 1em; }
.blog-page .post-body .exam-reco ul { margin: .6em 0 0; }
.blog-page .post-body .nb-key ul, .blog-page .post-body .nb-note ul, .blog-page .post-body .nb-warn ul { margin-bottom: 0; }
.blog-page .nb-btn, .blog-page .post-body a.nb-btn, .home-blog .nb-btn { text-decoration: none !important; }

/* ==========================================================================
   Tableaux : fond et couleur de texte verrouillés pour TOUTES les lignes
   (neutralise les règles du thème de type tr:first-child / nth-child / th)
   ========================================================================== */
html body.blog-page #main .post-body .nb-table tbody tr,
html body.blog-page #main .post-body .nb-table tbody tr > th,
html body.blog-page #main .post-body .nb-table tbody tr > td {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #1a1f2e !important;
  -webkit-text-fill-color: #1a1f2e;
  text-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
}
html body.blog-page #main .post-body .nb-table tbody tr:nth-child(even),
html body.blog-page #main .post-body .nb-table tbody tr:nth-child(even) > th,
html body.blog-page #main .post-body .nb-table tbody tr:nth-child(even) > td {
  background: #f4f7fd !important;
  background-color: #f4f7fd !important;
}
html body.blog-page #main .post-body .nb-table tbody tr > th {
  color: #0d2a5c !important;
  -webkit-text-fill-color: #0d2a5c;
}
html body.blog-page #main .post-body .nb-table tbody a { color: #1a4b9c !important; -webkit-text-fill-color: #1a4b9c; }
html body.blog-page #main .post-body .nb-table thead,
html body.blog-page #main .post-body .nb-table thead tr,
html body.blog-page #main .post-body .nb-table thead th {
  background: #0d2a5c !important; background-color: #0d2a5c !important; color: #fff !important; -webkit-text-fill-color: #fff;
}
@media (max-width: 700px) {
  html body.blog-page #main .post-body .nb-table tbody tr { background: #fff !important; }
  html body.blog-page #main .post-body .nb-table tbody tr > th { background: #e8eefb !important; background-color: #e8eefb !important; }
  html body.blog-page #main .post-body .nb-table tbody tr > td { background: #fff !important; }
  html body.blog-page #main .post-body .nb-table thead, html body.blog-page #main .post-body .nb-table thead tr,
  html body.blog-page #main .post-body .nb-table thead th { background: transparent !important; }
}

/* ==========================================================================
   Compatibilité avec les règles `table …` du thème (style.css)
   ========================================================================== */
html body.blog-page #main .post-body table.nb-table { table-layout: auto !important; border: 0 !important; width: 100%; margin: 0; }
html body.blog-page #main .post-body table.nb-table caption { font-size: 1.05rem; margin: 0 0 .6em; }
html body.blog-page #main .post-body table.nb-table th,
html body.blog-page #main .post-body table.nb-table td { text-align: left; text-transform: none; letter-spacing: normal; font-size: inherit; }
html body.blog-page #main .post-body table.nb-table thead th { font-size: .92em; }
html body.blog-page #main .post-body table.nb-table tr { padding: 0; border-left: 0; border-right: 0; }
@media (max-width: 700px) {
  html body.blog-page #main .post-body table.nb-table tr { border: 1px solid #e4e6f0 !important; border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
  html body.blog-page #main .post-body table.nb-table td { text-align: left !important; font-size: .95em; border-bottom: 1px solid #e4e6f0; }
  html body.blog-page #main .post-body table.nb-table td::before { float: none !important; display: block; }
}

/* ==========================================================================
   Tableaux en blocs (div role="table") : indépendants des règles table/tr/td du thème
   ========================================================================== */
.blog-page .nb-table { display: block; margin: 0; width: 100%; font-size: .93em; line-height: 1.5; color: #1a1f2e; }
.blog-page .nb-caption { font-weight: 700; color: #0d2a5c; padding: 0 0 10px; font-size: 1.05em; }
.blog-page .nb-thead { background: #0d2a5c; color: #fff; border-radius: 12px 12px 0 0; overflow: hidden; }
.blog-page .nb-tbody { border: 1px solid #e4e6f0; border-top: 0; border-radius: 0 0 12px 12px; overflow: hidden; background: #fff; }
.blog-page .nb-tr { display: grid; grid-template-columns: var(--tpl, repeat(4, 1fr)); }
.blog-page .nb-tbody .nb-tr { border-top: 1px solid #e4e6f0; background: #fff; }
.blog-page .nb-tbody .nb-tr:first-child { border-top: 0; }
.blog-page .nb-tbody .nb-tr:nth-child(even) { background: #f4f7fd; }
.blog-page .nb-th, .blog-page .nb-td { padding: 12px 14px; text-align: left; min-width: 0; overflow-wrap: break-word; }
.blog-page .nb-thead .nb-th { color: #fff; font-weight: 600; font-size: .92em; }
.blog-page .nb-rowhead { color: #0d2a5c; font-weight: 700; }
.blog-page .nb-rowhead a { color: #1a4b9c; }
.blog-page .nb-td { color: #1a1f2e; }

@media (max-width: 700px) {
  .blog-page .nb-thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .blog-page .nb-tbody { border: 0; border-radius: 0; overflow: visible; background: transparent; }
  .blog-page .nb-tbody .nb-tr, .blog-page .nb-tbody .nb-tr:nth-child(even) {
    display: block; border: 1px solid #e4e6f0; border-radius: 14px; margin-bottom: 14px; overflow: hidden; background: #fff;
  }
  .blog-page .nb-tbody .nb-tr:first-child { border-top: 1px solid #e4e6f0; }
  .blog-page .nb-rowhead { background: #e8eefb; }
  .blog-page .nb-td { border-top: 1px solid #e4e6f0; padding: 10px 14px; }
  .blog-page .nb-td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #b8265f; margin-bottom: 2px; }
}

/* réponse courte « En bref » (articles en questions-réponses) */
.blog-page .post-body .q-short { background: #e8eefb; border-left: 4px solid #1a4b9c; border-radius: 10px; padding: 12px 16px; font-size: 1.02em; }
