* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        

        :root {
            --chat-primary: #F3920B;
            --chat-primary-hover: #d97f00;
            --chat-primary-light: rgba(243, 146, 11, 0.1);
            --chat-bg: #ffffff;
            --chat-border: #e0e0e0;
            --chat-shadow: 0 5px 25px rgba(0,0,0,0.15);
            --user-bg: #2C2F35;
            --assistant-bg: #F3920B;
            --lact-beige: #d4a574;
        }

        /* Bouton flottant */
        .chat-button {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--chat-primary) 0%, var(--chat-primary-hover) 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(243, 146, 11, 0.4);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000;
            border: none;
            color: white;
        }

        .chat-button:hover {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 6px 30px rgba(243, 146, 11, 0.6);
        }

        .chat-button.active {
            transform: scale(0.9);
        }

        /* Interface du chatbot */
        .chatbot-wrapper {
            position: fixed;
            bottom: 100px;
            right: 30px;
            width: 400px;
            height: 600px;
            max-height: calc(100vh - 130px);
            background: var(--chat-bg);
            border-radius: 20px;
            box-shadow: var(--chat-shadow);
            display: none;
            flex-direction: column;
            z-index: 999999;
            overflow: hidden;
        }

        .chatbot-wrapper.show {
            display: flex;
            animation: slideUp 0.3s ease-out;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .chatbot-header {
            background: var(--chat-bg);
            padding: 20px;
            border-bottom: 1px solid var(--chat-border);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .bot-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .bot-avatar {
            width: 40px;
            height: 40px;
            background: var(--chat-primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: white;
        }

        .bot-details h3 {
            font-size: 16px;
            margin-bottom: 2px;
        }

        .bot-status {
            font-size: 12px;
            color: #666;
        }

        .status-dot {
            display: inline-block;
            width: 6px;
            height: 6px;
            background: #22c55e;
            border-radius: 50%;
            margin-right: 4px;
        }

        .close-chat {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: all 0.2s;
            color: #666;
        }

        .close-chat:hover {
            background: #f5f5f5;
        }

        /* Zone de messages */
        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            background: #fafafa;
            scroll-behavior: smooth;
        }

        .chat-messages::-webkit-scrollbar {
            width: 6px;
        }

        .chat-messages::-webkit-scrollbar-track {
            background: #f5f5f5;
        }

        .chat-messages::-webkit-scrollbar-thumb {
            background: #ddd;
            border-radius: 3px;
        }

        .message {
            margin-bottom: 16px;
            display: flex;
            align-items: flex-start;
            gap: 10px;
            animation: messageIn 0.3s ease-out;
        }

        .message.user {
            flex-direction: row-reverse;
        }

        .message-avatar {
            width: 32px;
            height: 32px;
            background: var(--chat-border);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #666;
            flex-shrink: 0;
        }

        .message.user .message-avatar {
            background: var(--user-bg);
            color: white;
        }

        .message.assistant .message-avatar {
            background: var(--assistant-bg);
            color: white;
        }

        .message-content {
            max-width: 80%;
            padding: 12px 16px;
            background: white;
            border-radius: 18px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
            word-wrap: break-word;
        }

        .message.user .message-content {
            background: var(--user-bg);
            color: white;
        }

        .message.assistant .message-content {
            background: white;
            color: #333;
        }

        .message-content a {
            color: var(--chat-primary);
            text-decoration: underline;
        }

        .message.user .message-content a {
            color: #fff;
        }

        .message-content pre {
            background: #f4f4f4;
            padding: 8px;
            border-radius: 4px;
            overflow-x: auto;
            margin: 8px 0;
        }

        .message.user .message-content pre {
            background: rgba(255,255,255,0.1);
        }

        /* Actions rapides */
        .quick-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
        }

        .quick-action-btn {
            padding: 8px 16px;
            border: 1px solid var(--chat-border);
            border-radius: 20px;
            background: #979797;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
            font-family: inherit;
        }

        .quick-action-btn:hover {
            background: var(--chat-primary);
            color: white;
            border-color: var(--chat-primary);
        }

        /* Indicateur de frappe */
        .typing-indicator {
            display: none;
            margin-bottom: 16px;
            align-items: center;
            gap: 10px;
        }

        .typing-indicator.show {
            display: flex;
        }

        .typing-bubble {
            padding: 12px 16px;
            background: white;
            border-radius: 18px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .typing-dot {
            width: 8px;
            height: 8px;
            background: #999;
            border-radius: 50%;
            animation: typingAnimation 1.4s infinite;
        }

        .typing-dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dot:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes typingAnimation {
            0%, 60%, 100% {
                opacity: 0.3;
                transform: translateY(0);
            }
            30% {
                opacity: 1;
                transform: translateY(-10px);
            }
        }

        /* Zone de saisie */
        .chat-input-area {
            padding: 20px;
            border-top: 1px solid var(--chat-border);
            background: var(--chat-bg);
        }

        .input-container {
            display: flex;
            gap: 12px;
            align-items: flex-end;
        }

        .chat-input-wrapper {
            flex: 1;
            position: relative;
        }

        .chat-input {
            width: 100%;
            min-height: 44px;
            max-height: 120px;
            padding: 12px 20px;
            border: 1px solid var(--chat-border);
            border-radius: 25px;
            font-size: 14px;
            font-family: inherit;
            outline: none;
            resize: none;
            transition: all 0.2s;
            overflow-y: auto;
        }

        .chat-input:focus {
            border-color: var(--chat-primary);
            box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
        }

        .send-button {
            background: var(--chat-primary);
            border: none;
            border-radius: 50%;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        .send-button:hover:not(:disabled) {
            background: var(--chat-primary-hover);
            transform: scale(1.05);
        }

        .send-button:disabled {
            background: #cccccc;
            cursor: not-allowed;
        }

        /* Message d'erreur */
        .error-message {
            background: #fee;
            border: 1px solid #fcc;
            color: #c00;
            padding: 10px;
            border-radius: 8px;
            margin: 10px 0;
            font-size: 13px;
        }

        /* Loader */
        .loader {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid var(--chat-primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .icon {
            width: 24px;
            height: 24px;
        }

        .icon-small {
            width: 20px;
            height: 20px;
        }

        @keyframes messageIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .chatbot-wrapper {
                width: 100%;
                height: 100%;
                right: 0;
                bottom: 0;
                max-height: 100%;
                border-radius: 0;
            }

            .chat-button {
                right: 20px;
                bottom: 20px;
            }
        }

        /* Mode sombre optionnel */
        @media (prefers-color-scheme: dark) {
            :root {
                --chat-bg: #1a1a1a;
                --chat-border: #333;
                --chat-shadow: 0 5px 25px rgba(0,0,0,0.5);
            }

            .chat-messages {
                background: #0a0a0a;
            }

            .message-content {
                background: #2a2a2a;
                color: #f0f0f0;
            }

            .message.assistant .message-content {
                background: #2a2a2a;
                color: #f0f0f0;
            }

            .typing-bubble {
                background: #2a2a2a;
            }

            .chat-input {
                background: #2a2a2a;
                color: #f0f0f0;
                border-color: #444;
            }

            .quick-action-btn {
                background: #2a2a2a;
                color: #f0f0f0;
                border-color: #444;
            }
        }

        /* Markdown support */
        .message-content h1,
        .message-content h2,
        .message-content h3,
        .message-content h4,
        .message-content h5,
        .message-content h6 {
            margin-top: 16px;
            margin-bottom: 8px;
        }

        .message-content ul,
        .message-content ol {
            margin-left: 20px;
            margin-bottom: 8px;
        }

        .message-content code {
            background: rgba(0,0,0,0.05);
            padding: 2px 4px;
            border-radius: 3px;
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
        }

        .message-content blockquote {
            border-left: 4px solid var(--chat-primary);
            padding-left: 16px;
            margin: 8px 0;
            color: #666;
        }