/* ============================================
   MÉTÉO ESTAIMPUIS - main.css
   ============================================ */

/* ===== VARIABLES ===== */
:root {
  --bg:         #0b1220;
  --bg2:        #111a2e;
  --card:       #162238;
  --border:     rgba(255, 255, 255, 0.08);
  --accent:     #3ea6ff;
  --accent2:    #ffb020;
  --text:       #e8edf5;
  --text-dim:   #8b96ab;
  --green:      #3ddc84;
  --red:        #ff5c5c;
  --orange:     #ff7a3d;
  --radius:     16px;
  --radius-lg:  20px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 20% -10%, rgba(62, 166, 255, 0.15), transparent 40%),
    radial-gradient(circle at 90% 10%,  rgba(255, 176, 32, 0.08),  transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 60px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== BANDEAU PRINCIPAL ===== */
.banner {
  position: relative;
  height: 230px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 14, 28, 0.15) 0%, rgba(8, 14, 28, 0.65) 100%),
    linear-gradient(120deg, #5b9bd5 0%, #8fc4e8 35%, #cfe6f0 55%, #6fae6f 70%, #3f7a45 100%);
  border-bottom: 1px solid var(--border);
}

/* Quand la vraie photo sera intégrée : */
/* .banner { background-image: url('/assets/img/banner.jpg'); background-size: cover; background-position: center; } */

.flag-wrap {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 5;
  width: 90px;
}
.flag-img {
  width: 100%;
  border-radius: 2px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  animation: wave 3s ease-in-out infinite;
  transform-origin: left center;
}
@keyframes wave {
  0%, 100% { transform: perspective(200px) rotateY(0deg)  skewY(0deg);  }
  50%       { transform: perspective(200px) rotateY(8deg)  skewY(-2deg); }
}

.entity-logo {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 5;
  width: 90px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.entity-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-title {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-title h1 {
  font-size: 2.6em;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
  color: white;
}

/* ===== NAVIGATION ===== */
.mainnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: linear-gradient(180deg, #1a2538, #111a2e);
  border-bottom: 1px solid var(--border);
}
.nav-links { display: flex; }
.nav-links a {
  color: var(--text-dim);
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 14px 18px;
  display: block;
  transition: color .2s, border-color .2s;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-color: var(--accent);
}

/* Pastille "En ligne" */
.live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(61, 220, 132, 0.12);
  color: var(--green);
  border: 1px solid rgba(61, 220, 132, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78em;
  font-weight: 600;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

@keyframes iconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.15); }
}
.alert-chip.danger i,
.alert-chip.warn i {
  animation: iconPulse 1.5s ease-in-out infinite;
}

/* ===== MAIN CONTENT ===== */
main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
}

/* ===== TITRES DE SECTION ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 14px;
  font-size: 1.05em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text);
}
.section-title i { color: var(--accent); }
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== ALERTES ===== */
.alerts-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.alert-chip {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid;
  font-size: 0.85em;
}
.alert-chip.warn   { background: rgba(255, 176, 32, 0.1);  border-color: rgba(255, 176, 32, 0.4);  color: var(--accent2); }
.alert-chip.danger { background: rgba(255, 92, 92, 0.1);   border-color: rgba(255, 92, 92, 0.4);   color: var(--red); }
.alert-chip.ok     { background: rgba(61, 220, 132, 0.08); border-color: rgba(61, 220, 132, 0.3);  color: var(--green); }
.alert-chip i      { font-size: 1.3em; flex-shrink: 0; }
.alert-chip .small {
  display: block;
  font-size: 0.78em;
  color: var(--text-dim);
  margin-top: 2px;
  font-weight: 400;
}

/* ===== MESSAGE DYNAMIQUE ===== */
.dyntext {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(62, 166, 255, 0.08), rgba(255, 176, 32, 0.06));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 22px;
  font-size: 0.88em;
}
.dyntext i.wave   { color: var(--accent2); font-size: 1.2em; flex-shrink: 0; }
.dyntext .greet   { color: var(--text-dim); font-size: 0.92em; }
.dyntext .tip     { display: flex; align-items: center; gap: 6px; margin-top: 3px; }

