/* Navigation Desktop - FIXE EN HAUT */
.desktop-nav-specific {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.desktop-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* Logo au centre de la navigation */
.desktop-nav-logo-center {
    margin: 0 15px;
}

.desktop-nav-logo-link {
    text-decoration: none;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
}

.desktop-nav-logo-link:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.05);
}

/* Navigation principale centrée */
.desktop-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
    flex: 1;
    justify-content: center;
    position: relative;
    margin-bottom: -10px;
}



.desktop-nav-item {
    position: relative;
}

.desktop-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.desktop-nav-link:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.desktop-nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Supprimer le fond pour les icônes de notification et messages */
.desktop-nav-link.notification-icon,
.desktop-nav-link[href*="messages.php"] {
    background: transparent !important;
}

.desktop-nav-link.notification-icon:hover,
.desktop-nav-link[href*="messages.php"]:hover {
    background: transparent !important;
    transform: scale(1.1);
}

.desktop-nav-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.desktop-nav-link span {
    font-size: 12px;
    font-weight: 500;
}

/* Styles pour le profil utilisateur dans la navigation desktop */
.desktop-nav-profile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(102, 126, 234, 0.12) 100%);
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.desktop-nav-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.desktop-nav-profile:hover::before {
    left: 100%;
}

.desktop-nav-profile:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(102, 126, 234, 0.2) 100%);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.desktop-nav-profile-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.desktop-nav-profile:hover .desktop-nav-profile-photo {
    border-color: rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
}

.desktop-nav-profile-name {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-align: left;
    letter-spacing: 0.3px;
}

.desktop-nav-profile:hover .desktop-nav-profile-name {
    color: #1f2937;
}

/* Badges de notification pour desktop */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
}

/* Ajuster le contenu de la page pour la navigation desktop fixe */
@media (min-width: 769px) {
    body {
     /*   padding-top: 80px !important;*/
    }
}

/* Responsive pour le profil */
@media (max-width: 1200px) {
    .desktop-nav-profile {
        padding: 12px 20px;
        gap: 12px;
    }
    
    .desktop-nav-profile-name {
        max-width: 120px;
        font-size: 16px;
    }
    
    .desktop-nav-profile-photo {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 1024px) {
    .desktop-nav-profile-name {
        display: none;
    }
    
    .desktop-nav-profile {
        padding: 2px;
    }
    
    .desktop-nav-profile-photo {
        width: 40px;
        height: 40px;
    }
}

/* Masquer la navigation desktop sur mobile */
@media (max-width: 768px) {
    .desktop-nav-specific {
        display: none !important;
    }
}
