#fec-chat-toggle { background-color: #27ae60 !important; color: white !important; display: flex !important; align-items: center; justify-content: center; position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; border-radius: 50%; border: none; font-size: 30px; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 9999; }
#fec-chatbot { position: fixed; bottom: 90px; right: 20px; width: 350px; background: white; border-radius: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); z-index: 9999; overflow: hidden; font-family: sans-serif; display: flex; flex-direction: column; }
.fec-chat-header { background: #27ae60; color: white; padding: 15px; display: flex; justify-content: space-between; align-items: center; }
.fec-messages { height: 350px; overflow-y: auto; padding: 15px; background: #f9f9f9; display: flex; flex-direction: column; gap: 10px; }
.fec-message-content { background: white; padding: 10px; border-radius: 10px; border: 1px solid #eee; font-size: 14px; color: #333; }
.fec-input-area { padding: 10px; border-top: 1px solid #eee; background: white; }
#fec-upload-form input { width: 100%; margin-bottom: 8px; padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
.fec-submit-btn { width: 100%; background: #27ae60; color: white; border: none; padding: 10px; border-radius: 5px; cursor: pointer; font-weight: bold; }
#fec-report { display: none; padding: 15px; background: white; max-height: 400px; overflow-y: auto; }
            
/* Optimisations ajoutées */
.fec-messages { padding: 15px; background: #f4f7f6; flex: 1; overflow-y: auto; }
.fec-message-content { padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.4; max-width: 85%; word-wrap: break-word; }
.fec-bot-message .fec-message-content { background: #e8f5e9; border: 1px solid #c8e6c9; color: #2e7d32; }
.fec-user-message .fec-message-content { background: #27ae60; color: white; }
.fec-typing { animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* Loader pendant upload */
#fec-upload-form.loading::before { content: "Analyse en cours..."; display: block; text-align: center; color: #27ae60; font-weight: bold; margin: 10px 0; }