/* Styles personnalisés pour Leaflet */

/* Style général des marqueurs */
.marker-default, .marker-active, .marker-expired {
  width: 30px;
  height: 42px;
  background-size: 30px 42px;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}

/* Marqueurs selon le statut */
.marker-default {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="42" viewBox="0 0 30 42"><path fill="%237F7F7F" d="M15 0C6.716 0 0 6.716 0 15c0 8.284 15 27 15 27s15-18.716 15-27C30 6.716 23.284 0 15 0zm0 21a6 6 0 110-12 6 6 0 010 12z"/></svg>');
}

.marker-active {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="42" viewBox="0 0 30 42"><path fill="%235cb85c" d="M15 0C6.716 0 0 6.716 0 15c0 8.284 15 27 15 27s15-18.716 15-27C30 6.716 23.284 0 15 0zm0 21a6 6 0 110-12 6 6 0 010 12z"/></svg>');
}

.marker-expired {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="42" viewBox="0 0 30 42"><path fill="%23d9534f" d="M15 0C6.716 0 0 6.716 0 15c0 8.284 15 27 15 27s15-18.716 15-27C30 6.716 23.284 0 15 0zm0 21a6 6 0 110-12 6 6 0 010 12z"/></svg>');
}

/* Style des popups */
.leaflet-popup-content {
  min-width: 200px;
}

.leaflet-popup-content strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.leaflet-popup-content small {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  border-radius: 3px;
  background-color: #f8f9fa;
}

/* Styles pour les statuts dans les popups */
.status-en-vigueur {
  background-color: #e6f7e6 !important;
  color: #2d882d !important;
}

.status-expirÃ©, .status-expiré, .status-expire {
  background-color: #fcebea !important;
  color: #a82824 !important;
}

/* Contrôles de couches */
.leaflet-control-layers {
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.leaflet-control-layers-toggle {
  width: 36px;
  height: 36px;
}

/* Légende de la carte */
.map-legend {
  padding: 10px;
  background: white;
  box-shadow: 0 1px 5px rgba(0,0,0,0.2);
  border-radius: 4px;
}

.map-legend h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: bold;
}

.map-legend .legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.map-legend .legend-color {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border-radius: 50%;
}

.map-legend .active-color {
  background-color: #5cb85c;
}

.map-legend .expired-color {
  background-color: #d9534f;
}

.map-legend .pending-color {
  background-color: #f0ad4e;
}

.map-legend .default-color {
  background-color: #7F7F7F;
}
