/* static/css/city_environment.css */


.city-env-visualization {
    background-color: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border: 3px solid #e5e7eb;
}

.city-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: #1f2937;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.environment-grid {

    max-width: 80px;
    margin: 0 auto 2rem;
    border: 4px solid #374151;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.1);

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.grid-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    cursor: pointer;
    position: relative;
}

.grid-cell:hover {
    transform: scale(1.05);
    z-index: 1;
}

.grid-cell:nth-child(2),
.grid-cell:nth-child(4) {
    border-left: 2px solid #e5e7eb;
}

.grid-cell:nth-child(3),
.grid-cell:nth-child(4) {
    border-top: 2px solid #e5e7eb;
}

/* Icônes dans la grille */
.grid-cell .icon {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

/* Si vous utilisez Font Awesome */
.grid-cell .fa {
    font-size: 3.5rem;
}

.legend-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: row;
}

.legend-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.legend-item {
    display: flex;
    flex-basis: 40%;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.legend-item:hover {
    background-color: #f9fafb;
}

.legend-item-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legend-icon {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

/* Si vous utilisez Font Awesome dans la légende */
.legend-icon.fa {
    font-size: 1.1rem;
}

.legend-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
}

.legend-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.1rem 0.2rem;
    border-radius: 4px;
}

/* Couleurs spécifiques pour chaque environnement */
.urban {
    background-color: #f1f5f9;
    color: #64748b;
}

.agricultural {
    background-color: #fefce8;
    color: #eab308;
}

.forest {
    background-color: #f0fdf4;
    color: #16a34a;
}

.water {
    background-color: #f0f9ff;
    color: #0284c7;
}

.wetland {
    background-color: #faf5ff;
    color: #7c3aed;
}

/* Responsive */
@media (max-width: 768px) {



    .grid-cell .icon {
        font-size: 3rem;
    }

    .grid-cell .fa {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {

    .grid-cell .icon {
        font-size: 2.5rem;
    }

    .grid-cell .fa {
        font-size: 2rem;
    }
}