﻿/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --blue-start: #1c86ee;
  --blue-end: #0a4a8a;
  --card-bg: rgba(255,255,255,0.18);
  --card-border: rgba(255,255,255,0.30);
  --text-primary: #fff;
  --text-secondary: rgba(255,255,255,0.75);
  --text-dim: rgba(255,255,255,0.50);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.18);
  --nav-h: 60px;
  --sidebar-w: 248px;
  --topbar-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  min-height: 100vh;
  color: var(--text-primary);
  background: linear-gradient(160deg, var(--blue-start), var(--blue-end));
  background-attachment: fixed;
}

/* Weather-condition body classes */
body.sunny    { --blue-start: #FFB347; --blue-end: #FF8C00; }
body.cloudy   { --blue-start: #708090; --blue-end: #3a4a5a; }
body.rainy    { --blue-start: #4682B4; --blue-end: #1a3050; }
body.snowy    { --blue-start: #B0C4DE; --blue-end: #4a6080; }
body.stormy   { --blue-start: #2c3e50; --blue-end: #1a1a2e; }
body.foggy    { --blue-start: #8a9ba8; --blue-end: #50606e; }
body.night    { --blue-start: #0d1b2a; --blue-end: #1b2838; }
body.night.sunny  { --blue-start: #0d1b2a; --blue-end: #1e2d45; }

a { color: inherit; text-decoration: none; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  /* z-index hierarchy:
     topbar          : 1200   (toujours au-dessus)
     sidebar         : 1150   (au-dessus du hero 1100, sous le topbar)
     hero            : 1100
     Leaflet max     :  800
  */
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-right: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1150;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); }

.sidebar-logo {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.sidebar-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
}

.sidebar-logo i { font-size: 1.3rem; color: #FFD700; }

/* City summary (meteo page) */
.sidebar-city-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
}

.sb-city-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.sb-city-name { font-weight: 700; font-size: 0.95rem; }
.sb-city-temp { font-size: 1.3rem; font-weight: 200; color: var(--text-secondary); }

/* Sidebar search */
/* â”€â”€ Espace membre mobile (sidebar) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sb-member-mobile {
  display: none; /* cachÃ© sur desktop, affichÃ© via media query + JS */
  padding: 14px 14px 0;
  flex-shrink: 0;
}

/* Guest */
.sb-mem-guest { display: flex; flex-direction: column; gap: 8px; }
.sb-mem-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: opacity 0.18s;
}
.sb-mem-btn:hover { opacity: 0.85; }
.sb-mem-login    { background: rgba(255,255,255,0.12); color: #fff; }
.sb-mem-register { background: #1c86ee; color: #fff; }

/* User connectÃ© */
.sb-mem-user { display: flex; flex-direction: column; gap: 10px; }
.sb-mem-top  { display: flex; align-items: center; gap: 10px; }
.sb-mem-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden; font-size: 1.1rem; color: rgba(255,255,255,0.7);
}
.sb-mem-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.sb-mem-info  { flex: 1; min-width: 0; }
.sb-mem-name  { font-size: 0.92rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-mem-rank  { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 1px; }
.sb-mem-settings {
  color: rgba(255,255,255,0.45); font-size: 1rem; padding: 4px; flex-shrink: 0;
  text-decoration: none; transition: color 0.18s;
}
.sb-mem-settings:hover { color: #fff; }

/* Bouton poster â€” pilule */
.sb-mem-post-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #1c86ee; color: #fff; font-size: 0.83rem; font-weight: 700;
  padding: 10px 20px; border-radius: 50px; text-decoration: none;
  transition: background 0.18s; white-space: nowrap;
}
.sb-mem-post-btn:hover { background: #1570cc; }

/* Stats */
.sb-mem-stats { font-size: 0.78rem; color: rgba(255,255,255,0.45); display: flex; gap: 14px; }
.sb-mem-stats i { margin-right: 4px; }

/* SÃ©parateur bas */
.sb-member-mobile::after {
  content: ''; display: block; height: 1px;
  background: rgba(255,255,255,0.08); margin-top: 14px;
}

/* Visible uniquement sur mobile (quand la sidebar est en drawer) */
@media (max-width: 900px) {
  .sb-member-mobile { display: block; }
}

/* â”€â”€ Recherche sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sidebar-search {
  padding: 12px 12px 4px;
  position: relative;
  flex-shrink: 0;
}

.sidebar-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 8px 12px;
  transition: background 0.2s, border-color 0.2s;
}

.sidebar-search-box:focus-within {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
}

.sidebar-search-box i { color: var(--text-dim); font-size: 0.8rem; flex-shrink: 0; }

.sidebar-search-box input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--font);
  width: 100%;
}

.sidebar-search-box input::placeholder { color: rgba(255,255,255,0.4); }

.sidebar-search .autocomplete-list {
  position: absolute;
  top: calc(100% - 4px);
  left: 12px; right: 12px;
  z-index: 1003;
}

/* Sidebar nav */
.sidebar-nav {
  padding: 8px 0 16px;
}

.sidebar-section {
  padding: 6px 0 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-section:last-child { border-bottom: none; }

.sidebar-section-label {
  display: flex;
  align-items: center;
  padding: 8px 18px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
.sidebar-section-label:hover { color: rgba(255,255,255,0.55); }

/* Chevron repliable */
.sidebar-section-label .sb-chev {
  margin-left: auto;
  font-size: 0.58rem;
  opacity: 0.5;
  transition: transform 0.22s ease;
  pointer-events: none;
}
.sidebar-section.sb-collapsed .sidebar-section-label .sb-chev {
  transform: rotate(-90deg);
}

/* Masque les liens quand la section est repliÃ©e */
.sidebar-section.sb-collapsed > .sidebar-link,
.sidebar-section.sb-collapsed > .sidebar-city,
.sidebar-section.sb-collapsed > a.sidebar-link {
  display: none;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-link i {
  width: 16px;
  text-align: center;
  font-size: 0.82rem;
  flex-shrink: 0;
  opacity: 0.75;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-left-color: rgba(255,255,255,0.3);
}

.sidebar-link:hover i { opacity: 1; }

.sidebar-link.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-left-color: #FFD700;
  font-weight: 600;
}

.sidebar-link.active i { opacity: 1; color: #FFD700; }

/* "BientÃ´t" badge */
.sidebar-soon { opacity: 0.55; pointer-events: none; }

.soon-badge {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.15);
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* City quick links */
.sidebar-city span {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
  line-height: 1.7;
}

.sidebar-footer a { text-decoration: underline; opacity: 0.6; }

/* Overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.visible { display: block; }

/* ============================================================
   LAYOUT â€” site-main shifts right of sidebar
   ============================================================ */
.site-main {
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-main > .footer { margin-top: auto; }

/* ============================================================
   TOPBAR (replaces navbar â€” visible on mobile + thin on desktop)
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.09);
  display: flex;
  align-items: center;
  padding: 0 12px 0 16px;
  gap: 10px;
  z-index: 1200;
}

.burger-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
  display: none;           /* hidden on desktop */
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.burger-btn:hover { background: rgba(255,255,255,0.22); }

.topbar-logo {
  display: none;           /* hidden on desktop (logo is in sidebar) */
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  flex: 1;
  color: #fff;
}

.topbar-logo i { color: #FFD700; }

.topbar-city {
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1;
  text-align: center;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-geoloc {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.topbar-geoloc:hover { background: rgba(255,255,255,0.22); }

/* â”€â”€ Topbar : barre de recherche â€” Ã  gauche â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.topbar-search-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 460px;
  margin: 0;
}

.topbar-search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  padding: 0 6px 0 14px;
  height: 36px;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s;
}

.topbar-search-box:focus-within {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.65);
}

.topbar-search-box > .fa-magnifying-glass {
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  flex-shrink: 0;
}

#topbar-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  min-width: 0;
}

#topbar-search-input::placeholder { color: rgba(255,255,255,0.55); }

.topbar-geoloc-inner {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.20);
  border: none;
  color: #fff;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.topbar-geoloc-inner:hover { background: rgba(255,255,255,0.35); }

/* Autocomplete pour la recherche topbar */
.topbar-ac-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 1050;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  list-style: none;
  padding: 6px 0;
  margin: 0;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}

.topbar-ac-list.open { display: block; }


.topbar-ac-list li {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #1a2a3a;
  transition: background 0.15s;
}

.topbar-ac-list li:hover,
.topbar-ac-list li.active { background: #f0f6ff; color: #0a4a8a; }

/* â”€â”€ Topbar : pilule mÃ©tÃ©o gÃ©oloc â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.topbar-geoloc-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: 100px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0 13px;
  height: 34px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.topbar-geoloc-pill:hover {
  background: rgba(255,255,255,0.26);
  color: #fff;
}
.tgp-emoji  { font-size: 1.05rem; line-height: 1; flex-shrink: 0; }
.tgp-city   { font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.tgp-range  { font-size: 0.76rem; opacity: 0.72; }

@media (max-width: 860px) {
  .topbar-geoloc-pill { display: none; }
}

/* â”€â”€ Topbar : cÃ´tÃ© droit (favoris + connexion) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Bouton Favoris */
.topbar-favs-wrap {
  position: relative;
}

.topbar-favs-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,255,255,0.30);
  border-radius: 100px;
  color: #fff;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 500;
  padding: 0 12px;
  height: 34px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.topbar-favs-btn:hover { background: rgba(255,255,255,0.26); }

.topbar-favs-btn .topbar-chevron {
  font-size: 0.65rem;
  transition: transform 0.2s;
}

.topbar-favs-wrap.open .topbar-chevron { transform: rotate(180deg); }

/* Dropdown favoris */
.topbar-favs-dropdown {
  display: none;    /* cachÃ© par dÃ©faut, ouvert via JS */
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1050;
  min-width: 230px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.20);
  padding: 10px 0;
  z-index: 500;
  border: 1px solid rgba(0,0,0,0.06);
}

.topbar-favs-empty {
  padding: 16px 18px;
  font-size: 0.83rem;
  color: #8a9aaa;
  text-align: center;
}

.topbar-fav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.topbar-fav-item:hover { background: #f0f6ff; }

.topbar-fav-item a {
  flex: 1;
  font-size: 0.87rem;
  color: #1a2a3a;
  font-weight: 500;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-fav-remove {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  border: none;
  color: #8a9aaa;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.topbar-fav-remove:hover { background: #fee2e2; color: #e53e3e; }

/* Pilule Connexion */
.topbar-connexion-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.38);
  border-radius: 100px;
  color: #fff;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0 14px;
  height: 34px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

.topbar-connexion-pill:hover {
  background: rgba(255,255,255,0.30);
  border-color: rgba(255,255,255,0.60);
  color: #fff;
}

/* Pill â€” Ã©tat connectÃ© */
.topbar-connexion-pill.logged-in {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  padding: 3px 10px 3px 3px;
  height: 36px;
}
.topbar-connexion-pill.logged-in:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.35);
}

.topbar-user-avatar-wrap {
  width: 28px; height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #1c86ee, #0a4a8a);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.30);
}
.topbar-user-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }

.topbar-user-name {
  font-size: 0.82rem; font-weight: 600; color: #fff;
  max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Dropdown utilisateur */
.topbar-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 272px;
  background: rgba(8, 18, 40, 0.97);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  z-index: 1010;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}
.topbar-connexion-pill.dropdown-open .topbar-user-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tud-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tud-avatar {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg,#1c86ee,#0a4a8a);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: #fff;
  flex-shrink: 0; border: 2px solid rgba(255,255,255,0.20);
}
.tud-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tud-info { flex: 1; min-width: 0; }
.tud-name { font-size: 0.92rem; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tud-rank-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.71rem; font-weight: 600;
  padding: 2px 9px; border-radius: 50px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.72);
  margin-top: 5px;
}

.tud-stats {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 5px;
}
.tud-stat { display: flex; align-items: center; gap: 8px; font-size: 0.77rem; color: rgba(255,255,255,0.58); }
.tud-stat i { width: 14px; text-align: center; color: rgba(255,255,255,0.38); font-size: 0.72rem; }
.tud-stat strong { color: rgba(255,255,255,0.85); }

.tud-progress { padding: 8px 14px 6px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.tud-progress-label {
  font-size: 0.69rem; color: rgba(255,255,255,0.38); margin-bottom: 5px;
  line-height: 1.45; white-space: normal;
}
.tud-next-rank-name { display: block; color: rgba(255,255,255,0.60); font-weight: 600; font-size: 0.72rem; }
.tud-next-rank-count { font-size: 0.67rem; }
.tud-progress-bar { height: 4px; background: rgba(255,255,255,0.10); border-radius: 4px; overflow: hidden; }
.tud-progress-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg,#1c86ee,#4fc3f7); transition: width 0.5s; }

/* Bouton "Poster une observation" en forme de pilule */
.tud-post-obs-wrap { padding: 8px 10px 4px; }
.tud-post-obs-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #1c86ee, #0a4a8a);
  color: #fff; font-size: 0.83rem; font-weight: 700;
  padding: 9px 0; border-radius: 50px; width: 100%;
  text-decoration: none; transition: opacity 0.18s, transform 0.15s;
  box-shadow: 0 3px 12px rgba(28,134,238,0.35);
  font-family: var(--font);
}
.tud-post-obs-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.tud-post-obs-btn i { font-size: 0.85rem; }

.tud-actions { padding: 6px; display: flex; flex-direction: column; gap: 1px; }
.tud-action {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px;
  font-size: 0.82rem; color: rgba(255,255,255,0.72);
  text-decoration: none; cursor: pointer;
  background: none; border: none; width: 100%; text-align: left;
  transition: background 0.15s, color 0.15s; font-family: var(--font);
}
.tud-action:hover { background: rgba(255,255,255,0.08); color: #fff; }
.tud-action i { width: 16px; text-align: center; color: rgba(255,255,255,0.38); font-size: 0.78rem; }
.tud-action.tud-logout { color: rgba(255,100,100,0.75); }
.tud-action.tud-logout:hover { background: rgba(255,80,80,0.10); color: #ff6060; }
.tud-action.tud-logout i { color: rgba(255,100,100,0.45); }
.tud-sep { height: 1px; background: rgba(255,255,255,0.07); margin: 3px 8px; }

/* â”€â”€ Cloche notifications â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.topbar-notif-wrap {
  position: relative;
}
.topbar-notif-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.topbar-notif-btn:hover { background: rgba(255,255,255,0.20); }
.topbar-notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: #e53e3e;
  color: #fff;
  font-size: 0.65rem; font-weight: 700;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #1c86ee;
  line-height: 1;
}
.topbar-notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px); right: 0;
  width: 320px;
  background: #1a2340;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  z-index: 900;
  overflow: hidden;
}
.topbar-notif-dropdown.open { display: block; }
.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 10px;
  font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.notif-read-all {
  font-size: 0.73rem; color: #60a5fa; background: none; border: none;
  cursor: pointer; padding: 0; font-family: var(--font);
}
.notif-read-all:hover { text-decoration: underline; }
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,0.06); }
.notif-item--unread { background: rgba(96,165,250,0.07); }
.notif-icon { font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.notif-icon--follow   { color: #60a5fa; }
.notif-icon--refused  { color: #f87171; }
.notif-content { flex: 1; min-width: 0; }
.notif-title { margin: 0 0 2px; font-size: 0.82rem; font-weight: 600; color: #fff; }
.notif-body  { margin: 0 0 4px; font-size: 0.75rem; color: rgba(255,255,255,0.55); }
.notif-time  { font-size: 0.7rem; color: rgba(255,255,255,0.35); }
.notif-dot {
  width: 7px; height: 7px;
  background: #60a5fa; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.notif-empty {
  padding: 32px 16px;
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
}
.notif-empty i { font-size: 1.6rem; display: block; margin-bottom: 8px; }
@media (max-width: 860px) {
  .topbar-notif-dropdown { width: calc(100vw - 32px); right: -50px; }
}

/* â”€â”€ IcÃ´ne Messages topbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.topbar-msg-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff; font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s;
  flex-shrink: 0;
}
.topbar-msg-btn:hover { background: rgba(255,255,255,0.20); }
.topbar-msg-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: #e53e3e; color: #fff;
  font-size: 0.65rem; font-weight: 700; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #1c86ee; line-height: 1;
}

/* â”€â”€ Bouton Message sur profil â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ep-hero-actions { display: flex; align-items: center; gap: 10px; }
.msg-profile-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 0.82rem; font-weight: 600;
  text-decoration: none; transition: background 0.15s;
}
.msg-profile-btn:hover { background: rgba(255,255,255,0.22); }

/* â”€â”€ Page /messages â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.msg-app {
  display: flex;
  height: calc(100vh - 175px);
  min-height: 400px;
  overflow: hidden;
  border-top: 1px solid var(--border, #e2e8f0);
}

/* Sidebar conversations */
.msg-sidebar {
  width: 300px; flex-shrink: 0;
  border-right: 1px solid var(--border, #e2e8f0);
  display: flex; flex-direction: column;
  background: var(--card-bg, #fff);
}
.msg-sidebar-header {
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  flex-shrink: 0;
}
.msg-sidebar-header h1 {
  margin: 0; font-size: 1rem; font-weight: 700; color: var(--text, #1a1a2e);
}
.msg-filters {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  flex-shrink: 0;
}
.msg-filter-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 12px;
  font-size: 0.74rem; font-weight: 500;
  background: var(--bg, #f5f7fb);
  border: 1px solid var(--border, #e2e8f0);
  color: var(--text-muted, #888); cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.msg-filter-btn:hover  { background: #eff6ff; border-color: #bfdbfe; color: #1c86ee; }
.msg-filter-btn.active { background: #1c86ee; border-color: #1c86ee; color: #fff; }
.msg-filter-btn.active .msg-filter-count { background: rgba(255,255,255,0.3); color: #fff; }
.msg-filter-count {
  background: rgba(0,0,0,0.08); color: inherit;
  border-radius: 8px; padding: 0 5px; font-size: 0.68rem; font-weight: 700;
}
.msg-filter-admin { border-color: #fbbf24; color: #92400e; background: #fffbeb; }
.msg-filter-admin:hover, .msg-filter-admin.active { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.msg-conv-list { flex: 1; overflow-y: auto; }
.msg-conv-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer;
  border-bottom: 1px solid var(--border, #f0f0f0);
  position: relative; transition: background 0.1s;
}
.msg-conv-item:hover  { background: var(--bg-hover, #f5f8ff); }
.msg-conv-item.active { background: #eff6ff; }
.msg-conv-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1c86ee, #0ea5e9);
}
.msg-conv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-av-letter { font-size: 1rem; font-weight: 700; color: #fff; }
.msg-conv-info { flex: 1; min-width: 0; }
.msg-conv-top { display: flex; justify-content: space-between; align-items: baseline; }
.msg-conv-name { font-size: 0.88rem; font-weight: 500; color: var(--text,#1a1a2e); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-conv-name.bold, .msg-conv-preview.bold { font-weight: 700; }
.msg-conv-time { font-size: 0.7rem; color: var(--text-muted,#aaa); flex-shrink: 0; margin-left: 6px; }
.msg-conv-preview { font-size: 0.78rem; color: var(--text-muted,#888); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-conv-del {
  position: absolute; right: 8px; bottom: 6px;
  background: none; border: none; cursor: pointer; padding: 4px 6px;
  color: #aaa; font-size: 0.75rem; border-radius: 6px;
  opacity: 0; transition: opacity .15s, color .15s;
  flex-shrink: 0;
}
.msg-conv-item:hover .msg-conv-del { opacity: 1; }
.msg-conv-del:hover { color: #e53e3e; }
.msg-conv-item { position: relative; }

.msg-conv-badge {
  min-width: 18px; height: 18px; padding: 0 4px;
  background: #1c86ee; color: #fff;
  font-size: 0.65rem; font-weight: 700; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.msg-conv-empty { padding: 32px 20px; text-align: center; color: var(--text-muted,#aaa); font-size: 0.85rem; }
.msg-conv-empty-sub { font-size: 0.78rem; margin-top: 6px; }

/* Panneau thread */
.msg-main {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden; background: var(--bg, #f5f7fb);
}
.msg-empty-state {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: var(--text-muted,#aaa); text-align: center;
  padding: 32px;
}
.msg-empty-state p { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.msg-auth-warn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; padding: 32px; text-align: center;
}
.msg-browse-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; background: #1c86ee; color: #fff;
  border-radius: 20px; font-size: 0.84rem; font-weight: 600;
  text-decoration: none; transition: background 0.15s;
}
.msg-browse-btn:hover { background: #1570d0; }
.msg-thread-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--card-bg, #fff);
  border-bottom: 1px solid var(--border, #e2e8f0);
  flex-shrink: 0;
}
.msg-back-btn {
  display: none; background: none; border: none;
  font-size: 1rem; color: var(--text-muted,#888); cursor: pointer; padding: 4px;
}
.msg-thread-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1c86ee, #0ea5e9);
}
.msg-thread-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-thread-name { font-size: 0.9rem; font-weight: 700; color: var(--text,#1a1a2e); text-decoration: none; display: block; }
.msg-thread-name:hover { text-decoration: underline; }
.msg-thread-meta { font-size: 0.72rem; color: var(--text-muted,#888); margin-top: 2px; display: block; }
html.dark-mode .msg-thread-meta { color: #7a9abf; }
.msg-thread-body {
  flex: 1; overflow-y: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
}
.msg-bubble {
  max-width: 70%; padding: 10px 14px; border-radius: 18px;
  font-size: 0.88rem; line-height: 1.5;
  display: flex; flex-direction: column; gap: 3px;
}
.msg-bubble p { margin: 0; word-break: break-word; }
.msg-mine {
  align-self: flex-end;
  background: #1c86ee; color: #fff; border-bottom-right-radius: 5px;
}
.msg-theirs {
  align-self: flex-start;
  background: var(--card-bg,#fff); color: var(--text,#1a1a2e);
  border: 1px solid var(--border,#e2e8f0); border-bottom-left-radius: 5px;
}
.msg-time { font-size: 0.65rem; opacity: 0.6; align-self: flex-end; }
.msg-mine .msg-time { color: rgba(255,255,255,0.75); }
.msg-compose {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 12px 16px;
  background: var(--card-bg,#fff);
  border-top: 1px solid var(--border,#e2e8f0);
  flex-shrink: 0;
}
.msg-input {
  flex: 1; padding: 10px 14px;
  background: var(--bg,#f5f7fb);
  border: 1px solid var(--border,#e2e8f0); border-radius: 20px;
  font-family: var(--font); font-size: 0.88rem; color: var(--text,#1a1a2e);
  resize: none; line-height: 1.5; min-height: 40px;
}
.msg-input:focus { outline: none; border-color: #1c86ee; }
.msg-send-btn {
  width: 40px; height: 40px; flex-shrink: 0;
  background: #1c86ee; color: #fff; border: none; border-radius: 50%;
  font-size: 0.9rem; cursor: pointer; transition: background 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.msg-send-btn:hover { background: #1570d0; }
.msg-loading { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 40px; color: var(--text-muted,#aaa); font-size: 1rem; }
.msg-thread-new {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 40px 24px; text-align: center;
  color: var(--text-muted,#aaa); font-size: 0.88rem;
}
.msg-thread-new i { font-size: 2rem; opacity: 0.5; }
.msg-thread-new p { margin: 0; line-height: 1.6; }

/* Mobile */
@media (max-width: 700px) {
  .msg-app { height: calc(100vh - 100px); }
  .msg-sidebar { width: 100%; border-right: none; }
  .msg-main { display: none; }
  .msg-back-btn { display: block; }
  .msg-app.msg-thread-open .msg-sidebar { display: none; }
  .msg-app.msg-thread-open .msg-main    { display: flex; }
}
@media (min-width: 701px) {
  .msg-back-btn { display: none !important; }
}

/* â”€â”€ Messagerie â€” thÃ¨me sombre â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.dark-mode .msg-app        { border-top-color: rgba(255,255,255,0.08); }
html.dark-mode .msg-sidebar    { background: #0e1e36; border-right-color: rgba(255,255,255,0.08); }
html.dark-mode .msg-sidebar-header { border-bottom-color: rgba(255,255,255,0.08); }
html.dark-mode .msg-sidebar-header h1 { color: #d0e0f0; }
html.dark-mode .msg-filters    { border-bottom-color: rgba(255,255,255,0.08); background: #0e1e36; }
html.dark-mode .msg-filter-btn {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: #7a9abf;
}
html.dark-mode .msg-filter-btn:hover  { background: #1a3258; border-color: #2a5298; color: #a0c4f8; }
html.dark-mode .msg-filter-btn.active { background: #1c86ee; border-color: #1c86ee; color: #fff; }
html.dark-mode .msg-filter-admin      { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.35); color: #fbbf24; }
html.dark-mode .msg-filter-admin:hover,
html.dark-mode .msg-filter-admin.active { background: #f59e0b; border-color: #f59e0b; color: #fff; }
html.dark-mode .msg-conv-list  { background: #0e1e36; }
html.dark-mode .msg-conv-item  { border-bottom-color: rgba(255,255,255,0.06); }
html.dark-mode .msg-conv-item:hover  { background: #152a45; }
html.dark-mode .msg-conv-item.active { background: #1a3258; }
html.dark-mode .msg-conv-name  { color: #d0e0f0; }
html.dark-mode .msg-conv-time  { color: #4a6a8a; }
html.dark-mode .msg-conv-preview { color: #5a7090; }
html.dark-mode .msg-conv-empty { color: #4a6a8a; }
html.dark-mode .msg-main       { background: #0d1b2e; }
html.dark-mode .msg-thread-header { background: #0e1e36; border-bottom-color: rgba(255,255,255,0.08); }
html.dark-mode .msg-thread-name   { color: #d0e0f0; }
html.dark-mode .msg-thread-body   { background: #0d1b2e; }
html.dark-mode .msg-theirs {
  background: #152a45;
  color: #d0e0f0;
  border-color: rgba(255,255,255,0.08);
}
html.dark-mode .msg-compose { background: #0e1e36; border-top-color: rgba(255,255,255,0.08); }
html.dark-mode .msg-input {
  background: #152a45;
  border-color: rgba(255,255,255,0.10);
  color: #d0e0f0;
}
html.dark-mode .msg-input:focus { border-color: #1c86ee; }
html.dark-mode .msg-input::placeholder { color: #4a6a8a; }
html.dark-mode .msg-send-btn { background: #1c86ee; }
html.dark-mode .msg-empty-state { color: #4a6a8a; }
html.dark-mode .msg-thread-new { color: #5a7090; }
html.dark-mode .msg-loading    { color: #4a6a8a; }
html.dark-mode .msg-conv-del   { color: #4a6a8a; }
html.dark-mode .msg-conv-del:hover { color: #f87171; }
html.dark-mode .msg-back-btn   { color: #7a9abf; }

/* â”€â”€ Page Membres â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.membres-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 24px;
}
.membres-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.membres-select {
  height: 38px; padding: 0 12px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  font-size: 0.85rem; color: var(--text, #1a1a2e);
  cursor: pointer; font-family: var(--font);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 28px;
}
.membres-city-wrap {
  position: relative; display: flex; align-items: center;
}
.membres-city-wrap i {
  position: absolute; left: 10px;
  color: var(--text-muted, #888); font-size: 0.78rem; pointer-events: none;
}
.membres-city-input {
  height: 38px; padding: 0 12px 0 28px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  font-size: 0.85rem; color: var(--text, #1a1a2e);
  font-family: var(--font); width: 170px;
}
.membres-city-input:focus { outline: none; border-color: #1c86ee; }

.membres-view-toggle { display: flex; gap: 4px; }
.membres-view-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-bg, #fff); border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px; cursor: pointer;
  color: var(--text-muted, #888); font-size: 0.85rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.membres-view-btn.active { background: #1c86ee; border-color: #1c86ee; color: #fff; }

/* Grille cards */
.membres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.membre-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 20px 12px 16px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px; text-decoration: none;
  color: var(--text, #1a1a2e);
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
}
.membre-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.10); }
.membre-card-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1c86ee, #0ea5e9);
  flex-shrink: 0;
}
.membre-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.membre-avatar-letter { font-size: 1.4rem; font-weight: 700; color: #fff; }
.membre-card-pseudo { font-weight: 700; font-size: 0.9rem; line-height: 1.2; }
.membre-rank { font-size: 0.72rem; color: var(--text-muted, #666); }
.membre-card-age { font-size: 0.72rem; color: var(--text-muted, #666); }
.membre-age { font-size: 0.72rem; color: var(--text-muted, #666); }
.membre-age-na, .msg-age-na { opacity: .45; font-style: italic; }
.membre-card-meta { font-size: 0.72rem; color: var(--text-muted, #666); }

/* Vue liste */
.membres-list { display: flex; flex-direction: column; gap: 8px; }
.membre-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px; text-decoration: none;
  color: var(--text, #1a1a2e);
  transition: background 0.12s;
}
.membre-row:hover { background: var(--bg-hover, #f5f8ff); }
.membre-row-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1c86ee, #0ea5e9);
  flex-shrink: 0;
}
.membre-row-avatar img { width: 100%; height: 100%; object-fit: cover; }
.membre-row-avatar .membre-avatar-letter { font-size: 1rem; }
.membre-row-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.membre-row-pseudo { font-weight: 700; font-size: 0.9rem; }
.membre-city { font-size: 0.78rem; color: var(--text-muted, #888); }
.membre-city i { margin-right: 3px; }
.membre-row-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.membre-obs { font-size: 0.78rem; color: var(--text-muted, #888); }
.membre-obs i { margin-right: 3px; color: #1c86ee; }
.membre-row-arrow { color: var(--text-muted, #ccc); font-size: 0.75rem; }

.membres-loader { text-align: center; padding: 24px; color: var(--text-muted, #888); font-size: 0.9rem; }
.membres-end { text-align: center; padding: 20px; color: var(--text-muted, #aaa); font-size: 0.82rem; }

@media (max-width: 600px) {
  .membres-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .membres-city-input { width: 130px; }
  .membres-filters { gap: 8px; }
  .membre-row-meta { display: none; }
}

/* Sur mobile : cacher search et favs, garder connexion rÃ©duit */
@media (max-width: 860px) {
  .topbar-search-wrap { display: none; }
  .topbar-favs-wrap   { display: none; }
  .topbar-connexion-pill span { display: none; }
  .topbar-connexion-pill { padding: 0 10px; }
  .topbar-connexion-pill.logged-in { padding: 3px 8px 3px 3px; }
  .topbar-connexion-pill.logged-in .topbar-user-name { display: none; }
  .topbar-right { margin-left: 0; }
  .topbar-user-dropdown { right: -8px; width: 260px; }
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HERO (HOME)
   ============================================================ */
.hero {
  min-height: 36vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 24px 40px;
  position: relative;
  text-align: center;
  margin-bottom: 32px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero h1 em {
  font-style: normal;
  color: rgba(255,255,255,0.85);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* SEARCH BOX */
.search-wrapper {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  z-index: 10;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  transition: border-color 0.2s, background 0.2s;
}

.search-box:focus-within {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.7);
}

.search-icon {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-right: 12px;
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: #fff;
  font-family: var(--font);
  min-width: 0;
}

.search-box input::placeholder { color: rgba(255,255,255,0.55); }

.geoloc-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.geoloc-btn:hover { background: rgba(255,255,255,0.4); transform: scale(1.05); }
.geoloc-btn.loading i { animation: spin 1s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* AUTOCOMPLETE */
.autocomplete-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  list-style: none;
  background: rgba(20,40,70,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
  z-index: 1200;
  box-shadow: var(--shadow);
}

.autocomplete-list:empty { display: none; }

.autocomplete-list li {
  padding: 13px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}

.autocomplete-list li:last-child { border-bottom: none; }
.autocomplete-list li:hover, .autocomplete-list li.active { background: rgba(255,255,255,0.12); }

.autocomplete-list li i { color: rgba(255,255,255,0.65); font-size: 0.8rem; }

/* ThÃ¨me clair â€” autocomplete */
html:not(.dark-mode) .autocomplete-list {
  background: #fff;
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}
html:not(.dark-mode) .autocomplete-list li {
  color: #1a2a4a;
  border-bottom-color: rgba(0,0,0,0.06);
}
html:not(.dark-mode) .autocomplete-list li:hover,
html:not(.dark-mode) .autocomplete-list li.active { background: #eef4ff; color: #0a4a8a; }
html:not(.dark-mode) .autocomplete-list li i { color: #5a7090; }

/* La sidebar est toujours sombre, mÃªme en thÃ¨me clair */
html:not(.dark-mode) .sidebar-search .autocomplete-list {
  background: rgba(20,40,70,0.95);
  border-color: rgba(255,255,255,0.15);
  box-shadow: var(--shadow);
}
html:not(.dark-mode) .sidebar-search .autocomplete-list li { color: #fff; border-bottom-color: rgba(255,255,255,0.06); }
html:not(.dark-mode) .sidebar-search .autocomplete-list li:hover,
html:not(.dark-mode) .sidebar-search .autocomplete-list li.active { background: rgba(255,255,255,0.12); color: #fff; }
html:not(.dark-mode) .sidebar-search .autocomplete-list li i { color: rgba(255,255,255,0.65); }

.ac-name { font-weight: 500; }
.ac-dept { color: var(--text-secondary); font-size: 0.82rem; margin-left: auto; }

.geoloc-status {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  min-height: 20px;
}

/* CLOUDS ANIMATION */
.sky-anim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
}

.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.c1 { width: 200px; height: 60px; top: 18%; left: -80px; animation: driftCloud 20s linear infinite; }
.c1::before { width: 80px; height: 80px; top: -40px; left: 20px; }
.c1::after  { width: 60px; height: 60px; top: -30px; left: 90px; }

.c2 { width: 140px; height: 45px; top: 40%; left: -60px; animation: driftCloud 28s linear infinite 5s; }
.c2::before { width: 60px; height: 60px; top: -30px; left: 15px; }

.c3 { width: 180px; height: 55px; top: 65%; right: -80px; animation: driftCloudR 25s linear infinite 10s; }

@keyframes driftCloud  { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 300px)); } }
@keyframes driftCloudR { from { transform: translateX(0); } to { transform: translateX(calc(-100vw - 300px)); } }

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i { opacity: 0.85; }

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

/* ============================================================
   MY WEATHER SECTION
   ============================================================ */
.my-weather-section {
  padding: 40px 0;
}

/* ============================================================
   QUICK WEATHER CARD (used in map panel + popular)  â€” Liquid Glass
   ============================================================ */
.quick-card {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s, background 0.22s;
  display: flex;
  align-items: center;
  position: relative;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 8px 24px rgba(0,0,0,0.12);
}

.quick-card:hover {
  transform: translateY(-4px) scale(1.01);
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 16px 40px rgba(0,0,0,0.2);
}

.qc-icon { font-size: 2.4rem; line-height: 1; flex-shrink: 0; }

.qc-body { flex: 1; min-width: 0; }

.qc-city { font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.qc-desc { color: var(--text-secondary); font-size: 0.82rem; margin-top: 2px; }

.qc-temp { font-size: 2rem; font-weight: 300; flex-shrink: 0; }

.qc-range { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; text-align: right; }

/* ============================================================
   FRANCE MAP
   ============================================================ */
.map-section {
  padding: 60px 0 80px;
}

.map-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.france-map-container {
  flex: 0 0 auto;
  position: relative;
  width: min(500px, 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.30);
}

/* â”€â”€ Image relief â”€â”€ */
.france-relief-img {
  display: block;
  width: 100%;
  height: auto;
  /* Tinte l'image verte pour harmoniser avec le fond sombre du site */
  filter: saturate(0.55) brightness(0.90) contrast(1.05);
  mix-blend-mode: normal;
  border-radius: 20px;
  user-select: none;
  pointer-events: none;
}

/* â”€â”€ Couche de marqueurs â”€â”€ */
#map-markers-layer {
  position: absolute;
  inset: 0;
  pointer-events: none; /* les marqueurs eux-mÃªmes gÃ¨rent leurs Ã©vÃ©nements */
}

/* â”€â”€ Marqueur individuel â”€â”€ */
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  z-index: 2;
}

/* Point central */
.mm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
  transition: transform 0.15s, background 0.15s;
  margin: auto;
}

/* Bulle mÃ©tÃ©o au-dessus du point */
.mm-bubble {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 20, 45, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 3px 7px;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mm-bubble.loaded { opacity: 1; }

.mm-emoji { font-size: 0.82rem; line-height: 1; }
.mm-temp  { color: rgba(255,255,255,0.90); }

/* Anneau de pulsation */
.mm-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  animation: mm-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes mm-pulse {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: 0.6; }
  80%  { transform: translate(-50%,-50%) scale(3.5); opacity: 0; }
  100% { opacity: 0; }
}

/* Hover */
.map-marker.hovered .mm-dot,
.map-marker.active  .mm-dot {
  transform: scale(1.5);
  background: #FFD700;
  border-color: #FFD700;
}

.map-marker.active .mm-dot {
  box-shadow: 0 0 12px rgba(255,215,0,0.6);
}

/* Map tooltip */
.map-tooltip {
  position: absolute;
  background: rgba(10,20,40,0.88);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.15);
}

.map-tooltip.visible { opacity: 1; }

/* Map city panel */
.map-city-panel {
  flex: 1;
  min-width: 230px;
}

.map-city-placeholder {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.map-city-placeholder i {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.map-city-placeholder p { font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   POPULAR CITIES
   ============================================================ */
.popular-section {
  padding: 0 0 80px;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

/* ============================================================
   DOM-TOM
   ============================================================ */
.domtom-section {
  padding: 0 0 60px;
}

.domtom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.domtom-card {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 6px 20px rgba(0,0,0,0.10);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, background 0.2s;
}

.domtom-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.26);
}

.domtom-flag { font-size: 2rem; flex-shrink: 0; }
.domtom-weather-icon { font-size: 1.9rem; flex-shrink: 0; line-height: 1; }
.domtom-body { flex: 1; min-width: 0; }
.domtom-name { font-weight: 700; font-size: 0.95rem; }
.domtom-region { color: var(--text-secondary); font-size: 0.78rem; margin-top: 2px; }
.domtom-weather-label { font-size: 0.75rem; color: var(--text-secondary); margin-top: 3px; }
.domtom-temp { font-size: 1.6rem; font-weight: 300; flex-shrink: 0; }

/* ============================================================
   FOOTER RICHE â€” multi-colonnes
   ============================================================ */
.footer {
  background: #07101f;
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.07);
  font-family: var(--font);
}

/* â”€â”€ Partie haute : colonnes de liens â”€â”€ */
.footer-top { padding: 52px 0 44px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px 32px;
}

/* Colonne marque */
.footer-brand .footer-logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.footer-brand .footer-logo-mark i { color: #4fc3f7; font-size: 1.3rem; }
.footer-tagline {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.6;
  max-width: 230px;
}
.footer-tagline strong { color: rgba(255,255,255,0.55); font-weight: 600; }

/* Footer â€” rÃ©seaux sociaux */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none !important;
}
.footer-social-btn:hover { text-decoration: none !important; }
.footer-social-btn:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* Colonnes liens */
.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a i { font-size: 0.78rem; width: 14px; text-align: center; flex-shrink: 0; color: rgba(255,255,255,0.3); transition: color 0.15s; }
.footer-col a:hover { color: #4fc3f7; }
.footer-col a:hover i { color: #4fc3f7; }

/* â”€â”€ Bandeau recherche â”€â”€ */
.footer-search-bar {
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
}
.footer-search-form { display: flex; flex-direction: column; gap: 10px; }
.footer-search-label { color: rgba(255,255,255,0.55); font-size: 0.82rem; display: flex; align-items: center; gap: 7px; }
.footer-search-label i { color: rgba(255,255,255,0.3); }
.footer-search-inner { display: flex; gap: 0; max-width: 560px; width: 100%; }
.footer-search-inner input[type="search"] {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-right: none;
  border-radius: 6px 0 0 6px;
  color: #fff;
  padding: 9px 14px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.footer-search-inner input[type="search"]::placeholder { color: rgba(255,255,255,0.3); }
.footer-search-inner input[type="search"]:focus { border-color: #4fc3f7; background: rgba(255,255,255,0.1); }
.footer-search-inner button {
  background: #4fc3f7;
  border: none;
  border-radius: 0 6px 6px 0;
  color: #0d1b2a;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.footer-search-inner button:hover { background: #38b2e8; }

/* â”€â”€ Barre basse â”€â”€ */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-data-credits {
  font-size: 0.77rem;
  color: rgba(255,255,255,0.30);
}
.footer-data-credits a {
  color: rgba(255,255,255,0.45);
  text-decoration: underline;
  transition: color 0.15s;
}
.footer-data-credits a:hover { color: #4fc3f7; }

.footer-links-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.77rem;
  color: rgba(255,255,255,0.30);
}
.footer-links-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.15s; }
.footer-links-bottom a:hover { color: #4fc3f7; }
.footer-sep { opacity: 0.3; }

.footer-copy {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.22);
  width: 100%;
  text-align: center;
  margin-top: 6px;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-col:last-child { display: none; } /* masquer villes sur tablette */
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { display: block; }
  .footer-top { padding: 36px 0 28px; }
  .footer-bottom-inner { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  .footer-copy { margin-top: 2px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
}

/* â”€â”€ Dark mode (dÃ©jÃ  sombre, lÃ©ger ajustement) â”€â”€ */
.dark-mode .footer { background: #04090f; }

/* ============================================================
   METEO PAGE â€” LOADING & ERROR
   ============================================================ */
.loading-screen, .error-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--topbar-h));
  gap: 16px;
  text-align: center;
  flex: 1;
}

.loader-icon i { font-size: 3rem; color: rgba(255,255,255,0.7); }
.loading-screen p { color: var(--text-secondary); }

.error-screen i { font-size: 3rem; color: rgba(255,200,50,0.9); }
.error-screen h2 { font-size: 1.4rem; }
.error-screen p { color: var(--text-secondary); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
  margin-top: 8px;
}

.btn-primary:hover { background: rgba(255,255,255,0.32); }

/* ============================================================
   METEO PAGE â€” CURRENT WEATHER HERO
   ============================================================ */
.meteo-page { padding-top: 0; }

.current-weather-hero {
  text-align: center;
  padding: 48px 24px 48px;
  position: relative;
}

.hero-city-name {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-region {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
  margin-bottom: 16px;
}

.hero-weather-icon {
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  margin: 16px 0;
  /* drop-shadow removed â€” caused dark outline around emoji icons */
}

.hero-temp {
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 200;
  letter-spacing: -4px;
  line-height: 1;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 8px;
  text-transform: capitalize;
}

.hero-range {
  margin-top: 8px;
  font-size: 1.1rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.range-sep { opacity: 0.4; }

/* ============================================================
   METEO CARDS WRAPPER â€” CSS columns masonry (vrai masonry)
   ============================================================ */
.meteo-cards-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px 80px;
  columns: 2;
  column-gap: 18px;
}

/* Blocs pleine largeur au-dessus du masonry */
.meteo-top-wide {
  max-width: 1060px;
  margin: 0 auto 20px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.meteo-top-wide .meteo-card { margin-bottom: 0; }

/* Full-width cards â€” s'Ã©tendent sur les 2 colonnes */
#section-radar {
  column-span: all;
  margin-bottom: 18px;
}

/* Chaque carte ne se coupe pas entre colonnes */

/* Liquid Glass card */
.meteo-card {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(48px) saturate(200%) brightness(1.05);
  -webkit-backdrop-filter: blur(48px) saturate(200%) brightness(1.05);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    0 20px 60px rgba(0,0,0,0.15);
  /* Masonry : Ã©viter la coupure entre colonnes + espacement */
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 18px;
  display: inline-block; /* requis pour CSS columns masonry */
  width: 100%;
  box-sizing: border-box;
}

/* Top-edge glass shimmer */
.meteo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Subtle inner gradient layer */
.meteo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(255,255,255,0.07) 0%, transparent 55%);
  pointer-events: none;
  border-radius: inherit;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  position: relative;
  z-index: 2;
}

.card-header i { font-size: 1rem; opacity: 0.8; }

/* ============================================================
   HOURLY FORECAST
   ============================================================ */
.hourly-scroll {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 16px 14px;
  scrollbar-width: none;
}

.hourly-scroll::-webkit-scrollbar { display: none; }

.hourly-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  min-width: 56px;
  transition: background 0.15s;
}

.hourly-item:hover { background: rgba(255,255,255,0.12); }
.hourly-item.now { background: rgba(255,255,255,0.18); }

.h-time { font-size: 0.78rem; color: var(--text-secondary); font-weight: 600; }
.h-icon { font-size: 1.5rem; line-height: 1; }
.h-temp { font-size: 0.95rem; font-weight: 600; }
.h-rain {
  font-size: 0.72rem;
  color: rgba(120,200,255,0.9);
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ============================================================
   7-DAY FORECAST
   ============================================================ */
.daily-list { padding: 0 0 8px; }

.daily-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 13px 18px;
  gap: 14px;
  position: relative;
  transition: background 0.15s;
}

/* SÃ©parateur pleine largeur (bord Ã  bord de la card) */
.daily-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.07);
}
.daily-item:last-child::after { display: none; }
.daily-item:hover { background: rgba(255,255,255,0.05); }

/* RangÃ©e de donnÃ©es (desktop : inline, mobile : colonne) */
.d-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.d-day  { font-weight: 600; font-size: 0.88rem; width: 110px; flex-shrink: 0; }
.d-icon { font-size: 1.4rem; flex-shrink: 0; width: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.d-apm  { opacity: 0.82; }
.d-prob { font-size: 0.68rem; color: #5aacf5; font-weight: 600; line-height: 1; }

/* Colonne temp : barre + min/max empilÃ©s */
.d-temp-col { width: 120px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }
.d-temp-col .d-bar-wrap { flex: none; width: 100%; }

/* Vent */
.d-wind   { width: 72px; flex-shrink: 0; font-size: 0.78rem; color: var(--text-secondary); text-align: right; white-space: nowrap; }
.d-wind i { font-size: 0.72rem; opacity: 0.7; }

/* En-tÃªtes colonnes daily */
.d-header { display: flex; align-items: center; gap: 14px; padding: 7px 18px; background: rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.12); }
.d-hrow   { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.d-hcell  { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); white-space: nowrap; text-align: center; }
.d-hdate  { width: 110px; flex-shrink: 0; text-align: left; }
.d-hicon  { width: 30px; flex-shrink: 0; }
.d-htemp  { width: 120px; flex-shrink: 0; }
.d-hwind  { width: 72px; flex-shrink: 0; text-align: right; }
.d-hobs   { flex: 1; text-align: left; }
@media (max-width: 700px) { .d-header { display: none; } }

/* Quatre phrases */
.d-desc    { flex: 1; font-size: 0.80rem; line-height: 1.55; color: var(--text-secondary); }
.d-desc-s1 { color: var(--text-primary); font-weight: 500; display: block; }
.d-desc-s4 { display: block; margin-top: 1px; }
.d-desc-s2 { display: block; margin-top: 1px; }
.d-desc-s3 { display: block; margin-top: 1px; }

html:not(.dark-mode) body.meteo-page .d-desc-s1 { color: #1a2a4a; }
html:not(.dark-mode) body.meteo-page .d-wind    { color: #5a7090; }
html:not(.dark-mode) body.meteo-page .daily-item::after { background: rgba(0,0,0,0.07); }

/* Mobile : phrases sous les donnÃ©es */
@media (max-width: 700px) {
  .daily-item   { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px; }
  .d-row        { width: 100%; }
  .d-day        { width: 90px; font-size: 0.82rem; }
  .d-temp-col   { flex: 1; width: auto; min-width: 80px; }
  .d-desc       { width: 100%; font-size: 0.79rem; }
  .d-range      { justify-content: center; }
}

.d-range {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.d-max { font-weight: 600; }
.d-min { color: var(--text-secondary); }

/* temp bar */
.d-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
  max-width: 100px;
}

.d-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #6dc8fa, #f8a030);
}

/* ============================================================
   DETAILS GRID
   ============================================================ */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.08);
}

.detail-item {
  background: transparent;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-value {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.5px;
  line-height: 1;
}

.detail-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================================
   SUNRISE / SUNSET
   ============================================================ */
.sun-bar-wrapper { padding: 18px 20px 22px; }

.sun-times {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sun-time {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sun-time i { font-size: 1.2rem; }
.sun-time-label { font-size: 0.75rem; color: var(--text-secondary); }
.sun-time-val { font-size: 1.1rem; font-weight: 600; }

.sun-arc-wrap {
  position: relative;
  overflow: visible;
}

.sun-arc-svg { width: 100%; height: auto; display: block; }

/* ============================================================
   RAIN RADAR
   ============================================================ */
.radar-wrapper {
  height: 360px;
  position: relative;
}

.radar-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   WEATHER ICON ANIMATIONS
   ============================================================ */
.wi-animated {
  display: inline-block;
  position: relative;
  width: 1em;
  height: 1em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet & below â€” sidebar becomes overlay */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .site-main {
    margin-left: 0;
    overflow-x: clip; /* clip â‰  hidden : ne crÃ©e pas de scroll-container, prÃ©serve position:sticky du topbar */
  }

  .burger-btn  { display: flex; }
  .topbar-logo { display: flex; }
}

/* Map layout */
@media (max-width: 860px) {
  .map-wrapper {
    flex-direction: column;
  }

  .france-map-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .map-city-panel {
    width: 100%;
  }
}

/* Masonry single column on medium screens */
@media (max-width: 860px) {
  .meteo-cards-wrapper {
    columns: 1;
  }
}

/* â”€â”€ BanniÃ¨re invitation observation â”€â”€ */
/* â”€â”€ Widget description SEO ville â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.city-seo-widget { padding-bottom: 16px; }
.city-seo-widget h3 { padding: 0 16px; }
.city-seo-text {
  font-size: .85rem;
  line-height: 1.6;
  color: #555;
  margin: 12px 0 0;
  padding: 0 16px;
}
html.dark-mode .city-seo-text { color: rgba(255,255,255,.45); }
.city-seo-forecast {
  font-size: .9rem;
  color: #333;
  margin-bottom: 4px;
}
html.dark-mode .city-seo-forecast { color: rgba(255,255,255,.7); }
.city-seo-forecast strong { color: #1a6eb5; font-weight: 700; }
html.dark-mode .city-seo-forecast strong { color: #5ba3e8; }

.obs-invite-banner {
  max-width: 1060px;
  margin: 0 auto 20px;
  padding: 0 20px;
}
.obs-invite-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #1c6fc9 0%, #2a90e0 100%);
  border-radius: 14px;
  padding: 18px 22px;
  color: #fff;
}
.obs-invite-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.obs-invite-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.obs-invite-text strong {
  font-size: 1rem;
  font-weight: 700;
}
.obs-invite-text span {
  font-size: 0.85rem;
  opacity: 0.88;
}
.obs-invite-btn {
  flex-shrink: 0;
  background: #fff;
  color: #1060c0;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.obs-invite-btn:hover  { background: #e8f0ff; transform: translateY(-1px); }
.obs-invite-btn:active { transform: translateY(0); }
html.dark-mode .obs-invite-inner { background: linear-gradient(135deg, #0e4a8a 0%, #1565b0 100%); }
@media (max-width: 600px) {
  .obs-invite-inner { flex-wrap: wrap; }
  .obs-invite-btn   { width: 100%; justify-content: center; }
}

/* Mobile */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.7rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .details-grid { grid-template-columns: 1fr 1fr; }
  .d-bar-wrap { display: none; }
  .topbar-city { font-size: 0.85rem; }
}

@media (max-width: 380px) {
  .details-grid { grid-template-columns: 1fr; }
}

/* Wide screens â€” slightly wider sidebar */
@media (min-width: 1440px) {
  :root { --sidebar-w: 264px; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 10px 20px 14px;
  max-width: 1060px;
  margin: 0;
}

.breadcrumb ol {
  list-style: none !important;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.breadcrumb li + li::before {
  content: 'â€º';
  margin-right: 6px;
  opacity: 0.4;
}

.breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.15s; }
.breadcrumb a:hover { color: #fff; }

/* Breadcrumb sur fond clair (home-light, mentions lÃ©gales) */
body.home-light .breadcrumb ol,
.breadcrumb-light ol {
  color: rgba(26,42,74,0.50);
}
body.home-light .breadcrumb a,
.breadcrumb-light a { color: #1c86ee; }
body.home-light .breadcrumb a:hover,
.breadcrumb-light a:hover { color: #0a5fc0; }
body.home-light .breadcrumb li + li::before,
.breadcrumb-light li + li::before { opacity: 0.3; color: #1a2a4a; }

/* Breadcrumb en thÃ¨me sombre : forcer blanc */
html.dark-mode body.home-light .breadcrumb ol,
html.dark-mode .breadcrumb-light ol { color: #fff; }
html.dark-mode body.home-light .breadcrumb a,
html.dark-mode .breadcrumb-light a { color: rgba(255,255,255,0.75); }
html.dark-mode body.home-light .breadcrumb a:hover,
html.dark-mode .breadcrumb-light a:hover { color: #fff; }
html.dark-mode body.home-light .breadcrumb li + li::before,
html.dark-mode .breadcrumb-light li + li::before { color: #fff; opacity: 0.4; }

/* ============================================================
   SAINT DU JOUR (homepage)
   ============================================================ */
.saint-banner {
  text-align: center;
  padding: 10px 24px 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.2px;
}

.saint-banner i { margin-right: 6px; color: rgba(255,200,100,0.8); }
.saint-banner strong { color: rgba(255,255,255,0.9); font-weight: 600; }
.saint-date { font-style: normal; }

/* ============================================================
   RECENT CITIES
   ============================================================ */
.recent-cities-row {
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

.recent-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.recent-chip {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: background 0.18s, transform 0.15s;
}

.recent-chip:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-1px);
  color: #fff;
}

/* ============================================================
   MOON PHASE SIDEBAR
   ============================================================ */
.sb-moon-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.sb-moon-emoji { font-size: 1.2rem; }
.sb-moon-label { color: rgba(255,255,255,0.65); }

/* ============================================================
   STUB PAGES
   ============================================================ */
.stub-page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--topbar-h) - 60px);
  padding: 40px 24px;
  text-align: center;
  gap: 20px;
}

.stub-icon { font-size: 4rem; opacity: 0.6; }
.stub-title { font-size: 2rem; font-weight: 700; }
.stub-desc { color: var(--text-secondary); max-width: 480px; line-height: 1.7; }

.stub-iframe-wrap {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.stub-iframe-wrap iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* â”€â”€ Bloc radar animÃ© meteo60 â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.radar-meteo60-block {
  margin-top: 12px;
  padding: 28px 0 8px;
}
.radar-meteo60-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.radar-meteo60-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  display: inline-block;
  max-width: 100%;
}
.radar-meteo60-img {
  display: block;
  max-width: 100%;
  height: auto;
}
.radar-meteo60-source {
  margin-top: 10px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.50);
}
.radar-meteo60-source a {
  color: rgba(255,255,255,0.70);
  text-decoration: underline;
}
.radar-meteo60-source a:hover { color: #fff; }

/* ============================================================
   PAGE RECORDS DE TEMPÃ‰RATURE
   ============================================================ */

.rec-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.rec-section-title i { color: rgba(255,255,255,0.55); }

/* â”€â”€ Records absolus â”€â”€ */
.rec-absolus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.rec-abs-card {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 20px 60px rgba(0,0,0,0.18);
}

.rec-abs-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.rec-abs-hot {
  border: 1px solid rgba(255,120,50,0.35);
  background: linear-gradient(145deg, rgba(255,100,30,0.12), rgba(255,255,255,0.06));
}

.rec-abs-cold {
  border: 1px solid rgba(80,180,255,0.35);
  background: linear-gradient(145deg, rgba(60,150,255,0.12), rgba(255,255,255,0.06));
}

.rec-abs-crown { font-size: 2.2rem; margin-bottom: 10px; }

.rec-abs-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}

.rec-abs-value {
  font-size: 3.8rem;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 14px;
}

.rec-abs-hot .rec-abs-value  { color: #ffb07a; }
.rec-abs-cold .rec-abs-value { color: #7ecfff; }

.rec-abs-lieu,
.rec-abs-date {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.68);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rec-abs-lieu i { color: rgba(255,255,255,0.35); }
.rec-abs-date i { color: rgba(255,255,255,0.35); }

.rec-abs-ctx {
  font-size: 0.80rem;
  color: rgba(255,255,255,0.50);
  line-height: 1.55;
  margin: 12px 0 16px;
}

.rec-abs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
}

.rec-badge-hot  { background: rgba(255,100,30,0.18); color: #ffab70; border: 1px solid rgba(255,100,30,0.28); }
.rec-badge-cold { background: rgba(60,150,255,0.18); color: #80d4ff; border: 1px solid rgba(60,150,255,0.28); }

/* â”€â”€ Table mensuelle â”€â”€ */
.rec-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
}

.rec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.rec-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.th-hot { color: #ffab70 !important; }
.th-cold { color: #80d4ff !important; }

.rec-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}

.rec-table tbody tr:last-child { border-bottom: none; }
.rec-table tbody tr:hover { background: rgba(255,255,255,0.04); }

.rec-table td {
  padding: 12px 18px;
  vertical-align: middle;
}

.rec-month {
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}

.rec-max, .rec-min {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rec-temp {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.rec-temp-hot  { color: #ffb07a; }
.rec-temp-cold { color: #7ecfff; }

.rec-detail {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
}

/* â”€â”€ Ã‰vÃ©nements mÃ©morables â”€â”€ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.event-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.event-chaleur { border-color: rgba(255,100,30,0.25); }
.event-froid   { border-color: rgba(80,180,255,0.25); }

.event-year {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
}

.event-type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.event-badge-chaleur { background: rgba(255,100,30,0.18); color: #ffab70; }
.event-badge-froid   { background: rgba(80,180,255,0.18); color: #80d4ff; }

.event-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.event-desc {
  font-size: 0.80rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}

/* â”€â”€ Section historique â”€â”€ */
.histo-controls {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin-top: 24px;
  flex-wrap: wrap;
}

.histo-ctrl-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 200px;
  position: relative;
}

.histo-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 6px;
}

.histo-search-box {
  position: relative;
}

.histo-search-box input,
.histo-date-input {
  width: 100%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.92rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.18s;
}

.histo-search-box input:focus,
.histo-date-input:focus { border-color: rgba(79,195,247,0.5); }

.histo-search-box input::placeholder { color: rgba(255,255,255,0.35); }

/* Date input â€” forcer couleur sur les navigateurs */
.histo-date-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.5;
  cursor: pointer;
}

.histo-autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: rgba(15,25,45,0.97);
  backdrop-filter: blur(32px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  list-style: none;
  z-index: 50;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.histo-autocomplete-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88rem;
  transition: background 0.14s;
}

.histo-autocomplete-list li:last-child { border-bottom: none; }
.histo-autocomplete-list li:hover { background: rgba(255,255,255,0.07); }
.histo-autocomplete-list li i { color: rgba(255,255,255,0.35); font-size: 0.8rem; }
.histo-autocomplete-list .ac-dept { color: rgba(255,255,255,0.40); font-size: 0.75rem; margin-left: auto; }

.histo-btn {
  background: rgba(79,195,247,0.18);
  border: 1px solid rgba(79,195,247,0.35);
  border-radius: 12px;
  color: #4fc3f7;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font);
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.histo-btn:hover { background: rgba(79,195,247,0.28); transform: translateY(-1px); }
.histo-btn i { margin-right: 6px; }

.histo-result-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 28px 0 16px;
  color: rgba(255,255,255,0.80);
  min-height: 1.4em;
}

/* Loading */
.histo-loading {
  padding: 32px;
  text-align: center;
  color: rgba(255,255,255,0.50);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.histo-loading i { color: #4fc3f7; }

.histo-error {
  padding: 24px;
  color: rgba(255,200,100,0.80);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Stats rÃ©sumÃ© */
.histo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.histo-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: center;
}

.histo-stat-hot  { border-color: rgba(255,100,30,0.28); }
.histo-stat-cold { border-color: rgba(80,180,255,0.28); }

.histo-stat-label {
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.40);
  margin-bottom: 8px;
  font-weight: 700;
}

.histo-stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.histo-stat-hot .histo-stat-val  { color: #ffb07a; }
.histo-stat-cold .histo-stat-val { color: #7ecfff; }
.histo-stat-avg .histo-stat-val  { color: #fff; font-size: 1.2rem; }

.histo-stat-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
  margin-top: 4px;
}

/* Graphique barres */
.histo-chart {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
}

.histo-chart-bars {
  display: flex;
  gap: 4px;
  align-items: stretch;
  height: 200px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.histo-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 34px;
}

.histo-bar-wrap {
  flex: 1;
  width: 100%;
  position: relative;
}

.histo-bar {
  position: absolute;
  left: 2px; right: 2px;
  background: linear-gradient(180deg, rgba(255,180,100,0.55), rgba(100,160,255,0.55));
  border-radius: 4px;
  transition: opacity 0.2s;
}

.histo-bar:hover { opacity: 0.85; }

.histo-bar-record-max {
  background: linear-gradient(180deg, rgba(255,80,20,0.85), rgba(255,150,50,0.70));
  box-shadow: 0 0 12px rgba(255,80,20,0.45);
}

.histo-bar-record-min {
  background: linear-gradient(180deg, rgba(100,200,255,0.70), rgba(30,120,255,0.85));
  box-shadow: 0 0 12px rgba(30,120,255,0.40);
}

.histo-rec-flag {
  position: absolute;
  font-size: 0.56rem;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 4px;
  white-space: nowrap;
  left: 50%;
  transform: translateX(-50%);
}

.histo-rec-hot {
  top: -18px;
  background: rgba(255,80,20,0.85);
  color: #fff;
}

.histo-rec-cold {
  bottom: -18px;
  background: rgba(30,120,255,0.85);
  color: #fff;
}

.histo-bar-year {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.35);
  margin-top: 6px;
  text-align: center;
  transform: rotate(-45deg);
  transform-origin: center top;
  white-space: nowrap;
}

/* LÃ©gende */
.histo-chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

.histo-chart-legend span { display: flex; align-items: center; gap: 6px; }
.histo-leg-max span { width: 12px; height: 12px; border-radius: 3px; background: rgba(255,180,100,0.65); }
.histo-leg-min span { width: 12px; height: 12px; border-radius: 3px; background: rgba(100,160,255,0.65); }
.histo-leg-rec span { width: 12px; height: 12px; border-radius: 3px; background: rgba(255,80,20,0.85); }

/* Tableau dÃ©taillÃ© (collapsible) */
.histo-table-wrap {
  margin-top: 12px;
}

.histo-table-wrap summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.50);
  padding: 8px 0;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.histo-table-wrap summary::before {
  content: 'â–¶';
  font-size: 0.6rem;
  transition: transform 0.2s;
}

.histo-table-wrap[open] summary::before { transform: rotate(90deg); }

.histo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 10px;
}

.histo-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.40);
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.histo-table td {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.75);
}

.td-max { color: #ffb07a; font-weight: 700; }
.td-min { color: #7ecfff; font-weight: 700; }

.row-rec-max td:nth-child(2) { background: rgba(255,80,20,0.12); border-radius: 4px; }
.row-rec-min td:nth-child(3) { background: rgba(30,120,255,0.12); border-radius: 4px; }

.histo-source {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.28);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Responsive records */
@media (max-width: 860px) {
  .rec-absolus-grid { grid-template-columns: 1fr; }
  .rec-abs-value { font-size: 3rem; }
  .histo-stats { grid-template-columns: 1fr 1fr; }
  .histo-stats .histo-stat-avg { grid-column: 1 / -1; }
  .histo-controls { flex-direction: column; align-items: stretch; }
  .histo-btn { width: 100%; justify-content: center; display: flex; }
}

/* ============================================================
   ACTUALITÃ‰S MÃ‰TÃ‰O
   ============================================================ */
.actu-section {
  padding: 50px 0 10px;
}

.actu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.actu-card {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(48px) saturate(200%) brightness(1.05);
  -webkit-backdrop-filter: blur(48px) saturate(200%) brightness(1.05);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 16px 48px rgba(0,0,0,0.14);
  transition: transform 0.2s, box-shadow 0.2s;
}

.actu-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.actu-cold  { border-color: rgba(100,180,255,0.30); }
.actu-heat  { border-color: rgba(255,140,50,0.30); }
.actu-event { border-color: rgba(255,200,50,0.30); }
.actu-vigilance { border-color: rgba(255,255,255,0.18); }

.actu-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.actu-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.actu-cold .actu-icon  { background: rgba(100,180,255,0.20); color: #7ec8ff; }
.actu-heat .actu-icon  { background: rgba(255,140,50,0.20); color: #ffab60; }
.actu-event .actu-icon { background: rgba(255,200,50,0.20); color: #ffe066; }
.actu-vigilance .actu-icon { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }

.actu-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.actu-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
}

.actu-date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.40);
}

.actu-value {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
}

.actu-value-sm {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.actu-cold .actu-value  { color: #a0d8ff; }
.actu-heat .actu-value  { color: #ffb070; }
.actu-event .actu-value { color: #ffe080; }

.actu-location {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.60);
  margin-bottom: 12px;
}

.actu-location i { margin-right: 4px; }

.actu-desc {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.70);
  line-height: 1.55;
  margin-bottom: 16px;
}

.actu-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}

.actu-badge i { font-size: 0.7rem; }

.actu-badge-cold    { background: rgba(100,180,255,0.18); color: #7ec8ff; border: 1px solid rgba(100,180,255,0.25); }
.actu-badge-heat    { background: rgba(255,140,50,0.18); color: #ffab60; border: 1px solid rgba(255,140,50,0.25); }
.actu-badge-event   { background: rgba(255,150,0,0.20); color: #ffc850; border: 1px solid rgba(255,150,0,0.30); }

/* Vigilances list */
.vigilance-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.vigilance-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
}

.vigi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vigi-red    { background: #e53935; }
.vigi-orange { background: #fb8c00; box-shadow: 0 0 6px rgba(251,140,0,0.5); }
.vigi-yellow { background: #fdd835; }
.vigi-green  { background: #43a047; }

.vigi-dept  { flex: 1; color: rgba(255,255,255,0.80); }
.vigi-type  { font-size: 0.75rem; color: rgba(255,255,255,0.45); font-style: italic; }

.actu-source {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}

.actu-source a {
  color: rgba(255,255,255,0.50);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.actu-source a:hover { color: rgba(255,255,255,0.80); }

.actu-disclaimer {
  margin-top: 20px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.30);
  text-align: center;
  font-style: italic;
}

.actu-disclaimer i { margin-right: 5px; }

/* ============================================================
   BLOC SEO / PRÃ‰SENTATION
   ============================================================ */
.seo-section {
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 0;
}
@media (max-width: 860px) {
  .seo-section { padding-top: 0; margin-top: 0; }
}

.seo-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: start;
}

.seo-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.seo-title i { color: rgba(255,255,255,0.65); font-size: 1.1rem; }

.seo-lead {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 100%;
}

.seo-lead strong { color: #fff; }

.seo-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.seo-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.seo-feature > i {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
}

.seo-feature > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.seo-feature strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255,255,255,0.90);
}

.seo-feature span {
  font-size: 0.80rem;
  color: rgba(255,255,255,0.50);
  line-height: 1.5;
}

/* SEO aside â€” stats + links */
.seo-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seo-stat-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: center;
}

.seo-stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.seo-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.50);
  margin-top: 2px;
}

.seo-links {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 14px 18px;
}

.seo-links-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.40);
  margin-bottom: 10px;
}

.seo-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s;
}

.seo-links a:last-child { border-bottom: none; }
.seo-links a:hover { color: #fff; }
.seo-links a i { font-size: 0.7rem; width: 14px; color: rgba(255,255,255,0.35); }

/* Responsive SEO section */
@media (max-width: 860px) {
  .seo-inner {
    grid-template-columns: 1fr;
  }
  .seo-aside {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .seo-links {
    grid-column: 1 / -1;
  }
  .seo-features {
    grid-template-columns: 1fr;
  }
  .actu-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PAGE INDICE UV
   ============================================================ */

/* Recherche */
.uv-search-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 20px 24px 16px;
}

.uv-search-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.uv-search-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.uv-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 0 16px;
  height: 48px;
}

.uv-search-box i { color: var(--text-secondary); font-size: 0.9rem; }

/* Input gÃ©nÃ©rique dans toute search-box (UV, vent, mer, pressionâ€¦) */
.uv-search-box input,
#uv-city-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font);
}

/* Titre de carte de recherche */
.uv-search-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Bouton gÃ©olocalisation texte (pression) */
.uv-geolocate-btn {
  margin-top: 12px;
  padding: 9px 18px;
  border-radius: 12px;
  background: rgba(79,195,247,0.1);
  border: 1px solid rgba(79,195,247,0.22);
  color: #4fc3f7;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s;
}
.uv-geolocate-btn:hover { background: rgba(79,195,247,0.22); }

.uv-geo-btn {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(79,195,247,0.12);
  border: 1px solid rgba(79,195,247,0.22);
  color: #4fc3f7;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  flex-shrink: 0;
}
.uv-geo-btn:hover { background: rgba(79,195,247,0.22); }

/* Card principale UV */
.uv-main-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 28px 28px 24px;
  transition: background 0.4s, border-color 0.4s;
}

.uv-city-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.uv-now-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.uv-index-big {
  font-size: 5rem;
  font-weight: 200;
  letter-spacing: -4px;
  line-height: 1;
  transition: color 0.4s;
}

.uv-risk-badge {
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 0.4s, color 0.4s;
}

/* Barre de progression UV */
.uv-scale-bar { margin-bottom: 12px; }

.uv-scale-track {
  position: relative;
  height: 10px;
  border-radius: 8px;
  background: linear-gradient(to right,
    #4CAF50 0%, #4CAF50 25%,
    #FFC107 25%, #FFC107 50%,
    #FF9800 50%, #FF9800 66%,
    #F44336 66%, #F44336 83%,
    #9C27B0 83%, #9C27B0 100%);
  margin-bottom: 8px;
}

.uv-scale-fill {
  display: none; /* on utilise le curseur */
}

.uv-scale-cursor {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(0,0,0,0.4);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: left 0.5s cubic-bezier(0.4,0,0.2,1);
}

.uv-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-secondary);
  padding: 0 2px;
}

.uv-protection-tip {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  border-left: 3px solid rgba(255,255,255,0.1);
}

/* PrÃ©visions quotidiennes */
.uv-forecast-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
}

.uv-daily-row {
  display: grid;
  grid-template-columns: 56px 1fr 48px 90px;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--card-border);
}
.uv-daily-row:last-child { border-bottom: none; }

.uv-daily-day {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.uv-daily-bar-wrap {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  overflow: hidden;
}

.uv-daily-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}

.uv-daily-val {
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.uv-daily-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: right;
}

/* Horaire UV */
.uv-hourly-scroll {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  padding: 16px 20px;
  scrollbar-width: none;
}
.uv-hourly-scroll::-webkit-scrollbar { display: none; }

.uv-hour-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 44px;
}

.uv-hour-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.uv-hour-bar-wrap {
  width: 28px;
  height: 60px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.uv-hour-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  transition: height 0.5s ease;
}

.uv-hour-val {
  font-size: 0.7rem;
  font-weight: 700;
}

/* Grille villes vedettes */
.uv-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.uv-cities-loading {
  color: var(--text-secondary);
  grid-column: 1 / -1;
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.uv-city-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  transition: transform 0.18s, background 0.18s;
}
.uv-city-card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.06); }

.uv-city-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.uv-city-card-val {
  font-size: 2rem;
  font-weight: 200;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
}

.uv-city-mini-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.uv-city-card-level {
  font-size: 0.72rem;
  font-weight: 700;
}

/* Tableau d'Ã©chelle UV */
.uv-scale-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 16px;
}

.uv-scale-row {
  display: grid;
  grid-template-columns: 70px 100px 36px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
}
.uv-scale-row:last-child { border-bottom: none; }

.uv-s-range {
  font-size: 1.1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.uv-s-level { font-size: 0.88rem; font-weight: 700; }
.uv-s-icon  { font-size: 1.4rem; }
.uv-s-tips  { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.5; }

.uv-s-low       .uv-s-range, .uv-s-low       .uv-s-level { color: #4CAF50; }
.uv-s-moderate  .uv-s-range, .uv-s-moderate  .uv-s-level { color: #FFC107; }
.uv-s-high      .uv-s-range, .uv-s-high      .uv-s-level { color: #FF9800; }
.uv-s-very-high .uv-s-range, .uv-s-very-high .uv-s-level { color: #F44336; }
.uv-s-extreme   .uv-s-range, .uv-s-extreme   .uv-s-level { color: #9C27B0; }

@media (max-width: 600px) {
  .uv-scale-row {
    grid-template-columns: 56px 1fr 30px;
    grid-template-rows: auto auto;
  }
  .uv-s-tips { grid-column: 1 / -1; }
  .uv-cities-grid { grid-template-columns: repeat(2, 1fr); }
  .uv-daily-row { grid-template-columns: 48px 1fr 42px 80px; }
}

/* ============================================================
   BOUTONS FAVORIS
   ============================================================ */

/* â”€â”€ CÅ“ur dans le hero de la page ville â”€â”€ */
.hero-fav-btn {
  position: static;
  height: 36px;
  width: auto;
  border-radius: 18px;
  padding: 0 14px 0 10px;
  gap: 6px;
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(0,0,0,0.10);
  color: #0d1f2d;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.18s, color 0.18s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

.hero-fav-btn:hover { background: #fff; }
.hero-fav-btn:active { transform: scale(0.90); }

.hero-fav-btn.active {
  color: #d94f7a;
  background: rgba(255,255,255,0.95);
  border-color: rgba(217,79,122,0.30);
}

.hero-fav-btn.pop {
  animation: fav-pop 0.32s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes fav-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.32); }
  100% { transform: scale(1); }
}

/* â”€â”€ CÅ“ur sur les cards villes rapides (homepage) â”€â”€ */
.qc-fav-btn {
  position: absolute;
  top: 50%; right: 12px;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.40);
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  z-index: 2;
}

.qc-fav-btn:active { transform: translateY(-50%) scale(0.88); }
.qc-fav-btn.active { color: #ff6b9d; background: rgba(255,107,157,0.16); border-color: rgba(255,107,157,0.30); }
.qc-fav-btn.pop { animation: fav-pop 0.32s cubic-bezier(0.34,1.56,0.64,1); }

/* â”€â”€ Droit de la card ville (temp + range) â”€â”€ */
.qc-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-right: 44px; /* espace pour le bouton cÅ“ur */
  flex-shrink: 0;
}

/* â”€â”€ Croix suppression dans le panel "Mes villes" â”€â”€ */
.mbn-fav-remove {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,80,80,0.10);
  border: 1px solid rgba(255,80,80,0.20);
  color: rgba(255,120,120,0.75);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.16s, color 0.16s;
  margin-left: 4px;
}

.mbn-fav-remove:active { background: rgba(255,80,80,0.25); color: #fff; }

/* ============================================================
   MOBILE BOTTOM NAV (â‰¤ 860px)
   ============================================================ */

/* Affichage uniquement mobile */
#mobile-bottom-nav  { display: none; }
#mbn-search-modal   { display: none; }
#mbn-fav-sheet      { display: none; }
#mbn-geo-toast      { display: none; }

@media (max-width: 860px) {

  #mobile-bottom-nav { display: flex; }
  #mbn-search-modal  { display: block; }
  #mbn-fav-sheet     { display: block; }
  #mbn-geo-toast     { display: block; }

  .footer { padding-bottom: 70px; }

  /* â”€â”€ La pilule flottante â”€â”€ */
  #mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 260px;
    max-width: calc(100vw - 32px);
    height: 64px;
    background: rgba(18, 26, 46, 0.68);
    backdrop-filter: blur(48px) saturate(220%) brightness(1.1);
    -webkit-backdrop-filter: blur(48px) saturate(220%) brightness(1.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 40px;
    box-shadow:
      0 8px 32px rgba(0,0,0,0.38),
      0 2px 8px rgba(0,0,0,0.22),
      inset 0 1px 0 rgba(255,255,255,0.15),
      inset 0 -1px 0 rgba(0,0,0,0.10);
    z-index: 500;
    padding: 0 8px;
    align-items: center;
    justify-content: space-around;
    gap: 0;
  }

  /* â”€â”€ Boutons â”€â”€ */
  .mbn-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.42);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 8px;
    transition: color 0.18s, transform 0.15s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--font);
    border-radius: 32px;
    min-width: 56px;
  }

  .mbn-btn i {
    font-size: 1.22rem;
    transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), color 0.18s;
  }

  .mbn-btn span {
    font-size: 0.58rem;
    white-space: nowrap;
  }

  .mbn-btn:active { transform: scale(0.88); }

  /* â”€â”€ Bouton + central observations â”€â”€ */
  .mbn-obs-fab {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    min-width: 0;
    border-radius: 50%;
    background: #1570cc;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(21,112,204,0.55);
    padding: 0;
    margin: 0 6px;
    align-self: center;
    position: relative;
    top: -4px;
  }
  .mbn-obs-fab i {
    font-size: 1.4rem;
    transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
  }
  .mbn-obs-fab:active { transform: scale(0.88); }
  .mbn-obs-fab span { display: none; }

  /* Onglet actif */
  .mbn-btn.active {
    color: #fff;
  }

  .mbn-btn.active i {
    transform: translateY(-1px) scale(1.14);
    color: #4fc3f7;
    filter: drop-shadow(0 0 10px rgba(79,195,247,0.65));
  }

  .mbn-btn.active span {
    color: rgba(255,255,255,0.95);
  }

  /* Fond actif subtil sur le bouton */
  .mbn-btn.active::before {
    content: '';
    position: absolute;
    inset: 4px 2px;
    border-radius: 28px;
    background: rgba(79,195,247,0.10);
  }

  /* Ã‰tat loading gÃ©oloc */
  .mbn-btn.loading i {
    animation: mbn-spin 0.9s linear infinite;
    color: #4fc3f7;
  }

  @keyframes mbn-spin {
    to { transform: rotate(360deg); }
  }

  /* â”€â”€ Modal de recherche â”€â”€ */
  #mbn-search-modal {
    position: fixed;
    inset: 0;
    z-index: 600;
    background: rgba(10, 20, 40, 0.92);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.28s ease;
    pointer-events: none;
  }

  #mbn-search-modal.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mbn-modal-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  }

  .mbn-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
  }

  .mbn-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 0 14px;
    height: 46px;
  }

  .mbn-search-box i {
    color: rgba(255,255,255,0.45);
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  #mbn-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font);
  }

  #mbn-search-input::placeholder { color: rgba(255,255,255,0.35); }

  .mbn-modal-close {
    background: none;
    border: none;
    color: #4fc3f7;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    padding: 8px 4px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }

  /* Liste autocomplete dans modal */
  .mbn-autocomplete-list {
    list-style: none;
    overflow-y: auto;
    max-height: 55vh;
  }

  .mbn-autocomplete-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.14s;
    -webkit-tap-highlight-color: transparent;
  }

  .mbn-autocomplete-list li:active { background: rgba(255,255,255,0.08); }

  .mbn-autocomplete-list li > i:first-child {
    color: rgba(255,255,255,0.35);
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
  }

  .mbn-ac-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .mbn-ac-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
  }

  .mbn-ac-dept {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
  }

  .mbn-ac-arrow {
    color: rgba(255,255,255,0.20);
    font-size: 0.7rem;
  }

  .mbn-ac-empty {
    padding: 24px 18px;
    color: rgba(255,255,255,0.40);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Bloc rÃ©cents dans la modal */
  .mbn-recent-block {
    padding: 18px 18px 8px;
    overflow-y: auto;
  }

  .mbn-no-recent {
    color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
  }

  .mbn-recent-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mbn-recent-list { list-style: none; }

  .mbn-recent-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mbn-recent-row:active { opacity: 0.7; }

  .mbn-recent-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(79,195,247,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #4fc3f7;
    font-size: 0.85rem;
  }

  .mbn-recent-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .mbn-recent-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
  }

  .mbn-recent-cp {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.40);
  }

  /* â”€â”€ Panneau "Mes villes" (slide-up sheet) â”€â”€ */
  #mbn-fav-sheet {
    position: fixed;
    inset: 0;
    z-index: 600;
    pointer-events: none;
  }

  #mbn-fav-sheet.open { pointer-events: auto; }

  .mbn-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
  }

  #mbn-fav-sheet.open .mbn-sheet-backdrop {
    background: rgba(0,0,0,0.55);
  }

  .mbn-sheet-panel {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(15, 25, 45, 0.95);
    backdrop-filter: blur(48px) saturate(200%);
    -webkit-backdrop-filter: blur(48px) saturate(200%);
    border-top: 1px solid rgba(255,255,255,0.14);
    border-radius: 24px 24px 0 0;
    max-height: 78vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  #mbn-fav-sheet.open .mbn-sheet-panel {
    transform: translateY(0);
  }

  .mbn-sheet-handle {
    width: 36px; height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.20);
    margin: 12px auto 0;
    flex-shrink: 0;
  }

  .mbn-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
  }

  .mbn-sheet-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mbn-sheet-title i { color: #ff6b9d; font-size: 0.9rem; }

  .mbn-sheet-close {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    border: none;
    color: rgba(255,255,255,0.70);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  .mbn-sheet-body {
    overflow-y: auto;
    padding: 16px 20px 24px;
    flex: 1;
  }

  /* Ã‰tat vide */
  .mbn-fav-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 0;
    text-align: center;
  }

  .mbn-fav-empty i {
    font-size: 2.8rem;
    color: rgba(255,255,255,0.20);
  }

  .mbn-fav-empty p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
  }

  .mbn-fav-hint {
    font-size: 0.78rem !important;
    color: rgba(255,255,255,0.30) !important;
  }

  /* Compteur */
  .mbn-fav-count {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.35);
    font-weight: 700;
    margin-bottom: 12px;
  }

  /* Liste des villes */
  .mbn-fav-list { list-style: none; }

  .mbn-fav-list li {
    animation: mbn-slide-in 0.28s ease both;
    animation-delay: calc(var(--i) * 0.05s);
  }

  @keyframes mbn-slide-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .mbn-fav-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s;
  }

  .mbn-fav-row:active { opacity: 0.7; }

  .mbn-fav-num {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: rgba(79,195,247,0.12);
    border: 1px solid rgba(79,195,247,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #4fc3f7;
    flex-shrink: 0;
  }

  .mbn-fav-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .mbn-fav-name {
    font-size: 0.96rem;
    font-weight: 600;
    color: #fff;
  }

  .mbn-fav-cp {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.38);
  }

  .mbn-fav-arrow {
    color: rgba(255,255,255,0.18);
    font-size: 0.7rem;
  }

  /* Bouton effacer */
  .mbn-fav-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: rgba(255,80,80,0.10);
    border: 1px solid rgba(255,80,80,0.20);
    border-radius: 12px;
    color: rgba(255,130,130,0.80);
    font-size: 0.83rem;
    font-family: var(--font);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
    -webkit-tap-highlight-color: transparent;
  }

  .mbn-fav-clear:active { background: rgba(255,80,80,0.20); }

  /* â”€â”€ Toast gÃ©oloc â”€â”€ */
  #mbn-geo-toast {
    position: fixed;
    bottom: calc(94px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: rgba(20,30,50,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(79,195,247,0.30);
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 0.83rem;
    font-weight: 600;
    color: #4fc3f7;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
    pointer-events: none;
    z-index: 700;
    white-space: nowrap;
  }

  #mbn-geo-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  /* Prevent scroll when modal/sheet open */
  body.mbn-modal-open,
  body.mbn-sheet-open { overflow: hidden; }

} /* end @media (max-width: 860px) */

/* ============================================================
   HOMEPAGE LIGHT THEME
   ============================================================ */
body.home-light .site-main {
  background: #eef2f7;
}

body.home-light .map-section,
body.home-light .popular-section,
body.home-light .actu-section,
body.home-light .domtom-section,
body.home-light .seo-section {
  background: transparent;
}

/* â”€â”€ Hero : gradient bleu + remonte DERRIÃˆRE le topbar transparent â”€ */
body.home-light .hero {
  background: linear-gradient(160deg, #1c86ee 0%, #0a4a8a 100%);
  margin-top: calc(-1 * var(--topbar-h));          /* colle derriÃ¨re le topbar */
  padding-top: calc(var(--topbar-h) + 28px);       /* compense pour le contenu */
}

/* Saint du jour â€” sur fond gris aprÃ¨s le hero */
body.home-light .saint-banner         { color: #4a5a70; }
body.home-light .saint-banner strong  { color: #1a2a4a; }

/* â”€â”€ Widget Ã‰phÃ©mÃ©ride â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.eph-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 860px) {
  .eph-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .eph-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

.eph-item {
  background: #f4f8ff;
  border: 1px solid #e0eaf8;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eph-item.eph-wide {
  grid-column: span 3;
}
@media (max-width: 860px) {
  .eph-item.eph-wide { grid-column: span 2; }
}

.eph-icon {
  font-size: 1.3rem;
  line-height: 1;
  margin-bottom: 2px;
}

.eph-label {
  font-size: 0.70rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8ea8;
}

.eph-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2a4a;
  line-height: 1.2;
}

.eph-sub {
  font-size: 0.75rem;
  color: #5a7090;
  margin-top: 1px;
}

.eph-ferie {
  background: linear-gradient(135deg, #fff8e7 0%, #fef3cc 100%);
  border-color: #f5d876;
}

.eph-ferie .eph-value { color: #7a5500; }
.eph-ferie .eph-label { color: #a07820; }

/* Soleil : rows avec lever+coucher sur la mÃªme ligne */
.eph-sun-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.eph-sun-part { flex: 1; }
.eph-sun-part .eph-label { font-size: 0.67rem; }
.eph-sun-part .eph-value { font-size: 1rem; }

/* Valeur compacte pour les textes longs */
.eph-value-sm {
  font-size: 0.9rem !important;
}

/* Lever/Coucher groupÃ©s sur une ligne */
.eph-soleil { background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%); border-color: #f5d876; }
.eph-soleil-row {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}
.eph-soleil-part {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.eph-soleil-icon { font-size: 1.1rem; line-height: 1; }
.eph-soleil-sep {
  width: 1px;
  height: 44px;
  background: rgba(0,0,0,0.10);
  flex-shrink: 0;
  margin: 0 8px;
}
.eph-soleil .eph-label { font-size: 0.65rem; }
.eph-soleil .eph-value { font-size: 1rem; font-weight: 800; color: #7a5500; }

/* Compteur de jours avant le fÃ©riÃ© */
.eph-ferie-days {
  font-size: 2rem;
  font-weight: 900;
  color: #7a5500;
  line-height: 1;
  margin: 2px 0 4px;
}
.eph-ferie-days span {
  font-size: 1rem;
  font-weight: 700;
  margin-left: 2px;
}

/* Dicton */
.eph-dicton {
  background: linear-gradient(135deg, #f0f8ff 0%, #e8f4ff 100%);
  border-color: #c0d8f0;
}
.eph-dicton .eph-value {
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 500;
  color: #2a5080;
  line-height: 1.4;
}
body.home-light .saint-banner i       { color: #c08010; }

/* Titres hors header (fallback) */
body.home-light .section-title        { color: #1a2a4a; }
body.home-light .section-title i      { color: #1c86ee; }
body.home-light .section-subtitle     { color: #5a7090; }
body.home-light .rec-section-title    { color: #1a2a4a; }

/* â”€â”€ Card unifiÃ©e â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.home-light .home-section-card {
  background: #fff;
  border-radius: 24px;
  overflow: visible;           /* permet Ã  Leaflet de fonctionner */
  padding: 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
}

/* â”€â”€ En-tÃªte dÃ©gradÃ© â€” mÃªme palette que la sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.home-light .home-section-header {
  background: linear-gradient(175deg, #2b96ff 0%, #1060c0 50%, #0a4a8a 100%);
  padding: 20px 28px 18px;
  border-radius: 24px 24px 0 0;  /* arrondi propre sans overflow:hidden sur le parent */
}
body.home-light .home-section-header .section-title,
body.home-light .home-section-header .seo-title {
  color: #fff !important;
  margin-bottom: 4px;
}
body.home-light .home-section-header .section-title i,
body.home-light .home-section-header .seo-title i {
  color: rgba(255,255,255,0.80) !important;
}
body.home-light .home-section-header .section-subtitle {
  color: rgba(255,255,255,0.78) !important;
  margin-bottom: 0;
}

/* â”€â”€ Corps de la card â€” fond blanc, padding â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.home-light .home-section-body {
  padding: 24px 28px 32px;
}
@media (max-width: 600px) {
  body.home-light .home-section-header { padding: 16px 18px 14px; }
  body.home-light .home-section-body   { padding: 18px 16px 24px; }
}

/* â”€â”€ Villes populaires â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.home-light .quick-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 3px 16px rgba(0,0,0,0.07);
  color: #1a2a4a;
}
body.home-light .quick-card:hover {
  background: #f5f9ff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.11);
  transform: translateY(-3px);
  border-color: rgba(28,134,238,0.2);
}
body.home-light .qc-city            { color: #1a2a4a; }
body.home-light .qc-body .qc-desc,
body.home-light .qc-right           { color: #6a7a90; }
body.home-light .qc-temp            { color: #1c3a70; }

/* â”€â”€ Capitales du monde â€” slider â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* #world-capitals-grid utilise la classe domtom-grid (grid),
   on override pour que le slider-wrap soit un simple bloc pleine largeur */
#world-capitals-grid {
  display: block;
  width: 100%;
}

.wc-slider-wrap {
  position: relative;
  width: 100%;
  display: block;
}
.wc-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0 14px;
  width: 100%;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(28,134,238,0.25) transparent;
  cursor: grab;
}
.wc-slider:active { cursor: grabbing; }
.wc-slider::-webkit-scrollbar       { height: 4px; }
.wc-slider::-webkit-scrollbar-track { background: transparent; }
.wc-slider::-webkit-scrollbar-thumb { background: rgba(28,134,238,0.3); border-radius: 4px; }

.wc-card {
  flex: 0 0 148px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 14px 12px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: default;
}
.wc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(28,134,238,0.13);
  border-color: rgba(28,134,238,0.2);
}
.wc-card.wc-loading { opacity: 0.55; }

.wc-flag    { font-size: 1.8rem; line-height: 1; margin-bottom: 4px; }
.wc-city    { font-size: 0.88rem; font-weight: 700; color: #1a2a4a;
              white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 124px; }
.wc-country { font-size: 0.72rem; color: #8a9ab0; margin-bottom: 2px;
              white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 124px; }
.wc-time    { font-size: 0.78rem; font-weight: 600; color: #1c86ee;
              background: rgba(28,134,238,0.08); border-radius: 6px;
              padding: 2px 7px; margin: 3px 0; letter-spacing: 0.03em; }
.wc-weather { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.wc-emoji   { font-size: 1.5rem; line-height: 1; }
.wc-temp    { font-size: 1.4rem; font-weight: 700; color: #1c3a70; }
.wc-label   { font-size: 0.72rem; color: #6a7a90; margin-top: 1px;
              white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 124px; }

/* Boutons nav â€” positionnÃ©s en overlay sur le slider */
/* Wrapper position:relative requis pour .wc-nav absolute */
.scroll-nav-wrap { position: relative; }

.wc-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: #1c86ee;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  z-index: 4;
}
.wc-nav:hover {
  background: #eef5ff;
  box-shadow: 0 4px 16px rgba(28,134,238,0.2);
  transform: translateY(-50%) scale(1.1);
}
.wc-prev { left:  0; }
.wc-next { right: 0; }

/* Dark mode global â€” nav buttons */
html.dark-mode .wc-nav {
  background: rgba(19,34,64,0.95);
  border-color: rgba(255,255,255,0.12);
  color: #4fc3f7;
}
html.dark-mode .wc-nav:hover { background: #1a3258; }

/* â”€â”€ Villes populaires â€” liste compacte (sidebar) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#popular-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pop-row {
  display: grid;
  grid-template-columns: 26px 1fr auto auto 28px;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  cursor: pointer;
}
.pop-row:hover { background: rgba(28,134,238,0.07); }
.pop-emoji  { font-size: 1.15rem; text-align: center; line-height: 1; }
.pop-name   { font-size: 0.88rem; font-weight: 600; color: #1a2a4a;
              white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-range  { font-size: 0.75rem; color: #8a9ab0; white-space: nowrap; }
.pop-temp   { font-size: 0.95rem; font-weight: 700; color: #1c3a70;
              white-space: nowrap; min-width: 28px; text-align: right; }
.pop-fav {
  background: none; border: none; cursor: pointer; padding: 2px;
  color: #c0ccd8; font-size: 0.8rem; line-height: 1;
  transition: color 0.15s, transform 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.pop-fav:hover          { color: #ff6b9d; transform: scale(1.2); }
.pop-fav.active         { color: #ff6b9d; }
@keyframes pop-pop-anim { 0%,100%{transform:scale(1)} 50%{transform:scale(1.4)} }
.pop-fav.pop-pop        { animation: pop-pop-anim 0.32s ease; }

/* â”€â”€ Region pills â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.home-light .region-pill {
  color: #2a5a9a;
  border-color: rgba(28,134,238,0.3);
  background: rgba(28,134,238,0.07);
}
body.home-light .region-pill:hover {
  background: rgba(28,134,238,0.14);
  border-color: rgba(28,134,238,0.45);
  color: #1a3a80;
}
body.home-light .region-pill.active {
  background: #1c86ee;
  border-color: #1c86ee;
  color: #fff;
  box-shadow: 0 2px 10px rgba(28,134,238,0.35);
}

/* â”€â”€ Cartes DOM-TOM â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.home-light .domtom-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 3px 14px rgba(0,0,0,0.06);
  color: #1a2a4a;
}
body.home-light .domtom-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  border-color: rgba(28,134,238,0.18);
}
body.home-light .domtom-name         { color: #1a2a4a; }
body.home-light .domtom-region       { color: #6a7a90; }
body.home-light .domtom-temp         { color: #1c3a70; }
body.home-light .domtom-weather-label { color: #5a7090; }

/* â”€â”€ Cartes ActualitÃ©s â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.home-light .actu-card {
  background: #fff;
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 3px 16px rgba(0,0,0,0.07);
}
body.home-light .actu-card .actu-tag      { color: #4a6080; }
body.home-light .actu-card .actu-date     { color: #8090a8; }
body.home-light .actu-card .actu-desc     { color: #4a5a70; }
body.home-light .actu-card .actu-location { color: #3a4a60; }
body.home-light .actu-card .actu-source a { color: #1c86ee; }
body.home-light .actu-disclaimer          { color: #7a8a9a; }
body.home-light .vigi-dept                { color: #3a4a60; }
body.home-light .vigi-type                { color: #7a8a9a; }

/* â”€â”€ Espacement entre les section-cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.home-light .map-section      { padding: 0; }
body.home-light .popular-section  { padding: 0; }
body.home-light .actu-section     { padding: 0; }
body.home-light .domtom-section   { padding: 0; }
body.home-light .seo-section      { padding: 0; border-top: none; }

/* â”€â”€ Bloc SEO sur fond clair â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.home-light .seo-inner {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
/* seo-title dans le header â†’ blanc via .home-section-header override */
body.home-light .seo-title       { color: #1a2a4a; }
body.home-light .seo-title i     { color: #1c86ee; }
body.home-light .seo-lead {
  color: #4a5a70;
}
body.home-light .seo-lead strong { color: #1a2a4a; }
body.home-light .seo-feature > i    { color: #1c86ee; }
body.home-light .seo-feature strong { color: #1a2a4a; }
body.home-light .seo-feature span   { color: #5a6a80; }

body.home-light .seo-stat-card {
  background: rgba(28,134,238,0.06);
  border: 1px solid rgba(28,134,238,0.14);
}
body.home-light .seo-stat-value { color: #1c86ee; }
body.home-light .seo-stat-label { color: #5a7090; }

body.home-light .seo-links {
  background: rgba(0,0,0,0.025);
  border-color: rgba(0,0,0,0.08);
}
body.home-light .seo-links-title { color: #8090a8; }
body.home-light .seo-links a {
  color: #1c86ee;
  border-bottom-color: rgba(0,0,0,0.06);
}
body.home-light .seo-links a:hover { color: #0a5ab8; }
body.home-light .seo-links a i     { color: #7aaae0; }

/* â”€â”€ Footer (unifiÃ© â€” mÃªme couleur sur toutes les pages) â”€â”€â”€â”€â”€â”€â”€ */
body.home-light .footer { background: #07101f; }

/* ============================================================
   REGION FILTER PILLS
   ============================================================ */
.region-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}
#obs-region-pills {
  padding: 4px 20px 12px;
  margin: 0;
}
@media (max-width: 860px) {
  #obs-region-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 16px 10px;
    gap: 7px;
  }
  #obs-region-pills::-webkit-scrollbar { display: none; }
}
.region-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(28, 134, 238, 0.35);
  background: rgba(28, 134, 238, 0.08);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font);
  white-space: nowrap;
}
.region-pill:hover {
  background: rgba(28, 134, 238, 0.2);
  border-color: rgba(28, 134, 238, 0.55);
  color: #fff;
}
.region-pill.active {
  background: rgba(28, 134, 238, 0.35);
  border-color: rgba(28, 134, 238, 0.8);
  color: #fff;
  box-shadow: 0 0 10px rgba(28,134,238,0.3);
}
@media (max-width: 600px) {
  .region-pill { font-size: 0.75rem; padding: 5px 11px; }
}
html:not(.dark-mode) .region-pill { color: #1a3a80; }
html:not(.dark-mode) .region-pill:hover { color: #1a3a80; }
html:not(.dark-mode) .region-pill.active { color: #fff; }

/* ============================================================
   LEAFLET MAP â€” Marqueurs mÃ©tÃ©o personnalisÃ©s
   ============================================================ */
.leaflet-map-container {
  width: 100%;
  height: 620px;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .leaflet-map-container { height: 340px; border-radius: 12px; margin-top: 0; }
}

/* â”€â”€ Marqueur mÃ©tÃ©o â€” style "pilule" â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lf-marker {
  border: none;
  border-radius: 14px;
  padding: 4px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  cursor: pointer;
  min-width: 44px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.32), 0 1px 4px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--t-color, linear-gradient(180deg, #3d78e0 0%, #1652b8 100%));
}

.lf-marker:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28), 0 2px 6px rgba(0,0,0,0.14);
  z-index: 1000 !important;
}

.lf-marker.lf-loading {
  opacity: 0.55;
  background: linear-gradient(180deg, #8aa0b8 0%, #5a7a98 100%);
}

.lf-marker.lf-loaded { opacity: 1; }

/* Picto au-dessus, tempÃ©rature en dessous */
.lf-pill-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.lf-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.lf-temp {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* Nom de la ville â€” masquÃ© par dÃ©faut, visible uniquement quand zoom â‰¥ 7 */
.lf-name {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: none;
}

#france-map-container.map-show-names .lf-name {
  display: block;
}

/* Overrides Leaflet default */
.leaflet-control-attribution { font-size: 0.65rem !important; }
/* Sur mobile, passer sous la bottombar (z-index 500) */
@media (max-width: 860px) {
  .leaflet-top, .leaflet-bottom { z-index: 490 !important; }
}

/* ============================================================
   LAYOUT 2 COLONNES â€” PAGE D'ACCUEIL
   ============================================================ */

/* Wrapper gÃ©nÃ©ral avec padding vertical entre sections */
body.home-light .home-col-main > *,
body.home-light .home-col-side  > * {
  margin-bottom: 24px;
}
body.home-light .home-col-main > *:last-child,
body.home-light .home-col-side  > *:last-child {
  margin-bottom: 0;
}

/* Grille 2 colonnes */
.home-columns-wrap {
  /* Ã‰crase le max-width du .container pour exploiter toute la largeur de site-main */
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding-left: 28px;
  padding-right: 28px;
  /* Grille 2 colonnes */
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 20px;
}

/* Large Ã©crans : colonne droite un peu plus large */
@media (min-width: 1440px) {
  .home-columns-wrap {
    grid-template-columns: minmax(0, 1fr) 380px;
    padding-left: 36px;
    padding-right: 36px;
  }
}

.home-col-main,
.home-col-side {
  min-width: 0;            /* Ã©vite l'overflow des enfants */
  display: flex;
  flex-direction: column;
}

.home-col-side {
  position: static;
}

/* Ã‰phÃ©mÃ©ride dans la sidebar ou colonne Ã©phem : grille 2 colonnes (au lieu de 3) */
.home-col-side .eph-grid,
.home-ephem-col .eph-grid {
  grid-template-columns: 1fr 1fr;
}
.home-col-side .eph-item.eph-wide,
.home-ephem-col .eph-item.eph-wide {
  grid-column: span 2;
}

/* Pub sidebar */
.adsense-sidebar {
  width: 100%;
  min-height: 250px;
}

/* Mobile : une seule colonne */
@media (max-width: 1024px) {
  .home-columns-wrap {
    grid-template-columns: 1fr;
  }
  .home-col-main { order: 1; }   /* carte en premier sur mobile  */
  .home-col-side {
    order: 2;                    /* Ã©phÃ©mÃ©ride etc. en second    */
    position: static;
    max-height: none;
    overflow: visible;
  }
  .home-col-side .eph-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-col-side .eph-item.eph-wide {
    grid-column: span 3;
  }
}

@media (max-width: 600px) {
  .home-columns-wrap { padding-top: 16px; gap: 16px; }
  .home-col-side .eph-grid { grid-template-columns: 1fr 1fr; }
  .home-col-side .eph-item.eph-wide { grid-column: span 2; }
}

/* â”€â”€ Bulletin mÃ©tÃ©o du jour â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.bulletin-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bulletin-lead {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f4f8ff;
  border-radius: 14px;
  padding: 16px 18px;
  border-left: 4px solid #1c86ee;
}

.bulletin-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.bulletin-intro {
  font-size: 0.97rem;
  color: #2a3a5a;
  line-height: 1.65;
  margin: 0;
}

.bulletin-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 700px) {
  .bulletin-sections { grid-template-columns: 1fr; }
}

.bulletin-zone {
  background: #fafbff;
  border: 1px solid #e8eef8;
  border-radius: 12px;
  padding: 14px 16px;
}

.bulletin-zone h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0a4a8a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bulletin-zone h3 i {
  font-size: 0.75rem;
  color: #1c86ee;
}

.bulletin-zone p {
  font-size: 0.88rem;
  color: #3a4a5a;
  line-height: 1.6;
  margin: 0;
}

.bulletin-footer {
  font-size: 0.78rem;
  color: #8a9aaa;
  margin: 0;
  font-style: italic;
}

/* â”€â”€ On vous explique â€” Articles (scroll horizontal) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.articles-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}
.articles-grid::-webkit-scrollbar { height: 4px; }
.articles-grid::-webkit-scrollbar-track { background: transparent; }
.articles-grid::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }

.articles-grid .article-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

.article-card {
  border: 1px solid #e8eef8;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.article-img {
  height: 140px;
  position: relative;
  background: linear-gradient(160deg, #667eea 0%, #764ba2 100%); /* fallback si inline style invalide */
}

.article-img .article-category {
  position: absolute;
  bottom: 10px;
  left: 12px;
}

.article-img-1 { background: linear-gradient(160deg, #667eea 0%, #764ba2 100%); }
.article-img-2 { background: linear-gradient(160deg, #f093fb 0%, #f5576c 100%); }
.article-img-3 { background: linear-gradient(160deg, #4facfe 0%, #f77062 100%); }

.article-category {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.40);
}

.article-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a2a4a;
  line-height: 1.35;
  margin: 0;
}

.article-excerpt {
  font-size: 0.82rem;
  color: #5a6a7a;
  line-height: 1.55;
  margin: 0;
  flex: 1;
  /* Limiter Ã  3 lignes */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.article-date,
.article-time {
  font-size: 0.73rem;
  color: #8a9aaa;
  display: flex;
  align-items: center;
  gap: 4px;
}
.actu-cmt-count {
  font-size: 0.73rem;
  color: #8a9aaa;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1c86ee;
  text-decoration: none;
  margin-top: 4px;
  transition: gap 0.2s;
}

.article-link:hover { gap: 10px; color: #0a4a8a; }

/* â”€â”€ Bouton "Tous les articles" â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.articles-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.articles-btn-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1c86ee, #0a4a8a);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(28,134,238,0.35);
  transition: transform 0.2s, box-shadow 0.2s, gap 0.2s;
}

.articles-btn-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(28,134,238,0.45);
  gap: 14px;
}

/* ============================================================
   BLOG PAGE
   ============================================================ */

/* Hero */
.blog-hero {
  padding: 48px 0 32px;
}

.blog-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.blog-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.blog-hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.blog-hero-subtitle {
  color: rgba(255,255,255,0.80);
  font-size: 1rem;
}

/* â”€â”€ Blog hero + filtres : thÃ¨me clair â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.home-light .blog-hero-icon {
  background: rgba(28,134,238,0.12);
  color: #1c86ee;
  box-shadow: 0 4px 20px rgba(28,134,238,0.15);
}
body.home-light .blog-hero-title {
  color: #1a2a4a;
}
body.home-light .blog-hero-subtitle {
  color: #5a7090;
}

body.home-light .blog-filter {
  background: #fff;
  border-color: #d0daea;
  color: #3a5070;
}
body.home-light .blog-filter:hover {
  background: #e8f0fb;
  border-color: #1c86ee;
  color: #1c86ee;
}
body.home-light .blog-filter.active {
  background: #1c86ee;
  border-color: #1c86ee;
  color: #fff;
}

/* Container blog */
.blog-container {
  padding-bottom: 48px;
}

/* Filtres */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.blog-filter {
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  backdrop-filter: blur(6px);
}

.blog-filter:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.blog-filter.active {
  background: #fff;
  color: #1c86ee;
  border-color: #fff;
  font-weight: 600;
}

/* Blog page â€” grille verticale responsive (pas de scroll horizontal) */
.blog-container .articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  overflow-x: visible;
  flex-wrap: unset;
  scroll-snap-type: none;
  padding-bottom: 0;
}
.blog-container .articles-grid .article-card {
  flex: none;
  width: auto;
  scroll-snap-align: none;
}

/* Pagination */
.blog-pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.pagination-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  backdrop-filter: blur(6px);
}

.page-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.page-btn.active {
  background: #fff;
  color: #1c86ee;
  border-color: #fff;
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Pagination mode clair */
body.home-light .page-btn {
  border-color: rgba(28,134,238,0.3);
  background: rgba(28,134,238,0.07);
  color: #1a2a3a;
}
body.home-light .page-btn:hover:not(:disabled) {
  background: rgba(28,134,238,0.15);
  color: #1c86ee;
}
body.home-light .page-btn.active {
  background: #1c86ee;
  color: #fff;
  border-color: #1c86ee;
}
body.home-light .page-btn:disabled {
  opacity: 0.3;
}

/* Bouton retour */
.blog-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 50px;
  cursor: pointer;
  margin-bottom: 24px;
  transition: background 0.2s;
  backdrop-filter: blur(6px);
}

.blog-back-btn:hover { background: rgba(255,255,255,0.25); }

/* Mode clair : bouton retour visible */
body.home-light .blog-back-btn {
  background: rgba(28,134,238,0.10);
  border-color: rgba(28,134,238,0.30);
  color: #1c86ee;
}
body.home-light .blog-back-btn:hover {
  background: rgba(28,134,238,0.20);
}

/* Article complet */
.blog-article-full {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  color: #1a2a3a;
}

.blog-article-header {
  padding: 48px 40px 36px;
  color: #fff;
  position: relative;
  min-height: 500px;
  display: flex;
  isolation: isolate;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center center;
}

.blog-article-header::after {
  content: '';
  position: absolute;
  inset: 35% 0 0 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  z-index: -1;
}
.blog-article-header > * { position: relative; z-index: 1; }

.blog-article-header .article-category {
  position: static;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
}

.blog-article-header h1 {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.blog-article-meta {
  display: flex;
  gap: 10px;
  font-size: 0.84rem;
  flex-wrap: wrap;
}

.blog-article-meta span {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 20px;
  padding: 4px 14px;
  backdrop-filter: blur(4px);
}

.blog-article-body {
  padding: 36px 40px;
}

.photo-credit {
  font-size: 0.73rem;
  color: #8a9ab0;
  text-align: right;
  margin: -16px 0 18px;
}
.photo-credit a { color: #8a9ab0; text-decoration: underline; }
.photo-credit a:hover { color: #1c86ee; }
.dark-mode .photo-credit { color: rgba(255,255,255,0.35); }
.dark-mode .photo-credit a { color: rgba(255,255,255,0.35); }
.dark-mode .photo-credit a:hover { color: #5aacf5; }

.blog-article-lead {
  font-size: 1.05rem;
  color: #3a5a7a;
  line-height: 1.7;
  border-left: 4px solid #1c86ee;
  padding-left: 16px;
  margin-bottom: 28px;
  font-style: italic;
}

.blog-article-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1c86ee;
  margin: 28px 0 10px;
}

.blog-article-body p {
  line-height: 1.8;
  color: #2a3a4a;
  margin-bottom: 14px;
}

.blog-article-body ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.blog-article-body ul li {
  line-height: 1.7;
  color: #2a3a4a;
  margin-bottom: 6px;
}

.blog-article-body strong { color: #1a2a3a; }

.blog-article-body em { color: #1c86ee; font-style: normal; font-weight: 600; }

.blog-article-footer {
  padding: 20px 40px 28px;
  border-top: 1px solid #e8eef8;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.blog-back-btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f5ff;
  border: 1px solid #d0dff0;
  color: #1c86ee;
  font-size: 0.84rem;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s;
}

.blog-back-btn-inline:hover { background: #dceeff; }

.blog-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

.blog-loading i { margin-right: 8px; }

.blog-error, .blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}

/* â”€â”€ Ã€ lire aussi â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.blog-related {
  margin-top: 40px;
  padding: 28px 24px 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.blog-related-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-related-title i { color: #1c86ee; }

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .blog-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .blog-hero { padding-bottom: 30px; }
  .blog-hero-title { font-size: 1.5rem; }
  .blog-article-header { padding: 32px 20px 24px; min-height: 300px; }
  .blog-article-header h1 { font-size: 1.3rem; }
  .blog-article-header .hero-actions { top: 0; }
  .blog-article-body { padding: 24px 20px; }
  .blog-article-footer { padding: 16px 20px 24px; }
}


/* ============================================================
   MOON PHASE â€” Lien cliquable dans la sidebar
   ============================================================ */
.sb-moon-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  margin: 8px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  transition: background 0.18s;
  text-decoration: none;
}
.sb-moon-link:hover { background: rgba(255,255,255,0.12); }
.sb-moon-link .sb-moon-emoji { font-size: 1.4rem; }
.sb-moon-link .sb-moon-label { font-size: 0.82rem; color: rgba(255,255,255,0.75); }

/* ============================================================
   SIDEBAR â€” RANG UTILISATEUR + BOUTON OBS
   ============================================================ */
.sb-rank-pill {
  display: table;        /* shrink-wrap to content width */
  margin: 3px auto 8px; /* centrÃ© horizontalement */
  padding: 6px 16px 7px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 12px;
  text-align: center;
}
.sb-rank-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
}
.sb-rank-obs {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.38);
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.sb-obs-link {
  font-weight: 600;
  color: rgba(255,255,255,0.85) !important;
}
.sb-obs-link i { color: #4fc3f7 !important; }
.sb-obs-link:hover { background: rgba(28,134,238,0.15) !important; }

/* ============================================================
   SIDEBAR â€” SÃ‰LECTEUR DE THÃˆME
   ============================================================ */
.sb-theme-widget {
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sb-theme-widget-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.30);
  margin-bottom: 8px;
}
.sb-theme-pills {
  display: flex;
  gap: 4px;
}
.sb-theme-btn {
  flex: 1;
  padding: 5px 0;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sb-theme-btn:hover { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.75); }
.sb-theme-btn.active {
  background: rgba(28,134,238,0.28);
  border-color: rgba(28,134,238,0.50);
  color: #fff;
}

/* ============================================================
   DARK MODE
   ============================================================ */
.dark-mode body.home-light .site-main {
  background: #0d1b2e;
}
.dark-mode body.home-light .home-section-card {
  background: #132240;
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.dark-mode body.home-light .home-section-header {
  background: linear-gradient(175deg, #1a4a8a 0%, #0d2a5a 50%, #071830 100%);
}
.dark-mode body.home-light .section-title,
.dark-mode body.home-light .seo-title { color: #e0eaf8 !important; }
.dark-mode body.home-light .section-title i,
.dark-mode body.home-light .seo-title i { color: #4fc3f7 !important; }
.dark-mode body.home-light .section-subtitle { color: rgba(180,210,255,0.60) !important; }
.dark-mode body.home-light .rec-section-title { color: #d0ddf0; }

/* Cards rapides / popular */
.dark-mode body.home-light .quick-card {
  background: #1a2a4a;
  border-color: rgba(255,255,255,0.07);
  color: #e0eaf8;
}
.dark-mode body.home-light .quick-card:hover {
  background: #1e3258;
  box-shadow: 0 8px 28px rgba(0,0,0,0.30);
  border-color: rgba(28,134,238,0.25);
}
.dark-mode body.home-light .qc-city { color: #e0eaf8; }
.dark-mode body.home-light .qc-body .qc-desc,
.dark-mode body.home-light .qc-right { color: rgba(180,210,255,0.60); }
.dark-mode body.home-light .qc-temp { color: #c8dff8; }

/* ActualitÃ©s */
.dark-mode body.home-light .actu-card {
  background: #132240;
  border-color: rgba(255,255,255,0.07);
  box-shadow: 0 2px 12px rgba(0,0,0,0.20);
}
.dark-mode body.home-light .actu-card .actu-tag { color: #7aaae8; }
.dark-mode body.home-light .actu-card .actu-date { color: #5a7090; }
.dark-mode body.home-light .actu-card .actu-desc { color: rgba(180,210,255,0.70); }
.dark-mode body.home-light .actu-card .actu-location { color: rgba(180,210,255,0.55); }
.dark-mode body.home-light .actu-card .actu-source a { color: #4fc3f7; }
.dark-mode body.home-light .actu-disclaimer { color: rgba(180,210,255,0.40); }

/* Saint / Ã©phÃ©mÃ©ride */
.dark-mode body.home-light .saint-banner {
  background: rgba(255,255,255,0.03);
  color: rgba(180,210,255,0.65);
  border-color: rgba(255,255,255,0.06);
}
.dark-mode body.home-light .saint-banner strong { color: #e0eaf8; }
.dark-mode body.home-light .saint-banner i { color: #f0c040; }

/* DOM-TOM */
.dark-mode body.home-light .domtom-card {
  background: #1a2a4a;
  border-color: rgba(255,255,255,0.07);
  color: #d8e6f4;
}
.dark-mode body.home-light .domtom-name { color: #e0eaf8; }
.dark-mode body.home-light .domtom-region { color: rgba(180,210,255,0.55); }
.dark-mode body.home-light .domtom-temp { color: #c8dff8; }
.dark-mode body.home-light .domtom-weather-label { color: rgba(180,210,255,0.55); }

/* Villes rapides â€” region pills */
.dark-mode body.home-light .region-pill {
  background: rgba(28,134,238,0.12);
  border-color: rgba(28,134,238,0.25);
  color: #7aaae8;
}
.dark-mode body.home-light .region-pill:hover { background: rgba(28,134,238,0.22); color: #aaccff; }
.dark-mode body.home-light .region-pill.active { background: #1c86ee; color: #fff; }

/* SEO / textes longs */
.dark-mode body.home-light .seo-inner { background: transparent; border: none; }
.dark-mode body.home-light .seo-lead,
.dark-mode body.home-light .seo-lead strong { color: rgba(180,210,255,0.70); }
.dark-mode body.home-light .seo-feature > i { color: #4fc3f7; }
.dark-mode body.home-light .seo-feature strong { color: #e0eaf8; }
.dark-mode body.home-light .seo-feature span { color: rgba(180,210,255,0.60); }
.dark-mode body.home-light .seo-stat-card {
  background: rgba(28,134,238,0.10);
  border-color: rgba(28,134,238,0.20);
}
.dark-mode body.home-light .seo-stat-value { color: #4fc3f7; }
.dark-mode body.home-light .seo-stat-label { color: rgba(180,210,255,0.60); }
.dark-mode body.home-light .seo-links {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.07);
}
.dark-mode body.home-light .seo-links-title { color: rgba(180,210,255,0.40); }
.dark-mode body.home-light .seo-links a { color: #4fc3f7; border-bottom-color: rgba(255,255,255,0.07); }
.dark-mode body.home-light .seo-links a:hover { color: #80d4ff; }
.dark-mode body.home-light .seo-links a i { color: #5090c0; }

/* Footer */
.dark-mode body.home-light .footer { background: #07111f; }

/* Topbar background en dark mode */
.dark-mode .topbar {
  background: rgba(5,12,28,0.90);
  border-bottom-color: rgba(255,255,255,0.07);
}

/* Sidebar en dark mode â€” lÃ©gÃ¨rement plus opaque */
.dark-mode .sidebar {
  background: rgba(3,8,20,0.82);
  border-right-color: rgba(255,255,255,0.06);
}

/* Hero en dark mode */
.dark-mode body.home-light .hero {
  background: linear-gradient(160deg, #0a2a5a 0%, #050f22 100%);
}

/* Ã‰phÃ©mÃ©rides en dark mode */
.dark-mode body.home-light .eph-item {
  background: #132240;
  border-color: rgba(255,255,255,0.07);
}
.dark-mode body.home-light .eph-label { color: rgba(180,210,255,0.45); }
.dark-mode body.home-light .eph-value { color: #e0eaf8; }
.dark-mode body.home-light .eph-sub   { color: rgba(180,210,255,0.55); }
.dark-mode body.home-light .eph-ferie {
  background: rgba(255,210,80,0.08);
  border-color: rgba(255,210,80,0.20);
}
.dark-mode body.home-light .eph-ferie .eph-value { color: #f0d060; }
.dark-mode body.home-light .eph-ferie .eph-label { color: rgba(240,200,80,0.55); }
.dark-mode body.home-light .eph-ferie-days,
.dark-mode body.home-light .eph-ferie-days span { color: #f0d060; }
.dark-mode body.home-light .eph-soleil .eph-value { color: #e0eaf8; }

/* Bulletin mÃ©tÃ©o en dark mode */
.dark-mode body.home-light .bulletin-lead {
  background: rgba(28,134,238,0.10);
  border-left-color: #1c86ee;
}
.dark-mode body.home-light .bulletin-intro { color: rgba(180,210,255,0.80); }
.dark-mode body.home-light .bulletin-intro strong { color: #e0eaf8; }
.dark-mode body.home-light .bulletin-zone {
  background: #132240;
  border-color: rgba(255,255,255,0.07);
}
.dark-mode body.home-light .bulletin-zone h3 { color: #93c5fd; }
.dark-mode body.home-light .bulletin-zone h3 i { color: #4fc3f7; }
.dark-mode body.home-light .bulletin-zone p { color: rgba(180,210,255,0.72); }
.dark-mode body.home-light .bulletin-zone p strong { color: #e0eaf8; }
.dark-mode body.home-light .bulletin-footer { color: rgba(180,210,255,0.35); }

/* Villes populaires en dark mode */
.dark-mode body.home-light .pop-row {
  background: #132240;
  border-color: rgba(255,255,255,0.06);
}
.dark-mode body.home-light .pop-row:hover { background: #1a3258; }
.dark-mode body.home-light .pop-name  { color: #e0eaf8; }
.dark-mode body.home-light .pop-range { color: rgba(180,210,255,0.55); }
.dark-mode body.home-light .pop-temp  { color: #c8dff8; }

/* Capitales du monde â€” wc-card en dark mode */
.dark-mode body.home-light .wc-card {
  background: #132240;
  border-color: rgba(255,255,255,0.07);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.dark-mode body.home-light .wc-card:hover {
  box-shadow: 0 8px 24px rgba(28,134,238,0.20);
  border-color: rgba(28,134,238,0.25);
}
.dark-mode body.home-light .wc-city    { color: #e0eaf8; }
.dark-mode body.home-light .wc-country { color: rgba(180,210,255,0.50); }
.dark-mode body.home-light .wc-time    {
  background: rgba(28,134,238,0.15);
  color: #7aaae8;
}
.dark-mode body.home-light .wc-temp    { color: #c8dff8; }
.dark-mode body.home-light .wc-label   { color: rgba(180,210,255,0.55); }
.dark-mode body.home-light .wc-nav {
  background: rgba(19,34,64,0.95);
  border-color: rgba(255,255,255,0.12);
  color: #4fc3f7;
}
.dark-mode body.home-light .wc-nav:hover { background: #1a3258; }

/* Articles "On vous explique" en dark mode */
.dark-mode body.home-light .article-card {
  background: #132240;
  border-color: rgba(255,255,255,0.07);
}
.dark-mode body.home-light .article-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

/* Article complet en dark mode â€” fond unique sur le parent */
.dark-mode body.home-light .blog-article-full { background: #0e1e36; color: #d0e0f0; }
/* Divs enfants : pas de background propre */
.dark-mode body.home-light .blog-article-body h2 { color: #5ab0ff; }
.dark-mode body.home-light .blog-article-body p,
.dark-mode body.home-light .blog-article-body li { color: #c0d4ec; }
.dark-mode body.home-light .blog-article-lead { color: #90b8e0; border-color: #1c86ee; }
.dark-mode body.home-light .blog-article-body strong { color: #fff; font-weight: 700; }
.dark-mode body.home-light .blog-article-footer { border-color: rgba(255,255,255,0.08); }
.dark-mode body.home-light .blog-related { border-color: rgba(255,255,255,0.08); }
.dark-mode body.home-light .blog-related-title { color: #e0eaf8; }

/* Hero blog + actu en dark mode */
.dark-mode body.home-light .blog-hero-title,
.dark-mode body.home-light #blog-hero-inner .blog-hero-title,
.dark-mode body.home-light #actu-hero-inner .blog-hero-title { color: #fff; }
.dark-mode body.home-light .blog-hero-subtitle,
.dark-mode body.home-light #blog-hero-inner .blog-hero-subtitle,
.dark-mode body.home-light #actu-hero-inner .blog-hero-subtitle { color: rgba(255,255,255,0.75); }
.dark-mode body.home-light .blog-hero-icon { background: rgba(28,134,238,0.20); color: #5ab0ff; }
.dark-mode body.home-light .article-title   { color: #e0eaf8; }
.dark-mode body.home-light .article-excerpt { color: rgba(180,210,255,0.65); }
.dark-mode body.home-light .article-date,
.dark-mode body.home-light .article-time    { color: rgba(180,210,255,0.40); }

/* Articles scrollbar en dark mode */
.dark-mode body.home-light .articles-grid {
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

/* ============================================================
   DARK MODE â€” ESPACE PERSONNEL
   ============================================================ */
.dark-mode .site-main { background: #0d1b2e; }

/* Onglets */
.dark-mode .ep-tab {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.60) !important;
  box-shadow: none !important;
}
.dark-mode .ep-tab:hover {
  background: rgba(255,255,255,0.14) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.22) !important;
}
.dark-mode .ep-tab.active {
  background: rgba(255,255,255,0.20) !important;
  border-color: rgba(255,255,255,0.30) !important;
  color: #fff !important;
}

/* Cards */
.dark-mode .ep-card {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.10) !important;
  box-shadow: none !important;
}
.dark-mode .ep-card-title { color: #fff !important; }
.dark-mode .ep-card-sub { color: rgba(255,255,255,0.50) !important; }
.dark-mode .ep-obs-count { color: rgba(255,255,255,0.40) !important; }

/* Profil public */
.dark-mode .ep-profil-avatar { background: rgba(255,255,255,0.12) !important; color: rgba(255,255,255,0.55) !important; border-color: rgba(255,255,255,0.15) !important; }
.dark-mode .ep-profil-name { color: #fff !important; }
.dark-mode .ep-profil-city, .dark-mode .ep-profil-since { color: rgba(255,255,255,0.55) !important; }
.dark-mode .ep-bio-label { color: rgba(255,255,255,0.70) !important; }
.dark-mode .ep-bio-text { color: rgba(255,255,255,0.80) !important; }
.dark-mode .ep-bio-view { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.08) !important; }
.dark-mode .ep-stat-val { color: #4fc3f7 !important; }
.dark-mode .ep-stat-label { color: rgba(255,255,255,0.45) !important; }

/* Observations */
.dark-mode .ep-obs-item { border-bottom-color: rgba(255,255,255,0.08) !important; }
.dark-mode .ep-obs-icon { background: rgba(255,255,255,0.10) !important; }
.dark-mode .ep-obs-type { color: #fff !important; }
.dark-mode .ep-obs-city { color: rgba(255,255,255,0.50) !important; }
.dark-mode .ep-obs-desc { color: rgba(255,255,255,0.68) !important; }
.dark-mode .ep-obs-date { color: rgba(255,255,255,0.35) !important; }
.dark-mode .ep-obs-views { color: rgba(255,255,255,0.35) !important; }
.dark-mode .ep-obs-del { border-color: rgba(255,80,80,0.30) !important; color: rgba(255,100,100,0.65) !important; }
.dark-mode .ep-obs-del:hover { background: rgba(255,80,80,0.12) !important; color: #ff6060 !important; }
.dark-mode .ep-loading { color: rgba(255,255,255,0.45) !important; }
.dark-mode .ep-obs-empty { color: rgba(255,255,255,0.40) !important; }

/* Formulaire */
.dark-mode .ep-form-section-title { color: rgba(255,255,255,0.40) !important; border-bottom-color: rgba(255,255,255,0.08) !important; }
.dark-mode .ep-field label { color: rgba(255,255,255,0.70) !important; }
.dark-mode .ep-field input[type=text],
.dark-mode .ep-field input[type=email],
.dark-mode .ep-field input[type=date],
.dark-mode .ep-field textarea {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.16) !important;
  color: #fff !important;
}
.dark-mode .ep-field input:focus,
.dark-mode .ep-field textarea:focus {
  border-color: rgba(79,195,247,0.55) !important;
  background: rgba(255,255,255,0.12) !important;
  box-shadow: none !important;
}
.dark-mode .ep-field input:disabled { background: rgba(255,255,255,0.04) !important; color: rgba(255,255,255,0.30) !important; }
.dark-mode .ep-field-note { color: rgba(255,255,255,0.35) !important; }
.dark-mode .ep-char-counter { color: rgba(255,255,255,0.35) !important; }
.dark-mode .ep-upload-btn { background: rgba(255,255,255,0.10) !important; border-color: rgba(255,255,255,0.16) !important; color: rgba(255,255,255,0.80) !important; }
.dark-mode .ep-upload-btn:hover { background: rgba(255,255,255,0.18) !important; }
.dark-mode .ep-delete-avatar a { color: rgba(255,120,120,0.85) !important; }

/* City autocomplete */
.dark-mode .ep-city-list { background: #0f1e40 !important; border-color: rgba(255,255,255,0.12) !important; }
.dark-mode .ep-city-list li { color: rgba(255,255,255,0.80) !important; border-bottom-color: rgba(255,255,255,0.05) !important; }
.dark-mode .ep-city-list li:hover, .dark-mode .ep-city-list li.active { background: rgba(28,134,238,0.25) !important; }

/* ============================================================
   POLLEN â€” WIDGET (page mÃ©tÃ©o ville)
   ============================================================ */
.pln-loading {
  padding: 24px;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pln-error {
  padding: 18px 20px;
  color: rgba(255,160,160,0.80);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Bandeau rÃ©sumÃ© */
.pln-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px 10px;
}

.pln-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
}

.pln-season-info {
  font-size: 0.80rem;
  color: rgba(255,255,255,0.50);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Lignes pollen */
.pln-rows {
  padding: 4px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pln-row {
  display: grid;
  grid-template-columns: 22px 100px 1fr 70px 80px;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
  font-size: 0.83rem;
  transition: background 0.15s;
}

.pln-row:hover { background: rgba(255,255,255,0.05); }

.pln-row.pln-in-season {
  background: rgba(255,255,255,0.05);
}

.pln-icon  { font-size: 1.1rem; text-align: center; }
.pln-label { font-weight: 500; color: rgba(255,255,255,0.80); white-space: nowrap; }

.pln-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,0.10);
  border-radius: 6px;
  overflow: hidden;
}
.pln-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease;
}

/* Badges niveau */
.pln-badge {
  font-size: 0.73rem;
  font-weight: 700;
  text-align: center;
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
}

.pln-val {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.40);
  text-align: right;
  white-space: nowrap;
}

/* Niveaux â€” couleurs */
.pln-none      { background: rgba(76,175,80,0.20);  color: #81c784; }
.pln-low       { background: rgba(139,195,74,0.22); color: #aed581; }
.pln-moderate  { background: rgba(255,193,7,0.22);  color: #ffd54f; }
.pln-high      { background: rgba(255,152,0,0.25);  color: #ffb74d; }
.pln-very-high { background: rgba(244,67,54,0.25);  color: #ef9a9a; }
.pln-na        { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.35); }

/* Barre â€” couleurs */
.pln-bar.pln-none      { background: #66bb6a; }
.pln-bar.pln-low       { background: #9ccc65; }
.pln-bar.pln-moderate  { background: #ffca28; }
.pln-bar.pln-high      { background: #ffa726; }
.pln-bar.pln-very-high { background: #ef5350; }
.pln-bar.pln-na        { background: rgba(255,255,255,0.20); }

/* Bouton rÃ©sumÃ© â€” niveaux */
.pln-summary-badge.pln-none      { background: rgba(76,175,80,0.20);  border-color: rgba(76,175,80,0.40); }
.pln-summary-badge.pln-low       { background: rgba(139,195,74,0.20); border-color: rgba(139,195,74,0.40); }
.pln-summary-badge.pln-moderate  { background: rgba(255,193,7,0.20);  border-color: rgba(255,193,7,0.40); }
.pln-summary-badge.pln-high      { background: rgba(255,152,0,0.22);  border-color: rgba(255,152,0,0.45); }
.pln-summary-badge.pln-very-high { background: rgba(244,67,54,0.22);  border-color: rgba(244,67,54,0.45); }

.pln-source {
  padding: 8px 18px 14px;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.28);
}
.pln-source a { color: rgba(255,255,255,0.45); text-decoration: underline; }

@media (max-width: 600px) {
  .pln-row {
    grid-template-columns: 22px 1fr 60px;
    grid-template-rows: auto auto;
  }
  .pln-bar-wrap { grid-column: 1 / -1; grid-row: 2; margin-top: -2px; }
  .pln-val { display: none; }
}

/* ============================================================
   POLLEN â€” PAGE DÃ‰DIÃ‰E (allergenes.html)
   ============================================================ */

/* Hero */
.al-hero {
  background: linear-gradient(160deg, #2d7a3a 0%, #1a5c28 100%);
  padding: 56px 24px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.al-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.al-hero-content { position: relative; max-width: 640px; margin: 0 auto; }

.al-hero-icon {
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

.al-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.al-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Search */
.al-search-wrap {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.al-search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 100px;
  padding: 0 6px 0 18px;
  height: 52px;
  gap: 10px;
  transition: background 0.2s, border-color 0.2s;
}

.al-search-box:focus-within {
  background: rgba(255,255,255,0.30);
  border-color: rgba(255,255,255,0.80);
}

.al-search-box > .fa-magnifying-glass {
  color: rgba(255,255,255,0.70);
  font-size: 0.9rem;
  flex-shrink: 0;
}

#al-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  min-width: 0;
}

#al-search-input::placeholder { color: rgba(255,255,255,0.60); }

.al-geoloc-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.20);
  border: none;
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.al-geoloc-btn:hover { background: rgba(255,255,255,0.38); }

/* Autocomplete (rÃ©utilise .topbar-ac-list mais positionnÃ© sous .al-search-wrap) */
.al-search-wrap .topbar-ac-list {
  top: calc(100% + 6px);
  left: 0; right: 0;
}

/* Page body */
.al-page-body {
  padding-top: 40px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* RÃ©sultat */
.al-result-header {
  margin-bottom: 20px;
}

.al-result-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.al-result-header h2 i { color: #1c86ee; }

.al-result-date {
  font-size: 0.83rem;
  color: #6a7a90;
  margin: 0;
}

/* Grille des 6 pollens */
.al-pollen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

@media (max-width: 700px) { .al-pollen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .al-pollen-grid { grid-template-columns: 1fr; } }

.al-card {
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 16px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.al-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}

.al-card-season { border-color: #b8d8b8; }

.al-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}

.al-card-icon { font-size: 2rem; line-height: 1; }

.al-season-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid #c8e6c9;
}

.al-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2a4a;
}

.al-card-season-lbl {
  font-size: 0.73rem;
  color: #8a9aaa;
  margin-bottom: 6px;
}

.al-card-level {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 4px;
}

/* RÃ©utilise les classes .pln-* pour les couleurs */
.al-card-level.pln-none      { background: #e8f5e9; color: #2e7d32; }
.al-card-level.pln-low       { background: #f1f8e9; color: #558b2f; }
.al-card-level.pln-moderate  { background: #fff8e1; color: #f57f17; }
.al-card-level.pln-high      { background: #fff3e0; color: #e65100; }
.al-card-level.pln-very-high { background: #ffebee; color: #c62828; }
.al-card-level.pln-na        { background: #f5f5f5; color: #9e9e9e; }

.al-card-val {
  font-size: 0.78rem;
  color: #8a9aaa;
  margin-bottom: 8px;
}
.al-card-val span { font-size: 0.70rem; opacity: 0.7; }

.al-bar-wrap {
  height: 5px;
  background: #eef2f7;
  border-radius: 5px;
  overflow: hidden;
  margin-top: auto;
}

.al-bar {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease;
}

.al-bar.pln-none      { background: #66bb6a; }
.al-bar.pln-low       { background: #9ccc65; }
.al-bar.pln-moderate  { background: #ffca28; }
.al-bar.pln-high      { background: #ffa726; }
.al-bar.pln-very-high { background: #ef5350; }
.al-bar.pln-na        { background: #e0e0e0; }

/* Tendance 3 jours */
.al-trend-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.al-trend-title i { color: #1c86ee; }

.al-trend-scroll { overflow-x: auto; }

.al-trend-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 360px;
  font-size: 0.85rem;
}

.al-trend-table th {
  text-align: center;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6a7a90;
  border-bottom: 1px solid #e8eef8;
  white-space: nowrap;
}

.al-trend-table th:first-child { text-align: left; }

.al-trend-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f4f8;
  text-align: center;
}

.al-trend-name {
  text-align: left !important;
  font-weight: 500;
  color: #2a3a5a;
  white-space: nowrap;
}

.al-trend-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
  display: inline-block;
}

/* RÃ©utilise les couleurs al-card-level */
.al-trend-badge.pln-none      { background: #e8f5e9; color: #2e7d32; }
.al-trend-badge.pln-low       { background: #f1f8e9; color: #558b2f; }
.al-trend-badge.pln-moderate  { background: #fff8e1; color: #f57f17; }
.al-trend-badge.pln-high      { background: #fff3e0; color: #e65100; }
.al-trend-badge.pln-very-high { background: #ffebee; color: #c62828; }
.al-trend-badge.pln-na        { background: #f5f5f5; color: #9e9e9e; }

/* Calendrier saisonnier */
.al-calendar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.al-calendar-title i { color: #1c86ee; }

.al-cal-scroll { overflow-x: auto; }

.al-cal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.83rem;
}

.al-cal-table th {
  padding: 6px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6a7a90;
  text-align: center;
  border-bottom: 1px solid #e8eef8;
}

.al-cal-table th:first-child { text-align: left; min-width: 110px; }

.al-cal-current {
  background: #eff8ff;
  color: #1c86ee !important;
  font-weight: 700 !important;
  border-radius: 4px;
}

.al-cal-table td {
  padding: 7px 8px;
  text-align: center;
  border-bottom: 1px solid #f4f8ff;
  color: #c8d8e8;
  font-size: 0.65rem;
}

.al-cal-name {
  text-align: left !important;
  font-weight: 500;
  color: #2a3a5a;
  white-space: nowrap;
  font-size: 0.83rem !important;
}

.al-cal-active { color: #2d7a3a !important; font-size: 0.8rem; }
.al-cal-now    { color: #1c86ee !important; font-weight: 900; }

.al-cal-note {
  font-size: 0.75rem;
  color: #8a9aaa;
  margin-top: 10px;
  font-style: italic;
}

/* Fiches allergÃ¨nes */
.al-info-section { }

.al-info-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.al-info-title i { color: #1c86ee; }

.al-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 800px) { .al-info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .al-info-grid { grid-template-columns: 1fr; } }

.al-info-card {
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.al-info-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  line-height: 1;
}

.al-info-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 6px;
}

.al-info-card p {
  font-size: 0.83rem;
  color: #5a6a7a;
  line-height: 1.6;
  margin: 0;
}

/* Conseils */
.al-tips-section { }

.al-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 600px) { .al-tips-grid { grid-template-columns: 1fr; } }

.al-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f4f8ff;
  border: 1px solid #e0eaf8;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.86rem;
  color: #3a4a5a;
  line-height: 1.5;
}

.al-tip i {
  color: #1c86ee;
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

/* â”€â”€ Dark mode â€” page allergÃ¨nes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dark-mode .al-result-header h2 { color: #e0eaf8; }
.dark-mode .al-result-date { color: rgba(180,210,255,0.50); }
.dark-mode .al-card {
  background: #132240;
  border-color: rgba(255,255,255,0.07);
  box-shadow: none;
}
.dark-mode .al-card-name { color: #e0eaf8; }
.dark-mode .al-card-season-lbl { color: rgba(180,210,255,0.45); }
.dark-mode .al-card-val { color: rgba(180,210,255,0.45); }
.dark-mode .al-card-level.pln-none      { background: rgba(46,125,50,0.25);  color: #81c784; }
.dark-mode .al-card-level.pln-low       { background: rgba(85,139,47,0.25);  color: #aed581; }
.dark-mode .al-card-level.pln-moderate  { background: rgba(245,127,23,0.25); color: #ffd54f; }
.dark-mode .al-card-level.pln-high      { background: rgba(230,81,0,0.25);   color: #ffb74d; }
.dark-mode .al-card-level.pln-very-high { background: rgba(198,40,40,0.25);  color: #ef9a9a; }
.dark-mode .al-card-level.pln-na        { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.35); }
.dark-mode .al-bar-wrap { background: rgba(255,255,255,0.08); }
.dark-mode .al-season-badge { background: rgba(46,125,50,0.22); color: #81c784; border-color: rgba(76,175,80,0.30); }

.dark-mode .al-trend-title { color: #e0eaf8; }
.dark-mode .al-trend-table th { color: rgba(180,210,255,0.50); border-bottom-color: rgba(255,255,255,0.07); }
.dark-mode .al-trend-table td { border-bottom-color: rgba(255,255,255,0.05); }
.dark-mode .al-trend-name { color: rgba(180,210,255,0.80); }
.dark-mode .al-trend-badge.pln-none      { background: rgba(46,125,50,0.25);  color: #81c784; }
.dark-mode .al-trend-badge.pln-low       { background: rgba(85,139,47,0.25);  color: #aed581; }
.dark-mode .al-trend-badge.pln-moderate  { background: rgba(245,127,23,0.25); color: #ffd54f; }
.dark-mode .al-trend-badge.pln-high      { background: rgba(230,81,0,0.25);   color: #ffb74d; }
.dark-mode .al-trend-badge.pln-very-high { background: rgba(198,40,40,0.25);  color: #ef9a9a; }
.dark-mode .al-trend-badge.pln-na        { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.35); }

.dark-mode .al-calendar-title { color: #e0eaf8; }
.dark-mode .al-cal-table th { color: rgba(180,210,255,0.50); border-bottom-color: rgba(255,255,255,0.07); }
.dark-mode .al-cal-table td { border-bottom-color: rgba(255,255,255,0.04); color: rgba(255,255,255,0.15); }
.dark-mode .al-cal-name { color: rgba(180,210,255,0.80); }
.dark-mode .al-cal-active { color: #81c784 !important; }
.dark-mode .al-cal-now    { color: #4fc3f7 !important; }
.dark-mode .al-cal-current { background: rgba(28,134,238,0.15); }
.dark-mode .al-cal-note { color: rgba(180,210,255,0.35); }

.dark-mode .al-info-title { color: #e0eaf8; }
.dark-mode .al-info-card { background: #132240; border-color: rgba(255,255,255,0.07); }
.dark-mode .al-info-card h3 { color: #e0eaf8; }
.dark-mode .al-info-card p { color: rgba(180,210,255,0.65); }

.dark-mode .al-tip { background: rgba(28,134,238,0.08); border-color: rgba(28,134,238,0.18); color: rgba(180,210,255,0.75); }
.dark-mode .al-tip strong { color: #e0eaf8; }

/* ============================================================
   FOOTER LINKS
   ============================================================ */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 10px 0;
  font-size: 0.85rem;
}
.footer-links a {
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s;
}
.footer-links a:hover { color: rgba(255,255,255,0.90); }

/* ============================================================
   SCROLLBAR (WebKit)
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 3px; }

/* ============================================================
   EMPLACEMENTS PUBLICITAIRES
   ============================================================ */
.ad-slot-wrap {
  min-height: 100px;
}
.ad-slot-wrap ins.adsbygoogle {
  display: block;
  min-height: 90px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 12px;
  position: relative;
}
/* Label "PublicitÃ©" visible tant qu'AdSense n'a pas rempli le slot */
.ad-slot-wrap ins.adsbygoogle:empty::after {
  content: 'PublicitÃ©';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  pointer-events: none;
}
/* Pages en mode clair (allergÃ¨nes, blogâ€¦) */
body.home-light .ad-slot-wrap ins.adsbygoogle {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
}
body.home-light .ad-slot-wrap ins.adsbygoogle:empty::after {
  color: rgba(0,0,0,0.25);
}

/* ============================================================
   PAGE 404
   ============================================================ */
.notfound-wrap { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:24px; gap:20px; }
.notfound-code { font-size:clamp(5rem,20vw,9rem); font-weight:800; letter-spacing:-6px; line-height:1; opacity:0.25; }
.notfound-icon { font-size:4rem; }
.notfound-title { font-size:1.5rem; font-weight:700; }
.notfound-sub { color:rgba(255,255,255,0.65); max-width:360px; line-height:1.6; }
.notfound-search-wrap { position:relative; width:100%; max-width:400px; }
.notfound-search-wrap .autocomplete-list { top:calc(100% + 6px); left:0; right:0; text-align:left; }
.notfound-search { display:flex; align-items:center; background:rgba(255,255,255,0.18); backdrop-filter:blur(20px); border:1.5px solid rgba(255,255,255,0.35); border-radius:50px; padding:6px 6px 6px 20px; width:100%; gap:10px; }
.notfound-search input { flex:1; background:none; border:none; outline:none; font-size:1rem; color:#fff; font-family:inherit; }
.notfound-search input::placeholder { color:rgba(255,255,255,0.5); }
.nf-search-icon { color:rgba(255,255,255,0.6); }
.notfound-links { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:8px; }
.notfound-cities-label { color:rgba(255,255,255,0.5); font-size:0.82rem; }
.notfound-cities { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; max-width:500px; }
.notfound-city-pill { background:rgba(255,255,255,0.12); color:rgba(255,255,255,0.85); padding:6px 14px; border-radius:50px; font-size:0.85rem; text-decoration:none; transition:background 0.15s; }
.notfound-city-pill:hover { background:rgba(255,255,255,0.22); color:#fff; }

/* ThÃ¨me clair */
html:not(.dark-mode) .notfound-sub { color:#4a5568; }
html:not(.dark-mode) .notfound-search { background:rgba(0,0,0,0.06); border-color:rgba(0,0,0,0.18); }
html:not(.dark-mode) .notfound-search input { color:#1a2a4a; }
html:not(.dark-mode) .notfound-search input::placeholder { color:#8a9ab5; }
html:not(.dark-mode) .nf-search-icon { color:#5a7090; }
html:not(.dark-mode) .notfound-cities-label { color:#64748b; }
html:not(.dark-mode) .notfound-city-pill { background:rgba(0,0,0,0.07); color:#1a2a4a; }
html:not(.dark-mode) .notfound-city-pill:hover { background:rgba(0,0,0,0.13); }

/* ============================================================
   PAGE FOUDRE â€” CONSEILS SÃ‰CURITÃ‰
   ============================================================ */
.foudre-tips-card { background:var(--card-bg); border:1px solid var(--card-border); border-radius:20px; padding:24px; }
.foudre-tips-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:12px; }
.foudre-tip { display:flex; align-items:flex-start; gap:12px; padding:12px 14px; background:rgba(255,255,255,0.04); border-radius:12px; font-size:0.85rem; color:rgba(255,255,255,0.75); line-height:1.4; }
.foudre-tip i { color:#ffd166; flex-shrink:0; margin-top:2px; width:16px; }

/* ============================================================
   PAGE MENTIONS LÃ‰GALES
   ============================================================ */
.ml-section { background:#fff; border-radius:16px; padding:24px; margin-bottom:16px; border:1px solid rgba(0,0,0,0.07); box-shadow:0 2px 12px rgba(0,0,0,0.04); }
.ml-section h2 { font-size:1.1rem; font-weight:800; color:#1a2a4a; margin-bottom:12px; display:flex; align-items:center; gap:10px; }
.ml-section h2 i { color:#1c86ee; font-size:1rem; }
.ml-section p { color:#5a6a80; font-size:0.9rem; line-height:1.7; margin-bottom:8px; }
.ml-section ul { color:#5a6a80; font-size:0.9rem; line-height:1.8; padding-left:20px; margin-bottom:8px; }
.ml-section a { color:#1c86ee; }

/* ============================================================
   PAGE MODÃˆLES MÃ‰TÃ‰O
   ============================================================ */
.modeles-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:20px; }
.modele-card { background:var(--card-bg); border:1px solid var(--card-border); border-radius:20px; overflow:hidden; }
.modele-header { display:flex; align-items:center; gap:14px; padding:18px 20px; }
.modele-gfs    { background:linear-gradient(135deg,rgba(28,134,238,0.25),rgba(10,74,138,0.25)); }
.modele-ecmwf  { background:linear-gradient(135deg,rgba(255,193,7,0.25),rgba(255,152,0,0.2)); }
.modele-arpege { background:linear-gradient(135deg,rgba(239,68,68,0.25),rgba(180,30,30,0.2)); }
.modele-arome  { background:linear-gradient(135deg,rgba(168,85,247,0.25),rgba(109,40,217,0.2)); }
.modele-icon   { background:linear-gradient(135deg,rgba(20,184,166,0.25),rgba(15,118,110,0.2)); }
.modele-logo { width:44px; height:44px; border-radius:12px; background:rgba(255,255,255,0.12); display:flex; align-items:center; justify-content:center; font-size:1.3rem; flex-shrink:0; }
.modele-name { font-size:1.15rem; font-weight:800; }
.modele-org  { font-size:0.8rem; opacity:0.65; margin-top:2px; }
.modele-badge { margin-left:auto; padding:4px 10px; border-radius:20px; background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.15); font-size:0.72rem; font-weight:700; text-align:center; flex-shrink:0; }
.modele-badge-gold { background:rgba(255,193,7,0.2); border-color:rgba(255,193,7,0.4); color:#ffd166; }
.modele-body { padding:16px 20px 20px; }
.modele-body p { font-size:0.88rem; color:rgba(255,255,255,0.75); line-height:1.6; margin-bottom:14px; }
.modele-specs { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:14px; }
.modele-spec { display:flex; align-items:center; gap:8px; background:rgba(255,255,255,0.05); border-radius:10px; padding:8px 10px; font-size:0.8rem; }
.modele-spec i { color:#4fc3f7; width:14px; flex-shrink:0; }
.modele-spec span { opacity:0.6; flex:1; }
.modele-spec strong { font-weight:700; }
.modele-strengths { display:flex; flex-wrap:wrap; gap:6px; }
.modele-tag { padding:3px 9px; border-radius:20px; font-size:0.73rem; font-weight:700; }
.modele-tag-green { background:rgba(52,211,153,0.15); color:#34d399; border:1px solid rgba(52,211,153,0.3); }
.modele-tag-blue  { background:rgba(79,195,247,0.15); color:#4fc3f7; border:1px solid rgba(79,195,247,0.3); }
.modele-tag-gold  { background:rgba(255,193,7,0.15); color:#ffd166; border:1px solid rgba(255,193,7,0.3); }
.modele-tag-gray  { background:rgba(255,255,255,0.08); color:rgba(255,255,255,0.55); border:1px solid rgba(255,255,255,0.12); }
.modele-table { width:100%; border-collapse:collapse; font-size:0.88rem; min-width:560px; }
.modele-table th { background:rgba(255,255,255,0.08); padding:10px 14px; text-align:left; font-size:0.78rem; font-weight:700; text-transform:uppercase; letter-spacing:0.05em; opacity:0.7; border-bottom:1px solid rgba(255,255,255,0.12); }
.modele-table td { padding:10px 14px; border-bottom:1px solid rgba(255,255,255,0.06); color:rgba(255,255,255,0.8); }
.modele-table tr:last-child td { border-bottom:none; }
.modele-table tr:hover td { background:rgba(255,255,255,0.04); }
@media (max-width:600px) { .modeles-grid { grid-template-columns:1fr; } .modele-specs { grid-template-columns:1fr; } }

/* ============================================================
   PAGE CONNEXION / INSCRIPTION
   ============================================================ */
body.auth-page { background:linear-gradient(135deg,#0a1628 0%,#1c86ee 100%); }
.auth-container { width:100%; max-width:440px; background:rgba(255,255,255,0.10); backdrop-filter:blur(48px) saturate(200%); -webkit-backdrop-filter:blur(48px) saturate(200%); border:1px solid rgba(255,255,255,0.20); border-radius:28px; padding:36px 32px; box-shadow:0 24px 60px rgba(0,0,0,0.30),inset 0 1px 0 rgba(255,255,255,0.25); }
.auth-logo { display:flex; align-items:center; justify-content:center; gap:10px; font-weight:800; font-size:1.2rem; margin-bottom:28px; color:#fff; }
.auth-logo i { color:#4fc3f7; font-size:1.5rem; }
.auth-tabs { display:flex; background:rgba(255,255,255,0.08); border-radius:14px; padding:4px; margin-bottom:24px; gap:4px; }
.auth-tab { flex:1; padding:10px; border-radius:10px; background:none; border:none; color:rgba(255,255,255,0.55); font-size:0.88rem; font-weight:600; cursor:pointer; transition:all 0.2s; font-family:var(--font); }
.auth-tab.active { background:rgba(255,255,255,0.16); color:#fff; box-shadow:0 2px 8px rgba(0,0,0,0.15); }
.auth-hint { font-size:0.85rem; color:rgba(255,255,255,0.60); margin-bottom:20px; line-height:1.5; }
.auth-field { margin-bottom:16px; position:relative; }
.auth-field label { display:flex; align-items:center; gap:8px; font-size:0.82rem; font-weight:600; color:rgba(255,255,255,0.75); margin-bottom:6px; }
.auth-field input[type=text],.auth-field input[type=email],.auth-field input[type=password],.auth-field input[type=date] { width:100%; height:48px; background:rgba(255,255,255,0.10); border:1px solid rgba(255,255,255,0.18); border-radius:14px; padding:0 16px; color:#fff; font-size:0.95rem; font-family:var(--font); outline:none; transition:border-color 0.18s,background 0.18s; }
.auth-field input::placeholder { color:rgba(255,255,255,0.30); }
.auth-field input:focus { border-color:rgba(79,195,247,0.55); background:rgba(255,255,255,0.14); }
.auth-pwd-wrap { position:relative; }
.auth-pwd-wrap input { padding-right:48px; }
.auth-pwd-toggle { position:absolute; right:14px; top:50%; transform:translateY(-50%); background:none; border:none; color:rgba(255,255,255,0.45); cursor:pointer; font-size:0.95rem; }
.auth-pwd-strength { margin-top:6px; font-size:0.75rem; height:16px; }
.auth-forgot { text-align:right; margin-bottom:20px; }
.auth-forgot a { font-size:0.82rem; color:rgba(255,255,255,0.55); transition:color 0.18s; }
.auth-forgot a:hover { color:#4fc3f7; }
/* Remember-me row */
.auth-remember-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:20px; flex-wrap:wrap; }
.auth-toggle-wrap { display:flex; align-items:center; gap:9px; cursor:pointer; user-select:none; }
.auth-toggle-wrap input { position:absolute; opacity:0; width:0; height:0; }
.auth-toggle { position:relative; display:inline-block; width:38px; height:22px; border-radius:11px; background:rgba(255,255,255,0.18); border:1.5px solid rgba(255,255,255,0.22); transition:background .22s, border-color .22s; flex-shrink:0; }
.auth-toggle::after { content:''; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.25); transition:transform .22s; }
.auth-toggle-wrap input:checked + .auth-toggle { background:#1c86ee; border-color:#1c86ee; }
.auth-toggle-wrap input:checked + .auth-toggle::after { transform:translateX(16px); }
.auth-toggle-label { font-size:0.8rem; color:rgba(255,255,255,0.6); line-height:1.3; }
.auth-forgot-link { font-size:0.82rem; color:rgba(255,255,255,0.55); transition:color 0.18s; white-space:nowrap; }
.auth-forgot-link:hover { color:#4fc3f7; }
.auth-submit { width:100%; height:52px; background:linear-gradient(135deg,#1c86ee,#0a4a8a); border:none; border-radius:16px; color:#fff; font-size:1rem; font-weight:700; font-family:var(--font); cursor:pointer; display:flex; align-items:center; justify-content:center; gap:10px; transition:opacity 0.18s,transform 0.15s; box-shadow:0 6px 20px rgba(28,134,238,0.35); }
.auth-submit:hover { opacity:0.9; transform:translateY(-1px); }
.auth-submit:disabled { opacity:0.55; cursor:default; transform:none; }
.auth-error { margin-top:12px; padding:10px 14px; background:rgba(255,80,80,0.12); border:1px solid rgba(255,80,80,0.25); border-radius:10px; font-size:0.83rem; color:rgba(255,160,160,0.95); }
.auth-success { text-align:center; padding:20px 0; }
.auth-success i { font-size:3rem; color:#00b894; margin-bottom:12px; display:block; }
.auth-success p { color:rgba(255,255,255,0.8); font-size:0.95rem; }
.auth-cgu { margin-bottom:20px; }
.auth-checkbox { display:flex; align-items:flex-start; gap:10px; cursor:pointer; font-size:0.82rem; color:rgba(255,255,255,0.65); line-height:1.5; }
.auth-checkbox input { margin-top:2px; flex-shrink:0; }
.auth-checkbox a { color:#4fc3f7; }
.auth-back { text-align:center; margin-top:20px; }
.auth-back a { font-size:0.85rem; color:rgba(255,255,255,0.45); display:inline-flex; align-items:center; gap:6px; transition:color 0.18s; }
.auth-back a:hover { color:rgba(255,255,255,0.80); }
.auth-city-wrap { position:relative; }
.auth-city-list { position:absolute; top:52px; left:0; right:0; background:rgba(15,30,60,0.97); backdrop-filter:blur(16px); border:1px solid rgba(255,255,255,0.15); border-radius:14px; list-style:none; z-index:50; max-height:220px; overflow-y:auto; box-shadow:0 8px 32px rgba(0,0,0,0.3); }
.auth-city-list:empty { display:none; }
.auth-city-list li { display:flex; align-items:center; gap:10px; padding:11px 16px; cursor:pointer; font-size:0.88rem; color:rgba(255,255,255,0.85); border-bottom:1px solid rgba(255,255,255,0.05); transition:background 0.15s; }
.auth-city-list li:last-child { border-bottom:none; }
.auth-city-list li:hover,.auth-city-list li.active { background:rgba(28,134,238,0.25); }
.auth-city-list li i { color:#4fc3f7; flex-shrink:0; }
.auth-city-list .ac-dept { color:rgba(255,255,255,0.45); font-size:0.78rem; margin-left:auto; }
.auth-city-selected { display:flex; align-items:center; gap:8px; margin-top:6px; font-size:0.80rem; color:rgba(79,195,247,0.9); }
.auth-city-selected button { background:none; border:none; color:rgba(255,255,255,0.4); cursor:pointer; font-size:0.78rem; margin-left:auto; }

/* â”€â”€ Auth page â€” topbar toujours visible â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.auth-page .topbar-logo { display:flex !important; }
.auth-home-btn { display:inline-flex; align-items:center; gap:6px; padding:7px 14px; border-radius:10px; background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.18); color:#fff; font-size:0.85rem; font-weight:600; text-decoration:none; margin-left:8px; transition:background 0.18s; white-space:nowrap; }
.auth-home-btn:hover { background:rgba(255,255,255,0.20); color:#fff; }
.auth-home-btn i { font-size:0.9rem; }

/* â”€â”€ Auth page â€” mode clair â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html:not(.dark-mode) body.auth-page { background:#eef2f7; }
html:not(.dark-mode) body.auth-page .topbar { background:rgba(255,255,255,0.90); backdrop-filter:blur(20px); border-bottom-color:rgba(0,0,0,0.08); }
html:not(.dark-mode) body.auth-page .topbar-logo { color:#1a2a4a; }
html:not(.dark-mode) body.auth-page .topbar-logo i { color:#1c86ee; }
html:not(.dark-mode) .auth-home-btn { background:rgba(28,134,238,0.10); border-color:rgba(28,134,238,0.25); color:#1a2a4a; }
html:not(.dark-mode) .auth-home-btn:hover { background:rgba(28,134,238,0.18); color:#1a2a4a; }
html:not(.dark-mode) .auth-container { background:#fff; border-color:rgba(0,0,0,0.10); box-shadow:0 8px 40px rgba(0,0,0,0.10),inset 0 1px 0 rgba(255,255,255,0.8); }
html:not(.dark-mode) .auth-logo { color:#1a2a4a; }
html:not(.dark-mode) .auth-logo i { color:#1c86ee; }
html:not(.dark-mode) .auth-tabs { background:rgba(0,0,0,0.05); }
html:not(.dark-mode) .auth-tab { color:#5a7090; }
html:not(.dark-mode) .auth-tab.active { background:rgba(255,255,255,0.95); color:#1a2a4a; box-shadow:0 2px 8px rgba(0,0,0,0.10); }
html:not(.dark-mode) .auth-hint { color:#5a7090; }
html:not(.dark-mode) .auth-field label { color:#1a2a4a; }
html:not(.dark-mode) .auth-field input[type=text],
html:not(.dark-mode) .auth-field input[type=email],
html:not(.dark-mode) .auth-field input[type=password],
html:not(.dark-mode) .auth-field input[type=date] { background:#f5f8fc; border-color:rgba(0,0,0,0.15); color:#1a2a4a; }
html:not(.dark-mode) .auth-field input::placeholder { color:#8a9ab0; }
html:not(.dark-mode) .auth-field input:focus { border-color:#1c86ee; background:#fff; }
html:not(.dark-mode) .auth-pwd-toggle { color:#8a9ab0; }
/* â”€â”€ Avatar inscription â”€â”€ */
.reg-avatar-wrap { display:flex; align-items:center; gap:16px; }
.reg-avatar-preview {
  width:72px; height:72px; border-radius:50%;
  background:rgba(255,255,255,0.10); border:2px solid rgba(255,255,255,0.18);
  display:flex; align-items:center; justify-content:center;
  font-size:1.8rem; color:rgba(255,255,255,0.35);
  overflow:hidden; flex-shrink:0;
}
.reg-avatar-preview img { width:100%; height:100%; object-fit:cover; }
.reg-avatar-actions { display:flex; flex-direction:column; gap:6px; }
.reg-avatar-label {
  display:inline-flex; align-items:center; gap:7px;
  background:rgba(255,255,255,0.10); border:1px solid rgba(255,255,255,0.22);
  border-radius:10px; padding:8px 14px; cursor:pointer;
  font-size:.82rem; color:rgba(255,255,255,0.85);
  transition:background .15s, border-color .15s;
}
.reg-avatar-label:hover { background:rgba(28,134,238,.18); border-color:rgba(28,134,238,.5); }
.reg-avatar-name { font-size:.75rem; color:rgba(255,255,255,0.45); }
html:not(.dark-mode) .reg-avatar-preview { background:#f0f4fa; border-color:rgba(0,0,0,0.12); color:#b0bec5; }
html:not(.dark-mode) .reg-avatar-label { background:#f0f4fa; border-color:rgba(0,0,0,0.15); color:#1a2a4a; }
html:not(.dark-mode) .reg-avatar-label:hover { background:#e3ecfa; border-color:#1c86ee; }
html:not(.dark-mode) .reg-avatar-name { color:#8a9ab0; }
html:not(.dark-mode) .auth-forgot a { color:#5a7090; }
html:not(.dark-mode) .auth-forgot a:hover { color:#1c86ee; }
html:not(.dark-mode) .auth-toggle { background:rgba(0,0,0,0.12); border-color:rgba(0,0,0,0.18); }
html:not(.dark-mode) .auth-toggle::after { background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.2); }
html:not(.dark-mode) .auth-toggle-label { color:#5a7090; }
html:not(.dark-mode) .auth-forgot-link { color:#5a7090; }
html:not(.dark-mode) .auth-forgot-link:hover { color:#1c86ee; }
html:not(.dark-mode) .auth-back a { color:#8a9ab0; }
html:not(.dark-mode) .auth-back a:hover { color:#1a2a4a; }
html:not(.dark-mode) .auth-checkbox { color:#5a7090; }
html:not(.dark-mode) .auth-success p { color:#1a2a4a; }
html:not(.dark-mode) #verify-step p[style*="color:#fff"] { color:#1a2a4a !important; }
html:not(.dark-mode) .auth-city-list { background:rgba(255,255,255,0.98); border-color:rgba(0,0,0,0.10); }
html:not(.dark-mode) .auth-city-list li { color:#1a2a4a; border-bottom-color:rgba(0,0,0,0.06); }
html:not(.dark-mode) .auth-city-list li:hover,.auth-city-list li.active { background:rgba(28,134,238,0.08); }
html:not(.dark-mode) .auth-city-list .ac-dept { color:#8a9ab0; }
html:not(.dark-mode) .auth-city-list i { color:#1c86ee; }

/* ============================================================
   PAGE ESPACE PERSO
   ============================================================ */
.ep-verify-overlay { position:fixed; inset:0; z-index:9999; background:rgba(5,15,35,0.96); backdrop-filter:blur(8px); display:flex; align-items:center; justify-content:center; padding:20px; }
.ep-verify-box { width:100%; max-width:420px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); border-radius:24px; padding:36px 32px; text-align:center; }
.ep-verify-box h2 { font-size:1.1rem; font-weight:700; color:#fff; margin:12px 0 6px; }
.ep-verify-box p { font-size:.85rem; color:rgba(255,255,255,.6); line-height:1.5; margin-bottom:20px; }
.ep-verify-box input[type=text] { width:100%; height:60px; background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.20); border-radius:14px; color:#fff; font-size:1.6rem; letter-spacing:.3em; text-align:center; font-family:var(--font); outline:none; margin-bottom:14px; }
.ep-verify-box input[type=text]:focus { border-color:rgba(79,195,247,.55); background:rgba(255,255,255,.14); }
.ep-verify-submit { width:100%; height:50px; background:linear-gradient(135deg,#1c86ee,#0a4a8a); border:none; border-radius:14px; color:#fff; font-size:.96rem; font-weight:700; font-family:var(--font); cursor:pointer; display:flex; align-items:center; justify-content:center; gap:10px; transition:opacity .18s; }
.ep-verify-submit:hover { opacity:.9; }
.ep-verify-submit:disabled { opacity:.55; cursor:default; }
.ep-verify-error { margin-top:10px; font-size:.82rem; color:rgba(255,160,160,.9); }
.ep-verify-resend { display:block; margin-top:14px; font-size:.83rem; color:rgba(255,255,255,.45); cursor:pointer; }
.ep-verify-resend:hover { color:rgba(255,255,255,.8); }
.ep-hero { background:#11579a; border-bottom:1px solid rgba(0,0,0,0.20); padding:32px 0 28px; }
.ep-hero-inner { display:flex; align-items:center; gap:24px; }
.ep-avatar-wrap { position:relative; flex-shrink:0; }
.ep-avatar { width:88px; height:88px; border-radius:50%; background:rgba(255,255,255,0.18); border:3px solid rgba(255,255,255,0.35); display:flex; align-items:center; justify-content:center; font-size:2.2rem; color:rgba(255,255,255,0.7); overflow:hidden; }
.ep-avatar img { width:100%; height:100%; object-fit:cover; }
.ep-avatar.ep-avatar-sm { width:64px; height:64px; font-size:1.5rem; flex-shrink:0; }
.ep-avatar-btn { position:absolute; bottom:0; right:0; width:28px; height:28px; background:#1c86ee; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:0.72rem; cursor:pointer; border:2px solid rgba(255,255,255,0.4); transition:background 0.2s; }
.ep-avatar-btn:hover { background:#0a4a8a; }
.ep-pseudo { font-size:1.5rem; font-weight:700; color:#fff; margin-bottom:4px; }
.ep-city, .ep-since { font-size:0.85rem; color:rgba(255,255,255,0.65); display:flex; align-items:center; gap:6px; margin-top:4px; }
.ep-tabs-bar { display:flex; gap:6px; padding:10px; overflow-x:auto; scrollbar-width:none; }
.ep-tabs-bar::-webkit-scrollbar { display:none; }
.ep-tab { display:inline-flex; align-items:center; gap:7px; padding:9px 18px; background:#fff; border:1px solid rgba(0,0,0,0.12); border-radius:50px; color:#4a5a70; font-size:0.86rem; font-weight:600; cursor:pointer; transition:background 0.2s,color 0.2s,border-color 0.2s,box-shadow 0.2s; white-space:nowrap; font-family:var(--font); box-shadow:0 1px 4px rgba(0,0,0,0.06); }
.ep-tab:hover { background:#f0f5ff; color:#1a2a4a; border-color:rgba(28,134,238,0.25); }
.ep-tab.active { background:#11579a; border-color:#11579a; color:#fff; box-shadow:0 3px 12px rgba(17,87,154,0.30); }
.ep-content { padding:28px 0 48px; }

/* Tous les panels ont la mÃªme largeur max, centrÃ©s */
.ep-panel { max-width:820px; display:flex; flex-direction:column; gap:20px; }

.ep-card { background:#fff; border:1px solid rgba(0,0,0,0.08); border-radius:20px; padding:28px 32px; box-shadow:0 2px 16px rgba(0,0,0,0.06); width:100%; box-sizing:border-box; }

/* Expansion fluide (toggle profil public, etc.) */
.ep-expandable {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.ep-expandable.open { max-height: 600px; }
.ep-expandable > .ep-expandable-inner { padding-bottom: 4px; }
.ep-card-title { font-size:1.1rem; font-weight:700; color:#1a2a4a; margin-bottom:4px; display:flex; align-items:center; gap:10px; }
.ep-card-title i { color:#1c86ee; }
.ep-card-sub { font-size:0.83rem; color:#7a8a9a; margin-bottom:24px; }
.ep-card-header-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:4px; }
.ep-obs-count { font-size:0.82rem; color:#8090a8; }
.ep-profil-block { display:flex; gap:20px; align-items:center; margin-bottom:24px; }
.ep-profil-avatar { width:72px; height:72px; border-radius:50%; background:#eef2f7; display:flex; align-items:center; justify-content:center; font-size:1.8rem; color:#8090a8; overflow:hidden; flex-shrink:0; border:2px solid rgba(0,0,0,0.08); }
.ep-profil-avatar img { width:100%; height:100%; object-fit:cover; }
.ep-profil-name { font-size:1.2rem; font-weight:700; color:#1a2a4a; margin-bottom:4px; }
.ep-profil-city, .ep-profil-since { font-size:0.82rem; color:#6a7a90; display:flex; align-items:center; gap:6px; margin-top:3px; }
.ep-bio-label { font-size:0.88rem; font-weight:600; color:#4a5a70; margin-bottom:8px; }
.ep-bio-text { font-size:0.92rem; color:#2a3a50; line-height:1.65; white-space:pre-wrap; }
.ep-bio-view { background:#f5f8ff; border:1px solid rgba(28,134,238,0.10); border-radius:12px; padding:16px 18px; margin-bottom:20px; }
.ep-profil-stats { display:flex; gap:20px; }
.ep-stat { text-align:center; }
.ep-stat-val { display:block; font-size:1.6rem; font-weight:700; color:#11579a; }
.ep-stat-label { font-size:0.75rem; color:#8090a8; }
.ep-obs-item { display:flex; align-items:flex-start; gap:14px; padding:14px 0; border-bottom:1px solid rgba(0,0,0,0.07); }
.ep-obs-item:last-child { border-bottom:none; }
.ep-obs-icon { width:40px; height:40px; border-radius:50%; background:#eef2f7; display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0; }
.ep-obs-body { flex:1; min-width:0; }
.ep-obs-type { font-size:0.88rem; font-weight:600; color:#1a2a4a; }
.ep-obs-city { font-size:0.78rem; color:#8090a8; margin-top:2px; }
.ep-obs-desc { font-size:0.83rem; color:#4a5a70; margin-top:4px; line-height:1.5; }
.ep-obs-meta { display:flex; gap:12px; align-items:center; margin-top:4px; flex-wrap:wrap; }
.ep-obs-date { font-size:0.74rem; color:#a0aab8; }
.ep-obs-views { font-size:0.74rem; color:#a0aab8; }
.ep-obs-temp { font-size:0.82rem; font-weight:600; color:#1c86ee; }
.ep-obs-photo { margin-top:8px; }
.ep-obs-photo img { max-width:100%; max-height:140px; border-radius:8px; object-fit:cover; display:block; }
.ep-obs-del { flex-shrink:0; background:none; border:1px solid rgba(220,50,50,0.25); color:rgba(200,50,50,0.7); border-radius:8px; padding:5px 10px; cursor:pointer; font-size:0.78rem; transition:background 0.2s,color 0.2s; }
.ep-obs-del:hover { background:rgba(220,50,50,0.08); color:#c03030; }
.ep-obs-pagination { display:flex; justify-content:center; gap:6px; margin-top:20px; flex-wrap:wrap; }
.ep-loading { text-align:center; padding:32px 0; color:#8090a8; }
.ep-obs-empty { text-align:center; padding:40px 0; color:#8090a8; line-height:1.8; }
.ep-obs-empty a { color:#1c86ee; }
.ep-form-section { margin-bottom:28px; }
.ep-form-section-title { font-size:0.82rem; font-weight:700; color:#8090a8; text-transform:uppercase; letter-spacing:.06em; margin-bottom:14px; padding-bottom:8px; border-bottom:1px solid rgba(0,0,0,0.08); }
.ep-field { margin-bottom:14px; position:relative; }
.ep-field label { display:flex; align-items:center; gap:7px; font-size:0.82rem; font-weight:600; color:#4a5a70; margin-bottom:6px; }
.ep-field label i { color:#1c86ee; }
.ep-field .req { color:#e74c3c; }
.ep-field input[type=text],.ep-field input[type=email],.ep-field input[type=date],.ep-field textarea { width:100%; background:#f8fafb; border:1px solid rgba(0,0,0,0.14); border-radius:12px; padding:11px 14px; color:#1a2a4a; font-size:0.92rem; font-family:var(--font); outline:none; transition:border-color 0.18s,background 0.18s; resize:vertical; }
.ep-field textarea { min-height:100px; line-height:1.6; }
.ep-field input:focus,.ep-field textarea:focus { border-color:#1c86ee; background:#fff; box-shadow:0 0 0 3px rgba(28,134,238,0.10); }
.ep-field input:disabled { opacity:0.55; cursor:not-allowed; background:#f0f4f8; }
.ep-field-note { font-size:0.74rem; color:#8090a8; margin-top:5px; }
.ep-char-counter { text-align:right; font-size:0.74rem; color:#8090a8; margin-top:4px; }
.ep-city-wrap { position:relative; }
.ep-city-list { position:absolute; top:46px; left:0; right:0; background:#fff; border:1px solid rgba(0,0,0,0.12); border-radius:12px; list-style:none; z-index:50; max-height:200px; overflow-y:auto; box-shadow:0 8px 32px rgba(0,0,0,0.12); }
.ep-city-list:empty { display:none; }
.ep-city-list li { display:flex; align-items:center; gap:8px; padding:10px 14px; cursor:pointer; font-size:0.86rem; color:#1a2a4a; border-bottom:1px solid rgba(0,0,0,0.05); transition:background 0.15s; }
.ep-city-list li:hover,.ep-city-list li.active { background:rgba(28,134,238,0.08); }
.ep-city-list li i { color:#1c86ee; flex-shrink:0; }
.ep-city-list .ac-dept { color:#8090a8; font-size:0.76rem; margin-left:auto; }
.ep-city-selected-label { font-size:0.80rem; color:#1c86ee; margin-top:6px; display:flex; align-items:center; gap:6px; }
.ep-city-selected-label button { background:none; border:none; color:#8090a8; cursor:pointer; margin-left:auto; font-size:0.78rem; }
.ep-avatar-form-row { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.ep-upload-btn { display:inline-flex; align-items:center; gap:8px; background:#f0f4fa; border:1px solid rgba(0,0,0,0.12); border-radius:10px; padding:9px 18px; color:#3a5070; font-size:0.85rem; cursor:pointer; transition:background 0.2s; }
.ep-upload-btn:hover { background:#e4eeff; border-color:rgba(28,134,238,0.25); }
.ep-upload-msg { margin-top:6px; font-size:0.78rem; }
.ep-upload-msg.ok { color:#27ae60; }
.ep-upload-msg.err { color:#e74c3c; }
.ep-delete-avatar { display:none; margin-top:6px; }
.ep-delete-avatar a { font-size:0.78rem; color:#e74c3c; text-decoration:none; display:inline-flex; align-items:center; gap:5px; opacity:0.8; }
.ep-delete-avatar a:hover { opacity:1; text-decoration:underline; }
.ep-form-actions { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-top:8px; }
.ep-save-btn { display:inline-flex; align-items:center; gap:8px; background:linear-gradient(135deg,#1c86ee,#0a4a8a); border:none; border-radius:12px; color:#fff; font-size:0.95rem; font-weight:700; font-family:var(--font); padding:12px 28px; cursor:pointer; box-shadow:0 4px 16px rgba(28,134,238,0.35); transition:opacity 0.2s,transform 0.15s; }
.ep-save-btn:hover { opacity:0.9; transform:translateY(-1px); }
.ep-save-btn:disabled { opacity:0.55; cursor:default; transform:none; }
.ep-save-msg { font-size:0.82rem; }
.ep-save-msg.ok { color:#2ecc71; }
.ep-save-msg.err { color:#e74c3c; }
/* â”€â”€ Espace personnel â€” Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Evite tout dÃ©bordement latÃ©ral sur mobile */
.ep-panel          { width:100%; min-width:0; }
.ep-tabs-bar       { max-width:100%; min-width:0; }
.ep-fav-add        { width:100%; max-width:460px; }

@media (max-width:900px) {
  .ep-hero-inner { gap:16px; }
}

@media (max-width:640px) {
  /* Hero */
  .ep-hero-inner { flex-direction:column; text-align:center; align-items:center; gap:12px; }
  /* Cards */
  .ep-card { padding:18px 14px; border-radius:16px; }
  /* Profil block */
  .ep-profil-block { flex-direction:column; text-align:center; align-items:center; gap:12px; }
  /* Stats */
  .ep-profil-stats { flex-wrap:wrap; gap:12px; justify-content:center; }
  /* Actions */
  .ep-form-actions { flex-direction:column; gap:10px; align-items:stretch; }
  .ep-save-btn { width:100% !important; max-width:100% !important; justify-content:center; }
  /* Avatar upload row */
  .ep-avatar-form-row { flex-direction:column; align-items:flex-start; gap:10px; }
  /* Visibility row : toggle sous le texte sur trÃ¨s petits Ã©crans */
  .ep-visibility-row { flex-wrap:wrap; gap:10px; }
  /* Slug row : chaque Ã©lÃ©ment prend sa propre ligne */
  .ep-expandable-inner [style*="display:flex"] { flex-direction:column; align-items:flex-start !important; }
  #slug-input { max-width:100% !important; width:100%; }
  /* Long textes */
  .ep-checkbox-row { word-break:break-word; }
  .ep-field-note   { word-break:break-word; }
  #permalink-link  { word-break:break-all; }
  /* Favoris : 1 colonne */
  .ep-fav-grid { grid-template-columns:1fr; }
  /* Tabs : ombre scroll hint */
  .ep-tabs-bar { padding-bottom:4px; }
}

/* â”€â”€ Toggle switch â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ep-visibility-row { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.ep-toggle { position:relative; display:inline-block; width:48px; height:26px; flex-shrink:0; }
.ep-toggle input { opacity:0; width:0; height:0; }
.ep-toggle-slider { position:absolute; inset:0; background:rgba(0,0,0,0.15); border-radius:26px; cursor:pointer; transition:background .2s; }
.ep-toggle-slider::before { content:''; position:absolute; width:20px; height:20px; left:3px; top:3px; background:#fff; border-radius:50%; transition:transform .2s; }
.ep-toggle input:checked + .ep-toggle-slider { background:#1c86ee; }
.ep-toggle input:checked + .ep-toggle-slider::before { transform:translateX(22px); }

/* â”€â”€ Checkbox row â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ep-checkbox-row { display:flex; align-items:flex-start; gap:10px; font-size:.85rem; color:#4a5a70; line-height:1.5; }
.ep-checkbox-row input { margin-top:3px; flex-shrink:0; accent-color:#1c86ee; }

/* â”€â”€ Favoris grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ep-fav-add { max-width:460px; }
.ep-fav-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:10px; }
.ep-fav-item { display:flex; align-items:center; background:#f5f7fa; border:1px solid rgba(0,0,0,0.08); border-radius:12px; overflow:hidden; transition:border-color .18s; }
.ep-fav-item:hover { border-color:rgba(28,134,238,.3); }
.ep-fav-link { flex:1; display:flex; align-items:center; gap:10px; padding:10px 12px; text-decoration:none; color:#1a2a4a; font-size:.88rem; font-weight:600; min-width:0; }
.ep-fav-icon { color:#1c86ee; flex-shrink:0; }
.ep-fav-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ep-fav-del { flex-shrink:0; background:none; border:none; border-left:1px solid rgba(0,0,0,.07); padding:10px 12px; color:rgba(0,0,0,.3); cursor:pointer; transition:color .18s,background .18s; font-size:.85rem; }
.ep-fav-del:hover { color:#e74c3c; background:rgba(231,76,60,.05); }

/* ============================================================
   PAGE OBSERVATIONS COMMUNAUTAIRES
   ============================================================ */
.obs-form-card { background:var(--card-bg); border:1px solid var(--card-border); border-radius:20px; padding:24px; }
.obs-form-header { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.obs-form-header i { font-size:1.3rem; color:#4fc3f7; }
.obs-form-header h2 { font-size:1.1rem; font-weight:800; margin:0; }
.obs-login-required { text-align:center; padding:24px 0; }
.obs-login-required p { color:rgba(255,255,255,0.6); margin-bottom:16px; }
.obs-login-btn { display:inline-flex; align-items:center; gap:10px; background:linear-gradient(135deg,#1c86ee,#0a4a8a); color:#fff; font-weight:700; padding:12px 24px; border-radius:14px; text-decoration:none; transition:opacity 0.18s; }
.obs-login-btn:hover { opacity:0.88; }
.obs-fields { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.obs-field label { display:block; font-size:0.78rem; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; opacity:0.55; margin-bottom:8px; }
.obs-temp-input { display:flex; align-items:center; gap:8px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); border-radius:12px; padding:0 14px; height:48px; }
.obs-temp-input input { background:none; border:none; outline:none; color:#fff; font-size:1.3rem; font-weight:300; width:80px; font-family:var(--font); }
.obs-temp-input span { font-size:1rem; opacity:0.6; }
.obs-sky-grid { display:flex; flex-wrap:wrap; gap:8px; }
.obs-sky-btn { padding:6px 12px; border-radius:20px; background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.12); color:rgba(255,255,255,0.7); font-size:0.82rem; cursor:pointer; transition:all 0.18s; font-family:var(--font); }
.obs-sky-btn.active { background:rgba(79,195,247,0.2); border-color:rgba(79,195,247,0.4); color:#4fc3f7; font-weight:700; }
.obs-select { width:100%; height:48px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); border-radius:12px; padding:0 14px; color:#fff; font-family:var(--font); outline:none; font-size:0.9rem; }
.obs-textarea { width:100%; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); border-radius:12px; padding:12px 14px; color:#fff; font-family:var(--font); outline:none; font-size:0.9rem; resize:vertical; }
body.home-light .obs-form-card { background:#fff; border-color:rgba(0,0,0,0.09); box-shadow:0 2px 12px rgba(0,0,0,0.06); }
body.home-light .obs-form-header i { color:#1c86ee; }
body.home-light .obs-form-header h2 { color:#1a1a2e; }
body.home-light .obs-login-required p { color:rgba(0,0,0,0.5); }
body.home-light .obs-field label { opacity:1; color:rgba(0,0,0,0.45); }
body.home-light .obs-temp-input { background:#f5f7fa; border-color:rgba(0,0,0,0.12); }
body.home-light .obs-temp-input input { color:#1a1a2e; }
body.home-light .obs-temp-input span { color:rgba(0,0,0,0.4); opacity:1; }
body.home-light .obs-sky-btn { background:#f5f7fa; border-color:rgba(0,0,0,0.1); color:rgba(0,0,0,0.6); }
body.home-light .obs-sky-btn.active { background:rgba(28,134,238,0.12); border-color:rgba(28,134,238,0.4); color:#1c86ee; }
body.home-light .obs-select { background:#f5f7fa; border-color:rgba(0,0,0,0.12); color:#1a1a2e; }
body.home-light .obs-textarea { background:#f5f7fa; border-color:rgba(0,0,0,0.12); color:#1a1a2e; }

/* ============================================================
   PAGE STATUS / TABLEAU DE BORD DEV
   ============================================================ */
body.status-page {
  --bg:     #0a1628;
  --bg2:    #0f1f38;
  --card:   rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.10);
  --blue:   #1c86ee;
  --cyan:   #4fc3f7;
  --green:  #00b894;
  --yellow: #ffd166;
  --orange: #f4a261;
  --red:    #e63946;
  --purple: #a29bfe;
  --text:   #e8f0fe;
  --muted:  rgba(255,255,255,0.45);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 80px;
}
.st-header { background:linear-gradient(135deg,#0f1f38 0%,#0a1628 100%); border-bottom:1px solid var(--border); padding:28px 24px 20px; position:sticky; top:0; z-index:100; backdrop-filter:blur(20px); }
.st-header-inner { max-width:1100px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.st-logo { display:flex; align-items:center; gap:10px; font-size:1.1rem; font-weight:800; color:var(--cyan); text-decoration:none; }
.st-logo span { color:var(--text); }
.st-title { font-size:0.8rem; font-weight:600; opacity:0.5; text-transform:uppercase; letter-spacing:0.1em; }
.st-updated { font-size:0.78rem; color:var(--muted); display:flex; align-items:center; gap:6px; }
.st-updated .dot { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 8px var(--green); animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.st-main { max-width:1100px; margin:0 auto; padding:32px 20px 0; }
.st-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; margin-bottom:32px; }
.st-kpi { background:var(--card); border:1px solid var(--border); border-radius:16px; padding:18px 16px; text-align:center; }
.st-kpi-val { font-size:2.4rem; font-weight:200; letter-spacing:-2px; line-height:1; margin-bottom:6px; }
.st-kpi-label { font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; opacity:0.5; }
.st-progress-wrap { margin-bottom:32px; }
.st-progress-label { display:flex; justify-content:space-between; font-size:0.82rem; margin-bottom:8px; opacity:0.65; }
.st-progress-bar { background:rgba(255,255,255,0.08); border-radius:8px; height:12px; overflow:hidden; }
.st-progress-fill { height:100%; border-radius:8px; background:linear-gradient(90deg,var(--blue),var(--cyan)); transition:width 1s ease; }
.st-section { margin-bottom:40px; }
.st-section-title { font-size:0.72rem; font-weight:800; text-transform:uppercase; letter-spacing:0.12em; opacity:0.4; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.st-section-title::after { content:''; flex:1; height:1px; background:var(--border); }
.st-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:12px; }
.st-card { background:var(--card); border:1px solid var(--border); border-radius:16px; padding:16px 18px; display:flex; gap:14px; align-items:flex-start; transition:border-color 0.2s; }
.st-card:hover { border-color:rgba(79,195,247,0.25); }
.st-card-icon { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:0.9rem; flex-shrink:0; }
.st-card-body { flex:1; min-width:0; }
.st-card-title { font-size:0.9rem; font-weight:700; margin-bottom:4px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.st-card-desc { font-size:0.78rem; color:var(--muted); line-height:1.5; }
.st-card-url { display:inline-block; font-size:0.7rem; font-family:monospace; background:rgba(255,255,255,0.07); border-radius:6px; padding:2px 7px; color:var(--cyan); margin-top:6px; text-decoration:none; }
.st-card-url:hover { background:rgba(79,195,247,0.15); }
.badge { display:inline-flex; align-items:center; gap:4px; font-size:0.65rem; font-weight:700; text-transform:uppercase; letter-spacing:0.07em; padding:2px 8px; border-radius:20px; flex-shrink:0; }
.badge-done    { background:rgba(0,184,148,0.15); color:var(--green); border:1px solid rgba(0,184,148,0.3); }
.badge-wip     { background:rgba(255,209,102,0.15); color:var(--yellow); border:1px solid rgba(255,209,102,0.3); }
.badge-todo    { background:rgba(255,255,255,0.06); color:rgba(255,255,255,0.4); border:1px solid rgba(255,255,255,0.12); }
.badge-idea    { background:rgba(162,155,254,0.15); color:var(--purple); border:1px solid rgba(162,155,254,0.3); }
.badge-backend { background:rgba(244,162,97,0.15); color:var(--orange); border:1px solid rgba(244,162,97,0.3); }
.badge-bug     { background:rgba(230,57,70,0.15); color:var(--red); border:1px solid rgba(230,57,70,0.3); }
.ic-green  { background:rgba(0,184,148,0.15); color:var(--green); }
.ic-blue   { background:rgba(28,134,238,0.15); color:var(--blue); }
.ic-yellow { background:rgba(255,209,102,0.15); color:var(--yellow); }
.ic-orange { background:rgba(244,162,97,0.15); color:var(--orange); }
.ic-red    { background:rgba(230,57,70,0.15); color:var(--red); }
.ic-purple { background:rgba(162,155,254,0.15); color:var(--purple); }
.ic-grey   { background:rgba(255,255,255,0.06); color:rgba(255,255,255,0.4); }
.ic-cyan   { background:rgba(79,195,247,0.15); color:var(--cyan); }
.st-timeline { position:relative; padding-left:24px; }
.st-timeline::before { content:''; position:absolute; left:7px; top:0; bottom:0; width:2px; background:var(--border); }
.st-tl-item { position:relative; padding-bottom:20px; }
.st-tl-item::before { content:''; position:absolute; left:-21px; top:5px; width:10px; height:10px; border-radius:50%; background:var(--blue); border:2px solid var(--bg); }
.st-tl-item:first-child::before { background:var(--cyan); box-shadow:0 0 8px var(--cyan); }
.st-tl-date { font-size:0.7rem; opacity:0.4; margin-bottom:4px; font-family:monospace; }
.st-tl-title { font-size:0.9rem; font-weight:700; margin-bottom:6px; }
.st-tl-items { list-style:none; display:flex; flex-direction:column; gap:3px; }
.st-tl-items li { font-size:0.8rem; color:var(--muted); display:flex; align-items:baseline; gap:6px; }
.st-tl-items li::before { content:'Â·'; color:var(--cyan); flex-shrink:0; }
@media (max-width:600px) { .st-kpi-val { font-size:1.8rem; } .st-grid { grid-template-columns:1fr; } }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ACTUALITÃ‰S â€” sidebar badge, slider homepage, pages actu
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Bouton alerte canicule sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sb-canicule-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 12px 4px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  box-shadow: 0 3px 12px rgba(192,57,43,0.45);
  animation: sb-canicule-pulse 2.2s ease-in-out infinite;
  transition: opacity 0.2s;
}
.sb-canicule-alert:hover { opacity: 0.88; }

@keyframes sb-canicule-pulse {
  0%, 100% { box-shadow: 0 3px 12px rgba(192,57,43,0.45); }
  50%       { box-shadow: 0 3px 22px rgba(192,57,43,0.75); }
}

.sb-canicule-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.sb-canicule-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}
.sb-canicule-text strong { font-size: 0.88rem; font-weight: 700; }
.sb-canicule-text span   { font-size: 0.75rem; opacity: 0.88; }
.sb-canicule-arrow       { font-size: 0.75rem; flex-shrink: 0; opacity: 0.8; }

/* â”€â”€ Badge sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.actu-sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e84040;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 6px;
  vertical-align: middle;
}

/* â”€â”€ Grille actualitÃ©s homepage â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* â”€â”€ Carte + pub (2 colonnes alignÃ©es sur le reste de la page) â”€â”€ */
.home-map-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 0 28px;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  align-items: start;
}
@media (min-width: 1440px) {
  .home-map-wrap {
    grid-template-columns: minmax(0, 1fr) 380px;
    padding-left: 36px;
    padding-right: 36px;
  }
}
/* â”€â”€ Sections pleine largeur sous les 2 colonnes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.home-fullwidth-wrap {
  padding: 0 10px 13px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1440px) {
  .home-fullwidth-wrap { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 600px) {
  .home-fullwidth-wrap { padding: 0 16px 32px; }
}

.home-map-ad {
  min-width: 0;
}

/* â”€â”€ Wrapper ActualitÃ©s + Ã‰phÃ©mÃ©ride (2 colonnes) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.home-actu-ephem-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 20px 28px 0;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 1440px) {
  .home-actu-ephem-wrap {
    grid-template-columns: minmax(0, 1fr) 380px;
    padding-left: 36px;
    padding-right: 36px;
  }
}
.home-actu-col,
.home-ephem-col {
  min-width: 0;
}
.home-actu-col .news-slider-section { margin-bottom: 0; }
.home-ephem-col .home-section-card  { height: 100%; }

@media (max-width: 1024px) {
  .home-map-wrap {
    grid-template-columns: 1fr;
  }
  .home-actu-ephem-wrap {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .home-map-wrap { padding: 0 16px; gap: 16px; }
}

/* â”€â”€ Grille actualitÃ©s : main en haut, 4 smalls en 2Ã—2 dessous â”€ */
.news-slider-section { margin-bottom: 0; }

.actu-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 350px 155px 155px;
  gap: 8px;
}

/* height:100% fonctionne car les tracks ont une hauteur explicite */
.actu-featured-grid .ns-card {
  height: 100%;
  min-height: 0 !important;
}

.afc-main {
  grid-column: 1 / 3;
}
.afc-small .ns-title { font-size: 0.88rem; }
.afc-small .ns-body  { padding: 12px 14px; gap: 4px; }

@media (max-width: 700px) {
  .home-actu-ephem-wrap { padding: 16px 16px 0; gap: 16px; }
  .actu-featured-grid   { grid-template-rows: 220px 130px 130px; }
}
@media (max-width: 440px) {
  .actu-featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 220px repeat(4, 155px);
  }
  .afc-main { grid-column: 1; }
}
.news-slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}
.news-slider {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.ns-card {
  flex: 0 0 100%;
  display: block;
  position: relative;
  min-height: 280px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 14px;
}
@media (min-width: 600px) { .ns-card { min-height: 320px; } }
@media (min-width: 900px) { .ns-card { min-height: 360px; } }
.ns-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,#1c86ee,#0a4a8a);
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.ns-card:hover .ns-img { transform: scale(1.03); }
.ns-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,15,40,.88) 0%, rgba(5,15,40,.3) 55%, transparent 100%);
}
.ns-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 28px;
  gap: 8px;
}
.ns-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ns-cat {
  background: rgba(28,134,238,.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.ns-new {
  background: #e84040;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ns-ago { color: rgba(255,255,255,.6); font-size: 0.78rem; }
.ns-cmt-count { color: rgba(255,255,255,.75); font-size: 0.78rem; display: inline-flex; align-items: center; gap: 4px; }
.ns-title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
@media (min-width: 600px) { .ns-title { font-size: 1.55rem; } }
.ns-excerpt {
  color: rgba(255,255,255,.8);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 480px) { .ns-excerpt { display: none; } }

/* FlÃ¨ches */
.news-slider-prev,
.news-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 5;
}
.news-slider-prev:hover,
.news-slider-next:hover { background: rgba(255,255,255,.3); }
.news-slider-prev { left: 12px; }
.news-slider-next { right: 12px; }
@media (max-width: 480px) {
  .news-slider-prev,
  .news-slider-next { display: none; }
}

/* Dots */
.news-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.ns-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.ns-dot.active { background: var(--blue); transform: scale(1.3); }

/* â”€â”€ Page liste /actu â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.actu-list-container { padding-top: 32px; padding-bottom: 48px; }

.actu-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.actu-filter {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.83rem;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.actu-filter.active,
.actu-filter:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.actu-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.actu-list-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border);
}
.actu-list-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.actu-list-img {
  position: relative;
  height: 170px;
  background: linear-gradient(160deg,#1c86ee,#0a4a8a);
  flex-shrink: 0;
}
.actu-list-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10,30,70,.7);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .03em;
  backdrop-filter: blur(4px);
}
.actu-new-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e84040;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.actu-list-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.actu-list-ago  { font-size: 0.75rem; color: var(--muted); }
.actu-list-title { font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--text); margin: 0; }
.actu-list-excerpt { font-size: 0.83rem; color: var(--muted); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.actu-loading { text-align: center; padding: 48px; color: var(--muted); font-size: 1rem; }
.actu-empty   { text-align: center; padding: 48px; color: var(--muted); }

.actu-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.actu-page-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--card); color: var(--text);
  font-size: 0.88rem; cursor: pointer;
  transition: background .18s, border-color .18s;
}
.actu-page-btn.active,
.actu-page-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* â”€â”€ Page article /actu/{slug} â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.actu-article-container { padding-top: 32px; padding-bottom: 56px; max-width: 780px; }
.actu-article-cover { border-radius: 14px; overflow: hidden; margin-bottom: 32px; max-height: 400px; }
.actu-article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.actu-article-lead {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
  padding: 20px 24px;
  background: var(--card);
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
  margin-bottom: 32px;
}
.actu-article-body { background: var(--card); border-radius: 14px; padding: 32px 36px; border: 1px solid var(--border); }
@media (max-width: 600px) { .actu-article-body { padding: 20px 18px; } }
.actu-article-content { color: var(--text); line-height: 1.75; font-size: 1rem; }
.actu-article-content h2 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 12px; color: var(--blue); display: flex; align-items: center; gap: 8px; }
.actu-article-content h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 10px; }
.actu-article-content p  { margin: 0 0 16px; }
.actu-article-content ul { margin: 0 0 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.actu-article-content li { line-height: 1.6; }
.actu-article-content a  { color: var(--blue); text-decoration: underline; }
.actu-article-content .actu-source-note { font-size: 0.83rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 16px; margin-top: 28px; }

.actu-banner-cat {
  background: rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}
.actu-article-back { margin-top: 32px; }
.actu-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background .18s, border-color .18s;
}
.actu-back-btn:hover { background: #1c86ee; border-color: #1c86ee; color: #fff; }

/* ============================================================
   CORRECTIFS VARIABLES ACTUALITÃ‰S (var(--card/--border/--text) â†’ vraies vars)
   ============================================================ */
.actu-filter           { border-color: var(--card-border); background: var(--card-bg); color: var(--text-primary); }
.actu-list-card        { background: var(--card-bg); border-color: var(--card-border); color: var(--text-primary); }
.actu-back-btn         { background: var(--card-bg); border-color: var(--card-border); color: var(--text-primary); }
.ns-dot                { background: var(--card-border); }
.ns-dot.active         { background: #1c86ee; }

/* ============================================================
   PAGE-BANNER  (utilisÃ©e par /actu, /actu/{slug}, /app)
   ============================================================ */
.page-banner {
  background: linear-gradient(160deg, #1c86ee 0%, #0a4a8a 100%);
  padding: 28px 0 32px;
  color: #fff;
}
.has-page-banner { /* classe de signalement â€” pas de style propre */ }
.page-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-banner-bread {
  font-size: 0.82rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.page-banner-bread a          { color: rgba(255,255,255,.70); text-decoration: none; transition: color .15s; }
.page-banner-bread a:hover    { color: #fff; }
.page-banner-bread span       { opacity: .45; }
.page-banner-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.page-banner-icon {
  font-size: 2rem;
  line-height: 1;
  opacity: .85;
  flex-shrink: 0;
  padding-top: 4px;
}
.page-banner-title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 8px;
}
.page-banner-sub {
  font-size: .88rem;
  color: rgba(255,255,255,.70);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.actu-banner-cat {
  background: rgba(255,255,255,.20);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .page-banner { padding: 20px 0 24px; }
  .page-banner-icon { font-size: 1.5rem; }
}

/* ============================================================
   THÃˆME CLAIR â€” variables globales
   RedÃ©finit les CSS vars dark-mode de :root pour le mode clair.
   Corrige tous les Ã©lÃ©ments qui utilisent var(--card-bg),
   var(--text-primary), etc. sur n'importe quelle page.
   ============================================================ */
html:not(.dark-mode) {
  --card-bg:        #ffffff;
  --card-border:    rgba(0,0,0,.08);
  --text-primary:   #1a2a4a;
  --text-secondary: #5a7090;
  --text-dim:       #8a9ab0;
}

/* â”€â”€ Fond de page universel mode clair â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html:not(.dark-mode) body { background: #eef2f7; }

/* â”€â”€ Mer â€” cartes stations (pas de CSS dans style.css) â”€â”€â”€â”€â”€â”€â”€ */
.mer-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.mer-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.13); }
.mer-card-name  { font-weight: 700; font-size: .95rem; margin-bottom: 8px; color: var(--text-primary); }
.mer-card-wave  { font-size: .78rem; color: var(--text-secondary); margin-top: 6px; }

/* â”€â”€ Observations â€” formulaire, champs (hardcoded rgba white) â”€ */
html:not(.dark-mode) .obs-form-header i { color: #1c86ee; }
html:not(.dark-mode) .obs-form-header h2 { color: #1a2a4a; }
html:not(.dark-mode) .obs-login-required p { color: rgba(0,0,0,.5); }
html:not(.dark-mode) .obs-field label { opacity: 1; color: rgba(0,0,0,.45); }
html:not(.dark-mode) .obs-temp-input {
  background: #f0f4f8; border-color: rgba(0,0,0,.12);
}
html:not(.dark-mode) .obs-temp-input input { color: #1a2a4a; }
html:not(.dark-mode) .obs-temp-input span { color: rgba(0,0,0,.4); opacity: 1; }
html:not(.dark-mode) .obs-sky-btn {
  background: #f0f4f8; border-color: rgba(0,0,0,.10); color: #3a5070;
}
html:not(.dark-mode) .obs-sky-btn.active {
  background: rgba(28,134,238,.12); border-color: rgba(28,134,238,.4); color: #1c86ee;
}
html:not(.dark-mode) .obs-select {
  background: #f0f4f8; border-color: rgba(0,0,0,.12); color: #1a2a4a;
}
html:not(.dark-mode) .obs-textarea {
  background: #f0f4f8; border-color: rgba(0,0,0,.12); color: #1a2a4a;
}

/* â”€â”€ Lune â€” boutons navigation mois (hardcoded rgba white) â”€â”€â”€â”€ */
html:not(.dark-mode) #lune-prev,
html:not(.dark-mode) #lune-next {
  background: #f0f4f8 !important;
  border-color: rgba(0,0,0,.12) !important;
  color: #1a2a4a !important;
}

/* ============================================================
   THÃˆME CLAIR â€” pages outils (excl. body.meteo-page)
   Mode clair = html sans classe .dark-mode
   ============================================================ */
html:not(.dark-mode) body:not(.meteo-page) .site-main {
  background: #eef2f7;
}

/* Breadcrumb */
html:not(.dark-mode) body:not(.meteo-page) .breadcrumb ol      { color: rgba(26,42,74,.50); }
html:not(.dark-mode) body:not(.meteo-page) .breadcrumb a       { color: #1c86ee; }
html:not(.dark-mode) body:not(.meteo-page) .breadcrumb a:hover { color: #0a5fc0; }
html:not(.dark-mode) body:not(.meteo-page) .breadcrumb li+li::before { opacity:.3; color:#1a2a4a; }

/* Titres et sous-titres */
html:not(.dark-mode) body:not(.meteo-page) .section-title     { color: #1a2a4a; }
html:not(.dark-mode) body:not(.meteo-page) .section-title i   { color: #1c86ee; opacity: 1; }
html:not(.dark-mode) body:not(.meteo-page) .section-subtitle  { color: #5a7090; }
html:not(.dark-mode) body:not(.meteo-page) .rec-section-title { color: #1a2a4a; }
html:not(.dark-mode) body:not(.meteo-page) .rec-section-title i { color: rgba(26,42,74,.45); }

/* Cards gÃ©nÃ©riques */
html:not(.dark-mode) body:not(.meteo-page) .uv-search-card,
html:not(.dark-mode) body:not(.meteo-page) .uv-result-card,
html:not(.dark-mode) body:not(.meteo-page) .uv-detail-card,
html:not(.dark-mode) body:not(.meteo-page) .uv-scale-card,
html:not(.dark-mode) body:not(.meteo-page) .uv-tips-card,
html:not(.dark-mode) body:not(.meteo-page) .foudre-tips-card,
html:not(.dark-mode) body:not(.meteo-page) .modele-card,
html:not(.dark-mode) body:not(.meteo-page) .obs-form-card,
html:not(.dark-mode) body:not(.meteo-page) .pres-city-card,
html:not(.dark-mode) body:not(.meteo-page) .home-section-card,
html:not(.dark-mode) body:not(.meteo-page) .actu-article-body,
html:not(.dark-mode) body:not(.meteo-page) .ml-section {
  background: #fff;
  border-color: rgba(0,0,0,.08);
  color: #1a2a4a;
}

/* Textes dans les cards */
html:not(.dark-mode) body:not(.meteo-page) .uv-search-title,
html:not(.dark-mode) body:not(.meteo-page) .uv-search-label { color: #1a2a4a; }
html:not(.dark-mode) body:not(.meteo-page) .uv-search-box i { color: #5a7090; }
html:not(.dark-mode) body:not(.meteo-page) .uv-s-label,
html:not(.dark-mode) body:not(.meteo-page) .uv-s-tips,
html:not(.dark-mode) body:not(.meteo-page) .uv-s-city { color: #5a7090; }
html:not(.dark-mode) body:not(.meteo-page) .uv-s-city-name { color: #1a2a4a; }
html:not(.dark-mode) body:not(.meteo-page) .modele-title { color: #1a2a4a; }
html:not(.dark-mode) body:not(.meteo-page) .modele-desc  { color: #5a7090; }

/* Input fields â€” scoped aux tool pages uniquement (pas sidebar, pas hero) */
html:not(.dark-mode) body:not(.meteo-page) .uv-search-box input,
html:not(.dark-mode) body:not(.meteo-page) #uv-city-input {
  color: #1a2a4a;
}
html:not(.dark-mode) body:not(.meteo-page) .uv-search-box input::placeholder,
html:not(.dark-mode) body:not(.meteo-page) #uv-city-input::placeholder { color: #8a9ab0; }

/* Topbar â€” voir css/header.css */

/* â”€â”€ Dark mode â€” pages outils â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.dark-mode body:not(.meteo-page) .site-main { background: #0a1628; }

/* â”€â”€ Membres â€” dark mode â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.dark-mode body:not(.meteo-page) .membre-card {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
  color: #e0eaf8;
}
html.dark-mode body:not(.meteo-page) .membre-card:hover {
  background: rgba(255,255,255,.11);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
html.dark-mode body:not(.meteo-page) .membre-card-pseudo { color: #fff; }
html.dark-mode body:not(.meteo-page) .membre-card-age,
html.dark-mode body:not(.meteo-page) .membre-rank,
html.dark-mode body:not(.meteo-page) .membre-card-meta { color: rgba(180,210,255,.55); }
html.dark-mode body:not(.meteo-page) .membre-row {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
  color: #e0eaf8;
}
html.dark-mode body:not(.meteo-page) .membre-row:hover { background: rgba(255,255,255,.11); }
html.dark-mode body:not(.meteo-page) .membre-row-pseudo { color: #fff; }
html.dark-mode body:not(.meteo-page) .membre-city,
html.dark-mode body:not(.meteo-page) .membre-row .membre-rank,
html.dark-mode body:not(.meteo-page) .membre-row .membre-age { color: rgba(180,210,255,.55); }

html.dark-mode body:not(.meteo-page) .uv-search-card,
html.dark-mode body:not(.meteo-page) .uv-result-card,
html.dark-mode body:not(.meteo-page) .uv-detail-card,
html.dark-mode body:not(.meteo-page) .foudre-tips-card,
html.dark-mode body:not(.meteo-page) .modele-card,
html.dark-mode body:not(.meteo-page) .obs-form-card,
html.dark-mode body:not(.meteo-page) .home-section-card {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
}

/* ============================================================
   BASE CARD : uv-detail-card (app.php et autres)
   ============================================================ */
.uv-detail-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px 22px;
}

/* ============================================================
   PAGE MÃ‰TÃ‰O VILLE â€” fond neutre + hero widget
   ============================================================ */

/* 1. Fond de page : neutre en clair, sombre en sombre */
body.meteo-page,
body.meteo-page.sunny, body.meteo-page.cloudy,
body.meteo-page.rainy, body.meteo-page.snowy,
body.meteo-page.stormy, body.meteo-page.foggy {
  background: #0a1628;
}
html:not(.dark-mode) body.meteo-page,
html:not(.dark-mode) body.meteo-page.sunny,
html:not(.dark-mode) body.meteo-page.cloudy,
html:not(.dark-mode) body.meteo-page.rainy,
html:not(.dark-mode) body.meteo-page.snowy,
html:not(.dark-mode) body.meteo-page.stormy,
html:not(.dark-mode) body.meteo-page.foggy {
  background: #eef2f7;
}
html:not(.dark-mode) body.meteo-page .site-main { background: #eef2f7; }
html.dark-mode      body.meteo-page .site-main { background: #0a1628; }

/* 2. Hero : devient un widget carte, mÃªme largeur que les cards dessous */
.current-weather-hero {
  max-width: 1020px;
  width: calc(100% - 40px);
  margin: 16px auto 20px;
  padding: 44px 28px 52px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  /* gradient par dÃ©faut (bleu) */
  background: linear-gradient(160deg, #1c86ee, #0a4a8a);
  color: #fff;
  box-shadow: 0 8px 40px rgba(0,0,0,.22);
}

/* 3. Couleur du widget selon la mÃ©tÃ©o (via bodyClass JS) */
body.sunny  .current-weather-hero { background: linear-gradient(160deg, #f59e0b, #d97706); }
body.cloudy .current-weather-hero { background: linear-gradient(160deg, #64748b, #3a4a5a); }
body.rainy  .current-weather-hero { background: linear-gradient(160deg, #3b82f6, #1a3050); }
body.snowy  .current-weather-hero { background: linear-gradient(160deg, #94a3b8, #4a6080); }
body.stormy .current-weather-hero { background: linear-gradient(160deg, #374151, #1a1a2e); }
body.foggy  .current-weather-hero { background: linear-gradient(160deg, #6b7280, #4a5568); }

/* 4. Topbar meteo page en mode clair : #12589d (mÃªme palette que les autres pages) */
html:not(.dark-mode) body.meteo-page .topbar {
  background: #12589d !important;
  border-bottom-color: rgba(0,0,0,.18) !important;
}
html:not(.dark-mode) body.meteo-page .topbar-city,
html:not(.dark-mode) body.meteo-page .topbar-title,
html:not(.dark-mode) body.meteo-page .burger-btn { color: #fff !important; }

/* 5. Meteo cards : fond blanc en clair */
html:not(.dark-mode) body.meteo-page .meteo-card {
  background: #fff;
  border-color: rgba(0,0,0,.08);
  color: #1a2a4a;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
/* Card header â€” dÃ©gradÃ© bleu en clair, bleu sombre en sombre */
html:not(.dark-mode) body.meteo-page .card-header {
  background: linear-gradient(175deg, #2b96ff 0%, #1060c0 50%, #0a4a8a 100%);
  color: #fff;
  border-bottom-color: transparent;
}
html:not(.dark-mode) body.meteo-page .card-header i { opacity: 1; color: rgba(255,255,255,0.85); }
html.dark-mode body.meteo-page .card-header {
  background: linear-gradient(160deg, #0a2a5a 0%, #050f22 100%);
  color: #fff;
  border-bottom-color: transparent;
}
html.dark-mode body.meteo-page .card-header i { color: rgba(180,210,255,0.80); opacity: 1; }
/* Textes secondaires */
html:not(.dark-mode) body.meteo-page .h-time,
html:not(.dark-mode) body.meteo-page .h-desc,
html:not(.dark-mode) body.meteo-page .d-desc,
html:not(.dark-mode) body.meteo-page .d-min    { color: #5a7090; }
html:not(.dark-mode) body.meteo-page .d-day,
html:not(.dark-mode) body.meteo-page .h-temp,
html:not(.dark-mode) body.meteo-page .d-max    { color: #1a2a4a; }
/* Pluie horaire */
html:not(.dark-mode) body.meteo-page .h-rain   { color: #1c86ee; }
/* Hover / Ã©tat actif hourly */
html:not(.dark-mode) body.meteo-page .hourly-item:hover { background: rgba(0,0,0,.04); }
html:not(.dark-mode) body.meteo-page .hourly-item.now   { background: rgba(28,134,238,.10); border-radius: var(--radius-sm); }
/* Daily items */
html:not(.dark-mode) body.meteo-page .daily-item       { border-bottom-color: rgba(0,0,0,.06); }
html:not(.dark-mode) body.meteo-page .daily-item:hover { background: rgba(0,0,0,.04); }
/* Barre tempÃ©rature */
html:not(.dark-mode) body.meteo-page .d-bar-wrap       { background: rgba(0,0,0,.08); }
/* Grille dÃ©tails : fond du gap + items blancs en clair */
html:not(.dark-mode) body.meteo-page .details-grid     { background: rgba(0,0,0,.06); }
html:not(.dark-mode) body.meteo-page .detail-item      { background: #fff; }
html:not(.dark-mode) body.meteo-page .meteo-card       { backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Breadcrumb sur fond gris */
html:not(.dark-mode) body.meteo-page .breadcrumb ol    { color: rgba(26,42,74,.55); }
html:not(.dark-mode) body.meteo-page .breadcrumb a     { color: #1c86ee; }
html:not(.dark-mode) body.meteo-page .breadcrumb a:hover { color: #0a5fc0; }
html:not(.dark-mode) body.meteo-page .breadcrumb li + li::before { color: #1a2a4a; opacity: 0.3; }

/* Hero â€” forcer texte blanc (le fond reste toujours un dÃ©gradÃ© sombre) */
html:not(.dark-mode) body.meteo-page .current-weather-hero { color: #fff; }
html:not(.dark-mode) body.meteo-page .hero-city-name { color: #fff; }
html:not(.dark-mode) body.meteo-page .hero-region    { color: rgba(255,255,255,0.72); }
html:not(.dark-mode) body.meteo-page .hero-temp      { color: #fff; }
html:not(.dark-mode) body.meteo-page .hero-desc      { color: rgba(255,255,255,0.80); }

/* Hero range â€” pilules Min/Max */
.hero-range {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.range-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 5px 18px;
  font-size: 1rem;
  font-weight: 700;
  color: #0d1f2d;
}
.range-pill-label {
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}
.range-pill-min .range-pill-label { color: #1c86ee; }
.range-pill-max .range-pill-label { color: #d93025; }
.range-sep { display: none; }

/* Pollen â€” texte illisible en clair */
html:not(.dark-mode) body.meteo-page .pln-label       { color: #1a2a4a; }
html:not(.dark-mode) body.meteo-page .pln-season-info { color: #5a7090; }
html:not(.dark-mode) body.meteo-page .pln-val         { color: #7a8a9a; }
html:not(.dark-mode) body.meteo-page .pln-bar-wrap    { background: rgba(0,0,0,0.08); }
html:not(.dark-mode) body.meteo-page .pln-row:hover            { background: rgba(0,0,0,0.03); }
html:not(.dark-mode) body.meteo-page .pln-row.pln-in-season    { background: rgba(0,0,0,0.025); }
html:not(.dark-mode) body.meteo-page .pln-summary              { border-bottom-color: rgba(0,0,0,0.06); }

/* Observations communautÃ© â€” texte illisible en clair (styles injectÃ©s via JS) */
html:not(.dark-mode) body.meteo-page .cof-card        { background: #f7faff; border-color: rgba(0,0,0,0.07); }
html:not(.dark-mode) body.meteo-page .cof-pseudo      { color: #1a2a4a; }
html:not(.dark-mode) body.meteo-page .cof-time        { color: #8090a8; }
html:not(.dark-mode) body.meteo-page .cof-wx          { color: #5a7090; }
html:not(.dark-mode) body.meteo-page .cof-temp        { color: #1060c0; }
html:not(.dark-mode) body.meteo-page .cof-desc        { color: #4a5a70; }
html:not(.dark-mode) body.meteo-page .cof-react       { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.09); color: #5a7090; }
html:not(.dark-mode) body.meteo-page .cof-react:hover { background: rgba(0,0,0,0.08); color: #1a2a4a; }
html:not(.dark-mode) body.meteo-page .cof-loading,
html:not(.dark-mode) body.meteo-page .cof-empty       { color: #8090a8; }
html:not(.dark-mode) body.meteo-page .cof-bar-title   { color: #8090a8; }
html:not(.dark-mode) body.meteo-page .cof-refresh-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.09); color: #5a7090; }
html:not(.dark-mode) body.meteo-page .cof-refresh-btn:hover { background: rgba(0,0,0,0.08); color: #1a2a4a; }
html:not(.dark-mode) body.meteo-page .cof-post-row    { border-top-color: rgba(0,0,0,0.07); }

/* Padding cof- elements */
body.meteo-page .cof-bar      { padding: 14px 18px 0; }
body.meteo-page #cof-list     { padding: 0 18px; }
body.meteo-page .cof-post-row { padding: 14px 18px 16px; }

/* IcÃ´ne de chargement â€” bleue en thÃ¨me clair */
html:not(.dark-mode) body.meteo-page .loader-icon i { color: #1c86ee; }

/* Radar card â€” footer avec lien */
.radar-footer {
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.radar-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(28,134,238,0.15);
  border: 1px solid rgba(28,134,238,0.30);
  color: #4fc3f7;
  border-radius: 999px;
  padding: 7px 20px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.radar-more-btn:hover { background: rgba(28,134,238,0.28); color: #fff; }
html:not(.dark-mode) body.meteo-page .radar-footer { border-top-color: rgba(0,0,0,0.07); }
html:not(.dark-mode) body.meteo-page .radar-more-btn { background: rgba(28,134,238,0.10); border-color: rgba(28,134,238,0.25); color: #1060c0; }
html:not(.dark-mode) body.meteo-page .radar-more-btn:hover { background: rgba(28,134,238,0.20); color: #0a4a8a; }
html:not(.dark-mode) body.meteo-page .cof-post-link   { background: rgba(28,134,238,0.10); border-color: rgba(28,134,238,0.25); color: #1060c0; }
html:not(.dark-mode) body.meteo-page .cof-post-link:hover { background: rgba(28,134,238,0.18); }

/* 5. Responsive hero */
@media (max-width: 860px) {
  .current-weather-hero { border-radius: 14px; padding: 32px 20px 40px; }
}
@media (max-width: 600px) {
  .current-weather-hero { width: calc(100% - 24px); border-radius: 12px; margin: 12px auto 16px; padding: 28px 16px 36px; }
}

/* â•â• ACTUALITÃ‰S (/actu) â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.actu-grid { grid-template-columns: repeat(3, 1fr); }

/* Les cards articles rÃ©utilisent .article-card â€” neutralise le padding global .actu-card */
.article-card.actu-card { padding: 0; }
@media (max-width: 900px) { .actu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .actu-grid { grid-template-columns: 1fr; } }

.actu-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.actu-ago {
  font-size: 0.78rem;
  color: var(--color-text-muted, #8a9ab5);
  display: flex;
  align-items: center;
  gap: 4px;
}
.actu-badge {
  display: inline-block;
  background: #e84040;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 30px;
}
.actu-cover {
  width: 100%;
  height: 320px;
  background-color: #1a2a3a;
}
@media (max-width: 600px) { .actu-cover { height: 200px; } }

/* â”€â”€ Ajustements mobile â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 860px) {
  .container { padding: 10px; }
  body.home-light .home-section-body { padding: 10px 10px 10px; }
}

/* â”€â”€ Grille actus homepage â€” hauteur blocs mobile â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 700px) {
  .actu-featured-grid { grid-template-rows: 250px 175px 175px; }
}
@media (max-width: 440px) {
  .actu-featured-grid { grid-template-rows: repeat(5, 250px); }
}

/* â”€â”€ Lune + overlay nuage â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wx-moon-wrap {
  position: relative;
  display: inline-block;
  line-height: 1;
}
.wx-cloud-over {
  position: absolute;
  bottom: -0.1em;
  right: -0.3em;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
}

/* â”€â”€ FAB Observations â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#obs-fab {
  position: fixed;
  top: calc(var(--topbar-h) + 12px);
  right: 18px;
  z-index: 450;
  height: 48px;
  border-radius: 999px;
  background: #1c86ee;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  overflow: hidden;
  width: 48px;
  box-shadow: 0 4px 18px rgba(28,134,238,0.45), 0 1px 4px rgba(0,0,0,0.18);
  text-decoration: none;
  transition: width 0.28s cubic-bezier(.4,0,.2,1), background 0.18s, box-shadow 0.22s;
}
#obs-fab .obs-fab-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
#obs-fab .obs-fab-label {
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 600;
  padding-right: 18px;
  opacity: 0;
  transition: opacity 0.18s 0.06s;
}
#obs-fab:hover {
  width: 220px;
  background: #1570cc;
  box-shadow: 0 8px 28px rgba(28,134,238,0.55), 0 2px 6px rgba(0,0,0,0.2);
}
#obs-fab:hover .obs-fab-label {
  opacity: 1;
}
@media (max-width: 860px) {
  #obs-fab { display: none; }
}

/* â”€â”€ Bouton scroll-to-top â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 20px;
  z-index: 400;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1c86ee;
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(28,134,238,0.4);
  transition: opacity 0.2s, transform 0.2s;
}
#scroll-top-btn:hover { background: #1570cc; transform: translateY(-2px); }
#scroll-top-btn.visible { display: flex; }
@media (max-width: 860px) {
  #scroll-top-btn.visible {
    bottom: calc(16px + 64px + 16px + env(safe-area-inset-bottom, 0px));
  }
}

/* â”€â”€ Hero actions (fav + notif) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 2;
}
.blog-article-header .hero-actions { top: 17px; }

.hero-fav-label {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Bouton "Me notifier" */
.hero-notif-btn {
  height: 36px;
  padding: 0 14px 0 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(0,0,0,0.10);
  color: #0d1f2d;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}
.hero-notif-btn:hover { background: #fff; color: #0d1f2d; }
.hero-notif-btn:active { transform: scale(0.94); }
.hero-notif-btn.notif-active {
  color: #b86e00;
  background: rgba(255,255,255,0.95);
  border-color: rgba(184,110,0,0.30);
}
.hero-notif-label {
  font-size: 0.78rem;
  font-weight: 600;
}

/* â”€â”€ Cloche topbar (abonnement push) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.topbar-bell {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.70);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.topbar-bell:hover { background: rgba(255,255,255,0.20); color: #fff; }
.topbar-bell:active { transform: scale(0.92); }
#topbar-bell { display: none; }

/* â”€â”€ Bouton abonnement actualitÃ©s (.actu-notif-btn) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.actu-notif-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1.5px solid rgba(28, 134, 238, 0.45);
  border-radius: 20px;
  background: rgba(28, 134, 238, 0.08);
  color: #5aacf5;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.actu-notif-btn:hover {
  background: rgba(28, 134, 238, 0.2);
  border-color: #1c86ee;
  color: #fff;
}
.actu-notif-btn.actu-notif-active {
  background: rgba(28, 134, 238, 0.22);
  border-color: #1c86ee;
  color: #fff;
}
.actu-notif-btn.actu-notif-active i {
  animation: bellRingActu 0.5s ease;
}
@keyframes bellRingActu {
  0%   { transform: rotate(0); }
  25%  { transform: rotate(15deg); }
  75%  { transform: rotate(-15deg); }
  100% { transform: rotate(0); }
}

/* Variante pilule blanche â€” sur fond sombre (hero, image article) */
.actu-notif-btn.actu-notif-pill-white {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,0.12);
  color: #1a2a3a;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  z-index: 5;
}
.actu-notif-btn.actu-notif-pill-white:hover {
  background: #fff;
  border-color: #1c86ee;
  color: #1c86ee;
}
.actu-notif-btn.actu-notif-pill-white.actu-notif-active {
  background: #1c86ee;
  border-color: #1c86ee;
  color: #fff;
}

/* blog-hero : position relative pour le bouton overlay */
.blog-hero { position: relative; }

@media (max-width: 600px) {
  .current-weather-hero { padding-top: 50px; }
  .hero-fav-btn, .hero-notif-btn { padding: 0 10px; }
}

/* â•â• SKELETON LOADING â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@keyframes skel-shine {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
/* Shimmer sur fond sombre (cards actu, fond page bleu) */
.skel-d {
  border-radius: 4px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.06) 25%,
    rgba(255,255,255,0.16) 50%,
    rgba(255,255,255,0.06) 75%
  );
  background-size: 1200px 100%;
  animation: skel-shine 1.6s ease-in-out infinite;
}
/* Shimmer sur fond clair (cards articles blanches) */
.skel-l {
  border-radius: 4px;
  background: linear-gradient(90deg, #dde5f0 25%, #edf1f8 50%, #dde5f0 75%);
  background-size: 1200px 100%;
  animation: skel-shine 1.6s ease-in-out infinite;
}
.dark-mode .skel-l {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.07) 25%,
    rgba(255,255,255,0.16) 50%,
    rgba(255,255,255,0.07) 75%
  );
  background-size: 1200px 100%;
}

/* â”€â”€ Skeleton card actualitÃ©s â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ns-card-skel {
  background: rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  height: 100%;
}
.ns-card-skel .skel-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ns-card-skel .skel-cat  { height: 10px; width: 72px; }
.ns-card-skel .skel-t    { height: 15px; width: 90%; }
.ns-card-skel .skel-t2   { height: 15px; width: 65%; }

/* â”€â”€ Skeleton card articles (fond blanc) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.article-card-skel {
  flex: 0 0 280px;
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
}
.article-card-skel .skel-img  { height: 140px; border-radius: 0; }
.article-card-skel .skel-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.article-card-skel .skel-cat  { height: 10px; width: 75px; }
.article-card-skel .skel-t1   { height: 15px; width: 92%; }
.article-card-skel .skel-t2   { height: 15px; width: 68%; }
.article-card-skel .skel-p1   { height: 11px; width: 100%; }
.article-card-skel .skel-p2   { height: 11px; width: 78%; }
.article-card-skel .skel-meta { height: 10px; width: 52%; margin-top: 4px; }

/* â”€â”€ Skeleton card outre-mer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.domtom-card-skel {
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
}
body.home-light .domtom-card-skel {
  background: rgba(28,134,238,0.05);
  border-color: rgba(28,134,238,0.10);
}
.dark-mode body.home-light .domtom-card-skel {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.09);
}
.domtom-card-skel .sk-icon { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; }
.domtom-card-skel .sk-body { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.domtom-card-skel .sk-name { height: 13px; border-radius: 4px; width: 70%; }
.domtom-card-skel .sk-sub  { height: 10px; border-radius: 4px; width: 50%; }
.domtom-card-skel .sk-temp { width: 34px; height: 22px; border-radius: 4px; flex-shrink: 0; }

/* â”€â”€ Skeleton observations â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.obs-card-skel {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.home-light .obs-card-skel { border-bottom-color: rgba(0,0,0,0.07); }
.obs-card-skel:last-child { border-bottom: none; }
.obs-card-skel .sk-row  { display: flex; align-items: flex-start; gap: 10px; }
.obs-card-skel .sk-icon { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.obs-card-skel .sk-col  { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.obs-card-skel .sk-a    { height: 12px; border-radius: 4px; width: 60%; }
.obs-card-skel .sk-b    { height: 10px; border-radius: 4px; width: 40%; }
.obs-card-skel .sk-c    { height: 9px; border-radius: 4px; width: 68%; }

/* â”€â”€ Skeleton wc-card (capitales, avant chargement) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wc-card-skel {
  flex: 0 0 148px;
  scroll-snap-align: start;
  background: #f0f4fa;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.dark-mode .wc-card-skel { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.09); }
.wc-card-skel .sk-flag    { width: 34px; height: 34px; border-radius: 50%; }
.wc-card-skel .sk-city    { height: 11px; border-radius: 4px; width: 80px; }
.wc-card-skel .sk-country { height: 9px;  border-radius: 4px; width: 60px; }
.wc-card-skel .sk-time    { height: 9px;  border-radius: 4px; width: 70px; }
.wc-card-skel .sk-temp    { height: 18px; border-radius: 4px; width: 45px; margin-top: 4px; }

/* â”€â”€ Shimmer mÃ©tÃ©o sur wc-card en chargement â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wc-card.wc-loading .wc-emoji {
  display: inline-block; width: 26px; height: 26px; border-radius: 50%;
  color: transparent;
  background: linear-gradient(90deg,#dde5f0 25%,#edf1f8 50%,#dde5f0 75%);
  background-size: 600px 100%;
  animation: skel-shine 1.6s ease-in-out infinite;
}
.wc-card.wc-loading .wc-temp {
  display: inline-block; width: 30px; height: 14px; border-radius: 4px; vertical-align: middle;
  color: transparent;
  background: linear-gradient(90deg,#dde5f0 25%,#edf1f8 50%,#dde5f0 75%);
  background-size: 600px 100%;
  animation: skel-shine 1.6s ease-in-out infinite;
}
.wc-card.wc-loading .wc-label {
  height: 9px; width: 72px; border-radius: 4px; margin: 1px auto 0;
  color: transparent;
  background: linear-gradient(90deg,#dde5f0 25%,#edf1f8 50%,#dde5f0 75%);
  background-size: 600px 100%;
  animation: skel-shine 1.6s ease-in-out infinite;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PAGE RECHERCHE â€” /rechercher
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Hero */
.srch-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark,#1a5fa8) 100%);
  padding: 40px 0 32px;
  color: #fff;
}
.srch-hero-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.srch-bar-wrap { width: 100%; max-width: 680px; }
.srch-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 0 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  gap: 10px;
}
.srch-bar-icon { color: var(--text-muted,#888); font-size: .95rem; flex-shrink: 0; }
.srch-bar-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  padding: 14px 0;
  color: var(--text-primary,#1a1a2e);
  background: transparent;
}
.srch-bar-input::placeholder { color: #aaa; }
.srch-clear-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 1rem;
  padding: 4px 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.srch-clear-btn:hover { color: var(--text-primary,#1a1a2e); }

/* Onglets */
.srch-tabs-wrap {
  border-bottom: 2px solid var(--border,#e5e7eb);
  background: var(--card-bg,#fff);
  position: sticky;
  top: 0;
  z-index: 50;
}
.srch-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 4px;
}
.srch-tabs::-webkit-scrollbar { display: none; }
.srch-tab {
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted,#6b7280);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
}
.srch-tab:hover { color: var(--primary,#2563eb); }
.srch-tab.active {
  color: var(--primary,#2563eb);
  border-bottom-color: var(--primary,#2563eb);
  font-weight: 600;
}
.srch-tab-count {
  background: var(--primary,#2563eb);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 20px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}
.srch-tab-count:empty { display: none; }

/* RÃ©sultats */
.srch-results {
  padding: 20px 0 40px;
  min-height: 300px;
}

/* Section header (mode "Tout") */
.srch-section-header {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted,#6b7280);
  padding: 20px 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--border,#e5e7eb);
  margin-bottom: 4px;
}
.srch-section-header:first-child { padding-top: 4px; }

/* Items */
.srch-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border,#e5e7eb);
  text-decoration: none;
  color: inherit;
  transition: background .12s;
  border-radius: 8px;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}
.srch-item:last-child { border-bottom: none; }
.srch-item:hover { background: var(--hover-bg,#f3f4f6); }

.srch-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-light,#eff6ff);
  color: var(--primary,#2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.srch-item--actu .srch-item-icon    { background: #fef3c7; color: #d97706; }
.srch-item--article .srch-item-icon { background: #f0fdf4; color: #16a34a; }
.srch-item--user .srch-item-icon    { background: #fdf4ff; color: #9333ea; }

.srch-item-icon--avatar {
  background: none;
  padding: 0;
  overflow: hidden;
}
.srch-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.srch-avatar--placeholder {
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: .95rem;
}

.srch-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.srch-item-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  background: var(--primary,#2563eb);
  border-radius: 4px;
  padding: 1px 6px;
  display: inline-block;
  align-self: flex-start;
}
.srch-item-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary,#1a1a2e);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.srch-item-meta {
  font-size: .78rem;
  color: var(--text-muted,#6b7280);
}

.srch-item-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.srch-item-arrow { color: var(--text-muted,#9ca3af); font-size: .8rem; }

/* Ã‰tats vides / chargement */
.srch-placeholder,
.srch-empty,
.srch-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 0;
  color: var(--text-muted,#6b7280);
  text-align: center;
}
.srch-placeholder i,
.srch-empty i,
.srch-loading i {
  font-size: 2.2rem;
  color: #cbd5e1;
}
.srch-placeholder p,
.srch-empty p,
.srch-loading { font-size: .95rem; }

/* â”€â”€ Light mode â€” titre en bleu foncÃ© â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html:not(.dark-mode) .srch-hero-title { color: #0f2d55; }

/* â”€â”€ Dark mode â€” page Recherche â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.dark-mode body.home-light .srch-hero {
  background: linear-gradient(135deg, #0d2a4e 0%, #091d38 100%);
}
html.dark-mode body.home-light .srch-bar {
  background: #0e2040;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
html.dark-mode body.home-light .srch-bar-input {
  color: #e0eaf8;
}
html.dark-mode body.home-light .srch-bar-input::placeholder { color: #4a6080; }
html.dark-mode body.home-light .srch-bar-icon,
html.dark-mode body.home-light .srch-clear-btn { color: #4a6080; }
html.dark-mode body.home-light .srch-clear-btn:hover { color: #e0eaf8; }

html.dark-mode body.home-light .srch-tabs-wrap {
  background: #0a1628;
  border-bottom-color: #1c3050;
}
html.dark-mode body.home-light .srch-tab { color: #6080a0; }
html.dark-mode body.home-light .srch-tab:hover { color: #5ab0ff; }
html.dark-mode body.home-light .srch-tab.active { color: #5ab0ff; border-bottom-color: #5ab0ff; }

html.dark-mode body.home-light .srch-section-header {
  color: #5a7090;
  border-bottom-color: #1c3050;
}
html.dark-mode body.home-light .srch-item {
  border-bottom-color: #1c3050;
}
html.dark-mode body.home-light .srch-item:hover { background: #0e2040; }

html.dark-mode body.home-light .srch-item-icon {
  background: #0e2040;
  color: #5ab0ff;
}
html.dark-mode body.home-light .srch-item--actu .srch-item-icon  { background: #1a1200; color: #f59e0b; }
html.dark-mode body.home-light .srch-item--article .srch-item-icon { background: #011a08; color: #34d399; }
html.dark-mode body.home-light .srch-item--user .srch-item-icon   { background: #1a0828; color: #c084fc; }

html.dark-mode body.home-light .srch-avatar--placeholder { background: #1c3050; color: #4a6080; }

html.dark-mode body.home-light .srch-item-title { color: #e0eaf8; }
html.dark-mode body.home-light .srch-item-meta  { color: #5a7090; }
html.dark-mode body.home-light .srch-item-arrow { color: #2a4060; }

html.dark-mode body.home-light .srch-placeholder i,
html.dark-mode body.home-light .srch-empty i,
html.dark-mode body.home-light .srch-loading i  { color: #1c3050; }
html.dark-mode body.home-light .srch-placeholder,
html.dark-mode body.home-light .srch-empty,
html.dark-mode body.home-light .srch-loading     { color: #4a6080; }

/* Snippet SERP */
.srch-item-snippet {
  font-size: .82rem;
  color: var(--text-muted, #4b5563);
  line-height: 1.5;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.srch-item-meta .srch-item-label {
  font-size: .68rem;
  padding: 1px 5px;
  vertical-align: middle;
}
html.dark-mode body.home-light .srch-item-snippet { color: #5a7090; }

/* â”€â”€ Filtres catÃ©gories â€” /actu â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.actu-filters-wrap {
  background: var(--card-bg, #fff);
  border-bottom: 1px solid var(--border, #e5e7eb);
  position: sticky;
  top: 0;
  z-index: 50;
  margin-bottom: 20px;
}
.actu-filters {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
}
.actu-filters::-webkit-scrollbar { display: none; }

.actu-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border, #e5e7eb);
  background: transparent;
  color: var(--text-secondary, #4b5563);
  font-size: .83rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}
.actu-pill:hover {
  border-color: var(--primary, #2563eb);
  color: var(--primary, #2563eb);
}
.actu-pill.active {
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
  color: #fff;
}
.actu-show-more {
  border-style: dashed;
  opacity: .75;
}
.actu-show-more:hover { opacity: 1; }
.actu-pill-count {
  background: rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 0 6px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.6;
}
.actu-pill.active .actu-pill-count { background: rgba(255,255,255,.25); }

/* Dark mode */
html.dark-mode body.home-light .actu-filters-wrap {
  background: #0a1628;
  border-bottom-color: #1c3050;
}
html.dark-mode body.home-light .actu-pill {
  border-color: #1c3050;
  color: #6080a0;
}
html.dark-mode body.home-light .actu-pill:hover {
  border-color: #5ab0ff;
  color: #5ab0ff;
}
html.dark-mode body.home-light .actu-pill.active {
  background: #1c86ee;
  border-color: #1c86ee;
  color: #fff;
}

/* â”€â”€ Actu hero : style titre simple (prev-header) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
section.blog-hero:has(#actu-hero-inner) { padding: 0; background: none; }
#actu-hero-inner {
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 28px 24px 20px;
  background: var(--card-bg, #fff);
  border-bottom: 1px solid var(--border, #e4eaf4);
}
#actu-hero-inner .blog-hero-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#actu-hero-inner .blog-hero-icon {
  width: 40px; height: 40px;
  font-size: 1.2rem;
  margin-bottom: 0;
  flex-shrink: 0;
  background: rgba(28,134,238,0.10);
  color: #1c86ee;
  box-shadow: none;
}
#actu-hero-inner .blog-hero-title { font-size: 1.35rem; color: #0a2a5a; }
#actu-hero-inner .blog-hero-subtitle { font-size: 0.85rem; color: #7a90aa; }
html.dark-mode #actu-hero-inner { background: #0a1628; border-bottom-color: #1c3050; }
html.dark-mode #actu-hero-inner .blog-hero-title { color: #e8f0fe; }
html.dark-mode #actu-hero-inner .blog-hero-icon { background: rgba(28,134,238,0.20); color: #5ab0ff; }
html.dark-mode #actu-hero-inner .blog-hero-subtitle { color: #6080a0; }

/* â”€â”€ Dom-Tom : pilules navigation (style actu-filters) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.domtom-pills-bar {
  background: var(--card-bg, #fff);
  border-bottom: 1px solid var(--border, #e5e7eb);
  position: sticky;
  top: 0;
  z-index: 50;
  margin-bottom: 20px;
}
.domtom-pills-bar > * {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  margin: 12px 0 12px 8px;
  border-radius: 20px;
  border: 1.5px solid var(--border, #e5e7eb);
  background: transparent;
  color: var(--text-secondary, #4b5563);
  font-size: .83rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.domtom-pills-bar > *:last-child { margin-right: 8px; }
.domtom-pills-bar > *:hover { border-color: var(--primary, #2563eb); color: var(--primary, #2563eb); }
.domtom-pills-bar > *.active { background: var(--primary, #2563eb); border-color: var(--primary, #2563eb); color: #fff; }
html.dark-mode .domtom-pills-bar { background: #0a1628; border-bottom-color: #1c3050; }
html.dark-mode .domtom-pills-bar > * { border-color: #1c3050; color: #6080a0; }
html.dark-mode .domtom-pills-bar > *:hover { border-color: #5ab0ff; color: #5ab0ff; }
html.dark-mode .domtom-pills-bar > *.active { background: #1c86ee; border-color: #1c86ee; color: #fff; }

/* â”€â”€ Hero H1 SEO â€” pages outils â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.page-hero {
  padding: 28px 24px 20px;
  background: var(--card-bg, #fff);
  border-bottom: 1px solid var(--border, #e4eaf4);
}
.page-hero-h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a2a5a;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-hero-h1 i { color: #1c86ee; font-size: 1.1rem; }
.page-hero-intro {
  font-size: .85rem;
  color: #7a90aa;
  line-height: 1.65;
  margin: 0;
}
html.dark-mode .page-hero { background: #0a1628; border-bottom-color: #1c3050; }
html.dark-mode .page-hero-h1 { color: #e0eaf8; }
html.dark-mode .page-hero-h1 i { color: #5ab0ff; }
html.dark-mode .page-hero-intro { color: #5a7090; }

/* ============================================================
   BULLETIN MÃ‰TÃ‰O DU JOUR
   ============================================================ */

/* â”€â”€ Navigation date â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.bulletin-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0 24px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
html.dark-mode .bulletin-nav {
  background: rgba(255,255,255,0.06);
}
.bulletin-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.bulletin-date-label {
  font-size: .85rem;
  color: #5a7090;
  white-space: nowrap;
  cursor: pointer;
}
html.dark-mode .bulletin-date-label { color: #8aa5c0; }
.bulletin-date-input {
  padding: 6px 12px;
  border: 1.5px solid #d0dce8;
  border-radius: 10px;
  font-size: .9rem;
  font-family: inherit;
  color: #1a2a3a;
  background: #fff;
  cursor: pointer;
  outline: none;
}
.bulletin-date-input:focus { border-color: #1c86ee; }
html.dark-mode .bulletin-date-input {
  background: #1a2e44;
  border-color: #2a4060;
  color: #c0d8f0;
}

/* Boutons dates rapides */
.bulletin-recent-dates {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bulletin-day-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 10px;
  border: 1.5px solid #d0dce8;
  border-radius: 10px;
  background: #f4f7fb;
  cursor: pointer;
  transition: all .15s;
  gap: 1px;
}
.bulletin-day-btn:hover {
  border-color: #1c86ee;
  background: #e8f0fc;
}
.bulletin-day-btn.active {
  border-color: #1c86ee;
  background: #1c86ee;
  color: #fff;
}
.bdb-day { font-size: .7rem; font-weight: 600; text-transform: uppercase; opacity: .7; }
.bdb-num { font-size: 1.1rem; font-weight: 700; line-height: 1; }
.bdb-mon { font-size: .65rem; opacity: .7; }
.bulletin-day-btn.active .bdb-day,
.bulletin-day-btn.active .bdb-mon { opacity: .85; }
html.dark-mode .bulletin-day-btn {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: #c0d8f0;
}

/* â”€â”€ Article bulletin â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.bulletin-article {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 32px;
}
html.dark-mode .bulletin-article {
  background: #132240;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.bulletin-header {
  background: linear-gradient(135deg, #0f2d55 0%, #1c86ee 100%);
  padding: 32px 40px 28px;
  color: #fff;
}
@media (max-width: 600px) { .bulletin-header { padding: 24px 20px 20px; } }

.bulletin-header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.bulletin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.18);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bulletin-gen-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255,200,50,0.25);
  border-radius: 20px;
  font-size: .75rem;
  color: #ffe08a;
}
.bulletin-date {
  font-size: .9rem;
  opacity: .85;
}
.bulletin-pubtime {
  font-size: .82rem;
  opacity: .65;
}
.bulletin-title {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
@media (max-width: 600px) { .bulletin-title { font-size: 1.2rem; } }
.bulletin-summary {
  font-size: .95rem;
  opacity: .85;
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}

/* Corps du bulletin */
.bulletin-body {
  padding: 32px 40px;
  color: #1a2a3a;
  line-height: 1.75;
  font-size: .97rem;
}
html.dark-mode .bulletin-body { color: #c8daf0; }
@media (max-width: 600px) { .bulletin-body { padding: 20px; } }

.bulletin-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f2d55;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e0eaf8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bulletin-body h2:first-child { margin-top: 0; }
html.dark-mode .bulletin-body h2 {
  color: #5ab0ff;
  border-bottom-color: rgba(255,255,255,0.1);
}

.bulletin-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1c6abf;
  margin: 20px 0 8px;
}
html.dark-mode .bulletin-body h3 { color: #80c0f0; }

.bulletin-body p { margin: 0 0 14px; }
.bulletin-body ul, .bulletin-body ol {
  margin: 0 0 14px 20px;
}
.bulletin-body li { margin-bottom: 4px; }
.bulletin-body strong { color: #0f2d55; }
html.dark-mode .bulletin-body strong { color: #a0d0f0; }

.bulletin-body a {
  color: #1c86ee;
  text-decoration: underline;
  text-decoration-color: rgba(28,134,238,.3);
  text-underline-offset: 2px;
}
.bulletin-body a:hover { text-decoration-color: #1c86ee; }

/* Footer du bulletin */
.bulletin-footer {
  padding: 16px 40px 20px;
  border-top: 1px solid #e8f0f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
html.dark-mode .bulletin-footer { border-top-color: rgba(255,255,255,0.08); }
.bulletin-permalink {
  font-size: .82rem;
  color: #5a7090;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bulletin-permalink:hover { color: #1c86ee; }
.bulletin-credit {
  font-size: .75rem;
  color: #8aa5c0;
  margin: 0;
}

/* Empty state */
.bulletin-empty {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255,255,255,0.7);
  border-radius: 20px;
  color: #3a5070;
}
.bulletin-empty i { opacity: .4; margin-bottom: 16px; display: block; }
.bulletin-empty p { font-size: 1.05rem; margin-bottom: 6px; }
.bulletin-empty-sub { font-size: .85rem; opacity: .7; }

/* Navigation prÃ©cÃ©dent / suivant */
.bulletin-nav-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.bulletin-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.85);
  border-radius: 14px;
  text-decoration: none;
  color: #1a2a3a;
  font-size: .88rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow .15s, transform .15s;
}
.bulletin-nav-btn:hover {
  box-shadow: 0 4px 16px rgba(28,134,238,0.15);
  transform: translateY(-2px);
}
.bulletin-nav-next { justify-content: flex-end; text-align: right; }
.bulletin-nav-btn small { display: block; font-size: .72rem; color: #5a7090; margin-bottom: 2px; }
html.dark-mode .bulletin-nav-btn {
  background: rgba(255,255,255,0.07);
  color: #c0d8f0;
}
@media (max-width: 600px) {
  .bulletin-nav-prev-next { grid-template-columns: 1fr; }
}

/* â”€â”€ Widget bulletin (homepage) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.widget-bulletin {
  margin-top: 16px;
  overflow: hidden;
}

/* Carte France illustrÃ©e */
.wb-map-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #0d2a50;
}
.wb-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
}
.wb-map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background .4s;
}
/* Version grande sur la page bulletin (remplace la hauteur 200px du widget) */
.wb-map-bulletin {
  height: 300px;
  border-radius: 0;
}
@media (max-width: 600px) { .wb-map-bulletin { height: 200px; } }

/* Pilules min/max (bas de carte, centrÃ©es) */
.wb-pill-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 7px;
  z-index: 4;
}
.wb-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  white-space: nowrap;
  color: #fff;
}
.wb-pill-min { background: rgba(30,64,175,0.88); }
.wb-pill-max { /* background set inline via tmax */ }
.wb-alert-canicule { background: rgba(185,28,28,0.92); }
.wb-alert-froid    { background: rgba(30,58,138,0.92); }
.widget-bulletin-body {
  padding: 16px 20px 20px;
}
.wb-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.wb-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wb-badge-today {
  background: #e8f5e9;
  color: #2e7d32;
}
html.dark-mode .wb-badge-today {
  background: rgba(76,175,80,0.15);
  color: #81c784;
}
.wb-date {
  font-size: .82rem;
  color: #5a7090;
  font-weight: 500;
}
.wb-time {
  font-size: .78rem;
  color: #8aa5c0;
}
.wb-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f2d55;
  line-height: 1.35;
  margin: 0 0 8px;
}
html.dark-mode .wb-title { color: #c8e0f8; }
.wb-summary {
  font-size: .85rem;
  color: #3a5070;
  line-height: 1.55;
  margin: 0 0 14px;
}
html.dark-mode .wb-summary { color: #8aa5c0; }
.wb-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #1c86ee, #0a5cb8);
  color: #fff;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}
.wb-cta:hover { opacity: .88; }

/* ============================================================
   FOLLOW BUTTON â€” page /profil
   ============================================================ */
.ep-hero-follow {
  margin-left: auto;
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}
.follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.15);
  color: #fff;
  transition: background .15s, border-color .15s, opacity .15s;
  white-space: nowrap;
}
.follow-btn:hover:not(:disabled) {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.8);
}
.follow-btn--following {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.7);
}
.follow-btn--loading { opacity: .6; }
.follow-btn:disabled { cursor: default; }

/* â•â• Widget Commentaires â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.cmt-widget { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border-light, #e8edf4); }
#section-comments .cmt-widget { margin-top: 0; padding-top: 0; border-top: none; }
.cmt-title { font-size: 1rem; font-weight: 700; color: var(--text-primary, #1a2a4a); margin: 0 0 20px; display: flex; align-items: center; gap: 8px; }
.cmt-total-badge { background: #1c86ee; color: #fff; border-radius: 20px; padding: 1px 8px; font-size: .72rem; font-weight: 700; }
.cmt-list { display: flex; flex-direction: column; gap: 12px; }
.cmt-item { display: flex; gap: 10px; align-items: flex-start; transition: opacity .3s; margin-top: 16px; }
.cmt-avatar { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: block; }
.cmt-avatar img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.cmt-av-letter { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg,#1c86ee,#4fc3f7); color: #fff; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.cmt-bubble { flex: 1; min-width: 0; background: var(--bg-card, #f8fafb); border-radius: 0 12px 12px 12px; padding: 10px 14px; border: 1px solid var(--border-light, #e8edf4); }
.cmt-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.cmt-pseudo { font-weight: 700; font-size: .82rem; color: #1c86ee; text-decoration: none; }
.cmt-pseudo:hover { text-decoration: underline; }
.cmt-time { font-size: .72rem; color: var(--text-muted, #8090a8); }
.cmt-body { font-size: .88rem; color: var(--text-primary, #1a2a4a); margin: 0; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.cmt-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cmt-react { display: inline-flex; align-items: center; gap: 5px; background: rgba(128,144,168,.07); border: 1px solid rgba(128,144,168,.15); border-radius: 20px; padding: 4px 10px; font-size: .8rem; color: var(--text-muted, #8090a8); cursor: pointer; font-family: var(--font); transition: all .15s; }
.cmt-react:hover { background: rgba(128,144,168,.14); color: var(--text, #1a2233); }
.cmt-react--like-active { background: rgba(0,200,120,.14); border-color: rgba(0,200,120,.35); color: #00b890; }
.cmt-react--dislike-active { background: rgba(255,100,80,.12); border-color: rgba(255,100,80,.30); color: #ff6050; }
html.dark-mode .cmt-react { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.10); color: rgba(255,255,255,.45); }
html.dark-mode .cmt-react:hover { background: rgba(255,255,255,.09); color: rgba(255,255,255,.75); }
.cmt-like-count { font-weight: 600; }
.cmt-delete-btn { display: flex; align-items: center; background: none; border: none; cursor: pointer; color: var(--text-muted, #8090a8); font-size: .75rem; padding: 3px 6px; border-radius: 6px; opacity: .6; transition: opacity .15s, color .15s; margin-left: auto; }
.cmt-delete-btn:hover { opacity: 1; color: #e53e3e; }
.cmt-loading { color: var(--text-muted, #8090a8); font-size: .85rem; padding: 12px 0; }
.cmt-empty { color: var(--text-muted, #8090a8); font-size: .85rem; font-style: italic; padding: 8px 0; }
.cmt-error { color: #e53e3e; font-size: .85rem; }
.cmt-load-more-wrap { text-align: center; margin-top: 12px; }
.cmt-load-more { background: none; border: 1px solid var(--border-light, #e8edf4); border-radius: 20px; padding: 7px 18px; font-size: .82rem; color: #1c86ee; cursor: pointer; transition: background .15s; }
.cmt-load-more:hover { background: rgba(28,134,238,.06); }
.cmt-form-wrap { margin-top: 20px; }
.cmt-auth-notice { text-align: center; padding: 12px; background: var(--bg-card, #f8fafb); border-radius: 10px; border: 1px solid var(--border-light, #e8edf4); font-size: .85rem; }
.cmt-auth-notice a { color: #1c86ee; font-weight: 600; text-decoration: none; }
.cmt-form { display: flex; gap: 10px; align-items: flex-start; }
.cmt-form-avatar { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.cmt-form-avatar img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.cmt-form-right { flex: 1; min-width: 0; }
.cmt-textarea { width: 100%; background: var(--bg-card, #f8fafb); border: 1px solid var(--border-light, #e8edf4); border-radius: 10px; padding: 10px 12px; font-size: .88rem; font-family: var(--font); color: var(--text-primary, #1a2a4a); resize: none; outline: none; transition: border-color .18s, background .18s; min-height: 60px; box-sizing: border-box; }
.cmt-textarea:focus { border-color: #1c86ee; background: #fff; box-shadow: 0 0 0 3px rgba(28,134,238,.1); }
.cmt-form-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.cmt-char-counter { font-size: .72rem; color: var(--text-muted, #8090a8); }
.cmt-submit-btn { display: flex; align-items: center; gap: 6px; background: #1c86ee; color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .15s, opacity .15s; }
.cmt-submit-btn:hover:not(:disabled) { background: #1570cd; }
.cmt-submit-btn:disabled { opacity: .5; cursor: not-allowed; }
.cmt-post-msg { font-size: .8rem; margin-top: 6px; }
.cmt-post-msg--err { color: #e53e3e; }

/* Dark mode */
.dark-mode .cmt-bubble { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.dark-mode .cmt-textarea { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: #fff; }
.dark-mode .cmt-textarea:focus { background: rgba(255,255,255,.1); }
.dark-mode .cmt-auth-notice { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.dark-mode .cmt-load-more { border-color: rgba(255,255,255,.15); color: #4fc3f7; }

/* â”€â”€ Profil public â€” derniers commentaires â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.profil-cmt-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.profil-cmt-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; background: var(--bg-card,#f8fafb); border-radius: 10px; border: 1px solid var(--border-light,#e8edf4); }
.profil-cmt-meta { font-size: .72rem; color: var(--text-muted,#8090a8); display: flex; gap: 8px; }
.profil-cmt-type { font-weight: 600; color: #1c86ee; }
.profil-cmt-type--link { text-decoration: none; }
.profil-cmt-type--link:hover { text-decoration: underline; }
.profil-cmt-body { font-size: .85rem; color: var(--text-primary,#1a2a4a); }
.dark-mode .profil-cmt-item { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }

/* â”€â”€ Suivis dans espace-perso â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.suivis-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.suivis-item:last-child { border-bottom: none; }
.suivis-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.suivis-avatar--placeholder {
  background: rgba(28,134,238,.12);
  display: flex; align-items: center; justify-content: center;
  color: #1c86ee; font-size: 1.1rem;
}
.suivis-info { flex: 1; min-width: 0; }
.suivis-name {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  font-size: .92rem;
}
.suivis-name:hover { color: #1c86ee; }
.suivis-meta { font-size: .78rem; color: var(--text-muted); }
.suivis-unfollow-btn { display: none; } /* remplacÃ© par .suivis-follow-btn */
.suivis-actions { flex-shrink: 0; }
.suivis-follow-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px;
  font-size: .78rem; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8;
}
.suivis-follow-btn:hover { background: #dbeafe; }
.suivis-follow-btn--following {
  background: none; border-color: var(--border-light); color: var(--text-muted);
}
.suivis-follow-btn--following:hover { color: #e74c3c; border-color: #e74c3c; background: none; }
.suivis-follow-btn:disabled { opacity: .6; cursor: default; }

/* â”€â”€ RÃ©glages push cities â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.s-push-city-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border,#e2e8f0);
  font-size: 0.88rem; color: var(--text,#1a1a2e);
  transition: opacity .3s;
}
.s-push-city-row:last-child { border-bottom: none; }
.s-push-city-row i { color: var(--primary,#2563eb); margin-right: 4px; }
.s-push-city-del {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; padding: 4px 10px; border-radius: 12px;
  border: 1px solid #fca5a5; color: #dc2626; background: #fff0f0;
  cursor: pointer; transition: background .15s;
}
.s-push-city-del:hover { background: #fee2e2; }
html.dark-mode .s-push-city-row { color: #d0e0f0; border-bottom-color: rgba(255,255,255,0.08); }
html.dark-mode .s-push-city-del { background: rgba(220,38,38,0.12); border-color: rgba(220,38,38,0.35); color: #f87171; }
html.dark-mode .s-push-city-del:hover { background: rgba(220,38,38,0.22); }

/* â”€â”€ Toggle notifications â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* â”€â”€ Badge Push â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ep-push-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1c86ee;
  border: 1px solid #bfdbfe;
  vertical-align: middle;
  white-space: nowrap;
}
html.dark-mode .ep-push-badge {
  background: rgba(28,134,238,0.15);
  border-color: rgba(28,134,238,0.3);
  color: #7cb9f8;
}
/* Ã‰tat non supportÃ© */
[data-push-row].push-na label.ep-toggle,
[data-push-card].push-na .ep-toggle {
  opacity: 0.4;
  pointer-events: none;
}
.ep-push-na-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 0.8rem;
}
html.dark-mode .ep-push-na-notice {
  background: rgba(234,179,8,0.1);
  border-color: rgba(234,179,8,0.25);
  color: #fcd34d;
}

.ep-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 4px 0;
}
.ep-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.ep-toggle input { opacity: 0; width: 0; height: 0; }
.ep-toggle-slider {
  position: absolute; inset: 0;
  background: var(--border-light);
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s;
}
.ep-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.ep-toggle input:checked + .ep-toggle-slider { background: #1c86ee; }
.ep-toggle input:checked + .ep-toggle-slider::before { transform: translateX(20px); }
.ep-toggle-label { font-size: .88rem; line-height: 1.4; }
.ep-toggle-label strong { display: block; color: var(--text-primary); margin-bottom: 2px; }
.ep-toggle-label span { color: var(--text-muted); font-size: .82rem; }

/* ============================================================
   RANK WIDGET â€” composant rÃ©utilisable (profil public, listing membres)
   ============================================================ */
.rw-rank {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.rw-icon { font-size: 1.4rem; line-height: 1; }
.rw-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.rw-obs {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.rw-obs i { color: #1c86ee; margin-right: 4px; }
.rw-progress { margin-top: 4px; }
.rw-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}
.rw-progress-next {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.rw-progress-count {
  font-size: .72rem;
  color: var(--text-muted);
}
.rw-progress-bar {
  height: 5px;
  background: #d9e4f0;
  border-radius: 5px;
  overflow: hidden;
}
.rw-progress-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #1c86ee, #4fc3f7);
  transition: width .6s ease;
}
.rw-max {
  font-size: .82rem;
  color: var(--text-muted);
  font-style: italic;
}

.ep-permalink-link {
  color: #1c86ee;
  font-weight: 600;
  word-break: break-all;
}

/* ============================================================
   PROFIL PUBLIC â€” page /profil/{slug}
   ============================================================ */
.profil-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 0 4px;
}
.profil-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 14px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}
.dark-mode .profil-stat-card {
  background: #0d1f3c;
  border-color: rgba(255,255,255,0.10);
}
.profil-stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: #11579a;
  line-height: 1.1;
}
.dark-mode .profil-stat-val { color: #5ab4f0; }
.profil-stat-label {
  font-size: 0.72rem;
  color: #7a8a9a;
  text-align: center;
}

/* Layout deux colonnes */
.profil-two-col {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 48px;
}
.profil-col { display: flex; flex-direction: column; gap: 20px; }

/* Observations dans le profil */
.profil-obs-list { display: flex; flex-direction: column; gap: 0; }
.profil-obs-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.profil-obs-item:last-child { border-bottom: none; }
.profil-obs-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}
.profil-obs-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.78rem;
  color: #6a7a90;
  margin-bottom: 4px;
}
.profil-obs-emoji { font-size: 1rem; }
.profil-obs-city-link { color: #1c86ee; text-decoration: none; }
.profil-obs-city-link:hover { text-decoration: underline; }
.profil-obs-measures { font-size: 0.82rem; color: #2a3a50; margin-bottom: 4px; }
.dark-mode .profil-obs-measures { color: #c0d0e0; }
.profil-obs-desc { font-size: 0.83rem; color: #4a5a70; line-height: 1.5; margin: 4px 0 0; }
.dark-mode .profil-obs-desc { color: #a0b8d0; }
.profil-obs-reactions { display: flex; gap: 8px; margin-top: 8px; }
.profil-react-btn {
  background: rgba(0,0,0,0.05);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  color: inherit;
}
.profil-react-btn:hover { background: rgba(28,134,238,0.10); border-color: rgba(28,134,238,0.3); }
.profil-react-btn--active { background: rgba(28,134,238,0.14); border-color: #1c86ee; }
.profil-react-btn--dislike.profil-react-btn--active { background: rgba(220,50,50,0.12); border-color: #e05050; }
.profil-obs-footer { margin-top: 16px; text-align: center; }
.profil-obs-btn { display: inline-flex; align-items: center; gap: 8px; }

/* Bio / empty */
.profil-bio { font-size: 0.92rem; color: #2a3a50; line-height: 1.65; white-space: pre-wrap; }
.dark-mode .profil-bio { color: #c0d0e0; }
.profil-empty { color: #8090a8; font-size: 0.85rem; font-style: italic; }

/* Commentaires */
.profil-cmt-list { display: flex; flex-direction: column; gap: 0; }
.profil-cmt-item { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.profil-cmt-item:last-child { border-bottom: none; }
.profil-cmt-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  font-size: 0.74rem;
  color: #8090a8;
}
.profil-cmt-type { font-weight: 600; color: #4a5a70; }
.dark-mode .profil-cmt-type { color: #9ab8d8; }
.profil-cmt-type--link { color: #1c86ee; text-decoration: none; }
.profil-cmt-type--link:hover { text-decoration: underline; }
.profil-cmt-body { font-size: 0.84rem; color: #2a3a50; line-height: 1.5; }
.dark-mode .profil-cmt-body { color: #c0d0e0; }

/* â”€â”€ Profil public â€” Responsive mobile â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 860px) {
  .profil-two-col {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 32px;
  }
  .profil-stat-val { font-size: 1.2rem; }
  .profil-stat-label { font-size: 0.68rem; }
  .profil-stat-card { padding: 10px 8px; border-radius: 12px; }
  .ep-card { margin-bottom: 0; }
  .profil-obs-photo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
  }
}

