/* Style pour la carte interactive d'Afrique */
.africa-map-container {
    position: relative;
    width: 100%;
    /*max-width: 800px;*/
    margin: 0 auto;
}

.africa-map-wrapper {
    position: relative;
    width: 100%;
    background: #ffffff;
}

.africa-map-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Style des pays */
.africa-map-svg .country {
    cursor: pointer;
    transition: all 0.3s ease;
    stroke: #ffffff;
    stroke-width: 2;
}

.africa-map-svg .country:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
    transform-origin: center;
}

.africa-map-svg .country.cote-ivoire {
    fill: #FF8C00;
}

.africa-map-svg .country.benin {
    fill: #FFD700;
}

.africa-map-svg .country.gabon {
    fill: #228B22;
}

.africa-map-svg .other-countries {
    fill: #D3D3D3;
    stroke: #ffffff;
    stroke-width: 1;
}

/* Style de l'infobulle */
.map-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.map-tooltip.show {
    opacity: 1;
}

.map-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.9);
}

/* Titre de la carte */
.africa-map-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* Légende */
.africa-map-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.legend-color {
    width: 30px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legend-color.cote-ivoire {
    background: #FF8C00;
}

.legend-color.benin {
    background: #FFD700;
}

.legend-color.gabon {
    background: #228B22;
}

/* Responsive */
@media (max-width: 768px) {
    .africa-map-container {
        padding: 10px;
    }
    
    .africa-map-wrapper {
        padding: 15px;
    }
    
    .africa-map-title {
        font-size: 20px;
    }
    
    .map-tooltip {
        font-size: 12px;
        padding: 8px 12px;
    }
}
