/* Bouton « Couleurs » : fonctionne sur fond clair comme sombre (le menu déroulant garde ses propres couleurs). */
.theme{position:relative;display:inline-flex;align-items:center;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:1rem;letter-spacing:0;text-transform:none;line-height:1}
.theme-btn{display:inline-flex;align-items:center;gap:.55rem;min-height:44px;padding:.4rem .95rem;border-radius:99px;border:1.5px solid currentColor;background:transparent;color:inherit;font:600 .9rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer}
.theme-btn:hover{background:color-mix(in srgb,currentColor 12%,transparent)}
.theme-btn:focus-visible,.theme-opt:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.theme-dots{display:inline-flex}
.theme-dots i{width:.9rem;height:.9rem;border-radius:50%;border:1px solid rgba(128,128,128,.7);margin-left:-.28rem;display:block}
.theme-dots i:first-child{margin-left:0}
.theme-pop{position:absolute;top:calc(100% + .5rem);right:0;z-index:2000;min-width:15rem;padding:.4rem;border-radius:16px;background:#fff;color:#14161a;border:1px solid #d6d9df;box-shadow:0 18px 48px rgba(0,0,0,.28);display:grid;gap:.15rem}
.theme-pop[hidden]{display:none}
.theme.up .theme-pop{top:auto;bottom:calc(100% + .5rem)}
.theme.left .theme-pop{right:auto;left:0}
.theme-opt{display:flex;align-items:center;gap:.7rem;width:100%;min-height:46px;padding:.5rem .7rem;border:0;border-radius:10px;background:transparent;color:#14161a;font:600 .95rem/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;text-align:left;cursor:pointer}
.theme-opt:hover{background:#eef0f4}
.theme-opt[aria-pressed=true]{background:#e6ecff}
.theme-name{flex:1}
.theme-ok{visibility:hidden;font-weight:800;color:#1d4ed8}
.theme-opt[aria-pressed=true] .theme-ok{visibility:visible}
@media (max-width:899px){.theme{margin-top:1.2rem}}
@media (prefers-reduced-motion:reduce){.theme-btn{transition:none}}
