/* ============================================================================
   CSS CLUSTERS - Personnalisation des groupes de compteurs
   ============================================================================ */

/* Clusters gÃ©nÃ©raux */
.marker-cluster {
    background-clip: padding-box;
    border-radius: 20px;
}

.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 15px;
    font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
}

.marker-cluster span {
    line-height: 30px;
    color: #fff;
    font-weight: bold;
}

/* ============================================================================
   Clusters PETITS (< 10 points)
   ============================================================================ */

.marker-cluster-small {
    background-color: rgba(181, 226, 140, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(110, 204, 57, 0.6);
}

/* ============================================================================
   Clusters MOYENS (10-50 points)
   ============================================================================ */

.marker-cluster-medium {
    background-color: rgba(241, 211, 87, 0.6);
}

.marker-cluster-medium div {
    background-color: rgba(240, 194, 12, 0.6);
}

/* ============================================================================
   Clusters GRANDS (> 50 points)
   ============================================================================ */

.marker-cluster-large {
    background-color: rgba(253, 156, 115, 0.6);
}

.marker-cluster-large div {
    background-color: rgba(241, 128, 23, 0.6);
}

/* ============================================================================
   Personnalisation par TYPE DE COMPTEUR
   Regles generees dynamiquement par legend.js -> injectEquipStyles()
   ============================================================================ */


/* ============================================================================
   Animation au survol
   ============================================================================ */

.marker-cluster:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* ============================================================================
   Coverage polygon (zone couverte par le cluster)
   ============================================================================ */

.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
    transition: transform 0.3s ease-out, opacity 0.3s ease-in;
}

/* ============================================================================
   Spiderfy (dÃ©ploiement en toile d'araignÃ©e)
   ============================================================================ */

.marker-cluster-spiderfy {
    z-index: 1000;
}

/* Lignes de connection spider */
.leaflet-cluster-spider-leg {
    stroke: #222;
    stroke-width: 1.5;
    stroke-opacity: 0.5;
}
