/* 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(--eb-accent); }
.eb-map__regions { display: none; } /* libellés Vendée / Loire-Atlantique : ne correspondent plus à la vue (retours V1) */
.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; }
}

/* Calques de la carte (28/10) : lettre du modèle (I, T, C, V), point rond pour l'atelier, points blancs des villes repères,
 * légende cliquable (un clic masque / réaffiche le calque) */
.eb-map__lettre { fill: var(--eb-accent); font-family: var(--wp--preset--font-family--goldman); font-weight: 700; paint-order: stroke; stroke: var(--wp--preset--color--anthracite); stroke-linejoin: round; }
.eb-map__ville { fill: var(--wp--preset--color--blanc); }
.eb-map__city--repere { fill: var(--eb-muted-on-dark); font-weight: 500; }
.eb-map__calque { transition: opacity 0.3s var(--eb-ease); }
.eb-map__calque.is-masque { opacity: 0; visibility: hidden; transition: opacity 0.3s var(--eb-ease), visibility 0s linear 0.3s; }
.eb-install__slot { position: relative; }
.eb-map__legende { position: absolute; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.3rem 0.4rem; margin: 0; padding: 0; list-style: none; }
.eb-map__legende li { margin: 0; }
.eb-map__legende-btn { display: flex; align-items: center; gap: 0.45rem; margin: 0; padding: 0.35rem 0.6rem; border: 1px solid transparent; border-radius: var(--wp--custom--radius--small, 4px); background: none; cursor: pointer; font-family: var(--wp--preset--font-family--montserrat); font-size: 0.8rem; font-weight: 600; line-height: 1.2; color: var(--eb-ink-on-dark); transition: opacity 0.2s, border-color 0.2s; }
.eb-map__legende-btn:hover { border-color: color-mix(in srgb, var(--eb-ink-on-dark) 30%, transparent); }
.eb-map__legende-btn:focus-visible { outline: 2px solid var(--eb-accent); outline-offset: 1px; }
.eb-map__legende-btn[aria-pressed="false"] { opacity: 0.4; text-decoration: line-through; }
.eb-map__legende-lettre { font-family: var(--wp--preset--font-family--goldman); font-weight: 700; font-size: 1.05rem; line-height: 1; color: var(--eb-accent); }
.eb-map__legende-point { width: 10px; height: 10px; border-radius: 50%; background: var(--eb-accent); }
.eb-map__legende-point--ville { width: 7px; height: 7px; background: var(--wp--preset--color--blanc); }
@media (max-width: 781px) { /* mobile : légende sous la carte, pour ne pas recouvrir les villes */
	.eb-map__legende { top: 100%; bottom: auto; left: 0; justify-content: center; margin-top: 0.5rem; }
	.eb-map__legende-btn { padding: 0.3rem 0.45rem; font-size: 0.75rem; }
}

/* Sélection d'un site (02/11/2026), même carte partout : liste cliquable, fiche du site sélectionné, onde du site choisi */
.eb-install__row.is-cliquable { cursor: pointer; margin-inline: -0.5rem; padding-inline: 0.5rem; border-radius: var(--wp--custom--radius--small, 4px); transition: background-color 0.2s; }
.eb-install__row.is-cliquable:hover, .eb-install__row.is-cliquable:focus-visible { background: color-mix(in srgb, var(--eb-ink-on-dark) 8%, transparent); outline: none; }
.eb-install__row.is-cliquable:focus-visible { box-shadow: 0 0 0 2px var(--eb-accent); }
.eb-install__row.is-selected { background: color-mix(in srgb, var(--eb-accent) 16%, transparent); }
.eb-install__row.is-selected p:first-child { color: var(--eb-accent); }
.eb-map__ring--courant { stroke-width: 2; }
.eb-map__city.is-choisi { font-weight: 700; }
.eb-map__fiche {
	position: absolute; left: 0; top: 0; z-index: 2; max-width: min(320px, 85%); padding: 0.9rem 1rem;
	border: 1px solid color-mix(in srgb, var(--eb-ink-on-dark) 18%, transparent); border-radius: var(--wp--custom--radius--small, 4px);
	background: color-mix(in srgb, var(--wp--preset--color--anthracite) 92%, transparent); color: var(--eb-ink-on-dark);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.eb-map__fiche[hidden] { display: none; }
.eb-map__fiche p { margin: 0; }
.eb-map__fiche-ville { font-family: var(--wp--preset--font-family--goldman); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.eb-map__fiche-modele { margin-top: 0.25rem !important; font-size: 0.85rem; font-weight: 700; color: var(--eb-accent); }
.eb-map__fiche-txt { margin-top: 0.5rem !important; font-size: 0.85rem; color: var(--eb-muted-on-dark); }
.eb-map__fiche-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.75rem !important; font-size: 0.85rem; }
.eb-map__fiche-retour { padding: 0.35rem 0.7rem; border: 1px solid color-mix(in srgb, var(--eb-ink-on-dark) 35%, transparent); border-radius: var(--wp--custom--radius--small, 4px); background: none; color: var(--eb-ink-on-dark); font: inherit; font-weight: 600; cursor: pointer; }
.eb-map__fiche-retour:hover { border-color: var(--eb-accent); color: var(--eb-accent); }
.eb-map__fiche-retour:focus-visible { outline: 2px solid var(--eb-accent); outline-offset: 1px; }
