._chat-header_d1q85_1 {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

._avatar_d1q85_8 {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
}

._title_d1q85_14 {
    font-weight: bold;
}

._subtitle_d1q85_18 {
    font-size: 0.85rem;
    color: gray;
}
._actions_d1q85_22 {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

._expand-btn_d1q85_28,
._close-btn_d1q85_29,
._minimize-btn_d1q85_30 {
    cursor: pointer;
    background-color: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin-left: 0.5rem;
    svg {
        width: 20px;
        height: 20px;
        fill: #999;
        &:hover {
            fill: black;
        }
    }
}
._input-container_1i3vw_1 {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-top: 1px solid #eee;
}

._input-container_1i3vw_1 textarea {
    flex: 1;
    padding: 0.4rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 0.5rem;
    font-size: 1rem;
    resize: none;

    min-height: 1.4em; /* hauteur d'une ligne */
    max-height: calc(1.4em * 5); /* hauteur max de 5 lignes */
    overflow-y: auto;

    line-height: 1.4; /* important pour le calcul */
}

._input-container_1i3vw_1 textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(46, 46, 48, 0.2);
}

._input-container_1i3vw_1 button {
    padding: 0.4rem 0.8rem;
    background-color: #646cff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

._input-container_1i3vw_1 button:hover {
    background-color: #535bf2;
}
._message-container_r6g8l_1 {
    display: flex;
    margin: 8px 0;
    max-width: 100%;
}

._message-container_r6g8l_1._user_r6g8l_7 {
    justify-content: flex-end;
}

._message-container_r6g8l_1._assistant_r6g8l_11 {
    justify-content: center;

}

._message-bubble_r6g8l_16 {
    position: relative;
    max-width: 50%;
    padding: 10px ;
    border-radius: 16px;
    word-break: break-word;
    white-space: pre-wrap;
    background-color: #f0f0f0;
}

._message-container_r6g8l_1._user_r6g8l_7 ._message-bubble_r6g8l_16 {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    background-color:  #f0f0f0;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 16px;
    align-self: flex-end;
}

._message-container_r6g8l_1._assistant_r6g8l_11 ._message-bubble_r6g8l_16 {
    background-color: transparent;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 16px;
    align-self: flex-start;
    min-width: 300px;

}

._message-content_r6g8l_43 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
}

._message-timestamp_r6g8l_50 {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-align: right;
}
._message-footer_r6g8l_56 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}
._actions-buttons_r6g8l_62 {
    display: flex;
    ._copy-btn_r6g8l_64 {
        cursor: pointer;
        background-color: transparent;
        border: none;
        outline: none;
        padding: 0;
        margin-left: 0.5rem;
        svg {
            width: 20px;
            height: 20px;
            fill: #999;
            &:hover {
                fill: black;
            }
        }
    }
}
._chat-loader-bubble_1r0sa_1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 12px;
    background-color: #e5e7eb; /* gris clair */
    border-radius: 20px;
    width: fit-content;
    max-width: 200px;
    margin: 4px;
}

._dot_1r0sa_14 {
    width: 8px;
    height: 8px;
    background-color: #6b7280; /* gris foncé */
    border-radius: 50%;
    animation: _bounce_1r0sa_1 1s infinite ease-in-out;
}

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

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

@keyframes _bounce_1r0sa_1 {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}
._messages-container_4k770_1 {
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    height: 100%;
    gap: 10px;
    padding: 10px;
}
._chat-bot_fcxq9_1 {
    display: flex;
    flex-direction: column;
    
    width: 400px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    
    position: fixed;
    bottom: calc(1%);
    right: calc(1%);
    z-index: 9999;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    transition: all 0.3s;
    
    &:not(._minimized_fcxq9_19) {
        height: 500px;
    }

    &._expanded_fcxq9_23:not(._minimized_fcxq9_19) {
        width: 98%;
        height: 98%;
    }
}
