:root {
  --bg:       #172138;
  --cyan:     #5bc8f5;
  --text:     rgba(232,240,248,0.95);

  /* ── Système typographique unifié ── */
  --f-display:  'Rajdhani', sans-serif;  /* valeurs principales */
  --f-label:    'DM Mono', monospace;    /* labels, unités */

  /* Tailles */
  --t-sub:    12px;   /* gc-top, gc-bot, infos secondaires */
  --t-unit:   18px;   /* unité de la valeur principale */
  --t-main:   36px;   /* valeur principale */

  /* Graisses */
  --w-sub:  500;
  --w-main: 700;

  /* Couleurs texte */
  --c-sub:  rgba(200,168,75,0.9);   /* ambre pour gc-top/gc-bot */
  --c-muted:rgba(255,255,255,0.4);   /* unités, labels discrets */
  --c-main: #eef4fc;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-label);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── HERO : webcam + overlay ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── ALERTE CONDITIONS ── */
.alert-overlay {
  position: absolute; inset: 0; z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 80px;
}
.alert-overlay.active {
  opacity: 1;
}
.alert-overlay-bg {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(220,60,40,0.35) 0%, rgba(220,60,40,0.08) 60%, transparent 100%);
}
.alert-badge {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  background: rgba(220,50,30,0.85);
  border: 1px solid rgba(255,100,80,0.5);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 3px;
  animation: alertPulse 2s ease-in-out infinite;
}
.alert-icon { font-size: 16px; }
.alert-text {
  font-family: var(--f-label);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.95);
}
.alert-sub {
  font-family: var(--f-label);
  font-size: 9px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
  margin-top: 1px;
}
@keyframes alertPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(220,60,40,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(220,60,40,0); }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,22,38,0.2) 0%,
    rgba(13,22,38,0.0) 35%,
    rgba(13,22,38,0.6) 75%,
    rgba(18,28,46,0.95) 100%
  );
  z-index: 1;
}

/* ── NAV ── */
.nav {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 40px;
}

.nav-logo {
  font-family: var(--f-display);
  font-size: 16px; font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
}

.sponsor-badge {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-label);
  border: 1px solid rgba(255,200,80,0.2);
  padding: 8px 16px; border-radius: 4px;
  backdrop-filter: blur(12px);
  background: rgba(8,12,18,0.65);
  min-width: 240px;
  box-shadow: 0 0 20px rgba(255,200,80,0.05);
}
.sponsor-dot {
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: #ff3b3b;
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}
.sponsor-text {
  font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.sponsor-name {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(200,168,75,1);
  transition: opacity 0.6s ease;
  text-shadow: 0 0 12px rgba(255,200,80,0.3);
}
.sponsor-tag {
  font-size: 9px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  transition: opacity 0.6s ease;
  white-space: nowrap;
}
.sponsor-cta-link {
  color: rgba(200,168,75,1);
  text-decoration: none;
  border-bottom: 1px dotted rgba(200,168,75,0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sponsor-cta-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.3; transform:scale(0.7); }
}

/* ── HERO CONTENT ── */
.hero-content {
  position: absolute; bottom: 60px; left: 40px; right: 40px;
  z-index: 5;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px;
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300; line-height: 1.05;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
}

.hero-title em {
  font-style: normal; font-weight: 700;
  color: #fff;
}

.hero-subtitle {
  margin-top: 10px;
  font-family: var(--f-label);
  font-size: 9px; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.3); text-transform: uppercase;
}

/* ── MINI STATS HERO ── */
.hero-stats {
  display: flex; gap: 1px;
  flex-shrink: 0;
}

.hero-stat {
  background: var(--bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 12px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 80px;
}

.hero-stat:first-child { border-radius: 6px 0 0 6px; }
.hero-stat:last-child  { border-radius: 0 6px 6px 0; }

.hero-stat-icon { font-size: 14px; opacity: 0.7; }

.hero-stat-val {
  font-family: var(--f-display);
  font-size: 24px; font-weight: 700; line-height: 1;
}

.hero-stat-lbl {
  font-family: var(--f-label);
  font-size: 9px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35); text-transform: uppercase;
}

/* ── SCROLL CTA ── */
.scroll-cue {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--f-label);
  font-size: 9px; letter-spacing: 0.14em; color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  animation: bob 2.5s ease-in-out infinite;
  cursor: pointer;
}

