.page-carte { position: relative; }
.page-carte .ouverture { padding: 44px 4vw 0; }
.page-carte .titre { margin: 0; font-family: var(--termes); font-weight: 400; font-size: clamp(30px, 3vw, 46px); line-height: 1.05; letter-spacing: -.01em; }
.page-carte .titre em { font-style: italic; }

.zone-carte { padding: clamp(26px, 3vw, 48px) 4vw 0; }
.carte {
  position: relative; z-index: 0;
  width: 100%; height: clamp(420px, calc(100vh - 150px), 860px); height: clamp(420px, calc(100svh - 150px), 860px);
  background: var(--papier);
  border: 1px solid var(--noir);
  box-shadow: var(--ombre);
  font-family: var(--cursor);
}

.carte .leaflet-tile-pane { filter: grayscale(1) contrast(1.12) brightness(1.04); }

.pins { list-style: none; margin: 26px 0 0; padding: 0; font-family: var(--cursor); font-size: 14px; line-height: 1.5; max-width: 44em; }
.pins li { margin: 0 0 26px; }
.pins .lieu { margin: 0; font-family: var(--cn); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .02em; }
.pins .date { margin: 2px 0 6px; font-size: 12px; }
.pins p { margin: 0 0 8px; }
.avec-carte .pins { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }

.leaflet-marker-icon.epingle { background: none; border: 0; outline: none; }
.epingle .pin { width: 100%; height: 100%; display: block; overflow: visible; transform-origin: 50% 100%; transition: transform .12s; }
.epingle .pin-corps { fill: #000; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; transition: fill .12s; }
.epingle .pin-oeil { fill: #fff; }
.epingle:hover .pin, .epingle:focus-visible .pin { transform: scale(1.12); }
.epingle:hover .pin-corps, .epingle:focus-visible .pin-corps { fill: #6b6b6b; }
.epingle.ouverte .pin-corps { fill: #b4b4b4; stroke: #000; }
.epingle.ouverte .pin-oeil { fill: #000; }

.leaflet-marker-icon.groupe { background: none; border: 0; }
.groupe span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; box-sizing: border-box; border-radius: 50%; background: #000; color: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px #000; font: 700 15px/1 var(--cn); transition: background .12s, transform .12s; }
.groupe:hover span, .groupe:focus-visible span { background: #6b6b6b; transform: scale(1.1); }

.plein-ecran-btn a { display: flex; align-items: center; justify-content: center; }
.plein-ecran-btn svg { width: 15px; height: 15px; fill: none; stroke: #000; stroke-width: 1.6; }
.carte.plein { position: fixed; inset: 0; z-index: 9999; width: 100vw; height: 100vh; height: 100dvh; border: 0; box-shadow: none; }
.carte:fullscreen { width: 100%; height: 100%; border: 0; box-shadow: none; }
.carte:-webkit-full-screen { width: 100%; height: 100%; }
.carte-pleine, .carte-pleine body { overflow: hidden; }

.leaflet-popup-content-wrapper { border-radius: 0; background: var(--blanc); color: var(--noir); border: 1px solid var(--noir); box-shadow: 5px 5px 0 var(--noir); padding: 0; }
.leaflet-popup-content { margin: 16px 18px 16px; font-family: var(--cursor); font-size: 13px; line-height: 1.5; max-height: min(46vh, 330px); overflow-y: auto; }
.leaflet-popup-content p { margin: 0 0 8px; }
.leaflet-popup-content p:last-child { margin-bottom: 0; }
.leaflet-popup-content .lieu { margin: 0; font-family: var(--cn); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; padding-right: 14px; }
.leaflet-popup-content .date { margin: 3px 0 9px; font-size: 11.5px; }
.leaflet-popup-tip { display: none; }
.leaflet-container a.leaflet-popup-close-button { top: 4px; right: 4px; width: 22px; height: 22px; font: 400 20px/20px var(--heros); color: var(--noir); }
.leaflet-container a.leaflet-popup-close-button:hover { color: var(--noir); background: var(--papier); }

.leaflet-bar { border: 1px solid var(--noir); box-shadow: 3px 3px 0 var(--noir); border-radius: 0; }
.leaflet-bar a { border-radius: 0; color: var(--noir); background: var(--blanc); border-bottom: 1px solid var(--noir); font-family: var(--heros); }
.leaflet-bar a:last-child { border-bottom: 0; }
.leaflet-bar a:hover { background: var(--papier); color: var(--noir); }
.leaflet-container .leaflet-control-attribution { font-family: var(--cursor); font-size: 10.5px; background: rgba(255, 255, 255, .85); color: var(--noir); }
.leaflet-control-attribution a { color: var(--noir); }
.leaflet-container { background: var(--papier); font-family: var(--cursor); }
.leaflet-container :focus-visible { outline: 1.5px solid var(--noir); outline-offset: 2px; }

@media (max-width: 760px) {
  .page-carte .ouverture { padding: 30px 5vw 0; }
  .zone-carte { padding: 24px 5vw 0; }
  .carte { height: clamp(420px, calc(100svh - 190px), 640px); box-shadow: 4px 4px 0 #000; }
  .leaflet-popup-content { font-size: 12.5px; max-height: 38vh; }
}