/* ===== HERO CONDITIONS ACTUELLES ===== */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.hero-main {
  background: linear-gradient(135deg, rgba(62, 166, 255, 0.12), rgba(22, 34, 56, 0.7));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.hero-main::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 166, 255, 0.25), transparent 70%);
  pointer-events: none;
}
.temp-big { font-size: 4.2em; font-weight: 300; line-height: 1; }
.temp-big sup { font-size: 0.35em; vertical-align: top; color: var(--text-dim); }
.cond-label { color: var(--text-dim); margin-top: 6px; font-size: 0.95em; }
.hero-icon {
  font-size: 5em;
  color: var(--accent2);
  filter: drop-shadow(0 0 18px rgba(255, 176, 32, 0.4));
  z-index: 1;
  position: relative;
  top: -40px;
}

.temp-trend {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 0px;
  font-size: 1rem; /* réinitialise l'héritage du 4.2em parent */
}
.temp-trend svg {
  width: 28px;
  height: 28px;
}

.temp-trend.up { color: #ff6b6b; }
.temp-trend.down { color: #4a9eff; }
.temp-trend.stable { color: var(--text-dim); }

.hero-clock {
  position: absolute;
  bottom: 14px;
  right: 20px;
  text-align: right;
  z-index: 1;
}
.hero-clock-time {
  font-size: 1.1em;
  font-weight: 500;
  color: var(--text);
}
.hero-clock-update {
  font-size: 0.72em;
  color: var(--text-dim);
  margin-top: 2px;
}
.hero-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mini-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mini-stat i   { color: var(--accent); font-size: 1.1em; margin-bottom: 2px; }
.mini-stat .val { font-size: 1.3em; font-weight: 600; }
.mini-stat .sub { font-size: 0.75em; color: var(--accent2); font-weight: 600; }
.mini-stat .lbl { font-size: 0.74em; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }

/* Bouton audio */
.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(62, 166, 255, 0.12);
  border: 1px solid rgba(62, 166, 255, 0.35);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.8em;
  font-weight: 600;
  cursor: pointer;
  margin-top: 14px;
  transition: background .2s;
}
.audio-btn:hover { background: rgba(62, 166, 255, 0.22); }

/* ===== WEBCAM ===== */
.webcam-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 22px;
}
.webcam-hero .wc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.webcam-hero h2 {
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.webcam-hero h2 i { color: var(--orange); }
.wc-live-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 92, 92, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 92, 92, 0.35);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: 700;
}
.wc-live-tag .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.4s infinite;
}
.wc-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.9em;
  gap: 10px;
}
.wc-frame img { width: 100%; height: 100%; object-fit: cover; }
.wc-links { display: flex; gap: 10px; margin-top: 14px; }
.wc-links a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82em;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.wc-links a:hover { color: var(--text); border-color: var(--accent); }
.wc-links a i { margin-right: 6px; color: var(--accent); }

/* ===== CARDS (grille stats) ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(62, 166, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.card .top i    { font-size: 1.3em; color: var(--accent); }
.card .top .badge {
  font-size: 0.68em;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}
.card .value  { font-size: 1.6em; font-weight: 700; }
.card .label  { font-size: 0.78em; color: var(--text-dim); margin-top: 2px; }
.card .trend  { font-size: 0.72em; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.trend.up     { color: var(--green); }
.trend.down   { color: var(--red); }
.trend.flat   { color: var(--text-dim); }

.bar-mini { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); margin-top: 10px; overflow: hidden; }
.bar-mini > div { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }

.windrose-card {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .windrose-card {
    grid-column: span 1;
  }
  .windrose-card #windRoseChart {
    height: 220px;
  }
}

/* ===== WIDE CARDS (2x2 et 3 colonnes) ===== */
.wide-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.wide-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.wide-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .2s, border-color .2s;
}
.wide-card:hover {
  transform: translateY(-2px);
  border-color: rgba(62, 166, 255, 0.25);
}
.wide-card h3 { font-size: 0.95em; display: flex; align-items: center; gap: 8px; }
.wide-card h3 i { color: var(--accent2); }
.wide-card p  { font-size: 0.78em; color: var(--text-dim); margin-top: 6px; }
.placeholder-img {
  margin-top: 10px;
  height: 80px;
  border-radius: 10px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.04) 0 10px,
    rgba(255, 255, 255, 0.02) 10px 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.75em;
}


