/* AOFocus — carte de veille active (homepage hero) — maquette bleu/vert */

.hero-africa-map {
  --map-text: #102035;
  --map-muted: #66758a;
  --map-blue: #0b4a7a;
  --map-blue-2: #0d6ea8;
  --map-green: #16a673;
  --map-border: rgba(20, 52, 82, 0.12);
  --map-shadow: 0 28px 80px rgba(9, 35, 63, 0.14);
  --map-country: #d8e3ed;
  --map-country-stroke: #ffffff;

  position: relative;
  width: 100%;
  min-height: 420px;
  border: 1px solid rgba(13, 110, 168, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at 54% 44%, rgba(22, 166, 115, 0.12), transparent 34%),
    radial-gradient(circle at 35% 58%, rgba(13, 110, 168, 0.1), transparent 38%);
  box-shadow: var(--map-shadow);
  overflow: hidden;
  isolation: isolate;
  color: var(--map-text);
}

.hero-africa-map::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(13, 110, 168, 0.08);
  border-radius: 26px;
  pointer-events: none;
  z-index: 0;
}

.hero-africa-map .map-topbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.hero-africa-map .map-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--map-border);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(9, 35, 63, 0.07);
  backdrop-filter: blur(14px);
}

.hero-africa-map .map-title-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(22, 166, 115, 0.13);
  color: var(--map-green);
  font-weight: 900;
  font-size: 13px;
}

.hero-africa-map .map-title strong {
  display: block;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  font-family: "Public Sans", sans-serif;
}

.hero-africa-map .map-title small {
  display: block;
  color: var(--map-muted);
  font-size: 10.5px;
  margin-top: 1px;
}

.hero-africa-map .status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.hero-africa-map .live-chip {
  padding: 10px 13px;
  background: #0e2e4b;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 15px 32px rgba(14, 46, 75, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hero-africa-map .live-chip span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #1fe19a;
  box-shadow: 0 0 0 5px rgba(31, 225, 154, 0.14);
}

.hero-africa-map .scan-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px 7px 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--map-border);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--map-muted);
  backdrop-filter: blur(12px);
}

.hero-africa-map .scan-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(16, 32, 53, 0.06);
  color: rgba(16, 32, 53, 0.45);
  transition: background 0.5s ease, color 0.5s ease;
}

.hero-africa-map .scan-pill.is-active {
  background: rgba(22, 166, 115, 0.16);
  color: #0d6a4f;
}

.hero-africa-map .map-stage {
  position: absolute;
  inset: 76px 14px 22px;
  z-index: 1;
}

.hero-africa-map svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-africa-map .ocean-lines path {
  fill: none;
  stroke: rgba(13, 110, 168, 0.07);
  stroke-width: 1.4;
}

.hero-africa-map .region-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  fill: rgba(16, 32, 53, 0.32);
  text-transform: uppercase;
  font-family: Inter, sans-serif;
}

