/* Playhooky Mode Sombre : écran uniquement, l'impression reste claire */
@media screen {
html.phk-dark { color-scheme: dark; }
html.phk-dark,
html.phk-dark body,
html.phk-dark .ast-separate-container {
  background-color: var(--phk-bg) !important;
}

html.phk-dark .site-content,
html.phk-dark .ast-container,
html.phk-dark .ast-plain-container,
html.phk-dark .ast-page-builder-template .site-content {
  background-color: transparent !important;
}

html.phk-dark .main-header-bar,
html.phk-dark .ast-above-header-bar,
html.phk-dark .ast-below-header-bar,
html.phk-dark .ast-primary-header-bar,
html.phk-dark .ast-mobile-header-content,
html.phk-dark .ast-mobile-popup-inner,
html.phk-dark .main-header-menu,
html.phk-dark .main-header-menu .sub-menu,
html.phk-dark .site-above-footer-wrap,
html.phk-dark .site-primary-footer-wrap,
html.phk-dark .site-below-footer-wrap,
html.phk-dark .site-footer,
html.phk-dark .ast-article-post .ast-article-inner,
html.phk-dark .ast-separate-container .ast-article-single,
html.phk-dark .ast-separate-container .ast-article-post,
html.phk-dark .ast-separate-container .ast-article-inner,
html.phk-dark .ast-separate-container .comments-area,
html.phk-dark .ast-separate-container .comment-respond,
html.phk-dark .ast-separate-container .ast-archive-description,
html.phk-dark .ast-separate-container .ast-author-box,
html.phk-dark .ast-separate-container .widget,
html.phk-dark .ast-separate-container #secondary .widget,
html.phk-dark .ast-separate-container .no-results,
html.phk-dark .related-posts-title-wrapper,
html.phk-dark .ast-single-related-posts-container,
html.phk-dark .ast-related-post {
  background-color: var(--phk-surface) !important;
  border-color: var(--phk-border) !important;
}

html.phk-dark .entry-content .has-background:not(.wp-block-button__link),
html.phk-dark .wp-block-code,
html.phk-dark .entry-content pre,
html.phk-dark .entry-content code,
html.phk-dark .entry-content table,
html.phk-dark .entry-content th,
html.phk-dark .entry-content td,
html.phk-dark .entry-content blockquote {
  background-color: var(--phk-surface) !important;
  background-image: none !important;
  color: var(--phk-text) !important;
  border-color: var(--phk-border) !important;
}

html.phk-dark body,
html.phk-dark .entry-content :where(p, li, dt, dd, figcaption, strong, em, label),
html.phk-dark .entry-meta,
html.phk-dark .entry-meta *,
html.phk-dark .ast-excerpt-container,
html.phk-dark .widget,
html.phk-dark .widget p,
html.phk-dark .widget li,
html.phk-dark .comment-content,
html.phk-dark .site-footer,
html.phk-dark .site-footer p,
html.phk-dark .ast-footer-copyright {
  color: var(--phk-text) !important;
}

html.phk-dark :where(.site-content, .site-footer) :where(h1, h2, h3, h4, h5, h6),
html.phk-dark .entry-title,
html.phk-dark .entry-title a,
html.phk-dark .widget-title,
html.phk-dark .site-title a,
html.phk-dark .ast-archive-title {
  color: var(--phk-heading) !important;
}

html.phk-dark .entry-content a:not(.wp-block-button__link):not(.ast-button),
html.phk-dark .widget a,
html.phk-dark .comments-area a:not(.ast-button),
html.phk-dark .site-footer a,
html.phk-dark .ast-breadcrumbs a,
html.phk-dark .read-more a,
html.phk-dark .entry-meta a {
  color: var(--phk-link) !important;
}

html.phk-dark .main-header-menu .menu-link,
html.phk-dark .ast-builder-menu .menu-item > .menu-link,
html.phk-dark .main-header-menu .ast-menu-toggle,
html.phk-dark .ast-mobile-popup-inner .menu-link,
html.phk-dark .ast-mobile-popup-inner .ast-menu-toggle,
html.phk-dark .ast-header-search .ast-search-icon,
html.phk-dark .main-header-bar .ast-icon {
  color: var(--phk-text) !important;
}

html.phk-dark .main-header-menu .menu-item:hover > .menu-link,
html.phk-dark .main-header-menu .current-menu-item > .menu-link {
  color: var(--phk-link) !important;
}

html.phk-dark .ast-icon svg,
html.phk-dark .menu-toggle .ast-mobile-svg,
html.phk-dark .ast-mobile-popup-inner .menu-toggle-close svg {
  fill: currentColor !important;
}

html.phk-dark input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]),
html.phk-dark textarea,
html.phk-dark select,
html.phk-dark .search-field,
html.phk-dark .ast-search-menu-icon .search-form {
  background-color: var(--phk-bg) !important;
  color: var(--phk-text) !important;
  border-color: var(--phk-border) !important;
}

html.phk-dark .ast-pagination .page-numbers:not(.current),
html.phk-dark .ast-separate-container .ast-pagination .page-numbers:not(.current) {
  color: var(--phk-link) !important;
  border-color: var(--phk-border) !important;
}

