/* ===== Mode sombre complet — TheSleepEdge ===== */
html[data-theme="dark"]{
  --d-surface:#1E2140; --d-elev:#262A4E; --d-text:#E7E8F3; --d-muted:#A6AAC4; --d-line:#343864; --d-accent:#9AA0E0;
}
/* Fonds des encadrés */
html[data-theme="dark"] .hv-product,
html[data-theme="dark"] .hv-key,
html[data-theme="dark"] .hv-bestpick,
html[data-theme="dark"] .hv-author,
html[data-theme="dark"] .hv-toc,
html[data-theme="dark"] .hv-related__card,
html[data-theme="dark"] .hv-specs,
html[data-theme="dark"] .hv-verdict{background:var(--d-surface) !important;border-color:var(--d-line) !important;box-shadow:0 2px 12px rgba(0,0,0,.45) !important}
html[data-theme="dark"] .hv-verdict{background:var(--d-surface) !important}
/* Textes clairs dans les encadrés (hors badges/boutons/rubans) */
html[data-theme="dark"] .hv-bestpick__title,
html[data-theme="dark"] .hv-verdict__title,html[data-theme="dark"] .hv-verdict__text,
html[data-theme="dark"] .hv-author__name,html[data-theme="dark"] .hv-author__bio,
html[data-theme="dark"] .hv-toc a,html[data-theme="dark"] .hv-related__name a,
html[data-theme="dark"] .hv-product__title{color:var(--d-text) !important}
html[data-theme="dark"] .hv-bestpick :where(p,div,span,li,strong,b):not(.hv-bestpick__ribbon),
html[data-theme="dark"] .hv-key :where(p,div,span,li,strong,b):not(.hv-key__title),
html[data-theme="dark"] .hv-product :where(p,li):not(.hv-product__badge){color:var(--d-text) !important}
html[data-theme="dark"] .hv-product__text,html[data-theme="dark"] .hv-specs li span{color:var(--d-muted) !important}
/* Titres d'accent gardés colorés */
html[data-theme="dark"] .hv-key__title,html[data-theme="dark"] .hv-verdict__label{color:var(--d-accent) !important}
html[data-theme="dark"] .hv-toc__title{color:var(--d-accent) !important}
/* Tableaux */
html[data-theme="dark"] .hv-table td{background:var(--d-surface) !important;color:var(--d-text) !important;border-color:var(--d-line) !important}
html[data-theme="dark"] .hv-table th{background:var(--hv-green-dark) !important;color:#fff !important}
/* Notes / warning */
html[data-theme="dark"] .hv-note{background:var(--d-elev) !important;color:var(--d-text) !important}
html[data-theme="dark"] .hv-warning{background:#2A2740 !important;color:var(--d-text) !important}
/* Pros / cons */
html[data-theme="dark"] .hv-pros{background:#1E2340 !important;border-color:var(--d-line) !important}
html[data-theme="dark"] .hv-cons{background:#2E1C33 !important;border-color:var(--d-line) !important}
html[data-theme="dark"] .hv-pros li,html[data-theme="dark"] .hv-cons li{color:var(--d-text) !important}
/* Partage / disclosure / breadcrumb */
html[data-theme="dark"] .hv-share a{background:var(--d-elev) !important;color:var(--d-accent) !important}
html[data-theme="dark"] .hv-disclosure{background:var(--d-elev) !important;color:var(--d-muted) !important}
html[data-theme="dark"] .hv-breadcrumb,html[data-theme="dark"] .hv-breadcrumb a{color:var(--d-muted) !important}
/* Badges / rubans / boutons gardent leurs couleurs */
html[data-theme="dark"] .hv-btn{color:#fff !important}
html[data-theme="dark"] .hv-bestpick__ribbon{color:#fff !important}
html[data-theme="dark"] .hv-product__badge{color:var(--hv-ochre-dark) !important}
/* Byline (couche article) */
html[data-theme="dark"] .hv-subtitle{color:var(--d-text) !important}
html[data-theme="dark"] .hv-byline__role,html[data-theme="dark"] .hv-byline__meta{color:var(--d-muted) !important}
html[data-theme="dark"] .hv-byline__reviewed{background:var(--d-elev) !important;color:var(--d-text) !important}
html[data-theme="dark"] .hv-byline__name a{color:var(--d-accent) !important}
html[data-theme="dark"] .hv-postcat{background:rgba(255,255,255,.12) !important;color:var(--d-accent) !important}
/* Spécifications : lignes et texte lisibles en mode sombre */
html[data-theme="dark"] .hv-specs{background:var(--d-surface) !important}
html[data-theme="dark"] .hv-specs li{background:var(--d-surface) !important;border-color:var(--d-line) !important;color:var(--d-text) !important}
html[data-theme="dark"] .hv-specs li b{color:var(--d-text) !important}
html[data-theme="dark"] .hv-specs li span{color:var(--d-muted) !important}
