/* WeatherNCo — vent animé : cartouches "verre dépoli" (même famille que .wnco-timebar) */
.wnco-glass{
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(10,20,40,.16);
  color: #1d2430;
  font: 12px/1.35 ui-monospace, "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}
@supports (backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px)){
  .wnco-glass{ background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); }
}

/* Légende */
.wnco-wind-legend{ padding: 8px 12px 6px; width: 190px; }
.wnco-wl-title{ font-size: 11px; color: #4a5462; margin-bottom: 5px; letter-spacing: .2px; }
.wnco-wl-bar{ height: 6px; border-radius: 4px; }
.wnco-wl-mode{ font-size: 10px; color: #8a929c; margin-top: 2px; }
.wnco-wl-ticks{ display: flex; justify-content: space-between; font-size: 10.5px; color: #4a5462; margin-top: 3px; }
/* Légende en classes (palette WeatherNCo) : cases égales, contour fin (les classes claires restent visibles) */
.wnco-wind-legend.wnco-wl-classes{ width: 260px; }
.wnco-wl-cells{ display: flex; height: 10px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(29,36,48,.25); }
.wnco-wl-cells span{ flex: 1; box-shadow: inset -1px 0 0 rgba(29,36,48,.12); }
.wnco-wl-cticks{ position: relative; height: 1.3em; font-size: 10.5px; color: #4a5462; margin-top: 3px; }
.wnco-wl-cticks span{ position: absolute; transform: translateX(-50%); }
.wnco-wl-cticks span:first-child{ transform: none; }

/* Sonde */
.wnco-wind-probe{ padding: 8px 12px; min-width: 190px; white-space: nowrap; }
.wnco-wp-row{ display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.wnco-wp-row i{ width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.wnco-wp-src{ margin-left: 8px; color: #6b7480; font-size: 10.5px; }
.wnco-wp-muted{ color: #8a929c; }

/* Canvas : aucune interaction, pas de filtre global (cf. hotfix Firefox) */
.wnco-wind-canvas{ pointer-events: none; filter: none !important; }

@media (max-width: 768px){
  .wnco-wind-probe{ display: none; }          /* pas de survol au doigt */
  .wnco-wind-legend{ width: 150px; }
  .wnco-wind-legend.wnco-wl-classes{ width: 200px; }
}

/* ---- Fonds de carte nuit (filtre par couche, jamais sur .leaflet-tile-pane) ---- */
.wnco-nuit-ocean   { filter: brightness(.34) saturate(.55) contrast(1.3) hue-rotate(-12deg); }
.wnco-nuit-osm     { filter: invert(1) hue-rotate(195deg) brightness(.62) contrast(.92) saturate(.45); }
.wnco-nuit-seamark { opacity: .55; filter: saturate(.6) brightness(1.15); }

/* Jauges de réglage */
.wnco-tuner{ padding: 8px 12px; width: 230px; }
.wnco-tn-head{ display: flex; justify-content: space-between; cursor: pointer; font-size: 12px; }
.wnco-tn-row{ display: block; margin: 8px 0 0; font-weight: 400; }
.wnco-tn-row span{ display: flex; justify-content: space-between; font-size: 11px; color: #4a5462; }
.wnco-tn-row em{ font-style: normal; color: #1d2430; }
.wnco-tn-row input[type=range]{ width: 100%; margin: 3px 0 0; accent-color: #3C5FA6; }
.wnco-tn-info{ margin-top: 7px; font-size: 10.5px; color: #6b7480; line-height: 1.4; }
.wnco-tn-btns{ display: flex; gap: 6px; margin-top: 8px; }
.wnco-tn-btns button{ flex: 1; font: inherit; font-size: 11px; padding: 3px 0; border-radius: 7px; border: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.8); cursor: pointer; }
@media (max-width: 768px){ .wnco-tuner{ width: 190px; } }
