/* =========================================
   MLFC — DESIGN BLANC / NOIR
   ========================================= */

#mlfc-chat {
    box-sizing: border-box;

    width: min(760px, 100%);

    margin: 30px auto;

    padding: 30px;

    background: #ffffff;

    color: #000000;

    border: 1px solid #e5e5e5;

    border-radius: 24px;

    font-family: Arial, Helvetica, sans-serif;

    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.10);
}


/* Tout est contenu dans le chat */

#mlfc-chat * {
    box-sizing: border-box;
}


/* =========================================
   LOGO
   ========================================= */

.mlfc-brand {

    display: flex;

    justify-content: center;

    align-items: center;

    margin-bottom: 38px;

    padding-top: 5px;
}


.mlfc-logo-image {

    display: block;

    width: 150px;

    height: auto;

    max-width: 60%;

    object-fit: contain;
}


/* =========================================
   ZONE DES MESSAGES
   ========================================= */

.mlfc-messages {

    min-height: 330px;

    max-height: 520px;

    overflow-y: auto;

    padding: 5px 2px 28px;
}


/* =========================================
   BULLES
   ========================================= */

.mlfc-message {

    width: fit-content;

    max-width: 85%;

    padding: 13px 16px;

    margin: 10px 0;

    border-radius: 17px;

    line-height: 1.5;

    font-size: 15px;

    white-space: pre-wrap;
}


/* Message MLFC */

.mlfc-message-ai {

    background: #f4f4f4;

    color: #111111;

    border: 1px solid #e6e6e6;
}


/* Message utilisateur */

.mlfc-message-user {

    margin-left: auto;

    background: #000000;

    color: #ffffff;

    border: 1px solid #000000;
}


/* =========================================
   BARRE DE SAISIE
   ========================================= */

.mlfc-form {

    display: flex;

    gap: 10px;

    border: 1px solid #dcdcdc;

    background: #ffffff;

    border-radius: 18px;

    padding: 7px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}


/* Champ texte */

.mlfc-input {

    flex: 1;

    min-width: 0;

    border: 0 !important;

    outline: 0 !important;

    background: transparent !important;

    color: #000000 !important;

    padding: 12px 13px !important;

    font-size: 15px !important;

    box-shadow: none !important;
}


.mlfc-input::placeholder {

    color: #999999;
}


/* =========================================
   BOUTON ENVOYER
   ========================================= */

.mlfc-send {

    width: 46px;

    height: 46px;

    border: 0;

    border-radius: 13px;

    background: #000000;

    color: #ffffff;

    font-size: 20px;

    cursor: pointer;

    transition: all 0.2s ease;
}


.mlfc-send:hover {

    background: #222222;

    transform: translateY(-1px);
}


.mlfc-send:disabled {

    opacity: 0.45;

    cursor: wait;

    transform: none;
}


/* =========================================
   ERREUR
   ========================================= */

.mlfc-error {

    display: none;

    color: #d60000;

    font-size: 12px;

    margin-top: 10px;
}


/* =========================================
   SCROLLBAR
   ========================================= */

.mlfc-messages::-webkit-scrollbar {

    width: 6px;
}


.mlfc-messages::-webkit-scrollbar-track {

    background: transparent;
}


.mlfc-messages::-webkit-scrollbar-thumb {

    background: #cccccc;

    border-radius: 10px;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    #mlfc-chat {

        padding: 20px;

        border-radius: 18px;

        margin: 15px auto;
    }


    .mlfc-brand {

        margin-bottom: 30px;
    }


    .mlfc-logo-image {

        width: 125px;

        max-width: 55%;
    }


    .mlfc-messages {

        min-height: 280px;

        padding-bottom: 22px;
    }


    .mlfc-message {

        max-width: 92%;
    }

}