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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: linear-gradient(180deg, #e8f0f8 0%, #f4f7fb 35%, #eef3f9 100%);
  color: #0f172a;
  line-height: 1.45;
  min-height: 100vh;
}

.site { max-width: 1340px; margin: 0 auto; padding: 16px; }

/* Bannière supérieure tendance : dégradé Nuit Polaire -> Bleu Horizon */
.weather-masthead {
  position: relative;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: linear-gradient(125deg, #0f172a 0%, #1e3a8a 48%, #0284c7 100%);
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.18);
}

.masthead-title-box { padding: 26px 30px 12px; color: #ffffff; }
.masthead-title-box h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(90deg, #ffffff 0%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.masthead-title-box p { font-size: 0.92rem; color: #cbd5e1; margin-top: 2px; }

/* Barre météo translucide effet verre (Glassmorphism) */
.meteo-bar-container {
  width: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.meteo-bar-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.meteo-bar-item:last-child { border-right: none; }
.meteo-bar-label { font-size: 11px; color: #93c5fd; text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; }
.meteo-bar-value { font-size: 15px; font-weight: 700; color: #ffffff; }
.meteo-bar-unit { font-size: 11px; color: #cbd5e1; }

/* Barre d'état sous la bannière */
.station-topbar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: none;
  padding: 13px 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-radius: 0 0 18px 18px;
  margin-bottom: 22px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.station-topbar-title { font-weight: 800; font-size: 1.12rem; color: #0f172a; margin-right: 10px; }
.station-topbar-subtitle { font-size: 0.85rem; color: #64748b; }
.station-topbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}
.header-time {
  background: #0f172a;
  padding: 2px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Structure Sidebar + Contenu */
.site-layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.sidebar {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}
.nav-section {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 16px 0 6px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 3px;
  transition: all 0.15s ease;
}
.nav-item:hover { background: #f1f5f9; color: #0284c7; transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(90deg, #eff6ff 0%, #e0f2fe 100%);
  color: #0284c7;
  font-weight: 700;
  border-left: 3px solid #0284c7;
}
.sidebar-footer { margin-top: 20px; padding-top: 14px; border-top: 1px solid #f1f5f9; font-size: 0.82rem; color: #64748b; padding-left: 8px; }
.station-name { font-weight: 800; color: #0f172a; }

/* En-tête de section */
.page-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}
.eyebrow { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; color: #0284c7; }
.page-heading h1 { font-size: 1.75rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.page-heading p { font-size: 0.92rem; color: #64748b; }
.last-update {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 0.8rem;
  color: #64748b;
  text-align: right;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}
.last-update strong { display: block; font-size: 0.96rem; color: #0f172a; }

/* Grille des 9 cartes blanches avec liseré coloré */
.weather-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.weather-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.weather-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  opacity: 0.85;
}
.weather-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(2, 132, 199, 0.14);
  border-color: #7dd3fc;
}
.card-head { width: 100%; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.card-label { display: block; font-weight: 700; font-size: 1.02rem; color: #0f172a; }
.card-description { font-size: 0.78rem; color: #64748b; }
.card-icon {
  font-size: 1.25rem;
  background: #f8fafc;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
}
.gauge-wrap { width: 170px; height: 170px; display: flex; align-items: center; justify-content: center; margin: 4px 0; }
.card-value { font-size: 2rem; font-weight: 800; color: #0f172a; margin: 4px 0 8px; letter-spacing: -0.02em; }
.card-value span { font-size: 1rem; font-weight: 600; color: #64748b; margin-left: 3px; }
.sparkline-block { width: 100%; margin: 4px 0 10px; }
.sparkline { width: 100%; height: 50px; display: block; }
.card-footer {
  width: 100%;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
}
.val-min { color: #0284c7; font-weight: 700; background: #f0f9ff; padding: 2px 7px; border-radius: 6px; }
.val-max { color: #e11d48; font-weight: 700; background: #fff1f2; padding: 2px 7px; border-radius: 6px; }

/* Bandeau secondaire & Médias */
.mini-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.mini-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.mini-card span { font-size: 1.4rem; }
.mini-card small { display: block; font-size: 0.75rem; color: #64748b; }
.mini-card strong { font-size: 0.98rem; color: #0f172a; }

.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 20px; }
.media-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}
.media-card h3 { font-size: 1rem; color: #0f172a; }
.media-card img, .media-card iframe { width: 100%; height: 265px; object-fit: cover; border-radius: 12px; border: 0; }

@media (max-width: 1050px) {
  .site-layout { grid-template-columns: 1fr; }
  .weather-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .weather-grid, .media-grid { grid-template-columns: 1fr; }
}