@keyframes bob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(5px); }
}

.scroll-cue svg { opacity: 0.3; }

/* ── DASHBOARD ── */
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: flex; flex-direction: column; gap: 52px;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--f-label);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(232,240,248,0.8);
  display: flex; align-items: center; gap: 8px;
  padding-left: 10px;
  border-left: 2px solid var(--cyan);
  flex: 1;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(91,200,245,0.2), transparent);
  margin-left: 12px;
}

.section-time {
  font-family: var(--f-label);
  font-size: 10px; color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════
   ECOWITT PANEL
   ══════════════════════════════════════════ */
.section-panel {
  overflow: hidden;
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 20px;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(91,200,245,0.1), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ══════════════════════════════════════════
   LAYOUT RESPONSIVE — grid 4 colonnes
   ══════════════════════════════════════════ */

.tile-grid {
  display: flex;
  flex-direction: column;
}.panels-row-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  min-height: 190px;
}
.astro-arc-panel { grid-column: auto; }
.tide-panel { grid-column: auto; }
.rain-panel { grid-column: auto; }

.gauge-cell {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px 16px;
  flex: 0 0 auto;
  gap: 12px;
}

.astro-arc-panel {
  grid-column: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  overflow: hidden;
}

.tide-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  overflow: hidden;
}

.tide-inner {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  flex-shrink: 0;
}

.tide-inner svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 150px;
  display: block;
}

.tide-overlay * { pointer-events: auto; }

/* Responsive 2 colonnes */
/* ── TABLETTE (< 1024px) ── */
/* ── DEFAULT (grand écran) ── */
.gauges-row-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: nowrap;
}
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}
.map-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 300px;
  border: none;
  overflow: hidden;
  background: #141d2e;
  border-radius: 6px;
}

@media (max-width: 1024px) {
  /* Jauges 2 par 2 */
    .gauge-cell { flex: 0 0 calc(50% - 15px); }
  /* tile-grid : soleil+lune pleine largeur, marée+pluie sur ligne suivante */
  .tile-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .astro-arc-panel {
  grid-column: auto;
  padding: 20px 16px;
}
.tide-panel {
  grid-column: span 1;
}
.rain-panel {
  grid-column: span 1;
}
}

/* Toutes les gauge-wrap : carré fixe 180×180 */
.gauge-wrap {
  position: relative;
  width: 180px; height: 180px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(91,200,245,0.08), 0 4px 24px rgba(0,0,0,0.3);
}

.gauge-wrap svg { width: 180px; height: 180px; display: block; }

/* ── Arc solaire/lunaire ── */
.astro-arc-inner {
  position: relative;
  width: 100%;
  height: 144px;
  flex-shrink: 0;
}

.astro-arc-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.astro-arc-wrap svg {
  width: 100%;
  height: 144px;
  display: block;
  pointer-events: none;
}

/* ── Astro + Marée : overlay HTML sur SVG ── */
.astro-arc-panel, .tide-panel { position: relative; }

.astro-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.astro-overlay * { pointer-events: auto; }

/* UV — haut gauche, dans le coin de l'ellipse soleil */
/* Badges UV et pleine lune */
.astro-badge {
  position: absolute;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(8,12,18,0.55);
  backdrop-filter: blur(8px);
  border-radius: 2px;
  white-space: nowrap;
}

.astro-badge-lbl {
  font-family: var(--f-label);
  font-size: 9px; font-weight: 500;
  color: rgba(255,255,255,0.4); letter-spacing: 0.1em;
  text-transform: uppercase;
}

.astro-badge-val {
  font-family: var(--f-display);
  font-size: 13px; font-weight: 700;
  color: rgba(200,168,75,0.95);
}

.astro-badge-sub {
  font-family: var(--f-label);
  font-size: 9px; font-weight: 400;
  color: rgba(255,255,255,0.35); letter-spacing: 0.06em;
  text-transform: uppercase;
}

.astro-time {
  position: absolute;
  left: 50%; top: 55%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}

.astro-badges-row {
  position: absolute;
  left: 50%; top: 84%;
  transform: translate(-50%, -50%);
  display: flex; gap: 20px; align-items: center; justify-content: center;
}

.astro-badges-row .astro-badge {
  position: static;
}

