/* =========================================================
   WORLDWIDE STRATEGIC PRESENCE — World Map Pins
   Full-width, compact, no internal scroll
   Version: 1.2.0
   Last Updated: 2026-04-24
   Cache-Control: Must update on changes
   ========================================================= */
.wmp-section {
  width: 100%;
  max-width: 100%;
  position: relative;
  background-color: #efefef;
  font-family: 'Montserrat', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 4px 0;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: auto;
  max-height: 100vh;
}
.wmp-section *,
.wmp-section *::before,
.wmp-section *::after { box-sizing: border-box; }

.wmp-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wmp-title {
  text-align: center;
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 700;
  color: #000000;
  line-height: 1;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
}

.wmp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 8px;
  align-items: center;
  margin: 0;
  width: 100%;
  max-width: 1600px;
  padding: 0 16px;
}

.wmp-map-wrapper {
  position: relative;
  width: 100%;
  height: clamp(420px, 60vh, 620px);
  overflow: hidden;
  overscroll-behavior: contain;
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.wmp-map {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  user-select: none;
  touch-action: pan-y;
  /* Agrandissement visuel de la carte sans modifier la taille de la section */
  transform: scale(2) translateY(25%);
  transform-origin: center bottom;
  will-change: transform;
}

.wmp-country {
  fill: #D9D9D9;
  stroke: #ffffff;
  stroke-width: 0.5;
  outline: none;
  cursor: default;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill .25s ease, transform .35s ease, filter .25s ease;
}
.wmp-country.is-highlighted { cursor: pointer; }
.wmp-country.is-active,
.wmp-country.is-highlighted:hover {
  fill: #ff0000;
  filter: drop-shadow(0 0 12px rgba(255,0,0,0.4));
}

.wmp-pin { cursor: pointer; }
.wmp-pin-glow {
  fill: #ff0000;
  opacity: 0;
  transition: opacity .3s ease;
}
.wmp-pin.is-active .wmp-pin-glow { opacity: 0.18; }
.wmp-pin-shape {
  fill: #ff0000;
  stroke: #ffffff;
  stroke-width: 1.2;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
}
.wmp-pin-circle { fill: #ffffff; }
.wmp-pin-text {
  font-size: 6.5px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  fill: #ff0000;
  letter-spacing: -0.2px;
  text-anchor: middle;
  pointer-events: none;
}

.wmp-label {
  transform: translateX(16px) scale(.9);
  transform-origin: left center;
  transform-box: fill-box;
  opacity: 0;
  pointer-events: none;
}
.wmp-label-permanent {
  transform: translateX(16px) scale(1) !important;
  opacity: 1 !important;
}
.wmp-label-rect {
  fill: #ffffff;
  stroke: rgba(0,0,0,0.06);
  stroke-width: 0.5;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.wmp-label-text {
  font-size: 9px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  fill: #1a1a1a;
  text-anchor: middle;
}

.wmp-tooltip {
  position: absolute;
  pointer-events: none;
  background: #ffffff;
  color: #1a1a1a;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transform: translate(-50%, -130%);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
  z-index: 5;
}
.wmp-tooltip.is-visible { opacity: 1; }

/* Card */
.wmp-card {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 360px;
  justify-self: start;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.wmp-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 20px;
  line-height: 1.2;
}
.wmp-card-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #db0505;
  margin: 0 0 20px;
  line-height: 1;
}
.wmp-card-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.wmp-card-row:last-child { margin-bottom: 0; }
.wmp-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  flex-shrink: 0;
  margin-top: 2px;
}
.wmp-card-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #000000;
  line-height: 1.2;
  margin-bottom: 2px;
}
.wmp-card-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #494949;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .wmp-title { font-size: 28px; }
  .wmp-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 12px;
  }
  .wmp-map-wrapper { height: clamp(440px, 60vh, 640px); }
  .wmp-card { justify-self: stretch; max-width: 100%; }
}

@media (max-width: 820px) {
  .wmp-section { padding: 2px 0; }
  .wmp-title { font-size: 24px; margin-bottom: 8px; }
  .wmp-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 8px;
  }
  .wmp-map-wrapper {
    height: clamp(360px, 56vh, 520px);
    margin: 0 -8px;
    width: calc(100% + 16px);
  }
  .wmp-map { transform: scale(1.55) translateY(14%); }
  .wmp-card { justify-self: stretch; max-width: 100%; }
}

@media (max-width: 600px) {
  .wmp-section { padding: 2px 0; }
  .wmp-title { font-size: 22px; margin-bottom: 8px; }
  .wmp-grid { padding: 0 4px; gap: 10px; }
  .wmp-map-wrapper {
    height: clamp(340px, 52vh, 460px);
    margin: 0 -4px;
    width: calc(100% + 8px);
  }
  .wmp-map { transform: scale(1.7) translateY(25%); }
  .wmp-card { padding: 16px; border-radius: 10px; }
  .wmp-card-title { font-size: 20px; margin-bottom: 14px; }
  .wmp-card-subtitle { font-size: 14px; margin-bottom: 14px; }
  .wmp-card-label { font-size: 14px; }
  .wmp-card-value { font-size: 13px; }
}

@media (max-width: 380px) {
  .wmp-title { font-size: 20px; }
  .wmp-map-wrapper {
    height: clamp(320px, 50vh, 420px);
    margin: 0;
    width: 100%;
  }
  .wmp-map { transform: scale(1.85) translateY(18%); }
}
