.testament-chat-widget { position: fixed; bottom: 20px; right: 20px; width: 350px; max-height: 500px; background: white; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; z-index: 10000; overflow: hidden; }

/* MODIFIÉ : Header gris foncé */
.chat-header { background: linear-gradient(135deg, #495057 0%, #343A40 100%); color: white; padding: 15px; display: flex; justify-content: space-between; align-items: center; }

.chat-header h3 { margin: 0; font-size: 16px; font-weight: 600; color: white; }
.chat-toggle { background: rgba(255,255,255,0.2); border: none; color: white; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.chat-messages { height: 300px; overflow-y: auto; padding: 15px; background: #f8f9fa; }
.message { margin-bottom: 15px; clear: both; }
.user-message { text-align: right; }
.bot-message { text-align: left; }
.bubble { display: inline-block; max-width: 80%; padding: 10px 15px; border-radius: 18px; word-wrap: break-word; }
.user-bubble { background: #444444; color: white; }
.bot-bubble { background: white; color: #333; border: 1px solid #e9ecef; }
.message-meta, .message-time { font-size: 11px; color: #6c757d; margin-top: 5px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 10px; font-weight: bold; margin-left: 5px; }
.cache-badge { background: #28a745; color: white; }
.ai-badge { background: #6f42c1; color: white; }
/* MODIFIÉ : Message de bienvenue avec bordure rouge */
.welcome-message { background: linear-gradient(135deg, #F8F9FA 0%, #F1F3F4 100%); padding: 15px; border-radius: 10px; border-left: 4px solid #E53E3E; }
.welcome-message p { margin: 0 0 10px 0; font-size: 14px; }
.chat-input-container { padding: 15px; background: white; display: flex; border-top: 1px solid #e9ecef; }
#chat-input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 20px; outline: none; font-size: 14px; }
#chat-input:focus { border-color: #667eea; box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2); }

/* MODIFIÉ : Bouton rouge avec dégradé et hover effect */
#send-button { background: linear-gradient(135deg, #E53E3E 0%, #C53030 100%); color: white; border: none; padding: 10px 15px; border-radius: 20px; margin-left: 10px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.3s ease; }
#send-button:hover { background: linear-gradient(135deg, #C53030 0%, #9B2C2C 100%); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3); }

.chat-status { padding: 8px 15px; background: #f8f9fa; text-align: center; font-size: 12px; color: #6c757d; border-top: 1px solid #e9ecef; }
.typing-indicator { display: flex; align-items: center; justify-content: center; gap: 10px; }
.typing-dots { display: flex; gap: 3px; }
.typing-dot { width: 6px; height: 6px; border-radius: 50%; background: #667eea; animation: typing 1.4s infinite both; }
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
.error-message { background: #f8d7da; color: #721c24; padding: 10px; border-radius: 5px; border: 1px solid #f5c6cb; }
@media (max-width: 768px) { .testament-chat-widget { width: 90vw; right: 5vw; bottom: 10px; } }