/* ===========================
   MENU DÉROULANT UTILISATEUR
   Design moderne et élégant
   =========================== */

/* Bouton de connexion */
.login-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.login-icon:hover {
    background: rgba(22, 188, 131, 0.1);
    transform: scale(1.05);
}

.login-icon i {
    font-size: 1.3rem;
    color: #1f2937;
}

/* Utilisateur connecté */
.login-icon.logged-in i {
    color: #16BC83;
    font-size: 1.5rem;
}

/* Container du dropdown */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    overflow: hidden;
}

/* Dropdown ouvert */
.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header du dropdown */
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #16BC83 0%, #14A573 100%);
    color: white;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    font-size: 1.8rem;
    color: white;
}

.user-info-dropdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-info-dropdown strong {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.user-info-dropdown span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Divider */
.user-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0;
}

/* Liste des items */
.user-dropdown-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.user-dropdown-list li {
    margin: 0;
}

.dropdown-divider-item {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

/* Items du dropdown */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #1f2937;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: #f9fafb;
    color: #16BC83;
}

.dropdown-item i {
    width: 20px;
    font-size: 1.1rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

.dropdown-item:hover i {
    color: #16BC83;
}

/* Item déconnexion (style différent) */
.logout-item {
    color: #ef4444;
}

.logout-item:hover {
    background: #fef2f2;
    color: #dc2626;
}

.logout-item i {
    color: #ef4444;
}

.logout-item:hover i {
    color: #dc2626;
}

/* Animation d'entrée */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-menu.show {
    animation: dropdownFadeIn 0.3s ease;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .user-dropdown-menu {
        right: -10px;
        min-width: 260px;
    }
    
    .user-dropdown-header {
        padding: 12px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .user-avatar i {
        font-size: 1.5rem;
    }
    
    .dropdown-item {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

/* Indicateur vert désactivé - trop visible
.login-icon.logged-in::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}
*/
