/* ==========================================================================
   AFRICA HEALTH NEWS — GABARITS WORDPRESS
   Articles, archives, pages, recherche, 404, commentaires, widgets, blocs.
   ========================================================================== */

/* ---------- Accessibilité ---------- */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--brand-blue); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; }
.breadcrumbs a { display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted); transition: color .2s; }
.breadcrumbs a:hover { color: var(--brand-blue); }
.breadcrumbs .ahn-i { width: 13px; height: 13px; }
.breadcrumbs .sep { width: 11px; height: 11px; opacity: .5; }

/* ---------- En-tête d'archive / page ---------- */
.archive-hero { margin-top: 18px; }
.archive-hero-inner {
  position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap;
  padding: 28px 30px; border-radius: var(--radius-xl); border: 1px solid var(--tone-border, var(--line));
  background: radial-gradient(circle at 95% 0%, var(--tone-light), transparent 55%), var(--surface);
  box-shadow: var(--shadow-card);
}
.archive-hero-inner > div { flex: 1; min-width: 260px; }
.archive-icon { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--tone, var(--brand-blue)), color-mix(in srgb, var(--tone, var(--brand-blue)) 60%, #000)); box-shadow: 0 12px 24px -10px rgba(var(--tone-rgb, var(--brand-blue-rgb)), .6); }
.archive-icon .ahn-i { width: 30px; height: 30px; animation: ahnBeat 2.4s ease-in-out infinite; }
.archive-hero h1 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 8px 0 8px; }
.archive-desc { color: var(--text-muted); font-size: 13.5px; max-width: 680px; }
.archive-desc p { margin: 0 0 8px; }
.archive-count { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--tone, var(--brand-blue)); background: var(--tone-light, var(--brand-blue-light)); padding: 5px 11px; border-radius: var(--radius-pill); margin-top: 6px; }
.archive-count .ahn-i { width: 13px; height: 13px; }
.archive-search { width: 100%; }
.articles-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.articles-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Pagination ---------- */
.pagination { margin-top: 30px; }
.nav-links { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-numbers { min-width: 38px; height: 38px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 12px; color: var(--text-muted); transition: all .2s; }
.page-numbers .ahn-i { width: 15px; height: 15px; }
.page-numbers:hover { border-color: var(--brand-blue-border); color: var(--brand-blue); transform: translateY(-2px); }
.page-numbers.current { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }

/* ---------- Recherche ---------- */
.ahn-search { position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-pill); padding: 5px 6px 5px 16px; max-width: 640px; transition: border-color .2s, box-shadow .2s; }
.ahn-search:focus-within { border-color: var(--brand-blue); box-shadow: 0 0 0 4px var(--brand-blue-light); }
.ahn-search .search-ico { width: 17px; height: 17px; color: var(--text-sub); }
.ahn-search .search-field { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text-main); font-size: 13px; padding: 8px 0; }
.ahn-search .search-field:focus { outline: none; }
.ahn-search .search-submit { background: var(--brand-blue); color: #fff; font-weight: 700; font-size: 12px; border-radius: var(--radius-pill); padding: 9px 18px; transition: background .2s; }
.ahn-search .search-submit:hover { background: var(--brand-blue-hover); }
.search-panel .ahn-search { margin: 0 auto; }

/* ---------- État vide ---------- */
.empty-state { text-align: center; padding: 50px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-xl); }
.empty-state h2 { font-family: var(--font-display); margin: 12px 0 6px; }
.empty-state p { color: var(--text-muted); }
.empty-state .ahn-search { margin: 18px auto 0; }
.empty-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brand-blue-light); color: var(--brand-blue); }
.empty-icon .ahn-i { width: 34px; height: 34px; animation: ahnFloat 5s ease-in-out infinite; }

