.elec2026-liste-communes {
    font-family: inherit;
    margin: 1.5em 0;
}

.elec2026-liste-communes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
    padding-bottom: 0.75em;
    border-bottom: 2px solid #e5e7eb;
}

.elec2026-liste-communes-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: #1f2937;
    font-weight: 600;
}

.elec2026-liste-communes-count {
    font-size: 0.9em;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.3em 0.8em;
    border-radius: 12px;
    font-weight: 500;
}

.elec2026-communes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.5em;
}

.elec2026-commune-item {
    margin: 0;
    padding: 0;
}

.elec2026-commune-link {
    display: block;
    padding: 0.65em 1em;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.2s ease;
    position: relative;
}

.elec2026-commune-link:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.elec2026-commune-link:active {
    transform: translateY(0);
}

.elec2026-commune-nom {
    font-weight: 500;
    color: #1f2937;
    font-size: 1em;
}

.elec2026-commune-link:hover .elec2026-commune-nom {
    color: #3b82f6;
}

.elec2026-commune-postal {
    font-size: 0.85em;
    color: #6b7280;
    margin-left: 0.4em;
    font-weight: 400;
}

@media (max-width: 768px) {
    .elec2026-communes-list {
        grid-template-columns: 1fr;
    }
    
    .elec2026-liste-communes-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
}

.elec2026-notice {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-left: 4px solid #6b7280;
    color: #374151;
    border-radius: 4px;
    padding: 0.75em 1em;
    margin: 1em 0;
    font-size: 0.95em;
}

.elec2026-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    color: #991b1b;
    border-radius: 4px;
    padding: 0.75em 1em;
    margin: 1em 0;
    font-size: 0.95em;
}
