/* Carte interactive (page « Les langues »). Chargée seulement sur cette page, avec Leaflet. */

/* La carte ne doit JAMAIS passer au-dessus du menu : Leaflet donne à ses couches des z-index de 200 à 1000.
   « isolation: isolate » enferme tout cela dans un bloc d'affichage propre à la carte. */
.leaflet-container { isolation: isolate; font-family: var(--police); }
.carte-conteneur { position: relative; width: 100%; height: min(72vh, 680px); min-height: 420px; border: 2px solid var(--trait-fort); border-radius: 14px; overflow: hidden; background: #f4f8f9; }
.carte-conteneur:not(.carte-active) { height: auto; min-height: 0; padding: 16px; background: #fff; }
.carte-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 12px; }
.carte-outils__note { margin: 0; flex: 1 1 280px; font-size: 1rem; color: var(--gris); }

/* Étiquettes des langues, positionnées comme sur l'illustration d'origine */
.carte-label { background: none; border: none; }
.carte-label span { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; font-weight: 700; font-size: var(--carte-fs, 15px); line-height: 1.05; text-align: center; pointer-events: none; }
.carte-label--clair span { color: #fff; text-shadow: 0 0 2px rgba(0, 0, 0, .6); }
.carte-label--sombre span { color: #000; text-shadow: 0 0 2px rgba(255, 255, 255, .6); }

/* Zones accessibles au clavier */
path.leaflet-interactive:focus { outline: none; }
path.leaflet-interactive:focus-visible { stroke: #000; stroke-width: 5px; }

/* Fenêtre d'information d'une zone */
.leaflet-popup-content { font-size: 1rem; line-height: 1.5; margin: 14px 18px; }
.carte-info-zone strong { font-size: 1.15rem; }
.carte-info-zone p { margin: .4rem 0 0; }
.carte-info-zone a { color: var(--sarcelle); font-weight: 700; }

/* Bouton plein écran */
.carte-bouton-plein-ecran { display: flex !important; align-items: center; justify-content: center; cursor: pointer; }
.carte-plein-cadre { position: fixed !important; inset: 0; width: 100% !important; height: 100% !important; z-index: 10000; border-radius: 0 !important; }
html.carte-plein-cadre-actif { overflow: hidden; }

/* Crédits repliés derrière un bouton « i » (décision de l'utilisateur du 21/10/2026) */
.carte-info { margin: 0 10px 10px 0 !important; }
.carte-info-bouton { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 2px solid #5f7a82; background: #fff; color: #222; font: italic bold 17px/1 Georgia, 'Times New Roman', serif; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.carte-info-bouton:hover, .carte-info-bouton[aria-expanded="true"] { border-color: var(--sarcelle); color: #000; }
.carte-info-bouton:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.leaflet-control-attribution.carte-credits { max-width: min(86vw, 360px); white-space: normal; text-align: left; font-size: 13px; line-height: 1.45; color: #222; background: #fff; padding: 8px 10px; border-radius: 6px; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); margin: 0 10px 6px 0; }
.leaflet-control-attribution.carte-credits a { color: var(--sarcelle); }
.leaflet-control-attribution.carte-credits--repliee { display: none; }

/* Boutons de la carte (zoom, plein écran, crédits) : au moins 44 px, comme tout le site */
.leaflet-touch .leaflet-bar a, .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }
.leaflet-touch .leaflet-bar a:first-child, .leaflet-touch .leaflet-bar a:last-child { width: 44px; height: 44px; line-height: 44px; }
.carte-info-bouton { width: 44px; height: 44px; font-size: 20px; }
.carte-bouton-plein-ecran svg { width: 22px; height: 22px; }
