
    /* Style global de la barre de navigation */
    .social-navbar {
        background-color: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 8px 16px;
        position: sticky;
        top: 0;
        z-index: 1000;
        transition: all 0.3s ease;
        width: 100%;
        border-bottom-left-radius: 18px;
        border-bottom-right-radius: 18px;
    }

    .navbar-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1400px;
        margin: 0;
        width: 100%;
    }

    .nav-section {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Logo et marque */
    .navbar-brand {
        font-weight: 700;
        font-size: 2rem;
        color: #4d1f8c;
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
    }

    .navbar-brand img {
        border-radius: 8px;
        height: 40px;
    }

    .navbar-brand span {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        letter-spacing: 2px;
        margin-top: 0px;
        margin-left: -10px;
        background: linear-gradient(90deg, hsl(240, 82%, 67%),#b38a03 );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-fill-color: transparent;
        color: #4d1f8c;
        user-select: none;
        font-size: 2rem;
        font-weight: 800;
        text-transform: lowercase;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    /* Boutons de navigation */
    .nav-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #4d1f8c;
        background-color: transparent;
        border: none;
        transition: all 0.2s ease;
        position: relative;
        cursor: pointer;
    }

    .nav-btn:hover {
        background-color: #f3f0ff;
    }

    /* Badge de notification */
    .notification-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background-color: #ff4757;
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }

    /* Barre de recherche */
    .top-container {
        position: relative;
        flex-grow: 1;
        max-width: 500px;
        margin: 0;
    }

    .search-bar {
        width: 100%;
        border-radius: 20px;
        border: 2px solid #e0e0e0;
        padding: 8px 15px 8px 35px;
        transition: all 0.3s ease;
        background-color: #f8f9fa;
    }

    .search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
    }

    /* Bouton de solde */
    .balance-btn {
        background: linear-gradient(135deg, #4d1f8c, #6c3ce6);
        color: white;
        border: none;
        border-radius: 20px;
        padding: 8px 15px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }

    /* Avatar utilisateur */
    .user-avatar {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        font-size: 18px;
        margin-right: 12px;
        overflow: hidden;
        position: relative;
    }

    /* Bouton de connexion */
    .nav-login-btn {
        background-color: #8c501f;
        color: white;
        border: none;
        border-radius: 20px;
        padding: 4px 15px;
        font-weight: 500;
    }

    /* Menu mobile */
    .mobile-menu-btn {
        display: none;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #4d1f8c;
    }

    /* Styles responsives */
    @media (max-width: 992px) {
        .top-container {
            max-width: 300px;
        }
    }

    @media (max-width: 768px) {

        .login-btn-container{
            display: none;
        }

        .mobile-action span{
            display: none;
        }
        .navbar-container {
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .top-container {
            order: 3;
            width: 100%;
            max-width: 100%;
            margin: 0;
        }
        
        .nav-section:nth-child(2) {
            order: 1;
        }
        
        .nav-section:nth-child(3) {
            order: 2;
            margin-left: auto;
        }
        
        .mobile-menu-btn {
            display: block;
        }
        
        .nav-btn:not(.essential) {
            display: none;
        }
        /* .balance-btn { display: none; }  // Désactivé pour afficher le bouton solde sur mobile */
    }

/* Styles responsives */
@media (max-width: 992px) {
    .top-container {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .mobile-action span{
        display: none;
    }

    .navbar-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Modification principale ici - top-container passe en order: 1 */
    .top-container {
        order: 1;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    /* La section avec le logo/menu passe en order: 2 */
    .nav-section:nth-child(1) {
        order: 2;
    }
    
    /* La section avec les boutons passe en order: 3 */
    .nav-section:nth-child(3) {
        order: 3;
        margin-left: auto;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-btn:not(.essential) {
        display: none;
    }
    
}

    @media (max-width: 476px) {
        .navbar-brand {
            display: none;
        }
    }