html.phk-dark hr,
html.phk-dark .ast-separate-container .comment-respond,
html.phk-dark .entry-content .wp-block-separator {
  border-color: var(--phk-border) !important;
}

html.phk-dark .entry-content img:not([src$='.svg']), html.phk-dark .post-thumb img { filter: brightness(.9); }
/* Bouton Connexion de l'en-tête (texte et icône) */
html.phk-dark .site-header a[href*="/classe"],
html.phk-dark .site-header a[href*="/classe"] *,
html.phk-dark .site-header .ast-header-account-link,
html.phk-dark .site-header .ast-header-account-link *,
html.phk-dark .site-header .ast-header-account-wrap a,
html.phk-dark .site-header .ast-header-account-wrap a *,
html.phk-dark .ast-mobile-popup-drawer a[href*="/classe"],
html.phk-dark .ast-mobile-popup-drawer a[href*="/classe"] *,
html.phk-dark .ast-mobile-popup-drawer .ast-header-account-link,
html.phk-dark .ast-mobile-popup-drawer .ast-header-account-link *,
html.phk-dark .ast-mobile-header-content a[href*="/classe"],
html.phk-dark .ast-mobile-header-content a[href*="/classe"] * {
  color: var(--phk-link) !important;
}
html.phk-dark .site-header a[href*="/classe"] svg,
html.phk-dark .site-header a[href*="/classe"] svg *,
html.phk-dark .site-header .ast-header-account-link svg,
html.phk-dark .site-header .ast-header-account-link svg *,
html.phk-dark .site-header .ast-header-account-wrap a svg,
html.phk-dark .site-header .ast-header-account-wrap a svg *,
html.phk-dark .ast-mobile-popup-drawer a[href*="/classe"] svg,
html.phk-dark .ast-mobile-popup-drawer a[href*="/classe"] svg *,
html.phk-dark .ast-mobile-popup-drawer .ast-header-account-link svg,
html.phk-dark .ast-mobile-popup-drawer .ast-header-account-link svg *,
html.phk-dark .ast-mobile-header-content a[href*="/classe"] svg,
html.phk-dark .ast-mobile-header-content a[href*="/classe"] svg * {
  fill: currentColor !important;
}
/* Onglets Getwid */
html.phk-dark .wp-block-getwid-tabs .wp-block-getwid-tabs__nav-link {
  background: transparent !important;
  border-color: transparent !important;
}
html.phk-dark .wp-block-getwid-tabs .wp-block-getwid-tabs__nav-link:hover {
  border-color: var(--phk-border) !important;
}
html.phk-dark .wp-block-getwid-tabs .wp-block-getwid-tabs__nav-link.ui-tabs-active {
  background: var(--phk-surface) !important;
  border-color: var(--phk-border) !important;
  box-shadow: inset 0 -3px 0 var(--phk-link);
}
html.phk-dark .wp-block-getwid-tabs .wp-block-getwid-tabs__nav-link a:not(.wp-block-button__link),
html.phk-dark .wp-block-getwid-tabs .wp-block-getwid-tabs__nav-link a:not(.wp-block-button__link) * {
  color: var(--phk-link) !important;
  text-decoration: none !important;
}
html.phk-dark .wp-block-getwid-tabs .wp-block-getwid-tabs__nav-link.ui-tabs-active a:not(.wp-block-button__link),
html.phk-dark .wp-block-getwid-tabs .wp-block-getwid-tabs__nav-link.ui-tabs-active a:not(.wp-block-button__link) * {
  color: var(--phk-heading) !important;
}
html.phk-dark .wp-block-getwid-tabs .wp-block-getwid-tabs__nav-link a:focus-visible {
  outline: 2px solid var(--phk-link) !important;
  outline-offset: -2px;
}
html.phk-dark .wp-block-getwid-tabs .wp-block-getwid-tabs__tab-content {
  border-color: var(--phk-border) !important;
}
/* Listes d'articles (accueil, catégories) : pas de cadre autour des articles */
html.phk-dark body:is(.blog, .category, .archive, .search) .ast-article-post,
html.phk-dark body:is(.blog, .category, .archive, .search) .ast-article-post .ast-article-inner,
html.phk-dark body:is(.blog, .category, .archive, .search) .ast-article-post .post-content,
html.phk-dark body:is(.blog, .category, .archive, .search) .ast-article-post .entry-header,
html.phk-dark body:is(.blog, .category, .archive, .search) .site-main > .ast-row {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
/* Noms des catégories */
html.phk-dark body a[rel~="category"],
html.phk-dark body .ast-taxonomy-container a,
html.phk-dark body .cat-links a {
  color: var(--phk-link) !important;
}
/* Chaque article des listes forme une carte à fond uni */
html.phk-dark body:is(.blog, .category, .archive, .search) .ast-article-post .ast-article-inner {
  background: var(--phk-surface) !important;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
  padding-bottom: 12px;
}
html.phk-dark body:is(.blog, .category, .archive, .search) .ast-article-post .ast-article-inner .post-content {
  background: var(--phk-surface) !important;
}
html.phk-dark body:is(.blog, .category, .archive, .search) .ast-article-post .ast-article-inner .post-thumb img {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
}
