body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

/* En-tête (Header) */
.header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background-color: #212C37; /* Nouvelle couleur pour la navbar */
            padding: 1rem 2rem;
            position: relative;
            z-index: 10;
        }
        .logo-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        .logo-container img {
            height: 80px;
            width: 80px;
            margin-bottom: 0.5rem;
        }
        .logo-container span {
            font-weight: bold;
            color: white;
            font-size: 1rem;
        }
        .navbar {
            display: flex;
            gap: 1.5rem;
            flex-wrap: wrap;
        }
        
        .navbar a:hover {
            color: #ffcc00; /* Changé la couleur de survol pour un meilleur contraste */
        }
        .dropdown {
            position: relative;
            display: inline-block;
        }
        .navbar > * {
            display: flex;
            align-items: center;
        }
        .dropbtn {
            color: white;
            text-decoration: none;
            font-weight: bold;
            padding: 0.5rem 1rem;
            font-size: 1rem;
            display: inline-block;
        }
        .dropbtn:hover {
            color: #ffcc00;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: white;
            min-width: 160px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 1;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            padding-top: 0.5rem;
        }
        .dropdown-content a {
            color: black;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
            text-align: left;
        }
        .dropdown-content a:hover {
            background-color: #e0dcb0;
        }
        .dropdown:hover .dropdown-content {
            display: block;
        }

/*----------------------------------------------------------------------------------------*/
/* 2. Styles spécifiques au Géoportail (Disposition en 3 colonnes) */
/*----------------------------------------------------------------------------------------*/

.main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    gap: 10px;
}

/* Barres latérales (gauche et droite) */
#sidebar-left, #sidebar-right {
    width: 280px;
    background-color: #f4f4f4;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    border-radius: 8px;
    max-height: calc(100vh - 120px);
}

/* Conteneur de la carte */
#map {
    flex-grow: 1;
    height: calc(100vh - 120px);
    background-color: #e0e0e0;
    border-radius: 8px;
}

/* Conteneurs de formulaires dans les barres latérales */
.container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Éléments de formulaire */
select, button, input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    cursor: pointer;
    background-color: #212C37;
    color: white;
    font-weight: bold;
    border: none;
}

button:hover {
    background-color: #1a2329;
}

/*----------------------------------------------------------------------------------------*/
/* 3. Styles des composants et icônes (CORRIGÉ) */
/*----------------------------------------------------------------------------------------*/

/* Diminution de la taille des titres */
/* Utilisation de sélecteurs plus spécifiques pour éviter les conflits */
#sidebar-left h2 {
    font-size: 1.5rem !important; /* Ajout de !important pour forcer le style */
}

#sidebar-left h3 {
    font-size: 0.9rem !important; /* Ajout de !important pour forcer le style */
    font-weight: bold;
}
#sidebar-right .container h3 {
    font-size: 0.9rem !important; /* Ajout de !important pour forcer le style */
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Styles pour les titres avec la classe .section-title */
.section-title {
    color: #292524;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1px;
    margin-bottom: 15px;
}

/* Liste des couches d'information */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin-bottom: 8px;
}

input[type="checkbox"] {
    margin-right: 5px;
}

/* Icônes emojis pour la carte (Leaflet) */
.emoji-icon {
    background-color: transparent;
    border: none;
    text-align: center;
    font-size: 1.5rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.leaflet-div-icon {
    background: transparent;
    border: none;
}

/* Icônes de la légende dans la barre latérale */
.emoji-legend {
    display: inline-block;
    width: 25px;
    height: 25px;
    text-align: center;
    font-size: 1.2rem;
    vertical-align: middle;
    margin-right: 8px;
}

/* Styles pour les boutons de fonds de carte */
.base-map-selector {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.base-map-btn {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: all 0.3s ease;
    color: #495057;
    width: 100%;
}

.base-map-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.base-map-btn.active-map {
    background-color: #212C37;
    color: white;
    border-color: #212C37;
    font-weight: bold;
}

/* Styles pour les métriques du taux de couverture */
.coverage-metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 6px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}

.coverage-metric-label {
    font-weight: bold;
    color: #495057;
}

.coverage-metric-value {
    color: #212C37;
}

.coverage-high { color: #28a745 !important; }
.coverage-medium { color: #ffc107 !important; }
.coverage-low { color: #dc3545 !important; }

.coverage-results {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #212C37;
}

.villages-without-access {
    margin-top: 10px;
    font-size: 12px;
}

.villages-without-access ul {
    margin: 5px 0;
    padding-left: 15px;
}

.villages-without-access li {
    margin-bottom: 3px;
}

/* Styles pour le module zone d'influence */
.metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 6px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}

.metric-label {
    font-weight: bold;
    color: #495057;
}

.metric-value {
    color: #212C37;
}

.village-list {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    background: white;
    margin-top: 8px;
}

.village-item {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

.village-item:last-child {
    border-bottom: none;
}

.distance {
    color: #666;
    font-size: 11px;
}

.capacity-indicator {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
}

.capacity-ok { background: #d4edda; color: #155724; }
.capacity-warning { background: #fff3cd; color: #856404; }
.capacity-critical { background: #f8d7da; color: #721c24; }

.influence-results {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #212C37;
}

.standards-info {
    background: #e9ecef;
    padding: 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
}