/* Bouton lune/soleil */
.thm{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:999px;border:1px solid var(--bd);background:transparent;color:var(--tx);cursor:pointer;flex:0 0 auto;padding:0}
.thm:hover{background:var(--hover)}
.thm svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.thm .sun{display:none}
html[data-theme=light] .thm .sun{display:block}
html[data-theme=light] .thm .moon{display:none}

/* Mode clair : jetons */
:root[data-theme=light]{
  --bg:#f6f5f9;--s1:#ffffff;--s2:#f0eef5;--bd:#e2dfe9;--tx:#17151c;--mu:#5d5968;--ac:#6d3fd0;--ac2:#7c4ddb;--acl:#6d3fd0;--act:#eee8fb;--ok:#118a57;
  --surface:#ffffff;--surface-2:#f4f2f8;--surface-3:#ebe8f1;--text:#17151c;--text-2:#34303d;--muted:#5d5968;--faint:#8c8896;
  --border:#e2dfe9;--border-2:#d4d0dd;--hover:rgba(20,10,40,.05);
  --brand:#6d3fd0;--brand-2:#7c4ddb;--brand-soft:rgba(109,63,208,.10);--brand-line:rgba(109,63,208,.35);
  --bad:#e11d48;--bad-soft:rgba(225,29,72,.08);--warn:#b45309;--warn-soft:rgba(180,83,9,.08);--info:#2563eb;--info-soft:rgba(37,99,235,.08);
  --shadow:0 12px 32px -16px rgba(30,20,60,.18),0 2px 8px -4px rgba(30,20,60,.10);--shadow-lg:0 30px 70px -30px rgba(30,20,60,.25);
  color-scheme:light
}
html[data-theme=light] body{background:var(--bg);color:var(--tx)}
html:not(.rf-light-ok) .thm{display:none!important}
