/* assets/css/africa-map.css */

.akibat-africa-map-container {
    margin: 0 auto;
    padding: 20px 0;
}

.akibat-africa-svg {
    width: 100%;
    height: auto;
    background: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Style des pays */
.country {
    fill: #e8b04b;
    stroke: #333;
    stroke-width: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.country:hover {
    fill: #d4941e;
    stroke-width: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.country.active {
    fill: #c17d11;
    stroke-width: 3;
}

/* Pays avec catégorie liée */
.country.has-link {
    fill: #5bb75b;
}

.country.has-link:hover {
    fill: #4a9a4a;
}

/* Tooltip */
.akibat-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
}

.akibat-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 #333;
}

/* Animation de chargement */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

.loading .country {
    animation: pulse 1.5s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .akibat-africa-map-container {
        padding: 10px;
    }
    
    .country {
        stroke-width: 0.5;
    }
    
    .country:hover {
        stroke-width: 1;
    }
}

/* Style pour la page admin */
.akibat-admin-preview {
    max-width: 400px;
    margin: 20px 0;
    border: 1px solid #ddd;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.akibat-admin-preview h3 {
    margin-top: 0;
}

/* Indicateur de sélection */
.country-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 3px;
    vertical-align: middle;
}

.country-indicator.linked {
    background-color: #5bb75b;
}

.country-indicator.unlinked {
    background-color: #e8b04b;
}