/* ── BaugéPlus Météo — Charte graphique light ── */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --bpm-navy:   #1a2b5e;
  --bpm-orange: #f47920;
  --bpm-white:  #ffffff;
  --bpm-gray1:  #f8f9fb;
  --bpm-gray2:  #eef0f5;
  --bpm-gray3:  #d1d5e0;
  --bpm-gray4:  #8892a4;
  --bpm-text:   #1e2535;
  --bpm-radius: 14px;
  --bpm-shadow: 0 2px 16px rgba(26,43,94,.09);
}

/* WRAPPER */
.bpm-wrap {
  font-family: 'DM Sans', sans-serif;
  color: var(--bpm-text);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* HERO */
.bpm-hero {
  background: var(--bpm-navy);
  border-radius: var(--bpm-radius);
  padding: 36px 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.bpm-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(244,121,32,.15);
  pointer-events: none;
}
.bpm-hero-left { flex: 1; min-width: 220px; }
.bpm-hero-city {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bpm-orange);
  margin-bottom: 4px;
}
.bpm-hero-desc {
  font-size: 17px;
  opacity: .85;
  margin-bottom: 20px;
}
.bpm-hero-temp {
  font-family: 'Oswald', sans-serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.bpm-hero-temp sup { font-size: 32px; vertical-align: super; }
.bpm-hero-feels { font-size: 14px; opacity: .7; margin-top: 6px; }
.bpm-hero-right { text-align: center; flex-shrink: 0; }
.bpm-hero-icon { font-size: 90px; line-height: 1; }
.bpm-hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.bpm-hero-meta-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; opacity: .85;
}
.bpm-hero-meta-item strong { font-weight: 600; }

/* SOLEIL BAR */
.bpm-sun-bar {
  background: var(--bpm-white);
  border: 1px solid var(--bpm-gray2);
  border-radius: var(--bpm-radius);
  box-shadow: var(--bpm-shadow);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.bpm-sun-item { display: flex; align-items: center; gap: 12px; }
.bpm-sun-icon { font-size: 28px; }
.bpm-sun-lbl { font-size: 11px; color: var(--bpm-gray4); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.bpm-sun-val { font-family: 'Oswald', sans-serif; font-size: 24px; color: var(--bpm-navy); font-weight: 600; }

/* TITRES SECTION */
.bpm-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--bpm-navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bpm-orange);
  display: inline-block;
}

/* PRÉVISIONS HORAIRES */
.bpm-hourly-wrap { margin-bottom: 36px; }
.bpm-hourly-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--bpm-gray3) transparent;
}
.bpm-hourly-scroll::-webkit-scrollbar { height: 4px; }
.bpm-hourly-scroll::-webkit-scrollbar-thumb { background: var(--bpm-gray3); border-radius: 4px; }
.bpm-h-card {
  flex-shrink: 0;
  background: var(--bpm-white);
  border: 1px solid var(--bpm-gray2);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  min-width: 80px;
  box-shadow: var(--bpm-shadow);
  transition: transform .15s, border-color .15s;
}
.bpm-h-card:hover { transform: translateY(-2px); border-color: var(--bpm-orange); }
.bpm-h-card.now {
  border-color: var(--bpm-navy);
  background: var(--bpm-navy);
  color: #fff;
}
.bpm-h-time {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--bpm-gray4);
  margin-bottom: 8px;
}
.bpm-h-card.now .bpm-h-time { color: rgba(255,255,255,.6); }
.bpm-h-icon { font-size: 24px; margin-bottom: 6px; }
.bpm-h-temp {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--bpm-text);
}
.bpm-h-card.now .bpm-h-temp { color: #fff; }
.bpm-h-prob { font-size: 11px; color: #5b8def; margin-top: 4px; }
.bpm-h-card.now .bpm-h-prob { color: rgba(144,180,255,.9); }

/* PRÉVISIONS 7 JOURS */
.bpm-daily-wrap { margin-bottom: 36px; }
.bpm-daily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.bpm-d-card {
  background: var(--bpm-white);
  border: 1px solid var(--bpm-gray2);
  border-radius: var(--bpm-radius);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--bpm-shadow);
  transition: transform .15s, border-color .15s;
}
.bpm-d-card:hover { transform: translateY(-3px); border-color: var(--bpm-orange); }
.bpm-d-card.today { border-color: var(--bpm-orange); border-width: 2px; }
.bpm-d-day {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--bpm-navy);
  margin-bottom: 10px;
}
.bpm-d-icon { font-size: 30px; margin-bottom: 10px; }
.bpm-d-temps {
  display: flex; justify-content: center; gap: 8px;
  font-family: 'Oswald', sans-serif; font-size: 16px;
}
.bpm-d-max { color: var(--bpm-text); font-weight: 600; }
.bpm-d-min { color: var(--bpm-gray4); }
.bpm-d-precip { font-size: 11px; color: #5b8def; margin-top: 6px; }
.bpm-d-desc { font-size: 11px; color: var(--bpm-gray4); margin-top: 4px; line-height: 1.3; }

/* PANELS VENT + UV */
.bpm-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
@media(max-width:640px) { .bpm-panels { grid-template-columns: 1fr; } }
.bpm-panel {
  background: var(--bpm-white);
  border: 1px solid var(--bpm-gray2);
  border-radius: var(--bpm-radius);
  padding: 24px;
  box-shadow: var(--bpm-shadow);
}
.bpm-panel-title {
  font-family: 'Oswald', sans-serif;
  font-size: 15px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--bpm-navy);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.bpm-wind-compass { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.bpm-compass {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 2px solid var(--bpm-gray2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background: var(--bpm-gray1);
  flex-shrink: 0;
}
.bpm-compass-arrow {
  width: 4px; height: 38px;
  background: linear-gradient(to bottom, var(--bpm-orange) 50%, var(--bpm-gray3) 50%);
  border-radius: 4px;
  transform-origin: center 75%;
  transition: transform .5s ease;
}
.bpm-wind-stats { flex: 1; }
.bpm-wind-stat {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--bpm-gray2);
  font-size: 14px;
}
.bpm-wind-stat:last-child { border-bottom: none; }
.bpm-wind-stat strong { font-weight: 600; color: var(--bpm-navy); }
.bpm-uv-gauge { margin-top: 4px; }
.bpm-uv-val {
  font-family: 'Oswald', sans-serif;
  font-size: 48px; font-weight: 700; color: var(--bpm-navy); line-height: 1;
}
.bpm-uv-label { font-size: 14px; margin-top: 4px; font-weight: 600; }
.bpm-uv-bar {
  height: 12px; border-radius: 6px;
  background: linear-gradient(to right, #4caf50, #ffeb3b, #ff9800, #f44336, #9c27b0);
  position: relative; margin: 12px 0 4px;
}
.bpm-uv-cursor {
  position: absolute; top: -4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bpm-navy);
  transform: translateX(-50%);
  transition: left .5s;
}
.bpm-uv-scale {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--bpm-gray4);
}
.bpm-panel-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--bpm-gray2); font-size: 14px;
}
.bpm-panel-row:last-child { border-bottom: none; }
.bpm-panel-row strong { font-weight: 600; color: var(--bpm-navy); }

