/* Thème sombre de la page de vote (public). Chargé après style.css et site.css.
   Activé par <html data-theme="dark"> : choix du téléphone par défaut, bouton ☾/☀ pour changer. */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2f2f4; --muted: #a9a9b0; --panel: #1c1c20; --paper: #111113; --white: #1c1c20; --line: #2f2f35;
}
/* Fonds blancs codés en dur → gris foncé */
html[data-theme="dark"] .search,
html[data-theme="dark"] .tab,
html[data-theme="dark"] .chip,
html[data-theme="dark"] body[data-filtres="menus"] .group > h3,
html[data-theme="dark"] body[data-filtres="panneau"] .filtres > summary { background: #1c1c20; color: #f2f2f4; }
html[data-theme="dark"] .search,
html[data-theme="dark"] .tabs, html[data-theme="dark"] .tab + .tab,
html[data-theme="dark"] .chip,
html[data-theme="dark"] ul.songs { border-color: #4a4a52; }
html[data-theme="dark"] .search::placeholder { color: #8b8b92; }
/* États « choisi » : orange de la marque (le noir deviendrait blanc sinon) */
html[data-theme="dark"] .tab[aria-selected="true"] { background: var(--rust); color: #fff; }
html[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--rust); border-color: var(--rust); color: #fff; }
html[data-theme="dark"] .btn-vote.voted { background: #2a2a30; border-color: #4a4a52; color: #fff; }
html[data-theme="dark"] .btn-vote.voted:hover { background: #34343a; border-color: #4a4a52; }
html[data-theme="dark"] .btn--line:hover { background: #f2f2f4; color: #111113; border-color: #f2f2f4; }
html[data-theme="dark"] .tag { background: #2a2a30; color: #d0d0d6; }
html[data-theme="dark"] .votes.zero { color: #6f6f77; }
html[data-theme="dark"] .banner { background: #3a3100; color: #ffe08a; }
html[data-theme="dark"] .toast { background: #2a2a30; border: 1px solid #4a4a52; }
html[data-theme="dark"] .marquee span:nth-child(even) { -webkit-text-stroke-color: #f2f2f4; }
html[data-theme="dark"] .sheet-tete::before { background: #4a4a52; }
html[data-theme="dark"] .filtres-contexte { background: #3a3100; color: #ffe08a; }
html[data-theme="dark"] .rank-row.top { background: #1c1c20; }
html[data-theme="dark"] .sh-logo { background: var(--paper); }

/* Bouton ☾ / ☀ dans l'en-tête */
.theme-btn { margin-left: auto; align-self: center; }
/* Pastilles « filtres actifs » (fond = encre, devenu clair) */
html[data-theme="dark"] .actif { background: var(--rust); color: #fff; }
html[data-theme="dark"] .essai-filtres { background: #1c1c20; }

/* ---- Téléphone (là où le public scanne le QR code) ---- */
html[data-theme="dark"] .sh { background: var(--paper); }
html[data-theme="dark"] .filtres > summary { background: #1c1c20; color: #f2f2f4; border-color: #4a4a52; }
html[data-theme="dark"] .filtres-body, html[data-theme="dark"] .filtres[open] { color: #f2f2f4; }
html[data-theme="dark"] .sheet-tete h2, html[data-theme="dark"] .sheet-fermer { color: #f2f2f4; }
html[data-theme="dark"] .sheet-pied .btn--line { color: #f2f2f4; border-color: #4a4a52; }
html[data-theme="dark"] .sheet-pied .btn--line:disabled { opacity: .35; }
html[data-theme="dark"] .chip.vide { color: #6f6f77; border-color: #2f2f35; background: transparent; }
html[data-theme="dark"] .group h3 { color: #a9a9b0; }

/* ---- Page musicien ---- */
html[data-theme="dark"] .mus-liste label { background: #1c1c20; border-color: #2f2f35; color: #f2f2f4; }
html[data-theme="dark"] .mus-liste li.on label { background: #3a1a0f; border-color: var(--rust); }
html[data-theme="dark"] .mus-edit { background: #1c1c20; border-color: #4a4a52; color: #f2f2f4; }
html[data-theme="dark"] .mus-card { background: #1c1c20; border-color: #2f2f35; }
html[data-theme="dark"] .mus-avance { background: #1c1c20; border-color: #2f2f35; }
html[data-theme="dark"] .mus-fiche { background: #16161a; }
html[data-theme="dark"] .mus-fiche .field select, html[data-theme="dark"] .field input { background: #1c1c20; color: #f2f2f4; border-color: #4a4a52; }
html[data-theme="dark"] .mus-live { border-left-color: #2aa14e; }
html[data-theme="dark"] .btn--dark { background: #f2f2f4; border-color: #f2f2f4; color: #111113; }
html[data-theme="dark"] .btn--dark:hover { background: #fff; color: #111113; }
html[data-theme="dark"] .btn--danger { color: #ff7a47; border-color: #ff7a47; }
html[data-theme="dark"] .mus-etat { color: #f2f2f4; }

html[data-theme="dark"] .sh-nav a:hover { background: #2a2a30; }