/* ---------- Article ---------- */
.single-hero { margin-top: 22px; }
.single-hero-inner { max-width: 860px; }
.single-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.single-badges .label, .editorial-static { position: static; }
.country-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text-main); }
.country-chip .ahn-i { width: 12px; height: 12px; color: var(--brand-red); }
.single-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; margin: 0 0 14px; }
.single-lead { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin: 0 0 18px; max-width: 760px; }
.single-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--text-muted); font-weight: 600; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.single-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.single-meta .ahn-i { width: 15px; height: 15px; color: var(--tone, var(--brand-blue)); }
.single-author img { border-radius: 50%; width: 36px; height: 36px; border: 2px solid var(--surface); box-shadow: 0 0 0 2px var(--tone-border, var(--line)); }
.single-author > span { display: flex; flex-direction: column; line-height: 1.25; }
.single-author small { font-size: 10px; color: var(--text-sub); }
.single-author a { color: var(--text-main); font-weight: 800; }
.single-cover { margin: 24px auto 0; }
.single-cover-img { position: relative; aspect-ratio: 21 / 9; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card); }
.single-cover-img img, .single-cover-img .ahn-placeholder { position: absolute; inset: 0; }
.single-cover figcaption { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-sub); margin-top: 8px; }
.single-cover figcaption .ahn-i { width: 13px; height: 13px; }