/* WIDGET COMPACT */
.bpm-widget {
  font-family: 'DM Sans', sans-serif;
  background: var(--bpm-white);
  border: 1px solid var(--bpm-gray2);
  border-radius: var(--bpm-radius);
  box-shadow: var(--bpm-shadow);
  overflow: hidden;
  width: 100%;
}
.bpm-widget-head {
  background: var(--bpm-navy);
  padding: 18px 20px;
  color: #fff;
  display: flex; align-items: center; gap: 14px;
}
.bpm-widget-icon { font-size: 40px; flex-shrink: 0; }
.bpm-widget-city {
  font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bpm-orange); font-weight: 600;
  margin-bottom: 2px;
}
.bpm-widget-temp {
  font-family: 'Oswald', sans-serif;
  font-size: 38px; font-weight: 700; line-height: 1;
}
.bpm-widget-desc { font-size: 13px; opacity: .8; margin-top: 2px; }
.bpm-widget-feels { font-size: 12px; opacity: .6; margin-top: 1px; }
.bpm-widget-meta {
  padding: 10px 20px;
  display: flex; gap: 14px;
  border-bottom: 1px solid var(--bpm-gray2);
  font-size: 12px; color: var(--bpm-gray4); flex-wrap: wrap;
}
.bpm-widget-meta span { display: flex; align-items: center; gap: 4px; }
.bpm-widget-forecast {
  display: grid; grid-template-columns: repeat(3,1fr);
}
.bpm-wf-day {
  padding: 14px 8px; text-align: center;
  border-right: 1px solid var(--bpm-gray2);
}
.bpm-wf-day:last-child { border-right: none; }
.bpm-wf-label { font-size: 11px; color: var(--bpm-gray4); font-weight: 600; text-transform: uppercase; }
.bpm-wf-icon { font-size: 22px; margin: 6px 0; }
.bpm-wf-temps {
  font-family: 'Oswald', sans-serif; font-size: 14px;
  display: flex; justify-content: center; gap: 5px;
}
.bpm-wf-max { color: var(--bpm-text); font-weight: 600; }
.bpm-wf-min { color: var(--bpm-gray4); }
.bpm-widget-footer {
  padding: 9px 20px;
  font-size: 11px; color: var(--bpm-gray4);
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--bpm-gray2);
}
.bpm-widget-footer a { color: var(--bpm-orange); font-weight: 600; text-decoration: none; }
.bpm-widget-footer a:hover { text-decoration: underline; }

/* RESPONSIVE */
@media(max-width:720px){
  .bpm-hero { padding: 24px 20px; }
  .bpm-hero-temp { font-size: 54px; }
  .bpm-hero-icon { font-size: 64px; }
  .bpm-daily-grid { grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); }
}
@media(max-width:480px){
  .bpm-hero-right { display: none; }
  .bpm-daily-grid { grid-template-columns: repeat(3,1fr); }
  .bpm-hero-meta { gap: 12px; }
}
