    /* PixiBot Widget Styles */
    /* Container pour PixiBot */
    #pixibot-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
        width: 80px;
        height: 80px;
        cursor: pointer;
        background: transparent;
        border: none;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    /* Image par défaut */
    #pixibot-button img {
        width: 100%;
        height: auto;
        transition: transform 0.4s ease, filter 0.4s ease;
        transform-origin: center bottom;
    }

    /* Hover animation */
    #pixibot-button:hover img {
        transform: scale(1.12) rotate(-3deg);
        filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2)) brightness(1.1);
    }

    .chat-header {
        display: flex;
        align-items: center;
        gap: 10px;
        background: linear-gradient(135deg, #6366f1, #60a5fa);
        color: white;
        padding: 12px;
        font-weight: bold;
        font-size: 16px;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    .pixibot-head {
        width: 32px;
        /* ajuste selon la taille souhaitée */
        height: 32px;
        object-fit: contain;
        border-radius: 50%;
    }


    @keyframes pulse {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.06);
        }

        100% {
            transform: scale(1);
        }
    }

    #pixibot-button:hover {
        transform: scale(1.12) rotate(-3deg);
    }

    #pixibot-chat {
        position: fixed;
        bottom: 100px;
        right: 20px;
        width: 320px;
        max-height: 500px;
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        z-index: 9999;
        animation: slideIn 0.4s ease-out;
    }

    @keyframes slideIn {
        0% {
            transform: translateY(30px) scale(0.95);
            opacity: 0;
        }

        60% {
            transform: translateY(-10px) scale(1.02);
            opacity: 1;
        }

        100% {
            transform: translateY(0) scale(1);
        }
    }


    #pixibot-chat.hidden {
        display: none;
    }

    .chat-header {
        background: linear-gradient(135deg, #6366f1, #60a5fa);
        color: white;
        padding: 12px;
        font-weight: bold;
        font-size: 16px;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }

    .chat-body {
        flex: 1;
        padding: 16px 18px;
        overflow-y: auto;
        font-size: 15px;
        background: #f9fafb;
        display: flex;
        flex-direction: column;
        gap: 12px;
        /* ✅ espace entre chaque message */
    }

    /* Message utilisateur */
    .chat-body .user-msg {
        background: #e0f2fe;
        align-self: flex-end;
        text-align: right;
        padding: 10px 14px;
        border-radius: 16px 16px 4px 16px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }

    /* Message bot */
    .chat-body .bot-msg {
        background: #fff9db;
        align-self: flex-start;
        padding: 10px 14px;
        border-radius: 16px 16px 16px 4px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }



    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(4px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .chat-input {
        display: flex;
        border-top: 1px solid #ddd;
        background: white;
    }

    .chat-input input {
        flex: 1;
        padding: 10px;
        border: none;
        outline: none;
        border-radius: 0;
    }

    .chat-input button {
        background: #6366f1;
        color: white;
        border: none;
        padding: 0 16px;
        cursor: pointer;
        font-weight: bold;
        transition: background 0.3s;
    }

    .chat-input button:hover {
        background: #4f46e5;
    }

    .user-msg {
        animation: bounceIn 0.4s ease-out;
    }

    @keyframes bounceIn {
        0% {
            transform: scale(0.9);
            opacity: 0;
        }

        50% {
            transform: scale(1.05);
            opacity: 1;
        }

        100% {
            transform: scale(1);
        }
    }

    .maki-thinking-box {
        background: #fffde7;
        padding: 10px 14px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        width: fit-content;
        max-width: 95%;
        margin: 8px 0;
        animation: fadeIn 0.4s ease-in-out;
    }

    .maki-thinking-box img {
        width: 42px;
        height: auto;
        border-radius: 8px;
    }

    @media screen and (max-width: 480px) {
        .maki-thinking-box {
            flex-direction: column;
            text-align: center;
            align-items: center;
        }

        .maki-thinking-box img {
            width: 60px;
        }
    }