/* =========================
   Espace Meteo Pro
   ========================= */

.meteo-page{
  display: grid;
  gap: 20px;
}

.meteo-hero{
  position: relative;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,14,22,.65);
  overflow: hidden;
  min-height: 220px;
}
.meteo-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../img/ESPACE%20PRO.png") center/cover no-repeat;
  opacity: .55;
  filter: saturate(1.05) contrast(1.05);
  z-index: 0;
}
.meteo-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,14,22,.88), rgba(10,14,22,.35));
  z-index: 1;
}

.meteo-hero__glow{
  position: absolute;
  width: 520px;
  height: 320px;
  filter: blur(70px);
  opacity: .45;
  z-index: 2;
  animation: meteo-float 18s ease-in-out infinite;
}
.meteo-hero__glow--a{
  top: -180px;
  left: -160px;
  background: rgba(25,193,180,.7);
}
.meteo-hero__glow--b{
  top: -200px;
  right: -180px;
  background: rgba(247,183,51,.7);
  animation-delay: -6s;
}
.meteo-hero__grain{
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: 3;
}
.meteo-hero__content{
  position: relative;
  z-index: 4;
  display: grid;
  gap: 10px;
}
.meteo-hero__title{
  margin: 6px 0 4px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.05;
}
.meteo-hero__subtitle{
  max-width: 62ch;
  color: var(--muted);
  margin: 0;
}

/* Force white text in hero */
.meteo-hero,
.meteo-hero .eyebrow,
.meteo-hero__title,
.meteo-hero__subtitle,
.meteo-hero__actions .btn,
.meteo-hero__chips,
.meteo-hero__chips .chip{
  color: #ffffff !important;
}
.meteo-hero__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Match map-day button style for "Voir la vigilance" */
.meteo-hero__actions .btn--primary{
  border-radius: 12px;
  border: 1px solid rgba(0,10,255,1) !important;
  background: rgba(0,10,255,.45) !important;
  color: #fff !important;
  padding: 7px 12px;
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0,10,255,.55) !important;
  transition: transform .15s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.meteo-hero__actions .btn--primary:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.35);
}
.meteo-hero__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .02em;
}
.chip--live{
  border-color: rgba(58,166,255,.35);
  background: rgba(58,166,255,.18);
}

.meteo-hub{
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  display: grid;
  gap: 14px;
}

.meteo-hub__head{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.meteo-duo{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
@media (max-width: 900px){
  .meteo-duo{ grid-template-columns: 1fr; }
}

.meteo-card{
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  animation: meteo-rise .7s ease both;
}
.meteo-card:nth-child(2){ animation-delay: .08s; }
.meteo-card:nth-child(3){ animation-delay: .16s; }

.meteo-card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 24px 60px rgba(0,0,0,.36);
}

.meteo-card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-card__head{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.map-embed{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(25,193,180,.12), transparent 60%),
    rgba(0,0,0,.28);
}
.map-embed iframe{
  width: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.meteo-card .badge{
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(58,166,255,.35);
  background: rgba(58,166,255,.12);
  color: rgba(255,255,255,.9);
  font-weight: 900;
  font-size: 12px;
}

body[data-theme="clair"] .meteo-hero__chips .chip,
body[data-theme="clair"] .meteo-page .chip,
body[data-theme="clair"] .meteo-page .meteo-card .badge{
  color: #ffffff !important;
  background: rgba(0, 10, 255, .25) !important;
  border-color: rgba(0, 10, 255, .45) !important;
}

.meteo-note{
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.meteo-note .muted{
  margin: 0;
  max-width: 64ch;
}

@keyframes meteo-rise{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

@keyframes meteo-float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(12px); }
}

@media (prefers-reduced-motion: reduce){
  .meteo-card,
  .meteo-hero__glow{
    animation: none;
  }
}

@media (max-width: 700px){
  .meteo-hero{
    padding: 22px;
  }
}
