.nelson-world-map {
  background: #f7f4ee;
  color: #4a403a;
  overflow: visible;
  position: relative;
  width: 100%;
  max-width: 100%;
}

/* Nelson (#luxy) a overflow-x:hidden — ne pas couper la carte */
.nelson-html-root .nelson-world-map,
#luxy .nelson-world-map,
.main-wrapper .nelson-world-map {
  overflow: visible;
}

.nelson-world-map .padding-global {
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
  padding: 5rem 2rem 0;
}

.nelson-world-map__header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.nelson-world-map__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 1rem;
  color: inherit;
}

.nelson-world-map__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #6a6258;
}

.nelson-world-map__lead code {
  font-size: 0.85em;
  padding: 0 0.5rem;
  border-radius: 4px;
  background: rgb(11 31 42 / 5%);
}

/* Pleine largeur du conteneur (évite clip avec overflow-x sur #luxy) */
.nelson-world-map__bleed {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}

.nelson-world-map__canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: #f7f4ee;
  box-shadow:
    inset 0 1px 0 rgb(11 31 42 / 6%),
    0 12px 40px rgb(11 31 42 / 5%);
}

.nelson-world-map__canvas-wrap--loading {
  min-height: clamp(12rem, 28vw, 22rem);
  background: #f7f4ee;
}

.nelson-world-map__svg {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1600 / 420;
  max-height: none;
  background: #f7f4ee;
  overflow: visible !important;
}

/* v5 react-simple-maps : fill/stroke explicites (évite le noir SVG par défaut) */
.nelson-world-map__svg .nelson-world-map__country {
  fill: #c4a062;
  stroke: #ffffff;
  stroke-width: 0.5px;
  transition: fill 200ms ease;
  vector-effect: non-scaling-stroke;
}

.nelson-world-map__svg .nelson-world-map__country:hover {
  fill: #b08848;
}

.nelson-world-map__svg .nelson-world-map__country.is-published {
  fill: #4a7c59;
  cursor: pointer;
}

.nelson-world-map__svg .nelson-world-map__country.is-published:hover {
  fill: #3d6849;
}

.nelson-world-map__hint {
  text-align: center;
  font-size: 0.8rem;
  color: #7a868c;
  margin: 0;
  padding: 2rem 2rem 0;
  background: #f7f4ee;
}

.nelson-world-map__legend-swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin: 0 0.5rem;
  vertical-align: -0.12em;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgb(11 31 42 / 12%);
}

.nelson-world-map__legend-swatch--sand {
  background: #d4cdb8;
}

.nelson-world-map__legend-swatch--published {
  background: #6e7344;
}

.nelson-world-map__tooltip {
  position: fixed;
  z-index: 9999;
  transform: translate(-50%, calc(-100% - 1rem));
  pointer-events: none;
  min-width: 12rem;
  max-width: 18rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #6e7344;
  background: #f7f4ee;
  color: #4a403a;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}

.nelson-world-map__tooltip-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.nelson-world-map__tooltip-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nelson-world-map__tooltip-list a {
  color: #c47868;
  text-decoration: underline;
  pointer-events: auto;
}

.nelson-world-map__tooltip-list li + li {
  margin-top: 0.5rem;
}

@media screen and (max-width: 767px) {
  .nelson-world-map .padding-global {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .nelson-world-map__svg {
    max-height: 16rem;
  }
}
