/* =====================================
           CONFIGURATION DES COULEURS
           ===================================== */
        :root {
            /* Couleurs principales de votre marque */
            --brand-cyan: #22D3EE;        /* Cyan principal */
            --brand-pink: #F472B6;        /* Rose principal */
            --brand-blue: #008ECA;        /* Bleu du logo */
            
            /* Couleurs de fond */
            --bg-header: #00F0FF;         /* Fond du header (bleu logo) */
            --bg-chat-body: #f8fafc;      /* Fond du corps du chat (gris très clair) */
            --bg-user-message: #22D3EE;   /* Fond des messages utilisateur (cyan) */
            --bg-bot-message: #ffffff;    /* Fond des messages du bot (blanc) */
            --bg-input: #ffffff;          /* Fond de la zone de saisie */
            
            /* Couleurs de texte */
            --text-header: #ffffff;       /* Texte du header (blanc) */
            --text-user: #000000;         /* Texte des messages utilisateur (noir) */
            --text-bot: #1f2937;          /* Texte des messages bot (gris foncé) */
            --text-input: #1f2937;        /* Texte de la zone de saisie */
            
            /* Couleurs des boutons */
            --btn-send: #F472B6;          /* Bouton d'envoi (rose) */
            --btn-send-hover: #ec4899;    /* Bouton d'envoi au survol (rose foncé) */
            --btn-new-chat: #22D3EE;      /* Bouton nouvelle conversation (cyan) */
            --btn-new-chat-hover: #06b6d4; /* Bouton nouvelle conversation au survol */
            
            /* Bulle flottante (icône chat fermé) */
            --bubble-bg: #008ECA;         /* Fond de la bulle (bleu logo) */
            --bubble-icon: #ffffff;       /* Icône de la bulle (blanc) */
            
            /* Bordures et ombres */
            --border-color: #e2e8f0;      /* Couleur des bordures */
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        /* =====================================
           CONTENEUR PRINCIPAL DU CHAT
           ===================================== */
        #n8n-chat {
            width: 100%;
            max-width: 400px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            background-color: var(--bg-chat-body);
        }

        /* =====================================
           HEADER (EN-TÊTE DU CHAT)
           ===================================== */
        #n8n-chat .chat-header {
            background: linear-gradient(135deg, var(--bg-header) 0%, #DB2777 100%) !important;
            color: var(--text-header) !important;
            padding: 2px 6px !important; /* Réduit la hauteur du header */
            border-bottom: 2px solid var(--brand-cyan);
            display: flex !important;
            align-items: center !important;
            gap: 2px;
        }

        /* Logo dans le header */
        #n8n-chat .chat-header::before {
            content: '';
            display: inline-block;
            width: 40px; /* Taille du logo */
            height: 40px;
            background-image: url('images/logo.png'); /* REMPLACEZ par le chemin de votre logo */
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            flex-shrink: 0;
        }

        /* Titre du header */
        #n8n-chat .chat-header .chat-title {
            font-size: 14px !important;
            font-weight: 600 !important;
            margin: 0 !important;
        }

        /* Sous-titre du header */
        #n8n-chat .chat-header .chat-subtitle {
            font-size: 8px !important;
            opacity: 0.9;
            margin: 0 !important;
        }

        /* =====================================
           CORPS DU CHAT (ZONE DES MESSAGES)
           ===================================== */
        #n8n-chat .chat-body {
            background-color: var(--bg-chat-body) !important;
            padding: 16px;
        }

        /* =====================================
           MESSAGES UTILISATEUR
           ===================================== */
        #n8n-chat .chat-message.user,
        #n8n-chat [data-role="user"] {
            background: linear-gradient(135deg, var(--bg-user-message) 0%, #00d4e6 100%) !important;
            color: var(--text-user) !important;
            border-radius: 18px 18px 4px 18px !important; /* Arrondi personnalisé */
            margin: 8px 0 !important;
            padding: 12px 16px !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            font-weight: 500;
        }

        /* =====================================
           MESSAGES DU BOT
           ===================================== */
        #n8n-chat .chat-message.bot,
        #n8n-chat .chat-message.assistant,
        #n8n-chat [data-role="assistant"] {
            background-color: var(--bg-bot-message) !important;
            color: var(--text-bot) !important;
            border-radius: 18px 18px 18px 4px !important; /* Arrondi personnalisé */
            margin: 8px 0 !important;
            padding: 12px 16px !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            border-left: 3px solid var(--brand-pink); /* Accent rose */
        }

        /* =====================================
           ZONE DE SAISIE (INPUT)
           ===================================== */
        #n8n-chat .chat-input,
        #n8n-chat input[type="text"],
        #n8n-chat textarea {
            background-color: var(--bg-input) !important;
            color: var(--text-input) !important;
            border: 2px solid var(--border-color) !important;
            border-radius: 24px !important; /* Arrondi complet */
            padding: 12px 16px !important;
            transition: border-color 0.3s ease;
        }

        #n8n-chat .chat-input:focus,
        #n8n-chat input[type="text"]:focus,
        #n8n-chat textarea:focus {
            border-color: var(--brand-cyan) !important;
            outline: none;
            box-shadow: 0 0 0 3px rgba(23, 241, 255, 0.1);
        }

        /* =====================================
           BOUTON D'ENVOI
           ===================================== */
        #n8n-chat .chat-input button,
        #n8n-chat button[type="submit"] {
            background: linear-gradient(135deg, var(--btn-send) 0%, #f43f5e 100%) !important;
            color: #ffffff !important;
            border: none !important;
            border-radius: 50% !important; /* Bouton circulaire */
            padding: 12px !important;
            width: 44px !important;
            height: 44px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(244, 114, 182, 0.3);
        }

        #n8n-chat .chat-input button:hover,
        #n8n-chat button[type="submit"]:hover {
            background: linear-gradient(135deg, var(--btn-send-hover) 0%, #e11d48 100%) !important;
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(244, 114, 182, 0.4);
        }

        /* =====================================
           BOUTON "NOUVELLE CONVERSATION"
           ===================================== */
        #n8n-chat .get-started-button,
        #n8n-chat button.new-chat {
            background: linear-gradient(135deg, var(--btn-new-chat) 0%, #06b6d4 100%) !important;
            color: #000000 !important;
            border: none !important;
            border-radius: 24px !important;
            padding: 12px 24px !important;
            font-weight: 600 !important;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(23, 241, 255, 0.3);
        }

        #n8n-chat .get-started-button:hover,
        #n8n-chat button.new-chat:hover {
            background: linear-gradient(135deg, var(--btn-new-chat-hover) 0%, #0891b2 100%) !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(23, 241, 255, 0.4);
        }

        /* =====================================
           BULLE FLOTTANTE (ICÔNE CHAT FERMÉ)
           ===================================== */
        #n8n-chat .chat-bubble,
        #n8n-chat .chat-launcher {
            background: linear-gradient(135deg, var(--bubble-bg) 0%, #006ba6 100%) !important;
            color: var(--bubble-icon) !important;
            border-radius: 50% !important;
            width: 60px !important;
            height: 60px !important;
            box-shadow: 0 4px 12px rgba(0, 142, 202, 0.4);
            transition: all 0.3s ease;
        }

        #n8n-chat .chat-bubble:hover,
        #n8n-chat .chat-launcher:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 16px rgba(0, 142, 202, 0.5);
        }

        /* =====================================
           BARRE DE DÉFILEMENT PERSONNALISÉE
           ===================================== */
        #n8n-chat ::-webkit-scrollbar {
            width: 8px;
        }

        #n8n-chat ::-webkit-scrollbar-track {
            background: var(--bg-chat-body);
        }

        #n8n-chat ::-webkit-scrollbar-thumb {
            background: var(--brand-cyan);
            border-radius: 4px;
        }

        #n8n-chat ::-webkit-scrollbar-thumb:hover {
            background: var(--btn-new-chat-hover);
        }

        /* =====================================
           FOOTER (PIED DE PAGE)
           ===================================== */
        #n8n-chat .chat-footer {
            background-color: var(--bg-chat-body) !important;
            border-top: 1px solid var(--border-color);
            padding: 8px 16px !important;
            font-size: 11px;
            color: #94a3b8;
            text-align: center;
        }

        /* =====================================
           ANIMATIONS
           ===================================== */
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        #n8n-chat .chat-message {
            animation: slideIn 0.3s ease;
        }