/* Thèmes : Agora (sombre/vert) et light (Clair). Seules les variables changent. */
:root[data-theme=agora]{
  --icon-gold:#e9cd77;
  --card-title:#f1f3f0;
  --card-desc:#a7c9c5;
  --bg:#021b16;
  --card:#031f19;
  --card-solid:#031f19;
  --text-primary:#fdfbf4;
  --text-secondary:#e8e5da;
  --gold-text:#dcbb6a;
  --border-gold:rgba(207,169,79,.38);
  --border-soft:rgba(207,169,79,.2);
  --ghost:rgba(207,169,79,.1);
  --field:#f7f0dd;
  --page-glow:radial-gradient(ellipse 70% 40% at 50% 30%,rgba(8,62,52,.4),transparent)}
:root[data-theme=light]{
  --icon-gold:#303030;
  --card-title:#161616;
  --card-desc:#3a3a3a;
  --bg:#ffffff;
  --card:#ffffff;
  --card-solid:#ffffff;
  --text-primary:#161616;
  --text-secondary:#3a3a3a;
  --gold-text:#765a18;
  --border-gold:rgba(150,115,40,.5);
  --border-soft:rgba(150,115,40,.28);
  --ghost:rgba(150,115,40,.12);
  --field:#ffffff;
  --page-glow:none}

:root[data-theme=light] .card:hover{background:#f6faf8;border-color:#8c722f}
:root[data-theme=light] :is(input,select){color:#161616}
:root[data-theme=light] :focus-visible{outline:3px solid #80631c;outline-offset:3px}

/* DICO-COLLECTIONS-02C : encre anthracite et pictogrammes seuls, jamais les médias. */
:root[data-theme=light] :is(.length-resources .ico,.length-resources .arr,.tr-head>img,.tr-i img,.sfield>img,.fw .audio img){filter:grayscale(1) brightness(.32) contrast(1.15)}
:root[data-theme=light] .tr-tog::before{filter:grayscale(1) brightness(.32) contrast(1.15)}
:root[data-theme=light] .length-resources .num{color:#303030}
:root[data-theme=light] .trust .chev{border-color:#3a3a3a}
:root[data-theme=light] .collection :is(.reading-column,.length-editorial){color:#161616}

:root[data-theme=light] .burger>img{filter:grayscale(1) brightness(1.35)}
:root[data-theme=light] .hd-in .theme-current-icon{color:#e2e2e2}
:root[data-theme=light] .gbtn>img{filter:grayscale(1) brightness(.32) contrast(1.15)}

/* Titres des cartes : présence renforcée en Clair. */
:root[data-theme=light] .length-resources .c-t{font-weight:990;-webkit-text-stroke:.3px currentColor;paint-order:stroke fill}