/* Heures 11px, centrées sous leur point */

.astro-lbl-hour[style*="right"] { transform: translateX(50%); }

/* Heures grandes */
.astro-lbl-hour-lg {
  position: absolute;
  font-family: var(--f-display);
  font-size: 14px; font-weight: 600;
  color: var(--c-sub);
  transform: translateX(-50%);
}

.astro-lbl-hour-lg[style*="right"] { transform: translateX(50%); }

.astro-lbl-moon { color: rgba(200,220,255,0.6); }

/* Labels sous la grille */

.tile-sublabels .gauge-lbl {
  text-align: center;
  padding: 4px 0;
}

/* ── Baromètre cadran ── */

/* ── Pluie ── */
.rain-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  overflow: hidden;
  position: relative;
}

.rain-inner {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  flex-shrink: 0;
}

.rain-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 150px;
  display: block;
}

.rain-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  z-index: 2;
}

/* Centrage garanti de gauge-center dans tide-inner pleine largeur */
.tide-inner > .gauge-center {
  align-items: center;
  text-align: center;
}

/* ── Marée ── */
.tide-panel {
  padding: 0;
}

/* ══════════════════════════════════════════
   TYPOGRAPHIE UNIFIÉE — toutes les tuiles
   ══════════════════════════════════════════ */

/* Label de tuile (VENT, TEMPÉRATURE...) */
.gauge-lbl, 
.gauge-lbl-unit {
  font-family: var(--f-label);
  font-size: 10px; font-weight: 400;
  color: var(--c-muted); letter-spacing: 0.06em; text-transform: none;
}

/* Valeur principale */
.gc-main {
  font-family: var(--f-display);
  font-size: var(--t-main); font-weight: var(--w-main);
  color: var(--c-main); line-height: 1;
  display: flex; align-items: baseline; gap: 0;
  font-variant-numeric: tabular-nums;
}

/* Unité */
.gc-unit {
  font-family: var(--f-label);
  font-size: 11px; font-weight: 600;
  color: var(--c-main); margin-left: 3px;
  vertical-align: super;
  opacity: 0.6;
  letter-spacing: 0.08em;
}

/* Infos secondaires (gc-top, gc-bot) */
.gc-top, .gc-bot {
  font-family: var(--f-display);
  font-size: var(--t-sub); font-weight: var(--w-sub);
  color: var(--c-sub); letter-spacing: 0.04em;
}

/* Labels et valeurs dans gc-bot */
.gc-bot-muted {
  font-family: var(--f-display);
  font-size: var(--t-sub); font-weight: var(--w-sub);
  color: var(--c-muted); letter-spacing: 0.04em;
}

.gc-bot-val {
  font-family: var(--f-display);
  font-size: var(--t-sub); font-weight: var(--w-sub);
  color: var(--c-sub);
}

.gauge-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
  z-index: 2;
}

/* Glow uniquement sur la rose des vents (via radialGradient fond existant) */

/* Tendance + unité empilées à droite, collées à la décimale */
.wind-unit-stack {
  display: inline-flex;
  flex-direction: column-reverse;
  align-items: stretch;
  align-self: center;
  margin-left: 3px;
  gap: 0;
  line-height: 1.1;
}

/* Direction vent — flex avec gap explicite */
.wind-dir-row {
  display: flex; align-items: center; gap: 14px;
  justify-content: center; width: 100%;
}

/* Décimale même couleur que l'entier */
.wind-speed-dec {
  font-size: var(--t-unit); opacity: 1;
  color: inherit;
}

/* gauge-unit = même style que gc-unit */

/* Alignement wind-trend-kt-d avec gc-main */

/* ── LIGNE 4 : pluie + reco ── */
.row-bottom {
  display: flex;
  gap: 20px;
  padding: 0;
  align-items: stretch;
}

