/* PAFEX Pro — carte « Nos revendeurs » */
.pafex-rev {
	--rev-ink: var(--ink, #0b0b0c);
	--rev-soft: var(--soft, #f3f3f1);
	--rev-line: var(--line, #e6e6e2);
	--rev-line-2: var(--line-2, #dcdcd7);
	--rev-muted: var(--muted, #5e5e5a);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
	margin: 32px 0 0;
}
.pafex-rev__map {
	position: relative;
	border-radius: var(--r-l, 28px);
	background: var(--rev-soft);
	overflow: hidden;
}
.pafex-rev__svg { aspect-ratio: 1000 / 800; }
.pafex-rev__svgel { display: block; width: 100%; height: 100%; }

.rev-insets rect { fill: #fff; stroke: var(--rev-line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rev-region {
	fill: #fff;
	stroke: var(--rev-ink);
	stroke-width: 1.1;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	cursor: pointer;
	transition: fill 0.2s ease, opacity 0.3s ease;
	outline: none;
}
.rev-region.has-stores { fill: #e9e9e4; }
.rev-region:hover, .rev-region:focus-visible, .rev-region.is-hover { fill: #cfcfc8; }
.is-zoomed .rev-region { fill: #f7f7f5; stroke: var(--rev-line-2); }
.is-zoomed .rev-region.is-current { fill: #fff; stroke: var(--rev-ink); stroke-width: 1.6; cursor: default; }
.is-zoomed .rev-insets rect { opacity: 0.4; }
.rev-dept { fill: none; stroke: var(--rev-line-2); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; }
.rev-dept.is-shown { opacity: 1; }

.rev-count { pointer-events: none; transition: opacity 0.25s ease; }
.rev-count rect { fill: var(--rev-ink); }
.rev-count text { fill: #fff; font: 600 14px/1 var(--mono, ui-monospace, monospace); }
.is-zoomed .rev-count { opacity: 0; }

.rev-point { fill: var(--rev-ink); stroke: #fff; cursor: pointer; transition: fill 0.15s ease; outline: none; }
.rev-point.is-hot, .rev-point:focus-visible { fill: #e0452b; }

.pafex-rev__back {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	border: 1px solid var(--rev-line);
	border-radius: 999px;
	background: #fff;
	color: var(--rev-ink);
	font: 500 13px/1 var(--font, inherit);
	cursor: pointer;
}
.pafex-rev__back:hover { border-color: var(--rev-ink); }
.pafex-rev__back[hidden] { display: none; }

.pafex-rev__tip {
	position: absolute;
	z-index: 4;
	display: flex;
	flex-direction: column;
	gap: 3px;
	width: max-content;
	max-width: 260px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--rev-ink);
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	pointer-events: none;
}
.pafex-rev__tip.is-pinned { pointer-events: auto; }
.pafex-rev__tip strong { font-size: 14px; font-weight: 600; }
.pafex-rev__tip span { color: #c4c4bf; }
.pafex-rev__tip a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pafex-rev__tip a:hover { color: #fff; opacity: 0.8; }
.pafex-rev__tip .rev-route { margin-top: 4px; font-weight: 600; }
.pafex-rev__tip[hidden] { display: none; }

.pafex-rev__side { position: sticky; top: 88px; display: flex; flex-direction: column; max-height: calc(100vh - 120px); }
.pafex-rev__eyebrow { margin: 0; font: 500 12px/1.4 var(--mono, ui-monospace, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: var(--rev-muted); }
.pafex-rev .pafex-rev__title { margin: 8px 0 6px; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; }
.pafex-rev__hint { margin: 0 0 16px; color: var(--rev-muted); font-size: 14px; }
.pafex-rev .pafex-rev__list { margin: 0; padding: 0; list-style: none; overflow: auto; border-top: 1px solid var(--rev-line); }
.pafex-rev__list li { border-bottom: 1px solid var(--rev-line); }
.pafex-rev__list button {
	display: flex;
	width: 100%;
	padding: 12px 8px;
	border: 0;
	background: none;
	color: var(--rev-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	border-radius: 10px;
}
.pafex-rev__list button:hover { background: var(--rev-soft); }
.is-regions button { justify-content: space-between; align-items: center; font-size: 15px; }
.rev-n { min-width: 28px; padding: 3px 8px; border-radius: 999px; background: var(--rev-ink); color: #fff; font: 600 12px/1.2 var(--mono, ui-monospace, monospace); text-align: center; }
.is-stores button { flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.45; }
.is-stores button strong { font-size: 15px; font-weight: 600; }
.is-stores button span { color: var(--rev-muted); }
.is-stores .rev-tel { color: var(--rev-ink); font-family: var(--mono, ui-monospace, monospace); font-size: 12.5px; }
.rev-actions { display: flex; gap: 14px; padding: 0 8px 12px; font-size: 13px; font-weight: 500; }
.rev-actions a { color: var(--rev-ink); text-decoration: underline; text-underline-offset: 3px; }
.is-stores li.is-active button { background: var(--rev-soft); }

@media (max-width: 900px) {
	.pafex-rev { grid-template-columns: 1fr; }
	.pafex-rev__side { position: static; max-height: none; }
	.pafex-rev__map { border-radius: var(--r-m, 24px); }
}

/* Page avec la carte : pleine largeur du site. */
.pafex-prose:has(> .pafex-rev) { max-width: var(--wrap, 1200px); font-size: 16px; line-height: 1.5; }
.pafex-rev .pafex-rev__list li + li { margin-top: 0; }
.pafex-rev p { margin: 0; }

/* Départements : clic pour zoomer, numéro en gris clair */
.has-depts:not(.is-dept) .rev-dept.is-shown { pointer-events: auto; cursor: pointer; fill: transparent; transition: fill 0.15s ease, opacity 0.3s ease; }
.has-depts:not(.is-dept) .rev-dept.is-shown:hover { fill: rgba(11, 11, 12, 0.07); }
.is-dept .rev-dept.is-shown { opacity: 0.55; }
.is-dept .rev-dept.is-current { opacity: 1; fill: #fff; stroke: var(--rev-ink); stroke-width: 1.6; }
.rev-dlabel { fill: #b9b9b2; font-family: var(--mono, ui-monospace, monospace); font-weight: 600; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; }
.rev-dlabel.is-shown { opacity: 1; }
.is-dept .rev-dlabel.is-shown { opacity: 0.6; }
/* DOM : nom en clair dans chaque cadre */
.rev-inset-label { fill: #8a8a84; font: 600 11px/1 var(--mono, ui-monospace, monospace); letter-spacing: 0.06em; pointer-events: none; transition: opacity 0.25s ease; }
.is-zoomed .rev-inset-label { opacity: 0; }
.rev-inset-label { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }

/* Grandes villes du département : repères discrets */
.rev-city-dot { fill: #a9a9a1; pointer-events: none; }
.rev-city { fill: #8a8a83; font-family: var(--sans, system-ui, sans-serif); font-weight: 500; pointer-events: none; paint-order: stroke; stroke: #fff; stroke-linejoin: round; opacity: .85; }
