/* Style pour la barre de recherche */
.input-group {
    border-radius: 4px;
    overflow: hidden;
}

.input-group-text {
    padding: 0.375rem 0.75rem;
    border-right: none !important;
}

.form-control {
    padding: 0.375rem 0.75rem;
    border-left: none !important;
    height: 38px;
}

/* Style pour les icônes */
.bi {
    color: #5E7388;
    transition: color 0.2s;
}

.bi:hover {
    color: #FF6600;
}

.small {
    font-size: 0.75rem;
    line-height: 1.1;
}
/* Style pour la barre de recherche Leboncoin-like */
.input-group.border {
    border-color: #ccc !important;
    transition: border-color 0.2s;
}

.input-group.border:hover {
    border-color: #5E7388 !important;
}

.form-control:focus {
    box-shadow: none !important;
    border-color: transparent !important;
}

.btn-primary {
    background-color: #FF6600 !important;
    border-color: #FF6600 !important;
}

.btn-primary:hover {
    background-color: #e65c00 !important;
    border-color: #e65c00 !important;
}

.rounded-pill {
    border-radius: 20px !important;
}

/* Style simplifié pour le menu principal */
.primary-menu {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.primary-menu .menu-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu .menu-item {
    position: relative;
    padding: 0 8px;
}

.primary-menu .menu-link {
    display: block;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
    border-bottom: 3px solid transparent;
}

.primary-menu .menu-link:hover {
    color: #ff6a00;
    border-bottom-color: #ff6a00;
}

/* Responsive */
@media (max-width: 991.98px) {
    .primary-menu .menu-item {
        padding: 0 10px;
    }
    
    .primary-menu .menu-link {
        font-size: 14px;
    }
}

/* Responsive Header */
@media (max-width: 991.98px) {
    #header {
        padding: 10px 0;
    }
    
    .header-row {
        flex-wrap: wrap;
    }
    
    #logo {
        order: 1;
        margin-right: auto !important;
    }
    
    .header-misc:first-child {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .header-misc:last-child {
        order: 2;
        margin-left: auto;
    }
    
    .header-misc .d-flex {
        gap: 5px;
    }
    
    .header-misc a {
        margin-left: 8px !important;
        margin-right: 8px !important;
    }
    
    /* Menu mobile */
    .primary-menu {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        transition: all 0.3s;
        padding-top: 60px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .primary-menu.active {
        left: 0;
    }
    
    .menu-container {
        flex-direction: column;
        padding: 15px;
    }
    
    .menu-item {
        padding: 10px 0 !important;
        border-bottom: 1px solid #eee;
    }
    
    .menu-link {
        padding: 10px 0 !important;
    }
    
    /* Bouton dépôt d'annonce mobile */
    .mobile-depot-btn {
        display: block !important;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 999;
        width: 60px;
        height: 60px;
        border-radius: 50% !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
}

@media (max-width: 767.98px) {
    .header-misc a {
        margin-left: 5px !important;
        margin-right: 5px !important;
    }
    
    .header-misc .fs-4 {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 575.98px) {
    #logo img {
        max-height: 40px;
    }
    
    .header-misc:first-child {
        margin-top: 10px;
    }
}

/* Menu mobile overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.menu-overlay.active {
    display: block;
}

.no-scroll {
    overflow: hidden;
}

/* Style pour le header supérieur */
.header-top-container {
    min-height: 80px; /* Hauteur augmentée */
    display: auto;
    align-items: center;
}

/* Version tablette */
@media (max-width: 991.98px) {
    .header-top-container {
        min-height: 70px;
    }
}

/* Version mobile */
@media (max-width: 767.98px) {
    .header-top-container {
        min-height: 60px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* Ajustement du logo pour la nouvelle hauteur */
#logo img {
    max-height: 50px;
    width: auto;
}

/* Ajustement des éléments de navigation */
.header-misc {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Pour le conteneur de la barre de recherche */
.header-misc:first-child {
    align-self: center;
}

/* Ajoutez ceci dans votre fichier CSS */
.transition-all {
    transition: all 0.3s ease;
}

.dropdown-menu.menu-drop-user {
    transform-origin: top right;
    animation: fadeInUp 0.3s ease forwards;
}

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

.dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #FF6600 0%, #FF8C00 100%);
}

.avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.profilename {
    transition: all 0.3s ease;
}

.user-img {
    display: inline-block;
    line-height: 0;
}

