/* Andromède — mode clair (2026-11-09).
   La plateforme est dessinée en sombre ; le mode clair inverse la page entière
   et ré-inverse les images, vidéos et tuiles de carte pour qu'elles gardent leurs vraies couleurs. */
html[data-theme="light"]{filter:invert(1) hue-rotate(180deg);background:#0b0f10}
html[data-theme="light"] img,
html[data-theme="light"] video,
html[data-theme="light"] picture,
html[data-theme="light"] iframe,
html[data-theme="light"] .leaflet-tile,
html[data-theme="light"] #hcPwa img{filter:invert(1) hue-rotate(180deg)}

/* Bouton clair / sombre, en haut au centre (au-dessus de tout, mais petit) */
#hcThemeBtn{all:initial;box-sizing:border-box;width:auto;height:auto;margin:0;position:fixed;top:calc(8px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);z-index:99998;
  display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:999px;cursor:pointer;
  background:rgba(13,21,32,.86);color:#e9eff7;border:1px solid rgba(246,196,49,.45);
  font:600 12.5px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  box-shadow:0 6px 18px -8px rgba(0,0,0,.7);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
#hcThemeBtn:hover{border-color:#f6c431;transform:translateX(-50%)}
#hcThemeBtn .l{all:initial;font:inherit;color:inherit;white-space:nowrap}
#hcThemeBtn:focus-visible{outline:2px solid #f6c431;outline-offset:2px}
#hcThemeBtn svg{all:initial;display:block;width:15px;height:15px;fill:none;stroke:#f6c431;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:640px){#hcThemeBtn .l{display:none}#hcThemeBtn{padding:7px}}
@media print{#hcThemeBtn{display:none}html[data-theme="light"]{filter:none}}
