/* 10 · THÈME SOMBRE
   Un vrai thème, pas une inversion : fond gris très profond (jamais #000
   pur), surfaces légèrement plus claires, texte blanc cassé. Seuls les jetons
   de couleur changent ; les composants ne savent pas qu'il existe un mode
   sombre (sauf les quelques exceptions listées en bas, propres aux images
   et au verre). */

:root[data-theme="dark"]{
  color-scheme:dark;

  --background:#151515;
  --background-secondary:#1B1B1B;
  --background-tertiary:#232323;
  --surface:#1F1F1F;
  --surface-hover:rgba(255,255,255,.055);
  --surface-active:rgba(255,255,255,.095);
  --overlay:rgba(0,0,0,.6);

  --text-primary:#ECECE9;
  --text-secondary:#A5A5A0;
  --text-tertiary:#7C7C77;
  --text-muted:#565652;
  --text-on-accent:#FFFFFF;

  --border-subtle:rgba(255,255,255,.075);
  --border-default:rgba(255,255,255,.14);

  --accent:#3B8FF3;
  --accent-hover:#5AA2F7;
  --accent-soft:rgba(59,143,243,.16);
  --success:#4CC38A;
  --success-soft:rgba(76,195,138,.15);
  --warn:#E5A03A;
  --warn-soft:rgba(229,160,58,.16);
  --danger:#F0665C;
  --danger-soft:rgba(240,102,92,.15);

  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  --shadow-md:0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:0 12px 40px rgba(0,0,0,.55);

  --glass-fill:rgba(34,34,34,.80);
  --glass-border:rgba(255,255,255,.10);
  --glass-shadow:0 8px 28px rgba(0,0,0,.45);
}

/* Photos : légèrement adoucies pour ne pas éblouir sur fond sombre */
:root[data-theme="dark"] .article-item img,
:root[data-theme="dark"] .vt-row img,
:root[data-theme="dark"] .detail-photo{filter:brightness(.94);}

/* base.css (couche historique) impose un fond noir pur sur le corps en mode
   sombre, avec une spécificité que les jetons seuls ne battent pas. */
:root[data-theme="dark"] body,:root[data-theme="dark"] html{background:var(--background);}
