/* Hallmark · version G1, la carte UEMOA · theme: custom · idea: "une zone, huit pays, un même cadre BCEAO, vus depuis Dakar" · hero: split, a real map of the zone · signature: the map with routes drawn from Dakar */

.v-g1 { --font-display: "League Spartan", ui-sans-serif, system-ui, sans-serif; }

.g1-hero { padding-block: var(--space-xl) var(--space-2xl); overflow: clip; }
.g1-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl); align-items: center; }
.g1-hero h1 { font-size: clamp(2.75rem, 4.4vw + 1rem, 5.25rem); line-height: 0.95; max-width: 11ch; }
.g1-lead { margin-top: var(--space-lg); font-size: var(--text-lg); line-height: 1.5; color: var(--ink-2); max-width: 30rem; }
.g1-actions { margin-top: var(--space-xl); }
.g1-legend { margin: var(--space-xl) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-xs); font-weight: 500; }
.g1-legend li { display: flex; align-items: center; gap: var(--space-sm); }
.g1-legend i { width: 14px; height: 14px; border-radius: 50%; display: block; }
.g1-sn { background: var(--blue); } .g1-ue { background: var(--sky); }
.g1-map { position: relative; margin: 0; height: min(640px, 76svh); }
.g1-map svg { width: 100%; height: 100%; display: block; }
.g1-land { fill: var(--land); stroke: var(--white); stroke-width: 0.8; }
.g1-uemoa { fill: var(--sky); stroke: var(--white); stroke-width: 1; cursor: pointer; transition: fill var(--dur-short) var(--ease-out); }
.g1-uemoa:hover, .g1-uemoa.is-on { fill: var(--blue-mid); }
.g1-uemoa:focus-visible { fill: var(--blue-mid); outline: 3px solid var(--focus); outline-offset: 2px; stroke: var(--focus); stroke-width: 3; }
.g1-sn-path { fill: var(--blue); }
.g1-sn-path:hover, .g1-sn-path:focus-visible, .g1-sn-path.is-on { fill: var(--blue-hover); }
.g1-arc { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); animation: g1-draw 1.4s var(--ease-out) forwards; animation-delay: calc(var(--i) * 120ms + 400ms); }
.g1-pin { fill: var(--blue); stroke: var(--white); stroke-width: 3; }
.g1-lbl { font: 600 14px var(--font-body); fill: var(--ink); paint-order: stroke; stroke: var(--white); stroke-width: 4px; pointer-events: none; }
.g1-card { position: absolute; right: var(--space-md); top: var(--space-md); width: 300px; padding: var(--space-md) var(--space-lg); border-radius: 20px; background: var(--white); box-shadow: var(--shadow-s); display: grid; gap: var(--space-2xs); }
.g1-card b { font-family: var(--font-display); font-size: var(--text-xl); }
.g1-card span { color: var(--ink-2); font-size: var(--text-sm); line-height: 1.45; }
.g1-fallback { padding: var(--space-xl); color: var(--ink-2); }

@keyframes g1-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 60rem) {
  .g1-grid { grid-template-columns: minmax(0, 1fr); }
  .g1-map { height: 440px; }
  .g1-card { position: static; width: auto; margin-top: var(--space-md); }
}
@media (prefers-reduced-motion: reduce) { .g1-arc { animation: none; stroke-dashoffset: 0; } }
