
.my-chat-container {
    width: 320px;
    min-height: 450px;
    background-color: white;
    border-radius: 50px 0px 0px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none; /* Caché au départ */
    flex-direction: column;
    position: fixed;
    bottom: 100px;
    right: 20px;
    overflow: hidden;
    z-index: 99;
}
@media (min-width: 666px) and (max-width: 950px)  {
    .my-chat-container{
        width: 320px;
        min-height: 200px;    
        bottom: 85px;
    }
    .my-chat-box{
       
        max-height: 180px !important;
    }
}

.my-chat-header {
    background-color: #28a745;
    padding: 15px;
    color: white;
    text-align: center;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    
    
}
.my-chat-header h4{
    color: #fff;
    font-size: 18px;
}

.my-chat-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f9f9f9;
    max-height: 400px;
    
}

.my-chat-input {
    display: flex;
    border-top: 1px solid #ccc;
}

#my-message-input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    font-size: 16px;
    white-space: nowrap; /* Empêche le texte de se casser sur plusieurs lignes */
    overflow: hidden; /* Cache tout débordement */
    text-overflow: ellipsis; /* Ajoute "..." si le texte est trop long */
}

#my-send-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

#my-send-btn:hover {
    background-color: #005a88;
}

/* Style du bouton pour afficher/cacher la boîte de chat */
.my-chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 10px;
    background-color: #005a88;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50px;
    height: 60px;
    width: 60px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;


    
}
.my-chat-toggle-btn:hover{
    transform: scale(1.2);
    transition: all 1.5s ease-in;
  
    cursor: pointer;

}


.my-chat-toggle-btn i {
    position: absolute;
    opacity: 0;
    right: 20px;
    transform: translateX(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .my-chat-toggle-btn i.active {
    opacity: 1;
    left: 20px;
    transform: translateY(0);
  }

.my-chat-toggle-btn:hover {
    background-color: #28a745;
}


.my-chat-message {
    padding: 10px;
    margin: 5px 0;
    border-radius: 8px;
    max-width: 80%;
}

.my-chat-message.user {
    background-color: #d1ecf1;
    color: #0c5460;
    text-align: right;
    align-self: flex-end;
}

.my-chat-message.bot {
    background-color: #f8d7da;
    color: #721c24;
    text-align: left;
    align-self: flex-start;
}



.suggested-questions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.suggested-question {
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    text-align: right;
    color: #000;
}
.suggested-question:hover {
    background-color: #e0e0e0;
}
#language-select {
    margin: 8px;
    padding: 2px;
    font-size: 16px;
    border-radius: 100px;
}
.suggested-questions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.suggested-question {
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    text-align: right;
}
.suggested-question:hover {
    background-color: #e0e0e0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #fff;
}
.close-btn i:hover {
    color: #ff0000; /* Rouge au survol pour indiquer une action de fermeture */
}


