/**
 * Styles pour la barre de recherche dans le header
 */

.search-icon-li {
    display: flex;
    align-items: center;
}

.search-icon-li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-icon-li a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

/* Barre de recherche */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.search-bar.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form-header {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.search-input-header {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input-header:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-submit-header,
.search-close-header {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.search-submit-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.search-submit-header:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.search-close-header {
    background: #f1f5f9;
    color: #64748b;
}

.search-close-header:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Responsive */
@media (max-width: 768px) {
    .search-icon-li {
        order: -1;
    }
    
    .search-bar {
        padding: 15px 20px;
    }
    
    .search-form-header {
        flex-wrap: wrap;
    }
    
    .search-input-header {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .search-submit-header,
    .search-close-header {
        width: 45px;
        height: 45px;
    }
}