/* ===== SECTION COMMUNAUTÉ ===== */
.community {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.community .card {
  min-width: 0;
  overflow-wrap: break-word;
}
.community .card .value,
.community .card .label {
  overflow-wrap: break-word;
  word-break: break-word;
}
.community .card { text-align: center; }
.community .card > i {
  font-size: 1.8em;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

/* ===== BANDE TECHNIQUE ===== */
.tech-strip {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.tech-item {
  flex: 1;
  min-width: 150px;
  font-size: 0.78em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tech-item i       { color: var(--accent); }
.tech-item strong  { color: var(--text); display: block; font-size: 1.1em; font-weight: 700; }
.tech-item .networks { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 2px; }
.tech-item .networks a { color: var(--accent); font-weight: 600; font-size: 0.95em; }
.tech-item .networks a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8em;
}
.footer-sub { margin-top: 6px; }

/* ===== RESPONSIVE ===== */
.forecast-tabs { display:flex; gap:10px; margin-bottom:16px; }
.forecast-tab-btn {
  padding:8px 16px; border-radius:20px; border:none; cursor:pointer;
  background:rgba(255,255,255,0.07); color:var(--text); font-weight:600; font-size:0.85em;
}
.forecast-tab-btn.active { background:var(--accent); color:#fff; }

.yr-table { width:100%; border-collapse:collapse; font-size:0.95em; }
.yr-table th { background:rgba(255,255,255,0.06); padding:10px 6px; color:var(--text-dim); font-weight:600; }
.yr-table td { text-align:center; padding:14px 6px; border-top:1px solid var(--border); }
.yr-day-label { text-align:left !important; font-weight:700; vertical-align:middle; padding-left:12px !important; font-size:1.05em; }
.yr-table img { width:40px; height:40px; }
.yr-temp { font-weight:700; font-size:1.15em; margin-top:6px; }
.yr-rain { font-size:0.85em; color:var(--accent); margin-top:2px; }
#iss-map { touch-action: pan-y; }
.om-table { display: flex; flex-direction: column; }
.om-day-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.om-day-row:first-child { padding-top: 4px; }
.om-day-label { min-width: 110px; flex-shrink: 0; }
.om-day-name { font-weight: 700; font-size: 1.05em; }
.om-day-date { font-size: 0.8em; color: var(--text-dim); margin-top: 2px; }
.om-slots {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.om-slot { text-align: center; }
.om-range { font-size: 0.75em; color: var(--text-dim); margin-bottom: 4px; }
.om-icon svg { width: 30px; height: 30px; }
.om-temp { font-weight: 700; font-size: 1.15em; margin-top: 6px; }
.om-rain { font-size: 0.80em; color: var(--accent); margin-top: 2px; }
.om-wind { font-size: 0.80em; color: var(--text-dim); margin-top: 4px; }
.om-wind .gust { color: var(--text-dim); }
.om-hum { font-size: 0.72em; color: var(--text-dim); margin-top: 2px; }

@media (max-width: 768px) {
  .om-day-row { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 0; }
  .om-day-label { min-width: unset; }
  .om-day-name { font-size: 0.95em; }
  .om-day-date { font-size: 0.72em; }
  .om-slots {
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    gap: 4px;
  }
  .om-hum { display: none; }
    .om-slot { font-size: 0.85em; }
    .om-icon svg { width: 30px; height: 30px; }
    .om-temp { font-size: 1.1em; }
  }


.burger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4em;
  cursor: pointer;
  padding: 12px 16px;
}

@media (max-width: 1100px) {
  .wide-row   { grid-template-columns: repeat(2, 1fr); }
.community  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 1100;
}
#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover {
  background: var(--accent2);
}

@media (max-width: 768px) {
  #backToTop {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* === NAVIGATION === */
  .wide-card:has(iframe[src*="meteoblue"]) { display: none; }
  .vigilance-legend { display: none; }
  .banner-title h1 { font-size: 1.8em; }
  .burger-btn { display: block; }
  .banner {
     height: 130px !important;
     background-size: cover !important;
     background-position: 30% center !important;
   }
          .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111a2e;
    border-bottom: 1px solid var(--border);
    z-index: 50;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; border-bottom: 1px solid var(--border); }
  .mainnav { position: relative; }
  /* === ONGLETS PRÉVISIONS === */
  .forecast-tabs { display: flex; }
  #btn-graph { display: none; }
  #forecast-graph-view { display: none !important; }

.yr-table { font-size:0.88em; }
.yr-table td { padding:12px 4px; }
.yr-table img { width:34px; height:34px; }
.yr-temp { font-size:1.1em; }
.yr-rain { font-size:0.8em; }
.yr-day-label { font-size:1em; }

  /* === LAYOUT GÉNÉRAL === */
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; }  /* ← Reste 2 col pour gagner de la place */

  /* === GRILLES === */
  .wide-row { grid-template-columns: 1fr; }
  .wide-row-2 { grid-template-columns: 1fr; }
.community { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

  /* === ALERTES === */
  .alerts-bar { flex-direction: column; }
  .alert-chip { min-width: unset; width: 100%; }

  /* === WEBCAM === */
.wc-frame { aspect-ratio: 16 / 9; height: auto; }
  .wc-links { flex-direction: column; }

  /* === WIDE CARDS & IFRAMES === */
  .wide-card iframe { height: 500px !important; }

  /* === TECH STRIP === */
  .tech-strip { flex-direction: column; }
  .tech-item { min-width: unset; width: 100%; }
  .tech-item .networks { flex-wrap: wrap; }

  /* === GRAPHIQUES === */
  #graphique-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .g-card { flex: none; }
  #graphique-container { height: 700px; }
  .hide-mobile-graph {
    display: none !important;
}

  /* === DYNO TEXT === */
  .dyntext {
    flex-direction: column;
    text-align: center;
  }
  .dyntext .msgs {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* === BANNER === */
  .flag-wrap { width: 50px; }
  .entity-logo { width: 50px; height: 50px; }
}

@media (max-width: 480px) {
  main { padding: 16px; }

  /* === HERO === */
  .hero-side { grid-template-columns: 1fr; }
  .temp-big { font-size: 3em; }
  .hero-icon { font-size: 3.5em; }

  /* === CARDS === */
    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card { padding: 12px; }
    .card .value { font-size: 1.25em; }
    .card .label { font-size: 0.7em; }
    .card .top i { font-size: 1.1em; }
    .community { grid-template-columns: minmax(0, 1fr); }
    .windrose-card {
  grid-column: 1 / -1;
}
/* === HERO === */
  .hero-side { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mini-stat { padding: 12px; }
  .mini-stat .val { font-size: 1.15em; }
  .mini-stat .lbl { font-size: 0.68em; }
  .temp-big { font-size: 3em; }
  .hero-icon { font-size: 3.5em; }

  /* === ALERTES === */
  .alert-chip { padding: 10px 12px; font-size: 0.8em; }
  .alert-chip i { font-size: 1em; }

  /* === TITLES === */
  .section-title { font-size: 0.95em; }
  .banner-title h1 { font-size: 1.4em; letter-spacing: 1px; }

  /* === WIDE CARDS === */
    .wide-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .wide-card { padding: 12px; min-height: auto; }
    .wide-card h3 { font-size: 0.9em; }
    .wide-card iframe { height: 400px !important; }

  /* === TECH STRIP === */
  .tech-item strong { font-size: 1em; }
  .tech-item { font-size: 0.72em; }

  /* === WEBCAM === */
    .wc-frame { aspect-ratio: 16 / 9; height: auto; }
      .wc-header { flex-direction: column; gap: 8px; align-items: flex-start; }

  /* === MESSAGE DYNAMIQUE === */
  .dyntext { padding: 10px 14px; font-size: 0.75em; }
  .dyntext .greet { font-size: 0.85em; }
  .dyntext .tip { font-size: 0.8em; }
}
/* ===== MODALE DÉTAILS (NEO / Météores / Séismes) ===== */
.detail-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 14, 28, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.detail-modal-overlay.active {
    display: flex;
}
.detail-modal {
    background: #111a2e;
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
}
.detail-modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    line-height: 1;
}
.detail-modal h3 {
    margin: 0 0 16px 0;
    padding-right: 30px;
}
.detail-modal-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.detail-modal-item:last-child {
    border-bottom: none;
}
.detail-modal-item .hazardous {
    color: #ff6b6b;
    font-weight: bold;
}
.clickable-card {
    cursor: pointer;
    transition: transform 0.15s ease;
}
.clickable-card:hover {
    transform: translateY(-2px);
}

/* ===== PAGE PRÉVISIONS ===== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.link-list {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
}
.link-list li {
    margin-bottom: 10px;
}
.link-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.15s ease;
}
.link-list a:hover {
    color: var(--accent2);
}
.link-list a i:first-child {
    color: var(--accent2);
    font-size: 0.8em;
    flex-shrink: 0;
}
@media (min-width: 481px) and (max-width: 1366px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
