.message-container{
    bottom: 0px;
    right: 0px;
}

#message-container-conference{
    position: relative;
    width: 450px;
}

#message-container-tdb{
    position: relative;
    /* margin-top: 19px; */
    box-shadow: none;
}

.message-destinataires, .message-convers{
    height: inherit;
    padding-bottom: 12px; /* Chrome: l'ascensseur n'est pas en bas */
}

.chat-ul{
    padding: 0px;

    overflow-x: hidden;
    overflow-y: auto;
    height: calc(100% - 22px);
}

.chat-li{
    margin-top: 7px;
    padding-top: 12px;
    min-height: 44px;

    width: 277px;

    list-style: none;
    display: flex;
    position: relative;
}

.chat-li:nth-child(n+3){
    background: linear-gradient(to bottom, #CCCCCC 2px, transparent 0);
}

.chat-carte{
    float: right;
    position: absolute;
    right: -2px;
    width: 29px;
    height: 30px;
    top: 12px;
}

.message-contenu{
    padding-top: 9px;
    padding-left: 22px;
    padding-right: 22px;

    background-color: #fffffff5;
    border-radius: 0px;

    color: #4D4D4D;

    overflow-y: hidden;
    overflow-x: hidden;
}

.message-carte{
    right: 24px !important;
}

#message-destinataires-conference, #message-destinataires-conversation{
    display: none;
}

#message-divPrincipaleTitre-tdb{
    display: none;
}

.chat-avatar{
    width: 30px;
    height: 30px;
    text-align: center;
}

.chat-avatar-conference, .chat-avatar-conversation{
    display: none; /* On n'affiche pas les avatars ici */
}

.chat-avatarImg{
    margin-top: auto;
    
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 1000px;
    object-fit: cover;
}

.chat-avatar-enAttente {
    position: relative;
    right: -20px;
    top: -40px;
}

.chat-pseudo{
    display: none;
    line-height: 1.1;
    font-weight: bold;
}

.chat-pseudo-conference, .chat-pseudo-conversation{
    display: block !important;
}

.chat-destinataire{
    margin-left: 10px;
    /* line-height: 30px; */
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 38px;

    word-break: break-word;
}

.message-destinataires-above{
}

.message-conversTitre{
    height: 34px;
    width: 292px;
}

.message-conversTitreGauche{
    float: left;
    width: 22px;
    height: 100%;
    background-size: 100% 15px;
    margin-left: -9px;
    margin-right: 9px;
}

.message-conversTitreDroite{
    width: 24px;
    height: 100%;

    position: absolute;
    top: 0px;
    right: -5px;
}

.message-conversPseudo{
    padding-right: 58px;

    line-height: 1.2;
    /* Pour centrer le texte sur 1 ou 2 lignes */
    height: 34px;
    vertical-align: middle;
    display: table-cell;
}

#chat-divText-above{
    bottom: 0px;
    position: absolute;
    background-color:#FFFFFF;
    display: flex;
    padding-bottom: 6px;
    margin-bottom : 2px;
    width: calc(100% - 48px);
}

#chat-divText-conference, #chat-divText-conversation{
    bottom: 0px;
    position: absolute;
    background-color:#FFFFFF;
    display: flex;
    margin-bottom: 6px;

    width: calc(100% - 20px);
}

#chat-divText-conversation{
    width: calc(100% - 30px);
}

#chat-container-conference, #chat-container-conversation{
    margin-bottom: 70px;
}

.chat-container{
    font-size: 0.85em;
    overflow: auto;
}

/* => Agrandi est utilisé pour le chat dans sa version large*/
#message-convers-above{
    position: relative;
}

#message-container-above.agrandi {
    width: 80vw;
    height: 85vh;
}

#message-container-above.agrandi .message-conversTitre{
    width: 100%;
}

#message-container-above.agrandi #chats-above .chat-body{
    width: 100%;
}

#message-container-above.agrandi #chat-container-above{
    /* 110px correspond à la taille de barre d'envoi de message */
    height: calc(100% - 110px);
}

#message-container-above.agrandi #message-convers-above{
    position: relative;
    height: 100%;
}

#message-container-above.agrandi .chat-bodyMe {
    margin-left: 80px;
}
    
#message-container-above.agrandi .chat-bodyYou {
    margin-right: 50px;
}
    
#message-container-above.agrandi .onglet-contenu-above{
    position: relative;
    height: calc(100% - 37px);
    padding-bottom: 0;
}  

#message-container-above.agrandi .chat-li {
    width: 100%;
}
/* <=  Agrandi est utilisé pour le chat dans sa version large */

@media screen and (max-width: 420px) {

    #chat-container-conference{
        overflow: unset;
    }

    #chat-divText-conference{
        position: fixed;
        background-color: #00000000;
        display: flex;
    }

    .pointer.chat-envoyer{
        background-color: #FFFFFF;
    }

    #message-container-above.agrandi{
        width: 90vw;
    }

    #message-container-above.agrandi .chat-bodyYou {
        margin-right: 30px;
    }

    #message-container-above.agrandi .chat-bodyMe {
        margin-left: 50px;
    }
}

#chat-container-above{
    height: 289px;
}

.chat-message{
    display: flex;
    margin-top: 10px;
    margin-bottom: 6px;

    width: 100%;
}

.chat-time{
    color: #CCCCCC;
    font-weight: normal;
    line-height: 1.1;
    display: block;
}

.chat-body{
    margin-left: 10px;
    padding: 8px;
    width: 231px;

    background: #E8E8E8 0% 0% no-repeat padding-box;
    border-radius: 0px 10px 10px 10px;
}

.chat-body-conversation{
    width: calc(100% - 53px);
}

.chat-content-p{
    margin: 0;
}

.chat-bodyYou{
    margin-right: 12px;
}

.chat-bodyMe{
    margin-left: 50px;
    border-radius: 10px 10px 0px 10px;
    margin-right: 3px;
}

#chatsToCopy {
    display: none;
}

.chat-textarea{
    /* width: 208px; */
    padding: 6px;
    width: calc(100%);
    height: 76px;
    border-radius: 10px;
    border: 1px solid #CCCCCC;
    color: #4D4D4D;
    font-size: 0.85em;
    display: inline-block;
}

#chat-textarea-conversation{
    width: inherit; /* Toute la largeur */
}

.chat-envoyer{
    margin: auto;
    width: 58px;
    height: 30px;
    line-height: 30px;
    margin: auto;
    border-radius: 10px;
    border: 1px solid #CCCCCC;
    text-align: center;
    color: #4D4D4D;
    display: inline-block;
    margin-left: 5px;
}

#emoji-chat {
    /*position: absolute;*/
    /*bottom: 0px;*/
    /*left: 5px;*/
    /*right: 5px;*/
    display: none;
    height: 80px;;
    background-color: white;
    border-style: groove;
    border: 1;
}