/* ══════════════════════════════════════════════════════════
   Smart Search — Dropdown d'autocomplétion
   ══════════════════════════════════════════════════════════ */

.mp-smart-dropdown {
    position: fixed;
    background: var(--mp-bg-deep);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    z-index: 99999;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.mp-smart-dropdown--active {
    display: block;
    animation: smartDropIn 0.15s ease-out;
}

@keyframes smartDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Groupes ── */

.mp-smart-dropdown__group {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mp-smart-dropdown__group:last-child {
    border-bottom: none;
}

.mp-smart-dropdown__label {
    padding: 6px 16px 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mp-accent);
}

/* ── Items ── */

.mp-smart-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: #f0f0f0;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}

.mp-smart-dropdown__item:hover,
.mp-smart-dropdown__item--selected {
    background: rgba(212, 168, 83, 0.1);
}

.mp-smart-dropdown__ref {
    font-family: 'SFMono-Regular', 'Consolas', monospace;
    font-weight: 700;
    color: var(--mp-accent);
    font-size: 13px;
    flex-shrink: 0;
}

.mp-smart-dropdown__name {
    color: #ccc;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.mp-smart-dropdown__brand {
    color: #888;
    font-size: 12px;
    flex-shrink: 0;
}

.mp-smart-dropdown__oe {
    display: inline-block;
    padding: 1px 6px;
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    flex-shrink: 0;
}

.mp-smart-dropdown__count {
    color: #666;
    font-size: 11px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Footer ── */

.mp-smart-dropdown__footer {
    padding: 10px 16px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mp-smart-dropdown__footer a {
    color: var(--mp-accent);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.mp-smart-dropdown__footer a:hover {
    color: #e8c67a;
}

/* ── Hint Plaque/VIN ── */

.mp-smart-dropdown__hint {
    padding: 20px 16px;
    text-align: center;
}

.mp-smart-dropdown__hint-icon {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.mp-smart-dropdown__hint-title {
    font-size: 14px;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 4px;
}

.mp-smart-dropdown__hint-value {
    font-family: 'SFMono-Regular', 'Consolas', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--mp-accent);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.mp-smart-dropdown__hint-action {
    display: inline-block;
    padding: 8px 20px;
    background: var(--mp-accent);
    color: #000;
    font-weight: 700;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.mp-smart-dropdown__hint-action:hover {
    background: #e8c67a;
}

/* ── Loading ── */

.mp-smart-dropdown__loading {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 12px;
}

/* ── Responsive mobile ── */

@media (max-width: 768px) {
    .mp-smart-dropdown {
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-height: 60vh;
    }
}
