.elec2026-cherche {
    font-family: inherit;
    margin: 1em 0;
}

.elec2026-cherche-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    align-items: flex-end;
}

.elec2026-cherche-field {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.elec2026-cherche-field label {
    font-size: 0.85em;
    font-weight: 600;
    color: #444;
}

.elec2026-cherche-input {
    padding: 0.5em 0.75em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    min-width: 260px;
    outline: none;
    transition: border-color 0.2s;
}

.elec2026-cherche-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}

.elec2026-autocomplete-wrap {
    position: relative;
}

.elec2026-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.elec2026-autocomplete-list li {
    padding: 0.45em 0.75em;
    cursor: pointer;
    font-size: 0.95em;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.elec2026-autocomplete-list li:last-child {
    border-bottom: none;
}

.elec2026-autocomplete-list li:hover,
.elec2026-autocomplete-list li[aria-selected="true"] {
    background: #eff6ff;
    color: #1d4ed8;
}

.elec2026-autocomplete-list li .elec2026-ac-dep {
    font-size: 0.8em;
    color: #888;
    margin-left: 0.5em;
    white-space: nowrap;
}

.elec2026-cherche-phase {
    padding: 0.5em 0.75em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    background: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.elec2026-cherche-phase:focus {
    border-color: #3b82f6;
}

.elec2026-cherche-btn-wrap {
    justify-content: flex-end;
}

.elec2026-cherche-btn {
    padding: 0.52em 1.4em;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.elec2026-cherche-btn:hover:not(:disabled) {
    background: #1d4ed8;
}

.elec2026-cherche-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.elec2026-cherche-error {
    margin-top: 0.5em;
    color: #dc2626;
    font-size: 0.9em;
}
