/* Styles pour l'autocomplétion */
.search-form-group {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background-color: #f8f9fa;
}

.autocomplete-title {
    font-weight: 500;
    color: #1a202c;
    margin-bottom: 4px;
    font-size: 14px;
}

.autocomplete-category {
    font-size: 12px;
    color: #718096;
    font-weight: 400;
}

.autocomplete-item strong {
    color: #3182ce;
    font-weight: 600;
}

/* Animation d'apparition */
.search-suggestions {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .search-suggestions {
        max-height: 250px;
    }
    
    .autocomplete-item {
        padding: 10px 14px;
    }
    
    .autocomplete-title {
        font-size: 13px;
    }
    
    .autocomplete-category {
        font-size: 11px;
    }
}

/* Scrollbar personnalisée */
.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