.bottom-map {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.mapboxgl-ctrl-zoom-in,
.mapboxgl-ctrl-zoom-out {
  transform: scale(0.8);
  transform-origin: center;
}

.bottom-reco {
  flex: 1;
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}

/* ── Prévision à 3 jours style Windy ── */

.forecast-table th, .forecast-table td {
  padding: 0;
  text-align: center;
  border: none;
}
.fc-head-row th {
  padding: 5px 4px 4px;
  background: rgba(255,255,255,0.07);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.fc-head-row th.fc-day-sep {
  border-left: 1px solid rgba(255,255,255,0.15);
}
.fc-row td {
  padding: 14px 4px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.fc-row td.fc-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: 14px 2px;
  width: 26px;
  min-width: 20px;
  background: rgba(0,0,0,0.15);
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.fc-row td.fc-day-sep {
  border-left: 1px solid rgba(255,255,255,0.1);
}
.fc-arrow {
  font-size: 11px;
  opacity: 0.75;
}
.fc-wind-cell {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
}
.fc-wave-cell {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
}

.forecast-grid {
  width: 100%;
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 4px;
}
.forecast-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-label);
}
.forecast-table td, .forecast-table th {
  text-align: center;
  padding: 2px 2px;
  border: none;
}
.fc-head-row th { background: rgba(255,255,255,0.06); }
.fc-head-row th:not(.fc-label) {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding: 5px 2px;
}
.fc-row td { padding: 14px 4px; font-size: 10px; }
.fc-label {
  font-size: 13px;
  color: rgba(255,255,255,1); text-align: center;
  white-space: nowrap; background: rgba(0,0,0,0.12);
  border-right: 1px solid rgba(255,255,255,0.05);
  min-width: 20px;
  width: 26px;
  padding: 2px;
}
.fc-day-sep { border-left: 1px solid rgba(255,255,255,0.14) !important; }
.fc-arrow { font-size: 13px; color: rgba(255,255,255,0.8); padding: 4px 3px; }
.fc-wind-cell {
  font-family: var(--f-display);
  font-size: 14px; font-weight: 700;
}
.fc-wave-cell {
  font-family: var(--f-display);
  font-size: 13px; font-weight: 700;
  color: var(--cyan);
}

/* ── Couleurs des valeurs par jauge ── */
#tempAirVal   { color: #fff; }
#waveHeight   { color: var(--cyan); }
#pressure     { color: #b48fff; }
#windSpeedInt { color: #fff; }

/* ── Couleurs hero stats ── */
#h-wind { color: #fff; text-shadow: 0 0 20px rgba(255,255,255,0.3); }
#h-wave { color: var(--cyan); text-shadow: 0 0 20px rgba(91,200,245,0.4); }
#h-temp { color: #ffb060; text-shadow: 0 0 20px rgba(255,160,80,0.35); }
#h-wave { color: var(--cyan); }
#h-temp { color: #ff8c00; }
#h-time { color: rgba(255,255,255,0.5); }

/* ── Couleurs graphiques ── */
#chart-wind-cur { color: #fff; }
#chart-wave-cur { color: var(--cyan); }
#chart-pres-cur { color: #b48fff; }

/* ── Jauge vent ── */

.wind-speed-dec { font-size: var(--t-unit); opacity: 0.5; color: inherit; }

.wind-compass-wrap svg { width: 165px; height: 165px; }, 

.wind-unit-stack .wind-trend-icon-d { font-size: 12px !important; font-weight: 700; opacity: 0.7; text-align: center; display: block; }

/* ── Reco ── */

.reco-item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 8px 12px; border: 1px solid rgba(255,255,255,0.07);
  transition: all 0.2s;
  border-radius: 4px;
}
.reco-name { font-family: var(--f-display); font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 6px; }
.reco-factor{ font-family: var(--f-label); font-size: 9px; color: rgba(255,255,255,0.35); letter-spacing: 0.04em; }

/* Graphiques */