.single-layout { display: grid; gap: 34px; margin-top: 30px; align-items: start; }
.single-layout-sidebar { grid-template-columns: 56px minmax(0, 1fr) 300px; }
.single-layout-full { grid-template-columns: 56px minmax(0, 760px); justify-content: center; }
.single-layout:not(:has(.share-rail)).single-layout-sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
.single-layout:not(:has(.share-rail)).single-layout-full { grid-template-columns: minmax(0, 760px); }
.share-rail { position: sticky; top: 90px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.share-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-sub); margin-bottom: 6px; }
.share-rail a, .share-rail button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text-muted); transition: all .25s cubic-bezier(.2,0,0,1); }
.share-rail .ahn-i { width: 16px; height: 16px; }
.share-rail a:hover, .share-rail button:hover { background: var(--tone, var(--brand-blue)); border-color: var(--tone, var(--brand-blue)); color: #fff; transform: scale(1.1); }
.share-rail button.is-copied { background: var(--color-emerald); border-color: var(--color-emerald); color: #fff; }
.single-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.single-podcast, .single-story { margin-bottom: 22px; }
.single-story { max-width: 400px; aspect-ratio: 9 / 16; border-radius: var(--radius-xl); overflow: hidden; background: #000; position: relative; }
.single-story iframe, .single-story video, .single-story img, .single-story .ahn-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* ---------- Contenu éditorial ---------- */
.entry-content { font-size: 16.5px; line-height: 1.78; color: var(--text-main); }
.entry-content > * { margin: 0 0 1.25em; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > p:first-of-type::first-letter { font-family: var(--font-display); float: left; font-size: 3.4em; line-height: .85; font-weight: 800; margin: .08em .1em 0 0; color: var(--tone, var(--brand-blue)); }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.25; margin: 1.8em 0 .6em; }
.entry-content h2 { font-size: 26px; padding-left: 16px; border-left: 4px solid var(--tone, var(--brand-blue)); }
.entry-content h3 { font-size: 20px; }
.entry-content a { color: var(--tone, var(--brand-blue)); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-thickness: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul > li { position: relative; padding-left: 28px; margin-bottom: .5em; }
.entry-content ul > li::before { content: ''; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; background: var(--tone, var(--brand-blue)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3.5h6v5.5h5.5v6H15v5.5H9V15H3.5V9H9Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3.5h6v5.5h5.5v6H15v5.5H9V15H3.5V9H9Z'/%3E%3C/svg%3E") center / contain no-repeat; transform: scale(.75); }
.entry-content blockquote, .entry-content .wp-block-quote { position: relative; margin: 2em 0; padding: 22px 26px 22px 64px; background: var(--tone-light, var(--brand-blue-light)); border-radius: var(--radius-lg); border: 0; font-family: var(--font-display); font-size: 20px; line-height: 1.45; font-weight: 600; }
.entry-content blockquote::before { content: '“'; position: absolute; left: 18px; top: 4px; font-size: 64px; line-height: 1; color: var(--tone, var(--brand-blue)); font-family: Georgia, serif; }
.entry-content blockquote p { margin: 0 0 8px; }
.entry-content blockquote cite { display: block; font-family: var(--font-sans); font-size: 12px; font-style: normal; font-weight: 700; color: var(--text-muted); }
.entry-content img, .entry-content video { height: auto; border-radius: var(--radius-md); }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { font-size: 12px; color: var(--text-sub); text-align: center; margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--surface-subtle); font-family: var(--font-display); }
.entry-content pre, .entry-content code { font-family: ui-monospace, Menlo, monospace; font-size: .88em; background: var(--surface-subtle); border-radius: 6px; padding: 2px 6px; }
.entry-content pre { padding: 16px; overflow: auto; }
.entry-content hr { border: 0; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 12h44l5-8 7 16 5-12 4 4h55'/%3E%3C/svg%3E") center / 120px 24px no-repeat; }
.entry-content .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.entry-content .wp-block-button__link { background: var(--brand-blue); color: #fff; border-radius: var(--radius-pill); padding: 11px 22px; font-weight: 700; text-decoration: none; font-size: 14px; }
.entry-content .wp-block-pullquote { border-top: 4px solid var(--tone, var(--brand-blue)); border-bottom: 4px solid var(--tone, var(--brand-blue)); }
.entry-content-wide { max-width: none; }
.entry-content-wide > *:not(.alignfull) { max-width: 1320px; margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px; }
.page-layout { max-width: 820px; margin-top: 30px; }
.home-page-content { max-width: 900px; }

/* Avertissement médical */
.medical-note { display: flex; gap: 14px; align-items: flex-start; margin: 30px 0; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--color-emerald-light); border: 1px solid var(--color-emerald-border); }
.medical-note > span { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--color-emerald); color: #fff; }
.medical-note .ahn-i { width: 18px; height: 18px; }
.medical-note p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-main); }

.single-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.single-tags > .ahn-i { width: 16px; height: 16px; color: var(--text-sub); }
.single-tags a { font-size: 12px; font-weight: 700; color: var(--text-muted); background: var(--surface-subtle); padding: 5px 12px; border-radius: var(--radius-pill); transition: all .2s; }
.single-tags a:hover { background: var(--tone, var(--brand-blue)); color: #fff; }

.author-box { display: flex; gap: 18px; align-items: center; padding: 22px; margin: 26px 0; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.author-box img { border-radius: 50%; flex: none; box-shadow: 0 0 0 4px var(--tone-light, var(--brand-blue-light)); }
.author-box h3 { margin: 4px 0; font-family: var(--font-display); font-size: 18px; }
.author-box p { margin: 0; font-size: 13px; color: var(--text-muted); }
.author-box .eyebrow { color: var(--tone, var(--brand-blue)); font-size: 9px; }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; justify-content: stretch; }
.post-navigation a { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: all .25s; height: 100%; }
.post-navigation a:hover { border-color: var(--tone-border, var(--brand-blue-border)); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.post-navigation .nav-next a { text-align: right; align-items: flex-end; }
.nav-dir { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--tone, var(--brand-blue)); }
.nav-dir .ahn-i { width: 14px; height: 14px; }
.nav-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.3; }
.related { margin-top: 20px; }

/* ---------- Commentaires ---------- */
.comments-area { margin-top: 34px; }
.comments-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 20px; }
.comments-title .ahn-i { color: var(--brand-blue); }
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 16px 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 11px; color: var(--text-sub); margin: 4px 0 8px; }
.comment-metadata a { color: inherit; }
.comment-content { font-size: 14px; line-height: 1.65; }
.reply a { font-size: 11px; font-weight: 700; color: var(--brand-blue); }
.comment-respond { padding: 22px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); }
.comment-reply-title { font-family: var(--font-display); margin-top: 0; }
.comment-form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 10px 12px; border-radius: var(--radius-md); border: 1.5px solid var(--line); background: var(--canvas); color: var(--text-main); font: inherit; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 4px var(--brand-blue-light); }
.comment-form .btn { border: 0; }

/* ---------- Widgets ---------- */
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-card); }
.site-footer .widget { background: none; border: 0; padding: 0; box-shadow: none; margin-bottom: 18px; }
.widget-title { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 7px; }
.widget-title::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-red); box-shadow: 0 0 0 3px var(--brand-red-light); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--line-subtle); font-size: 12.5px; }
.widget li:last-child { border-bottom: 0; }
.widget li a:hover { color: var(--brand-blue); }
.sidebar-widgets { display: flex; flex-direction: column; gap: 16px; }
.ahn-rubric-list li { padding: 0; border: 0; }
.ahn-rubric-list a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius-sm); transition: background .2s, transform .2s; }
.ahn-rubric-list a:hover { background: var(--tone-light); transform: translateX(3px); }
.rl-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--tone-light); color: var(--tone); flex: none; }
.rl-icon .ahn-i { width: 15px; height: 15px; }
.rl-name { flex: 1; font-weight: 700; font-size: 12.5px; }
.rl-count { font-size: 10.5px; font-weight: 800; color: var(--tone); background: var(--tone-light); padding: 2px 8px; border-radius: var(--radius-pill); }

