/* Conteneur principal du chatbot */
body {
    /* background-image: url('background.jpg'); 
  background-size: cover;
  background-position: center; */
    height: 100vh;
    margin: 0;
    padding: 0;
}

.partnerbotmsg {
    padding-right: 5px;
    float: left;
    width: 47px;
}

.partnerbot {
    padding-right: 5px;
    width: 47px;
}

.chatbot {
    position: fixed;
    bottom: 0;
    right: 0;
	width: 100%;
	height: 100%;
}

#chat-container {
    width: 100%;
	height:100%;
    border-radius: 10px;
    background: #fff;
    color: white;
    font-family: "Montserrat", sans-serif;
    z-index: 1000;
    transform: scaleY(1);
    transform-origin: bottom;
    transition: 0.5s ease-in-out;
    overflow: hidden;
    opacity: 1;
    box-shadow: 0px 4px 30px rgb(142 142 142 / 25%);
    line-height: 25px;
    font-size: 15px;
    background-color: #101010;
}

/* #chat-container.active { */
    /* transform: scaleY(1); */
    /* opacity: 1; */
/* } */

/* Tête du chatbot */
#chat-header {
    background: #fff;
    padding: 15px;
    font-weight: 600;
    text-align: center;
    font-size: 20px;
    text-transform: uppercase;
    color: #EE7121;
}

/* Boîte de messages */
#chat-box {
    height: 70%;
    overflow-y: auto;
    padding: 10px;
    background-color: #101010;
    margin-right: 10px;
    margin-top: 0;
    margin-bottom: 0;
}

/* Conteneur du champ de saisie et bouton d'envoi */
#chat-input-container {
    display: flex;
    padding: 0px 20px;
    background-color: #101010;
    position: relative;
}

/* Champ de texte */
#user-input {
    border: 1px solid #fff;
    background-color: transparent;
    width: 100%;
    padding: 15px;
    border-radius: 0px;
    outline: none;
    color: #fff;
}

#user-input::placeholder {
    color: #fff;
    font-family: "Montserrat", sans-serif;
}

/* Bouton d'envoi */
#send-btn {
    background-color: transparent;
    cursor: pointer;
    box-shadow: none;
    border: none;
    position: absolute;
    right: 20px;
    top: calc(50% - 12px);
}

/* Message de bienvenue */
.welcome-message {
    background-color: #fff;
    color: #000;
    font-weight: 400;
    padding: 10px 15px;
    border-radius: 10px;
    margin: 0px 30px 20px 10px;
    text-align: left;
    word-wrap: break-word;
    /* Ancien mais toujours utile */
    overflow-wrap: break-word;
    /* Standard actuel */
    word-break: break-word;
}

/* Bulles de messages */
.bot-message {
    background-color: #fff;
    color: #000;
    font-weight: 400;
    padding: 10px 15px;
    border-radius: 10px;
    margin: 0 30px 0 10px;
    text-align: left;
    word-wrap: break-word;
    /* Ancien mais toujours utile */
    overflow-wrap: break-word;
    /* Standard actuel */
    word-break: break-word;
}

.bot-message a {
    color: #F6A900 !important;
}

.user-message {
    background-color: #EE7121;
    color: #fff;
    font-weight: 400;
    padding: 10px 15px;
    border-radius: 10px;
    margin: 20px 10px 20px 30px;
    text-align: left;
}

.chatbot .icon {
    background-color: #EE7121;
    padding: 15px;
    border-radius: 50%;
    transition: 0.3s ease-in-out;
}

.chatbot .icon::before {
    content: url("icon-message.png");
    transition: 0.3s ease-in-out;
    width: 30px;
    height: 30px;
    display: block;
}

.chatbot .icon.active::before {
    content: url("icon-close.png") !important;
    animation: aparitionclose 0.5s forwards;
}

@keyframes aparitionclose {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

#chat-box::-webkit-scrollbar {
    width: 10px;
    margin-right: 10px;
}

#chat-box::-webkit-scrollbar-track {
    background: #101010;
}

#chat-box::-webkit-scrollbar-thumb {
    background: #EBEBEB;
    border-radius: 10px;
}

#chat-box::-webkit-scrollbar-thumb:hover {
    background: #EBEBEB;
}

/* Ajout des flèches personnalisées */
#chat-box::-webkit-scrollbar-button:single-button {
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 15px;
    /* Ajustez selon la taille de votre icône */
    width: 10px;
}

/* Flèche haut */
#chat-box::-webkit-scrollbar-button:single-button:vertical:decrement {
    background-image: url('icon-fleche-top-1.png');
}

/* Flèche bas */
#chat-box::-webkit-scrollbar-button:single-button:vertical:increment {
    background-image: url('icon-fleche-down-1.png');
}

.typing-indicator {
    display: flex;
    align-items: center;
    height: 20px;
    gap: 4px;
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #EE7121;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
    transform: scale(0);
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

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

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0 0 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background-color: #1c1c1c;
    border-radius: 12px;
    margin: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #EE7121 transparent;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background-color: #EE7121;
    border-radius: 10px;
}

.horizontal-scroll button,
#formContactBot button {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 30px;
    background: linear-gradient(145deg, #EE7121, #007BFF);
    color: white;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.horizontal-scroll button:hover,
#formContactBot button:hover {
    transform: scale(1.05);
    background: linear-gradient(145deg, #007BFF, #EE7121);
}