.chart-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0
.chart-header { display: flex; align-items: baseline; justify-content: space-between; }
.chart-title { font-family: var(--f-label); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.chart-current { font-family: var(--f-display); font-size: 22px; font-weight: 700; color: #fff; }
.chart-wrap { position: relative; height: 120px; }
.chart-wrap canvas { display: block; width: 100% !important; height: 100% !important; }
.chart-dir-overlay { position:absolute;inset:0;pointer-events:none; }

/* Détails supplémentaires vent */

/* ── GRAPHIQUES ── */

  display: flex; flex-direction: column; gap: 16px;
}

.chart-header {
  display: flex; align-items: baseline;
  justify-content: space-between;
}

.chart-title {
  font-family: var(--f-label);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.chart-current {
  font-family: var(--f-display);
  font-size: 22px; font-weight: 700; color: #fff;
}

.chart-wrap { position: relative; height: 120px; }

/* ── MARÉE ── */

/* ── UV ── */

.uv-seg.active { opacity: 1; }

/* ── LIGNE SOLEIL/LUNE + MARÉE ── */

.astro-arc-wrap { flex: 1; }
.astro-arc-wrap svg { width: 100%; height: auto; }

.tide-panel {
  display: flex; flex-direction: column;
  padding: 16px 20px 12px; gap: 10px; min-width: 260px;
}

.tide-chart-wrap svg { width: 100%; height: auto; }, 

/* ── SOLAR ── */
.solar-arc-wrap svg { width:100%; height:60px; }

/* ── VENT : Avg 10min ── */

/* ── FEELS LIKE ── */

.reco-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 48px 40px 32px;
  background: rgba(12,18,32,0.92);
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col {}
.footer-col-title {
  font-family: var(--f-label);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-logo-img { height:80px; width:auto; display:block; margin-bottom:10px; mix-blend-mode:screen; }
.footer-logo {
  font-family: var(--f-display);
  font-size: 16px; font-weight: 700;
  color: var(--cyan); letter-spacing: 0.16em;
  margin-bottom: 8px; display: block;
}
.footer-tagline {
  font-family: var(--f-label);
  font-size: 10px; color: rgba(255,255,255,0.35);
  line-height: 1.6; margin-bottom: 16px;
}
.footer-time {
  font-family: var(--f-mono);
  font-size: 10px; color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
}
.footer-link {
  display: block;
  font-family: var(--f-label);
  font-size: 11px; color: rgba(255,255,255,0.55);
  text-decoration: none; letter-spacing: 0.04em;
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-sponsor-item {
  font-family: var(--f-label);
  font-size: 10px; color: rgba(255,200,80,0.7);
  letter-spacing: 0.06em; margin-bottom: 8px;
  text-transform: uppercase;
}
.footer-sponsor-tag {
  font-size: 9px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em; margin-bottom: 12px;
}
.footer-share-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(91,200,245,0.1);
  border: 1px solid rgba(91,200,245,0.25);
  color: var(--cyan); cursor: pointer;
  padding: 10px 16px; border-radius: 3px;
  font-family: var(--f-label); font-size: 10px;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  width: 100%; margin-bottom: 10px;
  transition: background 0.2s, border-color 0.2s;
}
.footer-share-confirm {
  font-family: var(--f-label); font-size: 9px;
  color: rgba(91,200,245,0.7); letter-spacing: 0.06em;
  height: 14px; transition: opacity 0.3s;
}
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-label); font-size: 9px;
  color: rgba(255,255,255,0.2); letter-spacing: 0.08em;
}
@media (max-width: 1024px) {
  /* Jauges 2 par 2 */
  .gauges-row-grid { flex-wrap: wrap; justify-content: center; }
  .gauge-cell { flex: 0 0 calc(50% - 15px); }
  .tile-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  /* Solunaire pleine largeur, Marée + Pluie côte à côte */
  .panels-row-grid { grid-template-columns: 1fr 1fr; }
  .astro-arc-panel { grid-column: 1 / -1; }
  .tide-panel { grid-column: auto; }
  .rain-panel { grid-column: auto; }
  /* Graphiques en colonne */
  .charts-grid { grid-template-columns: 1fr; }
  /* Footer 2 colonnes */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer { padding: 36px 24px 24px; }
  /* Reco + Carte empilés */
  .row-bottom { flex-direction: column; }
  .bottom-reco, .bottom-map { width: 100%; flex: none; }
  .map-wrap { height: 340px; min-height: unset; flex: none; }
  #stbarthMap { height: 340px; }
}


/* ── États "donnée indisponible / périmée" ── */
.data-stale {
  opacity: 0.45;
  filter: grayscale(0.7);
  transition: opacity 0.4s ease, filter 0.4s ease;
}
.data-stale .gc-top,
.data-stale .gc-bot {
  color: rgba(255,255,255,0.4) !important;
}
.data-age {
  font-family: var(--f-label);
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}
.data-age.missing { color: rgba(255,140,80,0.7); }

/* Message centré sur un chart vide */
.chart-empty-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: rgba(255,255,255,0.4);
  font-family: var(--f-label);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 16px;
  z-index: 2;
}

