       
            /* ============================================
               STYLES MODERNES POUR LA LISTE DES CHATS
               ============================================ */
            
            /* Container principal */
            .chat-list-wrapper {
                display: flex;
                flex-direction: column;
                height: 100%;
                background: #f8f9fc;
                border-radius: 16px;
                overflow: hidden;
            }
            
            /* En-tête */
            .chat-list-header {
                background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
                padding: 16px 20px;
                border-bottom: 1px solid rgba(0,0,0,0.06);
                backdrop-filter: blur(10px);
                position: sticky;
                top: 0;
                z-index: 50;
                flex-shrink: 0;
            }
            
            .chat-list-title {
                font-size: 1.25rem;
                font-weight: 700;
                background: linear-gradient(135deg, #2c7be5, #6c5ce7);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
            }
            
            .chat-list-title i {
                -webkit-text-fill-color: #2c7be5;
                margin-right: 10px;
            }
            
            /* Barre de recherche */
            .chat-search-wrapper {
                position: relative;
                flex: 1;
                max-width: 280px;
            }
            
            .chat-search-wrapper .search-icon {
                position: absolute;
                left: 14px;
                top: 50%;
                transform: translateY(-50%);
                color: #a0aec0;
                font-size: 0.85rem;
                transition: color 0.3s;
                pointer-events: none;
            }
            
            .chat-search-wrapper .search-input {
                width: 100%;
                padding: 8px 16px 8px 38px;
                border: 2px solid transparent;
                border-radius: 24px;
                background: #f1f4f9;
                font-size: 0.875rem;
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                outline: none;
            }
            
            .chat-search-wrapper .search-input:focus {
                background: #ffffff;
                border-color: #2c7be5;
                box-shadow: 0 0 0 4px rgba(44, 123, 229, 0.12);
            }
            
            .chat-search-wrapper .search-input:focus + .search-icon {
                color: #2c7be5;
            }
            
            /* Boutons d'action */
            .chat-action-btn {
                width: 38px;
                height: 38px;
                border-radius: 50%;
                border: none;
                background: #f1f4f9;
                color: #4a5568;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                cursor: pointer;
                position: relative;
                font-size: 0.9rem;
            }
            
            .chat-action-btn:hover {
                background: #2c7be5;
                color: #ffffff;
                transform: scale(1.05);
                box-shadow: 0 4px 12px rgba(44, 123, 229, 0.3);
            }
            
            .chat-action-btn:active {
                transform: scale(0.95);
            }
            
            .chat-action-btn.primary {
                background: linear-gradient(135deg, #2c7be5, #6c5ce7);
                color: #fff;
            }
            
            .chat-action-btn.primary:hover {
                box-shadow: 0 4px 16px rgba(44, 123, 229, 0.4);
                transform: scale(1.05);
            }
            
            /* Dropdown menu */
            .chat-dropdown-menu {
                border: none;
                border-radius: 12px;
                padding: 8px;
                box-shadow: 0 10px 40px rgba(0,0,0,0.12);
                min-width: 200px;
                animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            }
            
            .chat-dropdown-menu .dropdown-item {
                border-radius: 8px;
                padding: 8px 14px;
                font-size: 0.875rem;
                transition: all 0.2s;
                color: #4a5568;
            }
            
            .chat-dropdown-menu .dropdown-item:hover {
                background: #f1f4f9;
                transform: translateX(4px);
            }
            
            .chat-dropdown-menu .dropdown-item i {
                width: 20px;
                text-align: center;
            }
            
            .chat-dropdown-menu .dropdown-divider {
                margin: 6px 0;
                border-color: #edf2f7;
            }
            
            @keyframes slideDown {
                from {
                    opacity: 0;
                    transform: translateY(-10px) scale(0.98);
                }
                to {
                    opacity: 1;
                    transform: translateY(0) scale(1);
                }
            }
            
            /* Container des messages */
            .chat-messages-list {
                flex: 1;
                overflow-y: auto;
                padding: 8px 12px;
                scroll-behavior: smooth;
            }
            
            .chat-messages-list::-webkit-scrollbar {
                width: 4px;
            }
            
            .chat-messages-list::-webkit-scrollbar-track {
                background: transparent;
            }
            
            .chat-messages-list::-webkit-scrollbar-thumb {
                background: #cbd5e1;
                border-radius: 10px;
            }
            
            .chat-messages-list::-webkit-scrollbar-thumb:hover {
                background: #94a3b8;
            }
            
            /* Élément de chat */
            .chat-item {
                display: flex;
                align-items: center;
                padding: 10px 14px;
                border-radius: 14px;
                cursor: pointer;
                transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
                margin-bottom: 2px;
                position: relative;
                background: transparent;
                border: none;
                width: 100%;
                text-align: left;
            }
            
            .chat-item:hover {
                background: rgba(44, 123, 229, 0.06);
                transform: translateX(4px);
            }
            
            .chat-item:active {
                transform: scale(0.98);
            }
            
            .chat-item.unread {
                background: linear-gradient(135deg, rgba(44, 123, 229, 0.08), rgba(108, 92, 231, 0.05));
                border-left: 3px solid #2c7be5;
            }
            
            .chat-item.unread:hover {
                background: linear-gradient(135deg, rgba(44, 123, 229, 0.14), rgba(108, 92, 231, 0.08));
            }
            
            /* Avatar */
            .chat-avatar-wrapper {
                position: relative;
                flex-shrink: 0;
                margin-right: 14px;
            }
            
            .chat-avatar {
                width: 48px;
                height: 48px;
                border-radius: 50%;
                object-fit: cover;
                border: 2.5px solid #ffffff;
                box-shadow: 0 2px 8px rgba(0,0,0,0.08);
                transition: all 0.3s;
            }
            
            .chat-item:hover .chat-avatar {
                transform: scale(1.02);
            }
            
            .chat-avatar-online {
                border-color: #22c55e;
            }
            
            .chat-online-dot {
                position: absolute;
                bottom: 0;
                right: 0;
                width: 13px;
                height: 13px;
                background: #22c55e;
                border-radius: 50%;
                border: 2.5px solid #ffffff;
                animation: pulse-dot 2s ease-in-out infinite;
            }
            
            .chat-online-dot.offline {
                background: #94a3b8;
                animation: none;
            }
            
            @keyframes pulse-dot {
                0%, 100% { transform: scale(1); opacity: 1; }
                50% { transform: scale(1.15); opacity: 0.8; }
            }
            
            /* Contenu du chat */
            .chat-content {
                flex: 1;
                min-width: 0;
            }
            
            .chat-content-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin-bottom: 2px;
            }
            
            .chat-name {
                font-size: 0.95rem;
                font-weight: 600;
                color: #1a202c;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                max-width: 160px;
            }
            
            .chat-item.unread .chat-name {
                color: #1a202c;
                font-weight: 700;
            }
            
            .chat-time {
                font-size: 0.7rem;
                color: #a0aec0;
                white-space: nowrap;
                flex-shrink: 0;
                margin-left: 8px;
                font-weight: 500;
            }
            
            .chat-preview-wrapper {
                display: flex;
                align-items: center;
                gap: 8px;
            }
            
            .chat-preview {
                font-size: 0.82rem;
                color: #718096;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                flex: 1;
                min-width: 0;
            }
            
            .chat-item.unread .chat-preview {
                color: #2d3748;
                font-weight: 500;
            }
            
            .chat-preview i {
                color: #2c7be5;
                margin-right: 4px;
                width: 16px;
                text-align: center;
            }
            
            /* Badge non lu */
            .chat-unread-badge {
                background: linear-gradient(135deg, #2c7be5, #6c5ce7);
                color: #ffffff;
                font-size: 0.6rem;
                font-weight: 700;
                padding: 2px 10px;
                border-radius: 20px;
                min-width: 20px;
                text-align: center;
                flex-shrink: 0;
                animation: badgePulse 2s ease-in-out infinite;
                letter-spacing: 0.3px;
                box-shadow: 0 2px 8px rgba(44, 123, 229, 0.3);
            }
            
            @keyframes badgePulse {
                0%, 100% { transform: scale(1); }
                50% { transform: scale(1.05); }
            }
            
            /* Bouton supprimer (hover) */
            .chat-delete-btn {
                opacity: 0;
                transform: scale(0.8);
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                background: none;
                border: none;
                color: #a0aec0;
                padding: 4px 8px;
                border-radius: 8px;
                cursor: pointer;
                font-size: 0.8rem;
            }
            
            .chat-item:hover .chat-delete-btn {
                opacity: 1;
                transform: scale(1);
            }
            
            .chat-delete-btn:hover {
                color: #ef4444;
                background: rgba(239, 68, 68, 0.1);
            }
            
            /* Message vide */
            .empty-state {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding: 60px 20px;
                text-align: center;
                height: 100%;
            }
            
            .empty-state-icon {
                font-size: 4rem;
                background: linear-gradient(135deg, #e2e8f0, #edf2f7);
                padding: 30px;
                border-radius: 50%;
                color: #a0aec0;
                margin-bottom: 20px;
                transition: all 0.3s;
            }
            
            .empty-state:hover .empty-state-icon {
                transform: scale(1.05);
                background: linear-gradient(135deg, #edf2f7, #e2e8f0);
            }
            
            .empty-state-title {
                font-size: 1.1rem;
                font-weight: 600;
                color: #2d3748;
                margin-bottom: 8px;
            }
            
            .empty-state-subtitle {
                font-size: 0.9rem;
                color: #718096;
                margin-bottom: 20px;
                max-width: 300px;
            }
            
            .empty-state-btn {
                padding: 10px 28px;
                border-radius: 24px;
                border: none;
                background: linear-gradient(135deg, #2c7be5, #6c5ce7);
                color: #fff;
                font-weight: 600;
                font-size: 0.9rem;
                transition: all 0.3s;
                cursor: pointer;
            }
            
            .empty-state-btn:hover {
                transform: translateY(-2px);
                box-shadow: 0 8px 24px rgba(44, 123, 229, 0.35);
            }
            
            /* Modal Liste Noire */
            .chat-block-modal {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0,0,0,0.4);
                backdrop-filter: blur(8px);
                z-index: 9999;
                display: none;
                align-items: center;
                justify-content: center;
                animation: fadeIn 0.3s ease;
            }
            
            .chat-block-modal.active {
                display: flex;
            }
            
            .chat-block-modal-content {
                background: #ffffff;
                border-radius: 20px;
                width: 440px;
                max-width: 92vw;
                max-height: 80vh;
                overflow: hidden;
                box-shadow: 0 24px 80px rgba(0,0,0,0.25);
                animation: modalSlide 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            }
            
            .chat-block-modal-header {
                background: linear-gradient(135deg, #2c7be5, #6c5ce7);
                padding: 18px 24px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                color: #fff;
            }
            
            .chat-block-modal-header h5 {
                margin: 0;
                font-weight: 600;
                font-size: 1.05rem;
            }
            
            .chat-block-modal-header h5 i {
                margin-right: 10px;
            }
            
            .chat-block-modal-close {
                width: 32px;
                height: 32px;
                border-radius: 50%;
                border: none;
                background: rgba(255,255,255,0.2);
                color: #fff;
                cursor: pointer;
                transition: all 0.3s;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 1rem;
            }
            
            .chat-block-modal-close:hover {
                background: rgba(255,255,255,0.3);
                transform: rotate(90deg);
            }
            
            .chat-block-modal-body {
                padding: 20px 24px;
                max-height: 400px;
                overflow-y: auto;
            }
            
            @keyframes fadeIn {
                from { opacity: 0; }
                to { opacity: 1; }
            }
            
            @keyframes modalSlide {
                from {
                    opacity: 0;
                    transform: translateY(-30px) scale(0.95);
                }
                to {
                    opacity: 1;
                    transform: translateY(0) scale(1);
                }
            }
            
            /* Responsive */
            @media (max-width: 768px) {
                .chat-list-header {
                    padding: 12px 14px;
                }
                
                .chat-search-wrapper {
                    max-width: 180px;
                }
                
                .chat-name {
                    max-width: 100px;
                }
                
                .chat-avatar {
                    width: 40px;
                    height: 40px;
                }
                
                .chat-item {
                    padding: 8px 12px;
                }
                
                .chat-block-modal-content {
                    width: 95vw;
                    max-height: 90vh;
                }
            }
            
            @media (max-width: 480px) {
                .chat-search-wrapper {
                    max-width: 130px;
                }
                
                .chat-name {
                    max-width: 70px;
                    font-size: 0.85rem;
                }
                
                .chat-preview {
                    font-size: 0.75rem;
                }
                
                .chat-avatar {
                    width: 36px;
                    height: 36px;
                }
                
                .chat-avatar-wrapper {
                    margin-right: 10px;
                }
                
                .chat-list-title {
                    font-size: 1rem;
                }
            }
     
