:root {
  --bg:        #0f1117;
  --surface:   #181c25;
  --border:    #2a2f3e;
  --accent:    #5b8dee;
  --accent2:   #3ecfb0;
  --text:      #dde3f0;
  --muted:     #7a849e;
  --dot-color: #ff5f5f;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Header ── */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

header a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}

header img { height: 42px; width: auto; }

.site-title {
  font-size: 1.05rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.site-title strong { color: var(--text); }

/* ── Main layout ── */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

/* ── Page heading ── */
.page-heading {
  margin-bottom: 2rem;
}

.page-heading h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-heading p {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Nav bar ── */
nav.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
  align-items: center;
}

nav.toolbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

nav.toolbar a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(91,141,238,0.07);
}

nav.toolbar .sep {
  width: 1px; height: 24px;
  background: var(--border);
  margin: 0 0.3rem;
}

/* ── Info banner ── */
.info-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent2);
  border-radius: 8px;
  padding: 0.85rem 1.2rem;
  margin-bottom: 1.8rem;
  font-size: 1rem;
  color: var(--muted);
}

.info-banner a { color: var(--accent); text-decoration: none; }
.info-banner a:hover { text-decoration: underline; }

/* ── Map wrapper ── */
.map-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: inline-block;
}

.map-container {
  position: relative;
  display: block;
  line-height: 0;
}

.map-container img#satellite {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Dots ── */
.dot {
  position: absolute !important;
  width: 0.7%;
  height: 0;
  padding-bottom: 0.7%;
  background: var(--dot-color);
  border-radius: 50%;
  opacity: 0.82;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 4px rgba(255,95,95,0.6);
}

.dot.prevision {
  background: var(--accent);
  box-shadow: 0 0 4px rgba(91,141,238,0.7);
}

/* ── Tooltip ── */
#map-tooltip {
  position: fixed;
  display: none;
  background: rgba(15,17,23,0.92);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent2);
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ── Refresh badge ── */
#refresh-badge {
  position: absolute;
  bottom: 6px; right: 8px;
  background: rgba(15,17,23,0.65);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 0.4rem 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: rgba(122,132,158,0.8);
  backdrop-filter: blur(3px);
  pointer-events: none;
}

#refresh-badge span { color: var(--accent2); opacity: 0.85; }

/* ── Credits ── */
.credits {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
}

.credits a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  transition: color 0.15s;
}

.credits a:hover { color: var(--accent); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 2rem;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Vue complète (tout, tout_vis) : image sans carte cliquable ── */
.img-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: inline-block;
  line-height: 0;
}

.img-wrapper img {
  display: block;
  max-width: 100%;
  height: auto;
}

.img-wrapper #refresh-badge {
  top: 10px; right: 10px; bottom: auto;
  background: rgba(15,17,23,0.75);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  color: var(--muted);
  backdrop-filter: blur(4px);
}

.img-wrapper #refresh-badge span { opacity: 1; }
