/* =========================================================
   STYLE KING HOTSPOTS - DESIGN PREMIUM 4X4 KING
   ========================================================= */

/* Conteneur principal interactif */
#king-interactive-map {
    user-select: none;
}

/* 1. Style du point interactif (Cible) */
.hotspot-point {
    position: absolute;
    width: 26px;
    height: 26px;
    background-color: #fab506; /* Jaune 4X4 King */
    border: 2px solid #111111; /* Bordure sombre */
    border-radius: 50%;
    cursor: pointer;
    /* Le point est parfaitement centré sur la coordonnée X/Y */
    transform: translate(-50%, -50%); 
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
}

/* Effet d'animation de pulsation (Radar) */
.hotspot-point::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid rgba(250, 181, 6, 0.8); /* Jaune transparent */
    border-radius: 50%;
    animation: kingPulse 2s infinite;
    opacity: 0;
    pointer-events: none;
}

@keyframes kingPulse {
    0% { transform: scale(0.6); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Le point au survol de la souris */
.hotspot-point:hover {
    background-color: #111111; /* Passe au noir */
    border-color: #fab506;
    z-index: 20;
}

/* Changement de couleur du numéro au survol */
.hotspot-point:hover span {
    color: #fab506 !important;
}

/* 2. Style de l'infobulle (Tooltip) */
.hotspot-tooltip {
    position: absolute;
    bottom: 150%; /* Positionnement au-dessus du point */
    left: 50%;
    transform: translateX(-50%) translateY(15px); /* Position de départ pour l'animation */
    background-color: #111111; /* Fond noir moderne */
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 6px;
    width: max-content;
    min-width: 140px;
    max-width: 250px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #fab506; /* Ligne d'accentuation jaune */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Animation fluide */
    font-size: 13px;
    line-height: 1.5;
    pointer-events: none; /* Empêche les clics involontaires avant le survol */
}

/* La petite flèche pointant vers le bas sous l'infobulle */
.hotspot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #fab506 transparent transparent transparent;
}

/* 3. Animation d'apparition de l'infobulle au survol du point */
.hotspot-point:hover .hotspot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* Glisse doucement vers le haut */
    pointer-events: auto; /* Rend les liens cliquables à l'intérieur */
}