/**
 * Play4Geek — mode sombre (cartographie globale).
 * Variables : play4geek_get_theme_dark_css_block() + style.css :root body.theme-dark.
 */

/* —— Enveloppe & typographie —— */
body.theme-dark,
body.theme-dark .site-main {
    color: var(--text-dark);
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6 {
    color: var(--text-dark);
}

body.theme-dark p,
body.theme-dark li,
body.theme-dark dd,
body.theme-dark dt,
body.theme-dark label,
body.theme-dark figcaption {
    color: inherit;
}

body.theme-dark a:not(.btn):not(.btn-primary):not([class*="button"]):not(.post-category):not(.post-game-tag):not(.member-og-card):not(.member-article-teaser-more) {
    color: var(--link-color);
}

body.theme-dark a:not(.btn):not(.btn-primary):hover,
body.theme-dark a:not(.btn):not(.btn-primary):focus-visible {
    color: var(--link-hover-color);
}

body.theme-dark a.member-og-card:not(.btn):hover,
body.theme-dark a.member-og-card:not(.btn):focus-visible {
    color: var(--text-dark);
}

/* Liens dans zones à fond sombre (header, footer, hero) : texte clair */
body.theme-dark .site-header a:not(.btn):not(.btn-primary),
body.theme-dark .site-footer a:not(.btn):not(.btn-primary),
body.theme-dark .header-secondary a:not(.btn):not(.btn-primary),
body.theme-dark .hero-fullpage a:not(.btn):not(.btn-primary),
body.theme-dark .home-critiques-inner a:not(.btn):not(.btn-primary),
body.theme-dark .sidebar-newsletter a:not(.btn):not(.btn-primary) {
    color: var(--text-light);
}

body.theme-dark .site-header a:not(.btn):not(.btn-primary):hover,
body.theme-dark .site-footer a:not(.btn):not(.btn-primary):hover,
body.theme-dark .header-secondary a:not(.btn):not(.btn-primary):hover {
    color: #ffffff;
}

/* —— Header (plus de bandeau marron/orange) —— */
body.theme-dark .site-header,
body.theme-dark .header-topbar {
    background: var(--header-topbar-bg);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .header-secondary {
    background: var(--header-secondary-bg);
    color: var(--text-light);
}

body.theme-dark .header-topbar .topbar-menu > li > a,
body.theme-dark .header-secondary .category-menu > li > a,
body.theme-dark .header-secondary .category-menu a,
body.theme-dark .header-tendances-shortcut,
body.theme-dark .header-tendances-shortcut a {
    color: #e8f1ff;
    background: rgba(255, 255, 255, 0.1);
}

body.theme-dark .header-topbar .topbar-menu > li > a:hover,
body.theme-dark .header-secondary .category-menu > li > a:hover,
body.theme-dark .header-secondary .category-menu a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

body.theme-dark .menu-toggle,
body.theme-dark .search-toggle,
body.theme-dark .theme-toggle,
body.theme-dark .drawer-close,
body.theme-dark .header-search-input,
body.theme-dark .logo-text {
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.2);
}

body.theme-dark .header-search-panel {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .header-search-panel,
body.theme-dark .header-search-panel input,
body.theme-dark .header-search-panel label {
    color: var(--text-dark);
}

body.theme-dark .category-menu .sub-menu,
body.theme-dark .topbar-menu .sub-menu {
    background: var(--header-submenu-bg);
    border-color: var(--border-color);
}

body.theme-dark .category-menu .sub-menu li a,
body.theme-dark .topbar-menu .sub-menu li a {
    color: var(--header-submenu-text);
}

body.theme-dark .category-menu .sub-menu li a:hover,
body.theme-dark .topbar-menu .sub-menu li a:hover {
    color: var(--header-submenu-hover);
}

/* —— Footer —— */
body.theme-dark .site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .footer-links a,
body.theme-dark .footer-description,
body.theme-dark .footer-social-col h4,
body.theme-dark .footer-bottom,
body.theme-dark .footer-bottom p,
body.theme-dark .footer-legal-links a,
body.theme-dark .footer-column h3,
body.theme-dark .footer-column h4 {
    color: var(--footer-text);
}

body.theme-dark .footer-social a {
    color: var(--footer-text);
    border-color: rgba(255, 255, 255, 0.28);
}

body.theme-dark .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.12);
}

