/* BLOC eb/installations-map — carte stylisée en points */
.eb-map { display: block; width: 100%; height: auto; }
.eb-map__land path { fill: url(#eb-dots); stroke: color-mix(in srgb, var(--eb-ink-on-dark) 22%, transparent); stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.eb-map__river { fill: none; stroke: color-mix(in srgb, var(--eb-ink-on-dark) 26%, transparent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.eb-map__regions text { fill: var(--eb-muted-on-dark); font-family: var(--wp--preset--font-family--montserrat); font-style: italic; letter-spacing: 0.02em; }
.eb-map__city { fill: var(--eb-ink-on-dark); font-family: var(--wp--preset--font-family--montserrat); font-weight: 600; paint-order: stroke; stroke: var(--wp--preset--color--anthracite); stroke-linejoin: round; }
.eb-map__dot { fill: color-mix(in srgb, var(--eb-ink-on-dark) 20%, transparent); }
.eb-map__pt { fill: var(--eb-accent); }
.eb-map__ring { fill: none; stroke: var(--eb-accent); stroke-width: 1.5; opacity: 0.55; transform-box: fill-box; transform-origin: center; animation: eb-ring 2.6s var(--eb-ease) infinite; }
.eb-map__siege { fill: var(--wp--preset--color--blanc); }
.eb-map__callout line { stroke: var(--eb-ink-on-dark); stroke-width: 1; vector-effect: non-scaling-stroke; }
.eb-map__callout rect { fill: var(--wp--preset--color--blanc); }
.eb-map__callout text { fill: var(--wp--preset--color--anthracite); font-family: var(--wp--preset--font-family--montserrat); font-weight: 600; font-size: 15px; }
.eb-map__callout text.is-sub { font-family: var(--wp--preset--font-family--montserrat); font-weight: 400; font-size: 11px; fill: var(--wp--preset--color--acier); }
@keyframes eb-ring { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(2.1); opacity: 0; } }

/* La carte est un calque qui couvre toute la section ; la colonne de droite ne contient
 * qu'un emplacement de cadrage (.eb-install__slot) qui sert de point de départ au zoom. */
.eb-installations { position: relative; }
.eb-install__pin { position: relative; overflow: hidden; }
.eb-install__cols {
	position: relative; z-index: 1;
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto;
	padding: 0 var(--wp--style--root--padding-right) 0 var(--wp--style--root--padding-left);
	box-sizing: border-box;
	width: 100%;
}
.eb-install__slot { width: 100%; max-width: 620px; aspect-ratio: 625 / 610; margin-left: auto; }
.wp-block-eb-installations-map { position: absolute; inset: 0; z-index: 0; max-width: none; margin: 0; pointer-events: none; }
.wp-block-eb-installations-map .eb-map { width: 100%; height: 100%; }

/* Protection du texte : flou + voile derrière la colonne de gauche, renforcés pendant le zoom */
.eb-install__text {
	position: relative;
	padding: var(--wp--preset--spacing--40);
	margin-left: calc(var(--wp--preset--spacing--40) * -1);
	border-radius: var(--wp--custom--radius--large);
	background: color-mix(in srgb, var(--wp--preset--color--anthracite) calc(15% + var(--eb-zoom, 0) * 60%), transparent);
	-webkit-backdrop-filter: blur(calc(var(--eb-zoom, 0) * 14px));
	backdrop-filter: blur(calc(var(--eb-zoom, 0) * 14px));
	box-shadow: 0 0 60px 30px color-mix(in srgb, var(--wp--preset--color--anthracite) calc(var(--eb-zoom, 0) * 45%), transparent);
}

/* Zoom au scroll : section épinglée (classe ajoutée par le script, bureau uniquement) */
.eb-installations.has-zoom { height: 230svh; }
.eb-installations.has-zoom .eb-install__pin {
	position: sticky; top: var(--eb-header-h);
	height: calc(100svh - var(--eb-header-h));
	display: flex; align-items: center;
}
.eb-installations.has-zoom .eb-install__slot { max-height: calc(100svh - var(--eb-header-h) - 4rem); width: auto; height: calc(100svh - var(--eb-header-h) - 4rem); max-width: 100%; }
@media (max-width: 781px) {
	.eb-install__text { margin-left: 0; }
	.eb-install__slot { margin: var(--wp--preset--spacing--40) auto 0; }
}
