/* ═══════════════════════════════════════════════════════
   INDEX-MAP.CSS — chargé uniquement sur index.html
   Carte interactive de la Suisse (zones cliquables + tooltip)
   ═══════════════════════════════════════════════════════ */

.index-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 40px;
}

.map-wrapper {
  position: relative;
  display: inline-block;
  max-width: 90vw;
}

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

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.zone {
  cursor: pointer;
  fill: transparent;
  stroke: transparent;
  transition:
    fill 0.25s ease,
    stroke 0.25s ease;
}

.zone:hover,
.zone:focus-visible {
  fill: rgba(255, 200, 100, 0.3);
  stroke: rgba(255, 200, 100, 0.7);
  stroke-width: 3;
  outline: none;
}

.tooltip {
  position: absolute;
  background: rgba(20, 20, 20, 0.92);
  color: #f0ddb0;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.05em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  border: 1px solid rgba(200, 150, 80, 0.4);
  white-space: nowrap;
  z-index: 10;
}

.tooltip.visible {
  opacity: 1;
}