.hero-africa-map .country {
  fill: var(--map-country);
  stroke: var(--map-country-stroke);
  stroke-width: 2.5;
  cursor: pointer;
  filter: drop-shadow(0 10px 18px rgba(9, 35, 63, 0.08));
  transition: fill 0.6s ease, transform 0.6s ease, filter 0.6s ease, opacity 0.6s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.hero-africa-map .country:hover {
  fill: #bdd2e1;
}

.hero-africa-map .country.is-active {
  fill: url(#heroMapActiveGradient);
  transform: scale(1.04);
  filter: drop-shadow(0 18px 34px rgba(22, 166, 115, 0.26));
  animation: heroMapCountryPulse 2.4s ease-in-out infinite;
}

.hero-africa-map .country.is-empty-active {
  fill: url(#heroMapEmptyGradient);
}

.hero-africa-map .country.is-secondary {
  fill: #c6d6e4;
  opacity: 0.8;
}

@keyframes heroMapCountryPulse {
  0%, 100% { filter: drop-shadow(0 18px 34px rgba(22, 166, 115, 0.22)); }
  50% { filter: drop-shadow(0 22px 40px rgba(22, 166, 115, 0.32)); }
}

.hero-africa-map .country-text {
  pointer-events: none;
  fill: rgba(16, 32, 53, 0.56);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-anchor: middle;
  font-family: Inter, sans-serif;
  transition: fill 0.5s ease, opacity 0.5s ease;
}

.hero-africa-map .country-text.is-active {
  fill: #083d35;
  opacity: 1;
}

.hero-africa-map .pulse-ring {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 999px;
  border: 2px solid rgba(22, 166, 115, 0.5);
  background: rgba(22, 166, 115, 0.12);
  opacity: 0;
  transform: scale(0.7);
  transition: left 0.7s ease, top 0.7s ease, opacity 0.4s ease;
  pointer-events: none;
}

.hero-africa-map .pulse-ring.is-visible {
  opacity: 1;
  animation: heroMapRingPulse 2.1s ease-out infinite;
}

.hero-africa-map .pulse-ring.is-empty {
  border-color: rgba(13, 110, 168, 0.45);
  background: rgba(13, 110, 168, 0.1);
}

@keyframes heroMapRingPulse {
  0% { transform: scale(0.72); box-shadow: 0 0 0 0 rgba(22, 166, 115, 0.22); }
  70% { transform: scale(2.4); box-shadow: 0 0 0 16px rgba(22, 166, 115, 0); }
  100% { transform: scale(0.72); box-shadow: 0 0 0 0 rgba(22, 166, 115, 0); }
}

.hero-africa-map .country-bubble {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  min-width: 112px;
  max-width: 142px;
  padding: 10px 12px 11px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 28% 20%, rgba(31, 225, 154, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(14, 46, 75, 0.96), rgba(13, 110, 168, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 18px 44px rgba(9, 35, 63, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
  transform: translate(-50%, calc(-100% - 20px)) scale(0.94);
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  transition:
    left 0.7s ease,
    top 0.7s ease,
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.1);
}

.hero-africa-map .country-bubble.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 20px)) scale(1);
}

.hero-africa-map .country-bubble.is-empty {
  background:
    radial-gradient(circle at 28% 20%, rgba(13, 110, 168, 0.22), transparent 42%),
    linear-gradient(135deg, rgba(11, 74, 122, 0.95), rgba(20, 52, 82, 0.92));
}

.hero-africa-map .country-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: rgba(14, 46, 75, 0.95);
  transform: translateX(-50%) rotate(45deg);
  z-index: -1;
}

.hero-africa-map .country-bubble.is-empty::after {
  background: rgba(11, 74, 122, 0.95);
}

.hero-africa-map .country-bubble[data-edge="left"]::after {
  left: 32%;
}

.hero-africa-map .country-bubble[data-edge="right"]::after {
  left: 68%;
}

.hero-africa-map .bubble-country {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-africa-map .bubble-country::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #1fe19a;
  box-shadow: 0 0 0 5px rgba(31, 225, 154, 0.13);
}

.hero-africa-map .country-bubble.is-empty .bubble-country::before {
  background: #8fc4ea;
  box-shadow: 0 0 0 5px rgba(143, 196, 234, 0.16);
}

.hero-africa-map .bubble-main {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  line-height: 1;
}

.hero-africa-map .bubble-main strong {
  font-size: 30px;
  letter-spacing: -0.06em;
  line-height: 0.92;
  color: #fff;
  font-family: "Public Sans", sans-serif;
}

.hero-africa-map .country-bubble.is-empty .bubble-main strong {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.hero-africa-map .bubble-main span {
  padding-bottom: 2px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.hero-africa-map .bubble-link-hint {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 750;
}

.hero-africa-map.hero-africa-map--offers-page {
  min-height: 380px;
}

@media (max-width: 1060px) {
  .hero-africa-map.hero-africa-map--offers-page {
    min-height: 360px;
  }
}

@media (max-width: 700px) {
  .hero-africa-map.hero-africa-map--offers-page {
    min-height: 380px;
  }
}

@media (max-width: 1060px) {
  .hero-africa-map {
    min-height: 380px;
  }
}

@media (max-width: 700px) {
  .hero-africa-map {
    min-height: 400px;
    border-radius: 22px;
  }

  .hero-africa-map .map-topbar {
    align-items: flex-start;
  }

  .hero-africa-map .scan-status {
    display: none;
  }

  .hero-africa-map .map-stage {
    inset: 96px 8px 20px;
  }

  .hero-africa-map .country-bubble {
    min-width: 100px;
    max-width: 122px;
    padding: 9px 10px 10px;
    border-radius: 18px;
  }

  .hero-africa-map .bubble-main strong {
    font-size: 26px;
  }

  .hero-africa-map .bubble-link-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-africa-map .country.is-active {
    animation: none;
  }

  .hero-africa-map .pulse-ring.is-visible {
    animation: none;
  }

  .hero-africa-map .country,
  .hero-africa-map .country-bubble,
  .hero-africa-map .pulse-ring {
    transition: none;
  }
}
