/* Styles pour la section de recherche avec autocomplétion */
.search-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: 25px;
    border: 1px solid #e1e4e8;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    outline: none;
}

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    border: none;
    background: none;
    padding: 0 1rem;
    cursor: pointer;
}

.search-icon {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Conteneur de suggestions */
.search-suggestions-container {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid #e9ecef;
}

/* Item de suggestion */
.search-suggestion-item {
    display: flex;
    flex-direction: column;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s ease;
}

.search-suggestion-item:hover,
.search-suggestion-item:focus {
    background-color: #f8f9fa;
    text-decoration: none;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

/* Catégorie dans les suggestions */
.suggestion-category {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Titre dans les suggestions */
.suggestion-title {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Lien "Voir tous les résultats" */
.search-view-all {
    display: block;
    padding: 0.8rem 1rem;
    text-align: center;
    background-color: #f8f9fa;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.search-view-all:hover,
.search-view-all:focus {
    background-color: #e9ecef;
    text-decoration: none;
}

/* Message de chargement */
.search-loading {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Message d'erreur */
.search-error {
    padding: 1rem;
    text-align: center;
    color: #dc3545;
}

/* Message "Aucun résultat" */
.search-no-results {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
}

/* Section de recherche sur mobile */
@media (max-width: 768px) {
    .search-container {
        width: 100%;
    }
    
    .search-suggestions-container {
        max-height: 300px;
    }
} 