/* Blog — lecture éditoriale, aérée, aux couleurs de la charte (#00A89C, #00ADEE) */
.blog-page { background: #fff; padding: 0; }
.blog-page main { padding-top: 72px; }

/* En-tête de la liste */
.blog-hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 28px; overflow: hidden;
  background: radial-gradient(700px 320px at 12% 0%, rgba(0, 168, 156, .10), transparent 70%),
              radial-gradient(640px 300px at 92% 10%, rgba(0, 173, 238, .09), transparent 70%); }
.blog-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 820px; }
.blog-hero .sub { margin-bottom: 26px; }
.blog-search { position: relative; max-width: 560px; }
.blog-search svg { position: absolute; inset-inline-start: 18px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%);
  fill: none; stroke: var(--muted); stroke-width: 2; }
.blog-search input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 14px 20px;
  padding-inline-start: 48px; font: inherit; font-size: 1rem; color: var(--ink); box-shadow: 0 6px 24px rgba(15, 23, 42, .05);
  transition: border-color .2s, box-shadow .2s; }
.blog-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 168, 156, .14); }
.blog-cats { display: flex; gap: 8px; margin-top: 22px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.blog-cats::-webkit-scrollbar { display: none; }
.blog-cats a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .9rem; font-weight: 600; transition: all .2s; }
.blog-cats a small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.blog-cats a:hover { border-color: var(--teal); color: var(--teal); }
.blog-cats a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.blog-cats a.on small { color: #9fb3c6; }

/* Grille d'articles */
.blog-list { padding: 18px 0 clamp(64px, 8vw, 110px); }
.blog-results { color: var(--muted); font-size: .95rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bcard { border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.bcard:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(15, 23, 42, .09); border-color: rgba(0, 168, 156, .35); }
.bcard-in { display: flex; flex-direction: column; height: 100%; padding: 24px 24px 22px; color: inherit; }
.bcard-in:hover { color: inherit; }
.bcard h2 { font-size: 1.16rem; line-height: 1.35; margin: 14px 0 10px; letter-spacing: -.01em; }
.bcard p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0 0 18px; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .78rem; }
.bcat { display: inline-flex; gap: 5px; align-items: center; padding: 4px 10px; border-radius: 999px; font-weight: 700;
  background: var(--teal-soft); color: #00756d; }
.bcat.c-ia-sante { background: #e6f6fd; color: #0369a1; }
.bcat.c-reglementation { background: #f1f0fb; color: #4c3fb0; }
.bcat.c-systemes-sante { background: #ecfdf5; color: #047857; }
.bcat.c-bien-etre { background: #fdf4e7; color: #a15c07; }
.bcat.c-sante-publique { background: #fdecef; color: #b4234a; }
.bcat.c-specialites { background: #eef2ff; color: #3949ab; }
.bmin { color: var(--muted); white-space: nowrap; }
.bmore { margin-top: auto; font-weight: 700; color: var(--teal); font-size: .92rem; }
.bmore .arr, .bcta-btn .arr { display: inline-block; transition: transform .2s; }
.bcard:hover .bmore .arr, .bcta-btn:hover .arr { transform: translateX(4px); }
[dir=rtl] .bmore .arr, [dir=rtl] .bcta-btn .arr { transform: scaleX(-1); }
[dir=rtl] .bcard:hover .bmore .arr, [dir=rtl] .bcta-btn:hover .arr { transform: scaleX(-1) translateX(4px); }
.bcard.feat { grid-column: span 2; background: linear-gradient(135deg, #f3fbfa 0%, #f2f9fe 100%); }
.bcard.feat h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); }
.bcard.feat p { -webkit-line-clamp: 4; font-size: 1.02rem; }
.blog-pager { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 40px; font-weight: 600; }
.blog-pager span { color: var(--muted); }
.blog-empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* Article */
.read-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 80; pointer-events: none; }
.read-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), #00adee); }
.container.narrow { max-width: 820px; }
.post-head { padding: clamp(40px, 6vw, 72px) 0 26px;
  background: radial-gradient(640px 280px at 20% 0%, rgba(0, 168, 156, .09), transparent 70%); }
.crumbs { display: flex; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--teal); }
.post-head h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.15; }
.post-lead { font-size: 1.15rem; color: #44546a; line-height: 1.65; margin: 16px 0 22px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.post-meta .pm-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); }
.post-meta .dot { opacity: .5; }
.post-wrap { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 56px; justify-content: center;
  padding-top: 26px; padding-bottom: 40px; }
.post-wrap:not(:has(.post-toc)) { grid-template-columns: minmax(0, 720px); }
.post-toc { position: relative; }
.toc-in { position: sticky; top: 96px; font-size: .88rem; border-inline-start: 2px solid var(--line); padding-inline-start: 16px; }
.toc-in b { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.toc-in ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.toc-in a { color: var(--muted); line-height: 1.4; display: block; transition: color .2s; }
.toc-in a:hover, .toc-in a.on { color: var(--teal); }
.toc-in a.on { font-weight: 700; }
.post-body { font-size: 1.08rem; line-height: 1.8; color: #1e293b; min-width: 0; }
html[lang="ar"] .post-body { font-size: 1.12rem; line-height: 1.95; }
.post-body h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 2.1em 0 .6em; scroll-margin-top: 96px; }
.post-body h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.post-body p { margin: 0 0 1.15em; }
.post-body ul, .post-body ol { padding-inline-start: 1.3em; margin: 0 0 1.3em; }
.post-body li { margin: .35em 0; }
.post-body li::marker { color: var(--teal); font-weight: 700; }
.post-body a { color: #00857c; text-decoration: underline; text-decoration-color: rgba(0, 168, 156, .35); text-underline-offset: 3px; }
.post-body strong { color: var(--ink); }
.post-body blockquote { margin: 1.5em 0; padding: 14px 20px; border-inline-start: 3px solid var(--teal); background: var(--bg-2);
  border-radius: 0 12px 12px 0; color: #334155; }
.post-body .tbl { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 14px; }
.post-body table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.5; }
.post-body th, .post-body td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.post-body th { background: var(--bg-2); font-weight: 700; }
.post-body tr:last-child td { border-bottom: 0; }
.post-body code { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

/* L'encart Nabady Whisper : un seul, discret et élégant */
.bcta { position: relative; overflow: hidden; margin: 2.4em 0; padding: 26px 28px; border-radius: 22px; display: grid;
  grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; color: #e8f4f6;
  background: linear-gradient(135deg, #0b2233 0%, #0b2a3a 55%, #08333a 100%); box-shadow: 0 24px 60px rgba(4, 30, 45, .22); }
.bcta::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(0, 168, 156, .8), rgba(0, 173, 238, .5), rgba(255, 255, 255, .05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.bcta-glow { position: absolute; width: 340px; height: 340px; inset-inline-end: -120px; top: -170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 173, 238, .28), transparent 65%); pointer-events: none; }
.bcta-txt { position: relative; }
.bcta-k { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #7fe0d6; }
.bcta-txt b { display: block; font-size: 1.28rem; line-height: 1.3; margin: 6px 0 4px; color: #fff; }
.bcta-txt p { margin: 0; color: #a9c3cf; font-size: .98rem; line-height: 1.55; }
.post-body .bcta-btn, .bcta-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px;
  border-radius: 999px; background: linear-gradient(135deg, #00a89c, #00adee); color: #fff; font-weight: 700;
  text-decoration: none; white-space: nowrap; box-shadow: 0 10px 26px rgba(0, 168, 156, .35); transition: transform .2s, box-shadow .2s; }
.bcta-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 168, 156, .45); }
.bcta-note { position: relative; grid-column: 1 / -1; color: #6f8fa0; font-size: .8rem; }

/* FAQ, sources, partage */
.post-faq details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin: 10px 0; background: #fff; }
.post-faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; float: inline-end; color: var(--teal); font-weight: 800; }
.post-faq details[open] summary::after { content: "–"; }
.post-faq details p { color: #475569; font-size: 1rem; }
.post-sources ol { font-size: .92rem; line-height: 1.6; color: var(--muted); }
.post-sources a { word-break: break-word; }
.post-disc { font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 30px; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.post-share a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink); text-decoration: none; }
.post-share a:hover { border-color: var(--teal); color: var(--teal); }
.post-related { background: var(--bg-2); padding: clamp(48px, 6vw, 80px) 0; }
.post-related h2 { font-size: 1.6rem; margin-bottom: 22px; }

@media (max-width: 1020px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-wrap { grid-template-columns: minmax(0, 720px); }
  .post-toc { display: none; }
}
@media (max-width: 640px) {
  .blog-page main { padding-top: 62px; }
  .blog-grid { grid-template-columns: 1fr; gap: 14px; }
  .bcard.feat { grid-column: auto; }
  .bcard-in { padding: 20px; }
  .post-body { font-size: 1.02rem; }
  .bcta { grid-template-columns: 1fr; padding: 22px; }
  .bcta-btn { justify-content: center; }
}

/* Images et appel final */
.bimg { margin: -24px -24px 16px; border-radius: 20px 20px 0 0; overflow: hidden; aspect-ratio: 1200 / 630; background: #0b2233; }
.bimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bcard:hover .bimg img { transform: scale(1.03); }
.bcard.feat .bcard-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 28px; align-items: center; }
.bcard.feat .bimg { grid-row: 1 / span 4; margin: 0; border-radius: 14px; align-self: center; box-shadow: 0 14px 34px rgba(4, 30, 45, .18); }
.post-cover { margin: 0 0 6px; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(4, 30, 45, .16); aspect-ratio: 1200 / 630; background: #0b2233; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-end-cta { margin: 2.6em 0 1em; padding: 26px; border-radius: 22px; border: 1px solid rgba(0, 168, 156, .3);
  background: linear-gradient(135deg, #f1fbfa, #eef8fe); display: grid; gap: 16px; }
.post-end-cta b { display: block; font-size: 1.25rem; color: var(--ink); line-height: 1.3; }
.post-end-cta p { margin: 6px 0 0; color: #475569; font-size: 1rem; }
.pec-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.post-body .pec-ghost { font-weight: 700; color: var(--ink); text-decoration: none; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.post-body .pec-ghost:hover { border-color: var(--teal); color: var(--teal); }
@media (max-width: 1020px) { .bcard.feat .bcard-in { display: flex; } .bcard.feat .bimg { margin: -24px -24px 16px; border-radius: 20px 20px 0 0; height: auto; aspect-ratio: 1200 / 630; } }
@media (max-width: 640px) { .bimg { margin: -20px -20px 14px; } .pec-btns a { flex: 1; justify-content: center; text-align: center; } }

/* Photos (crédit discret) et emplacements publicitaires discrets */
.post-cover { position: relative; }
.post-cover figcaption, .post-photo figcaption { font-size: .72rem; color: var(--muted); padding: 6px 2px 0; }
.post-cover.photo figcaption { position: absolute; inset-inline-end: 10px; bottom: 8px; padding: 2px 8px; border-radius: 6px;
  background: rgba(4, 16, 26, .55); color: #e2e8f0; }
.post-cover.photo figcaption a, .post-photo figcaption a { color: inherit; text-decoration: none; }
.post-photo { margin: 2em 0; }
.post-photo img { width: 100%; border-radius: 18px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-2); }
.ad-slot { margin: 2.2em auto; padding: 10px 0 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  min-height: 120px; max-width: 680px; text-align: center; }
.ad-slot .ad-l { display: block; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: #a0aec0; margin-bottom: 4px; }
.ad-slot ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
.blog-count { margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
.blog-count a { font-weight: 600; }
.blog-pager { gap: 8px; flex-wrap: wrap; }
.blog-pager .pg { min-width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); }
.blog-pager .pg.on { background: var(--ink); color: #fff; border-color: var(--ink); }
