/* Thème jour / nuit : bouton commun et réglages globaux (voir js/theme.js) */
html[data-theme="dark"]{color-scheme:dark}
html.theme-anim,html.theme-anim *{transition:background-color .35s ease,color .35s ease,border-color .35s ease,fill .35s ease!important}

.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:38px;height:38px;padding:0 9px;border-radius:10px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.06);color:#E2C06D;cursor:pointer;font:inherit;font-size:13px;line-height:1;flex-shrink:0;transition:background .2s,border-color .2s}
.theme-toggle:hover{background:rgba(255,255,255,.12);border-color:rgba(201,168,76,.5)}
.theme-toggle:focus-visible{outline:2px solid #E2C06D;outline-offset:2px}
.theme-toggle iconify-icon{font-size:19px;display:none}
.theme-toggle .tt-text{color:rgba(255,255,255,.85);white-space:nowrap}
html[data-theme-mode="auto"] .theme-toggle .tt-auto,
html[data-theme-mode="light"] .theme-toggle .tt-light,
html[data-theme-mode="dark"] .theme-toggle .tt-dark{display:inline-flex}
/* Avant le chargement du script (ou sans JavaScript) : icône automatique */
html:not([data-theme-mode]) .theme-toggle .tt-auto{display:inline-flex}

/* Variante sur fond clair (pages légales, paiement) */
.theme-toggle.on-light{border-color:var(--tt-line,#D6DAE5);background:var(--tt-bg,#fff);color:var(--tt-ink,#0B1F45)}
.theme-toggle.on-light .tt-text{color:inherit}
html[data-theme="dark"] .theme-toggle.on-light{--tt-line:rgba(140,160,200,.25);--tt-bg:#111C33;--tt-ink:#E2C06D}
