/* AVANTI – Carte des colocations */
.acc-carte {
	--acc-rose: #fe018e;
	--acc-bleu: #007784;
	--acc-texte: #fff;
	--acc-police: "Gilroy", "Gilroy-ExtraBold", sans-serif;

	position: relative;
	width: 100%;
	max-width: 900px;
	margin-inline: auto;
	aspect-ratio: 1 / 1;
	container-type: inline-size;
}

.acc-carte__fond {
	display: block;
	width: 100%;
	height: 100%;
}

.acc-carte__points {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	/* Unité liée à la largeur de la carte (épingles) ; le texte garde un minimum lisible. */
	--acc-u: 1.9cqw;
	font-size: clamp(9px, var(--acc-u), 18px);
}

/* Le <li> est posé exactement sur le point GPS (pointe de l'épingle). */
.acc-carte__point {
	position: absolute;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
}
.acc-carte__point::before { content: none; } /* neutralise les puces des thèmes */

.acc-carte__lien {
	display: block;
	text-decoration: none !important;
	outline: none;
}

.acc-carte__epingle {
	position: absolute;
	left: 0;
	bottom: 0;
	width: var(--acc-u);
	height: calc(var(--acc-u) * 1.5);
	transform: translateX(-50%);
	fill: var(--acc-rose);
	transition: fill .2s ease;
}

.acc-carte__nom {
	position: absolute;
	/* Position par défaut : à droite de l'épingle (comme la maquette). */
	left: calc(var(--acc-u) * .75);
	top: calc(var(--acc-u) * -.8 - .5em);
	padding: .12em .3em .08em;
	background: var(--acc-rose);
	color: var(--acc-texte);
	font-family: var(--acc-police);
	font-weight: 800;
	font-size: 1.3em;
	line-height: 1.2;
	white-space: nowrap;
	transition: background-color .2s ease;
}

/* Positions alternatives choisies par le JS en cas de chevauchement. */
.acc-carte__point[data-cote="gauche"] .acc-carte__nom { left: auto; right: calc(var(--acc-u) * .75); }
.acc-carte__point[data-cote="haut"]   .acc-carte__nom { left: 0; top: auto; bottom: calc(var(--acc-u) * 1.65); transform: translateX(-50%); }
.acc-carte__point[data-cote="bas"]    .acc-carte__nom { left: 0; top: .35em; transform: translateX(-50%); }

/* Survol / focus : fond du nom en bleu. */
.acc-carte__lien:hover .acc-carte__nom,
.acc-carte__lien:focus-visible .acc-carte__nom {
	background: var(--acc-bleu);
}
.acc-carte__lien:focus-visible .acc-carte__nom {
	outline: 2px solid var(--acc-bleu);
	outline-offset: 2px;
}

/* L'élément survolé passe au premier plan. */
.acc-carte__point:hover,
.acc-carte__point:focus-within { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
	.acc-carte__epingle,
	.acc-carte__nom { transition: none; }
}
