/* ==========================================================================
   Carte du monde interactive 100 % CSS
   ========================================================================== */

.world-map-section {
	margin: 1.5rem 0 2.25rem;
}

.world-map-box {
	position: relative;
	width: 100%;
	aspect-ratio: 2 / 1;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border-color);
	overflow: visible;
	background-color: #0b1220;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.world-map-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-lg);
	display: block;
	filter: saturate(0.65) brightness(0.75) contrast(1.1);
}

.map-pin {
	position: absolute;
	transform: translate(-50%, -50%);
	z-index: 2;
	text-decoration: none;
}

.map-pin:hover,
.map-pin:focus-visible {
	z-index: 20;
	text-decoration: none;
}

.map-dot {
	display: block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background-color: var(--pin-color, var(--f1-red));
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-pin:hover .map-dot {
	transform: scale(1.35);
	box-shadow: 0 0 0 8px rgba(225, 6, 0, 0.35);
}

.map-tooltip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	transform: translateX(-50%) translateY(4px);
	background-color: rgba(13, 17, 23, 0.96);
	color: #f0f6fc;
	border: 1px solid var(--pin-color, var(--f1-red));
	border-radius: 8px;
	padding: 0.45rem 0.7rem;
	white-space: nowrap;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	font-size: 0.8rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.map-tooltip small {
	color: #9ca3af;
	font-size: 0.74rem;
}

.map-pin:hover .map-tooltip,
.map-pin:focus-visible .map-tooltip {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
