/**
 * Styles pour le module Carte Monde avec Leaflet
 */

.fl-module-carte-monde {
    --accent: #007a45;
    --accent-dark: #005530;
    --accent-glow: rgba(0, 122, 69, 0.5);
    --texte: #223047;
    --texte-2: #5b6779;
    --bordure: rgba(0, 0, 0, 0.08);
    --ombre: 0 8px 28px rgba(20, 40, 30, 0.14);
}

.fl-module-carte-monde * {
    box-sizing: border-box;
}

.monde {
    max-width: 1200px;
    margin: 0 auto;
}

/* Conteneur de la carte */
.carte-wrapper {
    position: relative;
    overflow: hidden;
}

.carte-leaflet {
    width: 100%;
    height: 500px;
}

/* Marqueurs personnalisés */
.marqueur-custom {
    background: transparent !important;
    border: none !important;
}

.marqueur-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
}

.marqueur-point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 1px 5px var(--accent-glow);
    z-index: 2;
}

.marqueur-point::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.55;
    animation: pulsation 2.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    z-index: -1;
}

@keyframes pulsation {
    0%   { transform: translate(-50%, -50%) scale(0.8); opacity: 0.55; }
    80%  { transform: translate(-50%, -50%) scale(2.7); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(2.7); opacity: 0; }
}

/* Popups Leaflet personnalisées */
.leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 0;
    min-width: 250px;
}

.popup-pays {
    padding: 20px;
}

.popup-pays h4 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.popup-pays .drapeau {
    margin: 12px 0;
    text-align: center;
}

.popup-pays .drapeau img {
    max-width: 120px;
    height: auto;
    border: 1px solid var(--bordure);
    border-radius: 4px;
}

.popup-pays .intervention {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}

.popup-pays .stats {
    display: flex;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--bordure);
    border-bottom: 1px solid var(--bordure);
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--texte-2);
}

.popup-pays .stats span {
    flex: 1;
}

.popup-pays p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--texte);
    margin: 12px 0;
}

.popup-pays .btn-decouvrir {
    display: inline-block;
    background: var(--accent);
    color: #fff !important;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.popup-pays .btn-decouvrir:hover {
    background: var(--accent-dark);
}

/* Contrôles Leaflet */
.leaflet-control-zoom {
    border: 1px solid var(--bordure) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.leaflet-control-zoom a {
    background: #fff !important;
    color: var(--texte) !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
}

.leaflet-control-zoom a:hover {
    background: #f5f7fa !important;
    color: var(--accent) !important;
}


/* Responsive */
@media (max-width: 768px) {
    .carte-leaflet {
        height: 400px;
    }

    .popup-pays {
        padding: 16px;
    }

    .popup-pays h4 {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marqueur-point::before {
        animation: none;
        opacity: 0;
    }
}