/* Lassarat Map — colors pulled directly from the SVG's own palette so the
   UI chrome (legend, popups) reads as part of the same object, not a
   bolted-on widget. */
.lassarat-map-wrap {
    --lm-green: #53815b;
    --lm-green-dark: #1f4f26;
    --lm-bg: #f0f4f6;
    --lm-ink: #23302a;
    --lm-line: #d7e0e2;

    position: relative;
    width: 100%;
    height: 400px;
    /* border-radius: 12px; */
    overflow: hidden;
    background: var(--lm-bg);
}





.lassarat-map-canvas {
    width: 100%;
    height: 100%;
    background: var(--lm-bg);
    font-family: inherit;
}

/* Leaflet's default focus/attribution chrome we don't need visually
   fighting with our own controls */
.lassarat-map-canvas .leaflet-control-attribution {
    display: none;
}

/* Markers: bigger invisible hit target already lives in the SVG; here we
   just make the whole thing behave like a clickable control. */
.lassarat-map-canvas .lm-marker {
    cursor: pointer;
    
}
.lassarat-map-canvas .lm-marker:focus {
    outline: none;
}
.lassarat-map-canvas .lm-marker:focus-visible .lm-hit {
    stroke: var(--lm-green-dark);
    stroke-width: 3;
    fill: rgba(83, 129, 91, 0.15);
}
.lassarat-map-canvas .lm-marker:hover .lm-hit {
    fill: rgba(83, 129, 91, 0.12);
}

/* Category visibility toggles — driven by a class on the map container,
   see lassarat-map.js. Keeping this as pure CSS means toggling a whole
   category is a single class swap, no per-element JS loop. */
.lassarat-map-canvas.lm-hide-intervention
    .lm-marker[data-category="intervention"] {
    display: none;
}
.lassarat-map-canvas.lm-hide-implantation
    .lm-marker[data-category="implantation"] {
    display: none;
}

/* ---------------------------------------------------------------- */
/* Legend control                                                    */
/* ---------------------------------------------------------------- */
.lm-legend {
    background: #fff;
    box-shadow: 0 2px 10px rgba(31, 79, 38, 0.18);
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.3;
    color: var(--lm-ink);
    min-width: 180px;
}

.lm-legend__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    cursor: pointer;
    user-select: none;
}
.lm-legend__row + .lm-legend__row {
    border-top: 1px solid var(--lm-line);
}

.lm-legend__row input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.lm-legend__swatch {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    display: inline-block;
}
.lm-legend__swatch--circle {
    border-radius: 50%;
    border: 2px solid var(--lm-green);
    background: #fff;
}
.lm-legend__swatch--square {
    border-radius: 3px;
    background: var(--lm-green);
}

.lm-legend__row.lm-is-off .lm-legend__swatch {
    opacity: 0.3;
}
.lm-legend__row.lm-is-off {
    color: #8a9691;
}

/* ---------------------------------------------------------------- */
/* Popup                                                              */
/* ---------------------------------------------------------------- */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(31, 79, 38, 0.22);
}
.leaflet-popup-content {
    margin: 14px 16px;
}
.leaflet-popup-tip {
    box-shadow: 0 4px 20px rgba(31, 79, 38, 0.15);
}

.lm-popup {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 100px;
}

.lm-popup__title {
    margin: 0 0 6px;
    padding-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--lm-green-dark);
}
.lm-popup__body {
    margin: 0;
    font-size: 13px;
    color: var(--lm-ink);
    line-height: 1.5;
}

.lassarat-map-canvas .lm-popup__category {
    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lm-green);
}

.lassarat-map-canvas .lm-popup__title {
    margin: 0 0 8px;
    padding-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--lm-green-dark);
    /* border-bottom: 2px solid var(--lm-green); */
}

.lassarat-map-canvas .lm-popup__body {
    margin: 0;
    font-size: 13px;
    color: var(--lm-ink);
    line-height: 1.5;
}

.lassarat-map-canvas .lm-popup__body strong {
    font-weight: 700;
}

.lm-popup__links {
}

#FOND_CARTE_-_copie > g {
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.18));
}

@media (min-width: 769px) {
    .lassarat-map-wrap .leaflet-control-zoom {
        display: none !important;
    }

    .lassarat-map-wrap {
        height: 900px;
    }
}

/* 
CSS for the legend of the map

*/

.lm-location-list {
    display: grid;
    grid-template-columns: 1.15fr 1.7fr 0.55fr 1.4fr 1.8fr;
    gap: 40px;
    margin-top: 30px;
    padding: 6rem 0;

    max-width: 1280px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.5;
    color: #739483;
}

.lm-location-list__group {
    min-width: 0;
}

.lm-location-list__continent,
.lm-location-list__country {
    display: block;
}

.lm-location-list__continent {
    margin-bottom: 10px;
    font-weight: 700;
    color: #4f7f62;
    font-size: 18px;
}

.lm-location-list__country {
    margin-top: 6px;
    font-weight: 700;
    color: #669177;
}

.lm-location-list__location {
    display: block;
    padding: 0;
    margin: 0;

    appearance: none;
    border: 0;
    background: none;

    color: #819d8e;
    font: inherit;
    line-height: inherit;
    text-align: left;
    padding: 3px 0;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.lm-location-list__location:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.lm-location-list__group--africa {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
}

.lm-location-list__group--africa > .lm-location-list__continent {
    grid-column: 1 / -1;
}

.lm-location-list__france-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

@media (max-width: 980px) {
    .lm-location-list {
        padding: 2rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .lm-location-list {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


//Animation
/* Pulse effect for intervention markers (transform version) */
.lm-marker[data-category="intervention"] .st5 {
  transform-box: fill-box;
  transform-origin: center;
  animation: lm-intervention-pulse-transform 2.4s ease-out infinite;
}

@keyframes lm-intervention-pulse-transform {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lm-marker[data-category="intervention"] .st5 {
    animation: none;
  }
}

.lassarat-map-wrap {
    perspective: 1000px;
}

.lassarat-map-tilt {
    height: 100%;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
}