/* —— Barre tendances footer (alignée sur header-secondary) —— */
body.theme-dark .footer-tendances-band {
    background: var(--footer-tendances-bg, var(--header-secondary-bg));
    border-top-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(0, 0, 0, 0.28);
}

body.theme-dark .footer-tendances-pill,
body.theme-dark .footer-tendances-pill.is-title,
body.theme-dark .footer-tendances-menu a {
    color: var(--footer-tendances-text, #e8f1ff);
    background: rgba(255, 255, 255, 0.1);
}

body.theme-dark .footer-tendances-pill.is-title {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

body.theme-dark .footer-tendances-menu a:hover,
body.theme-dark .footer-tendances-pill.is-title:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

body.theme-dark .footer-tendances-pill.is-title:hover {
    background: transparent;
}

/* —— Cartes & listes —— */
body.theme-dark .post-card,
body.theme-dark .category-mag-card,
body.theme-dark .category-featured-card,
body.theme-dark .search-result-card,
body.theme-dark .game-directory-card,
body.theme-dark .game-sheet-news-card,
body.theme-dark .game-related-card,
body.theme-dark .game-featured-test-card,
body.theme-dark .game-term-post-card,
body.theme-dark .release-page-card,
body.theme-dark .pro-review-card,
body.theme-dark .single-article,
body.theme-dark .single-review-content,
body.theme-dark .single-review-summary,
body.theme-dark .legal-page-content,
body.theme-dark .page-standard-content,
body.theme-dark .contact-page-card {
    background: var(--surface-card);
    border-color: var(--border-color);
    color: var(--text-dark);
}

body.theme-dark .post-card h2 a,
body.theme-dark .post-card h3 a,
body.theme-dark .category-mag-card-body h3 a,
body.theme-dark .category-featured-body h2 a,
body.theme-dark .search-result-card h3 a,
body.theme-dark .pro-review-card .pro-review-body h2 a,
body.theme-dark .pro-review-card .pro-review-body h3 a {
    color: var(--text-dark);
}

body.theme-dark .post-card h2 a:hover,
body.theme-dark .post-card h3 a:hover,
body.theme-dark .category-mag-card-body h3 a:hover,
body.theme-dark .category-featured-body h2 a:hover {
    color: var(--link-hover-color);
}

body.theme-dark .section-subtitle,
body.theme-dark .post-card p,
body.theme-dark .post-card-meta,
body.theme-dark .category-mag-card-date,
body.theme-dark .category-mag-card-body p,
body.theme-dark .search-result-body p {
    color: var(--muted-text);
}

body.theme-dark .home-releases-inner,
body.theme-dark .game-community-inner,
body.theme-dark .game-sheet-overview-grid,
body.theme-dark .game-tabs-content,
body.theme-dark .category-featured-card .category-featured-inner {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

/* —— Contenu éditorial —— */
body.theme-dark .single-article-content,
body.theme-dark .page-standard-content,
body.theme-dark .legal-page-content,
body.theme-dark .game-sheet-description,
body.theme-dark .single-review-body {
    color: var(--text-dark);
}

body.theme-dark .single-article-content a,
body.theme-dark .page-standard-content a,
body.theme-dark .legal-page-content a,
body.theme-dark .game-sheet-description a,
body.theme-dark .single-review-body a {
    color: var(--link-color);
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

body.theme-dark .single-article-content a:hover,
body.theme-dark .page-standard-content a:hover,
body.theme-dark .legal-page-content a:hover {
    color: var(--link-hover-color);
}

body.theme-dark .single-article-content blockquote,
body.theme-dark .page-standard-content blockquote {
    border-left-color: var(--border-color);
    color: var(--muted-text);
}

/* —— Barre meta auteur / stats (articles) —— */
body.theme-dark .article-meta-bar {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .article-meta-bar .author-name,
body.theme-dark .article-meta-bar .author-name a {
    color: var(--text-dark);
}

body.theme-dark .article-meta-bar .author-name a {
    color: var(--link-color);
}

body.theme-dark .article-meta-bar .author-name a:hover {
    color: var(--link-hover-color);
}

body.theme-dark .article-meta-bar .article-stats,
body.theme-dark .article-meta-bar .stat-item {
    color: var(--muted-text);
}

body.theme-dark .article-meta-bar .stat-separator {
    color: var(--border-color);
}

body.theme-dark .article-meta-bar .author-avatar {
    background: var(--surface-card);
    border-color: var(--bg-blue);
}

body.theme-dark .article-meta-bar .share-icon {
    background: var(--surface-card);
    color: var(--text-dark);
    border-color: var(--border-color);
}

body.theme-dark .article-meta-bar .share-icon:hover {
    border-color: var(--link-color);
    color: var(--link-color);
}

body.theme-dark .single-article-excerpt {
    color: var(--muted-text);
}

/* —— Fiches jeu —— */
body.theme-dark .game-term-page {
    background: var(--bg-light);
}

body.theme-dark .game-sheet-hero,
body.theme-dark .game-sheet-header,
body.theme-dark .game-featured-test,
body.theme-dark .game-sidebar-card {
    color: var(--text-dark);
}

body.theme-dark .game-sheet-collection-social {
    border-color: color-mix(in srgb, var(--link-color) 24%, transparent);
    background: linear-gradient(145deg, color-mix(in srgb, var(--bg-light) 92%, #000), color-mix(in srgb, var(--link-color) 10%, var(--bg-light)));
}

body.theme-dark .game-sheet-collection-social-count {
    color: var(--text-dark);
}

body.theme-dark .game-sheet-collection-social-caption {
    color: var(--muted-text);
}

body.theme-dark .game-sheet-collection-social-avatar {
    border-color: color-mix(in srgb, var(--bg-light) 88%, #000);
}

body.theme-dark .game-sheet-collection-social-more {
    border-color: color-mix(in srgb, var(--bg-light) 88%, #000);
    background: color-mix(in srgb, var(--link-color) 42%, transparent);
    color: var(--text-dark);
}

body.theme-dark .game-featured-test-card,
body.theme-dark .game-sheet-news-card,
body.theme-dark .game-related-card,
body.theme-dark .game-term-page .reviews-column,
body.theme-dark .game-term-page .review-item,
body.theme-dark .game-term-page .submit-review-section,
body.theme-dark .game-term-page .game-tabs-content,
body.theme-dark .game-term-page .game-term-hero-grid {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

body.theme-dark .game-sheet-link--site {
    color: var(--link-color);
    border-color: color-mix(in srgb, var(--link-color) 40%, transparent);
    background: color-mix(in srgb, var(--link-color) 12%, transparent);
}

body.theme-dark .game-sheet-link--site:hover {
    color: var(--link-hover-color);
    background: color-mix(in srgb, var(--link-color) 20%, transparent);
}

body.theme-dark .game-collection-modal__dialog {
    background: linear-gradient(165deg, var(--surface-card) 0%, var(--surface-panel) 100%);
    border-color: var(--border-color);
}

body.theme-dark .game-collection-modal__hero-text h2,
body.theme-dark .game-collection-modal__platform-label {
    color: var(--text-dark);
}

body.theme-dark .game-collection-modal__platform {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .game-collection-modal__close {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dark);
}

body.theme-dark .game-sheet-description p,
body.theme-dark .game-term-page .review-excerpt,
body.theme-dark .game-term-page .review-author-info,
body.theme-dark .game-term-page .review-form-header p,
body.theme-dark .game-term-page .review-form-note,
body.theme-dark .user-review-images-help,
body.theme-dark .no-reviews-message,
body.theme-dark .login-to-review,
body.theme-dark .no-posts-message {
    color: var(--muted-text);
}

body.theme-dark .user-review-editor-toolbar,
body.theme-dark .user-review-inline-image {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .user-review-editor {
    background: var(--surface-card);
    color: var(--text-dark);
    border-color: var(--border-color);
}

body.theme-dark .user-review-editor-btn {
    color: var(--text-dark);
}

body.theme-dark .user-review-editor-btn:hover,
body.theme-dark .user-review-editor-btn:focus-visible {
    color: var(--link-color);
}

body.theme-dark .game-term-page .reviews-column-title,
body.theme-dark .game-term-page .review-type {
    color: var(--text-dark);
}

body.theme-dark .game-sheet-news-content h3 a,
body.theme-dark .game-term-page .review-header h3 a {
    color: var(--text-dark);
}

body.theme-dark .game-sheet-news-content h3 a:hover,
body.theme-dark .game-term-page .review-header h3 a:hover,
body.theme-dark .game-related-link:hover h4 {
    color: var(--link-hover-color);
}

body.theme-dark .game-related-link h4 {
    color: var(--text-dark);
}

body.theme-dark .game-term-page .review-rating {
    background: color-mix(in srgb, var(--link-color) 16%, transparent);
    color: var(--link-color);
}

body.theme-dark .game-term-media-featured h2,
body.theme-dark .game-term-media-featured h3,
body.theme-dark .game-term-reviews-section h2,
body.theme-dark .game-sheet-section-head h2 {
    color: var(--text-dark);
}

body.theme-dark .media-video-section h3 {
    color: var(--text-dark);
}

body.theme-dark .media-thumb .video-play-icon {
    color: rgba(255, 255, 255, 0.92);
}

/* —— Tests & critiques —— */
body.theme-dark .home-critiques-inner {
    background: var(--reviews-block-bg);
}

body.theme-dark .home-critique-card,
body.theme-dark .home-critique-column {
    background: var(--reviews-card-bg);
    color: var(--text-dark);
}

body.theme-dark .home-critique-card a {
    color: var(--text-light);
}

body.theme-dark .single-review-page .single-review-header .article-meta-bar,
body.theme-dark .single-review-page .single-review-header .single-article-excerpt {
    color: var(--muted-text);
}

/* —— Formulaires —— */
body.theme-dark input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
body.theme-dark textarea,
body.theme-dark select {
    background: color-mix(in srgb, var(--surface-card) 88%, #000000 12%);
    border-color: var(--border-color);
    color: var(--text-dark);
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
    color: var(--muted-text);
}

body.theme-dark .member-auth-modal,
body.theme-dark .member-auth-modal-panel {
    background: var(--surface-panel);
    color: var(--text-dark);
}

body.theme-dark .member-auth-modal a {
    color: var(--link-color);
}

body.theme-dark .member-auth-tab {
    color: var(--muted-text);
}

body.theme-dark .member-auth-tab.is-active {
    color: var(--text-dark);
    border-color: var(--link-color);
}

/* —— Espace membre —— */
body.theme-dark .member-space-layout,
body.theme-dark .member-space-main,
body.theme-dark .member-space-sidebar,
body.theme-dark .member-public-profile,
body.theme-dark .member-public-tab-panel {
    color: var(--text-dark);
}

body.theme-dark .member-space-sidebar,
body.theme-dark .member-space-nav,
body.theme-dark .member-public-sidebar-card,
body.theme-dark .member-space-card,
body.theme-dark .member-public-card {
    background: var(--surface-card);
    border-color: var(--border-color);
}

body.theme-dark .member-space-nav h3 {
    color: var(--text-dark);
}

body.theme-dark .member-space-nav a,
body.theme-dark .member-nav-logout,
body.theme-dark .member-public-tabs a {
    color: var(--muted-text);
    border-color: var(--border-color);
    background: transparent;
}

body.theme-dark .member-space-nav a.is-active,
body.theme-dark .member-space-nav a:hover,
body.theme-dark .member-nav-logout:hover,
body.theme-dark .member-public-tabs a.is-active,
body.theme-dark .member-public-tabs a:hover {
    color: var(--link-color);
    border-color: color-mix(in srgb, var(--link-color) 38%, transparent);
    background: color-mix(in srgb, var(--link-color) 12%, transparent);
}

body.theme-dark .member-space-nav a.is-active {
    background: color-mix(in srgb, var(--link-color) 16%, transparent);
}

body.theme-dark .member-space-nav-icon {
    color: var(--link-color);
}

body.theme-dark .member-public-bio,
body.theme-dark .member-social-stat-label {
    color: var(--muted-text);
}

body.theme-dark .member-public-socials a {
    color: var(--link-color);
}

body.theme-dark .member-public-socials a:hover {
    color: var(--link-hover-color);
}

/* —— Citations partagées (fil membre) —— */
body.theme-dark .member-feed-shared-quote.hero-quote,
body.theme-dark .member-feed-card .member-feed-shared-quote.hero-quote {
    background: linear-gradient(145deg, color-mix(in srgb, var(--surface-card) 94%, #ffffff 6%), var(--surface-panel));
    border-color: var(--border-color);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

body.theme-dark .member-feed-shared-quote .hero-quote-text {
    color: var(--text-dark);
}

body.theme-dark .member-feed-shared-quote .hero-quote-text::before,
body.theme-dark .member-feed-shared-quote .hero-quote-text::after {
    color: color-mix(in srgb, var(--link-color) 38%, transparent);
}

body.theme-dark .member-feed-shared-quote .hero-quote-author {
    color: var(--muted-text);
}

body.theme-dark .member-feed-shared-quote .hero-quote-author::before {
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--link-color) 62%, transparent), transparent);
}

body.theme-dark .hero-quote {
    background: linear-gradient(145deg, color-mix(in srgb, var(--surface-card) 94%, #ffffff 6%), var(--surface-panel));
    border-color: var(--border-color);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

body.theme-dark .hero-quote-text {
    color: var(--text-dark);
}

body.theme-dark .hero-quote-text::before,
body.theme-dark .hero-quote-text::after {
    color: color-mix(in srgb, var(--link-color) 38%, transparent);
}

body.theme-dark .hero-quote-author {
    color: var(--muted-text);
}

body.theme-dark .hero-quote-author::before {
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--link-color) 62%, transparent), transparent);
}

/* —— Communauté & agenda —— */
body.theme-dark .community-page,
body.theme-dark .stream-planning-page {
    color: var(--text-dark);
}

body.theme-dark .community-card,
body.theme-dark .stream-slot-card {
    background: var(--surface-card);
    border-color: var(--border-color);
}

/* Planning stream — profil membre & espace membre */
body.theme-dark .member-public-stream-schedule-panel,
body.theme-dark .member-stream-schedule-panel {
    color: var(--text-dark);
}

body.theme-dark .member-stream-schedule-head-main h3,
body.theme-dark .member-stream-schedule-day-block h4,
body.theme-dark .member-stream-schedule-week-range,
body.theme-dark .member-stream-planning-page-head h1 {
    color: var(--text-dark);
}

body.theme-dark .member-stream-schedule-head-main h3 .fa-calendar-days,
body.theme-dark .member-stream-planning-page-head h1 .fa-calendar-days {
    color: var(--link-color);
}

body.theme-dark .member-stream-schedule-slot,
body.theme-dark .member-stream-schedule-view-toggle,
body.theme-dark .member-stream-schedule-week-col,
body.theme-dark .member-stream-schedule-share,
body.theme-dark .member-stream-schedule-empty-state,
body.theme-dark .member-stream-schedule-empty-notice {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

body.theme-dark .member-stream-schedule-week-col.is-today {
    border-color: color-mix(in srgb, var(--link-color) 45%, var(--border-color));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--link-color) 18%, transparent);
}

body.theme-dark .member-stream-schedule-week-col.is-today .member-stream-schedule-week-col-head {
    background: color-mix(in srgb, var(--link-color) 14%, var(--surface-panel));
}

body.theme-dark .member-stream-schedule-week-col.is-today .member-stream-schedule-slot-date-daynum {
    color: var(--link-color);
}

body.theme-dark .member-public-stream-schedule--sidebar .member-stream-schedule-slot {
    background: var(--surface-panel);
}

body.theme-dark .member-stream-schedule-empty,
body.theme-dark .member-stream-schedule-slot-event-date {
    color: var(--muted-text);
}

body.theme-dark .member-planning-modal-panel:not(.member-planning-modal-panel--share) {
    background: var(--surface-card);
    border-color: var(--border-color);
}

body.theme-dark .member-planning-modal-head:not(.member-planning-modal-head--share) {
    background: var(--surface-panel);
    border-bottom-color: var(--border-color);
}

body.theme-dark .member-planning-modal-head:not(.member-planning-modal-head--share) h2 {
    color: var(--text-dark);
}

/* Agenda événements : styles dans play4geek-agenda/assets/agenda.css */
body.theme-dark .p4g-agenda,
body.theme-dark .p4g-agenda-single-wrap {
    color: var(--text-dark);
}

/* Événements partagés — fil profil membre */
body.theme-dark .member-og-card.member-og-card--event,
body.theme-dark a.member-og-card.member-og-card--event {
    background: var(--surface-card);
    border-color: var(--border-color);
}

body.theme-dark .member-article-teaser--event {
    background: var(--surface-card);
    border-color: var(--border-color);
}

body.theme-dark .member-article-teaser--event .p4g-event-card-date--teaser {
    background: color-mix(in srgb, var(--bg-blue) 22%, transparent);
    color: color-mix(in srgb, var(--link-color) 85%, #ffffff);
}

/* Événements partagés — fil profil */
body.theme-dark .member-feed-card a.member-og-card,
body.theme-dark .member-feed-card a.member-og-card:hover,
body.theme-dark .member-feed-card a.member-og-card:focus-visible {
    color: var(--text-dark, #dbe8ff);
    text-decoration: none;
}

body.theme-dark .member-feed-card a.member-og-card .p4g-event-card-label {
    color: var(--link-color, #6eb5ff);
}

body.theme-dark .member-article-teaser--event {
    background: var(--surface-card, #10233f);
    border-color: var(--border-color, #1f3d63);
}

body.theme-dark .member-article-teaser--event .member-article-teaser-title a {
    color: var(--text-dark, #dbe8ff);
}

body.theme-dark .member-article-teaser--event .member-article-teaser-excerpt {
    color: var(--muted-text, #90a7c5);
}

/* —— Sidebar accueil —— */
body.theme-dark .sidebar-newsletter {
    background: var(--sidebar-bg);
    color: var(--text-light);
}

body.theme-dark .sidebar-live,
body.theme-dark .sidebar-widget {
    color: var(--text-dark);
}

body.theme-dark .sidebar-live .streamer-item {
    background: var(--surface-card);
    border-color: var(--border-color);
}

/* —— Badges & kickers —— */
body.theme-dark .post-category,
body.theme-dark .post-game-tag,
body.theme-dark .category-mag-kicker,
body.theme-dark .legal-page-kicker {
    background: var(--badge-bg);
    color: var(--badge-text);
    border-color: color-mix(in srgb, var(--badge-text) 35%, transparent);
}

body.theme-dark .legal-page-kicker {
    color: var(--link-color);
    background: color-mix(in srgb, var(--link-color) 18%, transparent);
}

/* —— Surfaces blanches codées en dur —— */
body.theme-dark .header-search-results,
body.theme-dark .member-gif-picker,
body.theme-dark .member-emoji-picker,
body.theme-dark .drawer-panel {
    background: var(--surface-card);
    color: var(--text-dark);
}

body.theme-dark [style*="background:#fff"],
body.theme-dark [style*="background: #fff"],
body.theme-dark [style*="background:#ffffff"],
body.theme-dark [style*="background: #ffffff"] {
    background: var(--surface-card) !important;
}

/* —— Pagination & fil d'Ariane —— */
body.theme-dark .pagination a,
body.theme-dark .pagination span,
body.theme-dark .breadcrumb a,
body.theme-dark .breadcrumb span {
    color: var(--link-color);
}

body.theme-dark .pagination .current {
    color: var(--text-dark);
    background: var(--surface-card);
    border-color: var(--border-color);
}

/* —— Tableaux —— */
body.theme-dark table th,
body.theme-dark table td {
    border-color: var(--border-color);
    color: var(--text-dark);
}

body.theme-dark table thead th {
    background: var(--surface-panel);
}

body.theme-dark table tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--surface-panel) 65%, transparent);
}

/* —— Alertes & notices —— */
body.theme-dark .notice,
body.theme-dark .p4g-notice,
body.theme-dark .member-notice {
    background: var(--surface-panel);
    border-color: var(--border-color);
    color: var(--text-dark);
}

body.theme-dark .notice-success,
body.theme-dark .p4g-notice--success {
    background: color-mix(in srgb, #22c55e 18%, var(--surface-panel));
    color: #bbf7d0;
}

body.theme-dark .notice-error,
body.theme-dark .p4g-notice--error {
    background: color-mix(in srgb, #ef4444 18%, var(--surface-panel));
    color: #fecaca;
}

/* —— WPDiscuz (commentaires) —— */
body.theme-dark #wpdcom,
body.theme-dark #wpdcom .wpd-form-wrapper,
body.theme-dark #wpdcom .wpd-comment-text {
    color: var(--text-dark);
}

body.theme-dark #wpdcom .wpd-form-wrapper {
    background: var(--surface-card);
    border-color: var(--border-color);
}

body.theme-dark #wpdcom a {
    color: var(--link-color);
}

/* —— Boutons secondaires / ghost —— */
body.theme-dark .btn-secondary,
body.theme-dark .btn-outline,
body.theme-dark .member-space-btn--ghost {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-dark);
}

body.theme-dark .btn-secondary:hover,
body.theme-dark .btn-outline:hover {
    background: color-mix(in srgb, var(--surface-card) 70%, var(--link-color) 30%);
    color: var(--link-hover-color);
}

body.theme-dark .btn-primary,
body.theme-dark .member-post-edit-submit.btn-primary {
    background: var(--button-bg);
    color: var(--button-text);
    border-color: transparent;
}

body.theme-dark .btn-primary:hover,
body.theme-dark .member-post-edit-submit.btn-primary:hover {
    background: var(--button-hover-bg);
    color: var(--button-text);
}