/* Badge MODE DÉMO — visible uniquement si ?demo dans l'URL */
.demo-badge {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,140,0,0.95);
  color: #000;
  font-family: var(--f-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* ── Animations d'entrée ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.10s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.20s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.30s; }
.card:nth-child(7) { animation-delay: 0.35s; }

/* ── MOBILE (< 768px) ── */
@media (max-width: 768px) {
  .nav { padding: 12px 16px; gap: 8px; }

  /* Sponsor : version compacte (juste nom + dot, pas de tagline ni label) */
  .sponsor-badge {
    min-width: 0;
    flex: 0 1 auto;
    padding: 6px 10px;
    gap: 8px;
  }
  .sponsor-text  { display: none; }  /* label "En direct du spot grâce à" masqué */
  .sponsor-tag   { display: none; }  /* tagline masquée */
  .sponsor-name  { font-size: 10px; letter-spacing: 0.05em; }
  .sponsor-badge > div { display: flex; align-items: center; gap: 8px; text-align: left !important; }
  /* Petit dot rouge devant le nom même sans le texte parent */
  .sponsor-badge > div::before {
    content: '';
    display: inline-block;
    width: 5px; height: 5px; border-radius: 50%;
    background: #ff3b3b;
    flex-shrink: 0;
    animation: pulse 2.5s ease-in-out infinite;
  }
  .sponsor-cta-link { font-size: 10px; }
  /* Cas CTA "Devenir partenaire" : on garde la tagline pour avoir le bouton */
  .sponsor-badge .sponsor-cta-link ~ .sponsor-tag,
  .sponsor-badge .sponsor-name a + .sponsor-tag { display: none; }

  /* Jauges 2 par 2 */
    .gauge-cell { flex: 0 0 calc(50% - 20px); }
  /* Palier 1 : Solunaire 2/2, Marée 1/2 + Pluie 1/2 */
  .panels-row-grid { grid-template-columns: 1fr 1fr; }
  .astro-arc-panel { grid-column: 1 / -1; }
  .tide-panel { grid-column: auto; }
  .rain-panel { grid-column: auto; }
  .hero-content { left: 16px; right: 16px; flex-direction: column; align-items: flex-start; bottom: 60px; gap: 16px; }
  .hero-title { font-size: clamp(26px, 7vw, 42px); }
  /* hero-stats : forcer sur 1 ligne, jamais wrap, valeurs compactes si besoin */
  .hero-stats { gap: 6px; flex-wrap: nowrap; width: 100%; }
  .hero-stat  { flex: 1 1 0; min-width: 0; padding: 10px 8px; }
  .hero-stat-val { font-size: 20px; }
  .hero-stat-lbl { font-size: 8px; }
  .dashboard { padding: 24px 12px 48px; gap: 32px; }
  /* Graphiques en colonne */
  .charts-grid { grid-template-columns: 1fr; gap: 10px; }
  /* Reco + Prévision + Map empilés */
  .row-bottom { flex-direction: column; gap: 16px; }
  .bottom-reco, .bottom-map { width: 100%; flex: none; }
  .map-wrap { height: 320px; min-height: unset; flex: none; }
  #stbarthMap { height: 320px; }
  .tile-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer { padding: 32px 20px 24px; }
}

/* ── PETIT MOBILE (< 480px) ── */
@media (max-width: 480px) {
  /* Jauges 1 par ligne */
  .gauge-cell { flex: 0 0 100%; }
  /* Palier 2 : chaque panneau sur sa propre ligne */
  .panels-row-grid { grid-template-columns: 1fr; }
  .astro-arc-panel, .tide-panel, .rain-panel { grid-column: auto; }
  /* hero-stats : encore plus compact, mais toujours 1 ligne */
  .hero-stats   { gap: 4px; flex-wrap: nowrap; }
  .hero-stat    { padding: 8px 4px; }
  .hero-stat-val { font-size: 16px; }
  .hero-stat-lbl { font-size: 7px; letter-spacing: 0.05em; }
  .hero-stat-icon { font-size: 11px; }
  .dashboard { padding: 16px 10px 40px; gap: 24px; }
  .tile-grid { grid-template-columns: 1fr; }
  .astro-arc-panel { grid-column: span 1; }
}

