/* Corrections spécifiques pour le bug du header autour de la barre de recherche */

/* Ajustement de la position et du style du header */
header {
    position: relative;
    overflow: visible !important;
    display: block;
    width: 100%;
}

/* S'assurer que le conteneur du header est correctement dimensionné */
.header-top {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 20px !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Correction de l'affichage de la barre de recherche */
.search-bar {
    width: 60% !important;
    max-width: 400px !important;
    margin: 10px auto !important;
    padding: 12px !important;
    font-size: 16px !important;
    border-radius: 20px !important;
    border: 1px solid #ddd !important;
    display: block !important;
    position: relative !important;
    z-index: 10 !important;
}

/* S'assurer que la barre de recherche est centrée */
header > .search-bar {
    position: relative !important;
    clear: both !important;
    margin: 10px auto !important;
    display: block !important;
}

/* Correction pour les mobiles */
@media (max-width: 768px) {
    .search-bar {
        width: 90% !important;
        margin: 8px auto !important;
    }
    
    .header-top {
        padding: 10px !important;
    }
    
    /* Assurer que tous les éléments du header sont visibles sur mobile */
    .header-top .menu-icon, 
    .header-top img, 
    .header-top .message-icon {
        display: flex !important;
        align-items: center !important;
    }
}