/* ============================================================
   SIDEBAR — site-meteo.fr
   Styles de thème. Base dans style.css.
   Inclus APRÈS style.css — ne pas modifier style.css pour la sidebar.
   ============================================================ */

/* ── Mode clair : dégradé horizontal — gauche foncé → droite #12589d ── */
html:not(.dark-mode) .sidebar {
  background: linear-gradient(to right, #0b3d70 0%, #12589d 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-right-color: rgba(0,0,0,.18);
}

/* ── Scrollbar fine dans la nav de la sidebar ──────────────── */
.sidebar-nav {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.sidebar-nav::-webkit-scrollbar        { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track  { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb  { background: rgba(255,255,255,0.22); border-radius: 4px; }

/* Masquer la recherche sidebar sur desktop */
@media (min-width: 861px) {
  .sidebar-search { display: none; }
}

/* Sidebar sur fond bleu → texte toujours blanc */
html:not(.dark-mode) .sidebar-logo a       { color: #fff; }
html.dark-mode       .sidebar-logo a       { color: #fff; }
html.dark-mode       .topbar-logo          { color: #fff; }
html:not(.dark-mode) .sidebar-search-box i { color: rgba(255,255,255,0.6); }
html:not(.dark-mode) .sb-city-name        { color: #fff; }
html:not(.dark-mode) .sb-city-temp        { color: rgba(255,255,255,0.75); }

/* Idem dark mode : déjà opaque, cohérent */
html.dark-mode .sidebar {
  background: rgba(3,8,20,.88);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-right-color: rgba(255,255,255,.06);
}

/* ── Sidebar — réseaux sociaux ─────────────────────────── */
.sb-social {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.sb-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}
.sb-social-btn:hover { background: rgba(255,255,255,0.2); color: #fff; text-decoration: none !important; }
