/* Maison MH : la carte du Léman, en fil doré. Chargée par le site et par l'administration.
   --u : unités du dessin par pixel d'écran (posée par le script, pour que traits et noms gardent leur taille à toutes les largeurs)
   --z : zoom en cours ; --zl : taille des lumières pendant le zoom */
.mh-carte { display: block; width: 100%; height: 100%; overflow: visible; --u: 1.2; --z: 1; --zl: 1; font-family: Montserrat, system-ui, sans-serif; }
.mh-carte-monde { transform-origin: 0 0; transition: transform 1.5s cubic-bezier(.62, .02, .18, 1); }
.mh-carte path, .mh-carte circle, .mh-carte rect { vector-effect: non-scaling-stroke; }

.mh-carte-grille path { fill: none; stroke: rgba(227, 196, 119, .065); stroke-width: 1; }
.mh-carte-reliefs path { fill: none; stroke: rgba(227, 196, 119, .26); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.mh-carte-fleuves path { fill: none; stroke: rgba(227, 196, 119, .3); stroke-width: 1; }
.mh-carte-ondes path { fill: none; stroke: rgba(227, 196, 119, .11); stroke-width: 1; stroke-dasharray: 46 26; animation: mh-ondes 16s linear infinite; }
.mh-carte-ondes path:nth-child(even) { animation-duration: 23s; animation-direction: reverse; }
@keyframes mh-ondes { to { stroke-dashoffset: -144; } }
.mh-carte-rive { fill: none; stroke: #e3c477; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(227, 196, 119, .4)); }

.mh-carte text { font-weight: 400; text-transform: uppercase; }
.mh-carte-nom-lac { fill: rgba(227, 196, 119, .3); font-size: calc(13px * var(--u) / var(--z)); font-weight: 300; letter-spacing: .7em; }
.mh-carte-ville circle { fill: #0b0a09; stroke: #e3c477; stroke-width: 1; transform: scale(calc(var(--u) / var(--z) * .85)); transform-box: fill-box; transform-origin: center; }
.mh-carte-ville text { fill: #cfc6b2; font-size: calc(10.5px * var(--u) / var(--z)); letter-spacing: .2em; }
.mh-carte-ville-2 text { fill: #8d8573; font-size: calc(9px * var(--u) / var(--z)); }
.mh-carte.est-loin .mh-carte-ville-2 { display: none; }
.mh-carte-habillage path, .mh-carte-habillage circle { fill: none; stroke: rgba(227, 196, 119, .38); stroke-width: 1; }
.mh-carte-habillage text { fill: rgba(227, 196, 119, .6); font-size: 13px; letter-spacing: .2em; }

/* Les biens : de petites fenêtres éclairées */
.mh-lueur { cursor: pointer; outline: none; }
.mh-lueur-halo, .mh-lueur-fenetre { transform: scale(calc(var(--u) * var(--zl) * .8)); transform-box: fill-box; transform-origin: center; }
.mh-lueur-fenetre rect { fill: #ffe9b0; stroke: #fff8e3; stroke-width: .7; }
.mh-lueur-fenetre path { fill: none; stroke: #8a6a2a; stroke-width: 1; }
.mh-lueur-cible { fill: transparent; stroke: none; transform: scale(calc(var(--u) * var(--zl))); transform-box: fill-box; transform-origin: center; }
.mh-lueur:focus-visible .mh-lueur-cible { stroke: #fff; stroke-width: 1.5; }

@media (prefers-reduced-motion: reduce) {
    .mh-carte-monde { transition: none; }
    .mh-carte-ondes path { animation: none; }
}