/* ---------- 404 ---------- */
.error-404 { padding: 40px 0 10px; }
.error-card { max-width: 680px; margin: 0 auto; text-align: center; padding: 34px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.error-card h1 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); letter-spacing: -.03em; margin: 10px 0; }
.error-card p { color: var(--text-muted); }
.error-card .ahn-search { margin: 20px auto; }
.error-card .btn { display: inline-flex; }
.ecg-monitor { position: relative; height: 130px; border-radius: var(--radius-lg); background: #04140f; overflow: hidden; margin-bottom: 22px; background-image: linear-gradient(rgba(16,185,129,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(16,185,129,.12) 1px, transparent 1px); background-size: 20px 20px; }
.ecg-monitor svg { position: absolute; inset: 5px 0; width: 100%; height: calc(100% - 10px); }
.ecg-trace { fill: none; stroke: #34d399; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px #10b981); stroke-dasharray: 900; stroke-dashoffset: 900; animation: ahnEcg404 3.2s linear infinite; vector-effect: non-scaling-stroke; }
.ecg-code { position: absolute; right: 16px; top: 10px; font-family: var(--font-display); font-weight: 800; font-size: 34px; color: #34d399; text-shadow: 0 0 12px #10b981; animation: pulseAnim 1.6s infinite; }
@keyframes ahnEcg404 { 0% { stroke-dashoffset: 900; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* ---------- Podcasts & stories (archives) ---------- */
.podcast-card .imagebox::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,.65)); }
.podcast-card-play { position: absolute; z-index: 2; left: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--color-violet); color: #fff; box-shadow: 0 6px 16px rgba(124,58,237,.5); transition: transform .3s; }
.podcast-card-play .ahn-i { width: 16px; height: 16px; }
.podcast-card:hover .podcast-card-play { transform: scale(1.12); animation: ahnPulseRing 1.4s ease-out infinite; }
.single-podcast .podcast-widget { max-width: 520px; }

/* ---------- Divers WordPress ---------- */
.sticky .article-link h3::before { content: '★ '; color: var(--brand-red); }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bypostauthor > .comment-body { border-color: var(--brand-blue-border); }
.page-links { display: flex; gap: 6px; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .single-layout-sidebar { grid-template-columns: 56px minmax(0, 1fr); }
  .single-layout-sidebar .single-sidebar { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .articles-cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .entry-content .alignwide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 860px) {
  .single-layout-sidebar, .single-layout-full { grid-template-columns: minmax(0, 1fr); }
  .share-rail { position: sticky; top: auto; bottom: 14px; z-index: 30; flex-direction: row; justify-content: center; order: 2; background: var(--surface-glass); backdrop-filter: blur(12px); padding: 8px; border-radius: var(--radius-pill); border: 1px solid var(--line); box-shadow: var(--shadow-hover); width: max-content; margin: 0 auto; }
  .share-label { display: none; }
  .single-content { order: 1; }
  .single-layout-sidebar .single-sidebar { order: 3; grid-template-columns: 1fr; }
  .articles-cols-3, .articles-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .single-cover-img { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .articles-cols-2, .articles-cols-3, .articles-cols-4 { grid-template-columns: 1fr; }
  .archive-hero-inner { padding: 20px; }
  .archive-icon { width: 50px; height: 50px; }
  .entry-content { font-size: 15.5px; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; text-align: center; }
  .entry-content .alignleft, .entry-content .alignright { float: none; max-width: 100%; margin: 1em 0; }
}

/* Avatars (la réinitialisation globale des images les étire sinon) */
img.avatar { width: auto; height: auto; flex: none; background: var(--surface-subtle); }
.single-author img.avatar { width: 36px; height: 36px; }
.author-box img.avatar { width: 72px; height: 72px; }
.comment-author img.avatar { width: 44px; height: 44px; }
