/* === Styles pour la carte === */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f0f0;
}

/* Conteneur de la carte - occupe toute la surface utile */
#map {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Contrôles personnalisés */
.map-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.control-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: white;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

.control-btn:last-child {
    border-bottom: none;
}

.control-btn:hover {
    background: #f5f5f5;
    color: #2c3e50;
    transform: scale(1.05);
}

.control-btn:active {
    background: #e8e8e8;
    transform: scale(0.95);
}

/* Styles pour les popups et tooltips Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-tip {
    background: white;
}

/* Attribution Leaflet */
.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    padding: 8px;
}

/* Zoom controls Leaflet par défaut */
.leaflet-control-zoom {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.leaflet-control-zoom a {
    width: 44px;
    height: 44px;
    line-height: 44px;
    background: white;
    color: #333;
    text-align: center;
    text-decoration: none;
    display: block;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leaflet-control-zoom a:hover {
    background: #f5f5f5;
    color: #2c3e50;
}

.leaflet-control-zoom a:active {
    background: #e8e8e8;
}

.leaflet-control-zoom a:first-child {
    border-bottom: 1px solid #e0e0e0;
}

/* Responsive pour les petits écrans */
@media (max-width: 768px) {
    .control-btn,
    .leaflet-control-zoom a {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
    }
    
    .map-controls {
        top: 15px;
        left: 15px;
    }
}
