/* Normigo - Typeahead (lib/typeahead.js) */

.typeahead {
    position: relative;
}

.typeahead-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 10;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-height: 240px;
    overflow-y: auto;
}

.typeahead-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    min-height: 44px;          /* cible tactile (CLAUDE.md a11y) */
    display: flex;
    align-items: center;
}
.typeahead-item:last-child {
    border-bottom: none;
}
.typeahead-item:hover,
.typeahead-item:focus {
    background: var(--blue-light);
    outline: 2px solid var(--blue);
    outline-offset: -2px;
}

.typeahead-create {
    color: var(--blue);
    font-weight: 500;
    background: var(--blue-light);
}
.typeahead-create:hover,
.typeahead-create:focus {
    background: var(--blue);
    color: white;
}

.typeahead-empty {
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}
