/* La carte ne doit JAMAIS passer au-dessus du menu : Leaflet donne à ses couches des z-index de 200 à 1000
   (le menu collant est à 50). « isolation: isolate » enferme tout cela dans un bloc d'affichage propre
   à la carte, qui reste donc en dessous du menu (y compris le menu déroulant du mobile). */
.leaflet-container { isolation: isolate; }

/* Étiquettes permanentes des langues, placé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-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: var(--carte-fs, 15px);
    line-height: 1.05;
    text-align: center;
    pointer-events: none;
}
.carte-label--clair span { color: #ffffff; text-shadow: 0 0 2px rgba(0, 0, 0, .6); }
.carte-label--sombre span { color: #000000; text-shadow: 0 0 2px rgba(255, 255, 255, .6); }

/* Bouton plein écran */
.carte-bouton-plein-ecran {
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Interrupteur de transparence */
.carte-transparence {
    background: #fff;
    padding: 6px 10px;
    font: 13px/1.2 Arial, Helvetica, sans-serif;
    cursor: pointer;
    user-select: none;
}
.carte-transparence input { margin-right: 6px; vertical-align: middle; }

/* Repli plein cadre quand l'API Fullscreen n'existe pas (ex. iPhone) */
.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 » */
.carte-info { margin: 0 10px 10px 0 !important; }
.carte-info-bouton {
    width: 28px; height: 28px; padding: 0; border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, .35); background: rgba(255, 255, 255, .95); color: #333;
    font: italic bold 16px/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"] { background: #fff; border-color: #58add6; color: #000; }
.carte-info-bouton:focus-visible { outline: 3px solid #58add6; outline-offset: 2px; }
.leaflet-control-attribution.carte-credits {
    max-width: min(86vw, 340px); white-space: normal; text-align: left;
    font: 12px/1.45 Arial, Helvetica, sans-serif; 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--repliee { display: none; }
