@font-face {
	font-family: "IBM";
	src: url("IBMPlexSans-Regular.ttf") format("truetype");
}

/* Bouton flottant */
#chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background-color: #FFAC4D;
    color: #F6F8F9;
    border: none;
    padding: 14px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    animation: pulse 1.5s infinite;
    z-index: 1000;
    border-radius: 50%;
    box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, .3), inset 0px 1px 1px 1px #FFAC4D, inset 0px -1px 1px 1px rgba(204,198,197,.5)
}
#chat-btn:before {
    color:#e9e6e4;
    content: "";
    display: block;
    font-size: 2rem;
    height: 30px;
    text-decoration: none;
    text-shadow: 0px -1px 1px #bdb5b4, 1px 1px 1px white;
    position: absolute;
    width: 30px;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}


#chat-container {
    font-family: "IBM", sans-serif;
    position: fixed;
    bottom: 120px;
    right: 20px;
    width: 90%;
    max-width: 580px;
    max-height: 750px;
    height: calc(100vh - 130px);
    background: #F6F8F9;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    color: #212121;
    transition: all 0.3s ease, color 0.3s ease;
    z-index: 1000;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    margin: 0;
}

#chat-header {
    font-family: "IBM", sans-serif;
    background: #5C72A0;
    color: #F6F8F9;
    padding: 13px;
    text-align: center;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
    font-size: 1.5rem;
    line-height: 1.5rem;
}

#chat-messages {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    overflow-y: auto;
    height: calc(100% - 130px);
    background-color: #F6F8F9;
}

#chat-input-container {
    position: relative;
    height: 76px;
    width: 100%;
    border-top: 1px solid #ccc;
    background-color: #F6F8F9;
    border-radius: 0 0 10px 10px;
}

#chat-input-container textarea#chat-input {
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 26px;
    height: calc(76px - 16px);
    padding: 8px;
    outline: none;
    resize: none;
    border: none !important;
    color: #212121 !important;
    background-color: transparent !important;
    font-family: "IBM", sans-serif;
    font-size: 1rem;
}

#chat-send {
    position: absolute;
    background: #7f87b8;;
    color: #F6F8F9;
    border: none;
    padding: 0 8px;
    border-radius: 0 0 10px 0;
    cursor: pointer;
    height: 76px;
    right: 0;
    top: 0;
}

.user-message, .bot-message {
    padding: 8px;
    margin: 5px;
    border-radius: 10px;
    max-width: 80%;
    animation: fadeIn 0.3s ease-in-out;
}
.user-message {
    align-self: flex-end;
    background: #5C72AD;
    color: #F6F8F9;
}
.bot-message {
    align-self: flex-start;
    background: #222945;
    color: #F6F8F9;
}

@keyframes k2000 {
    0% { content: ""; }
    33% { content: "."; }
    66% { content: ".."; }
    100% { content: "..."; }
}
.typing::after {
    content: "";
    display: inline-block;
    animation: k2000 3s infinite;
}
.typing {
    display: inline-block;
    animation: blink 3s infinite;
}

#chat-container a {
    color: #FFAC4D;
    text-decoration: none;
}
#chat-container a:hover {
    color: #F6F8F9 !important;
}

#chat-tooltip {
    position: fixed;
    bottom: 110px;
    right: 30px;
    background: #F6F8F9;
    color: #212121;
    padding: 16px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 390px;
    font-size: 1rem;
    line-height: 1.4;
    z-index: 1001;
    display: none;
}

#chat-tooltip::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #F6F8F9 transparent transparent transparent;
}

#chat-tooltip-close {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    color: #888;
}

#chat-tooltip-close:hover {
    color: #000;
}

#chat-infos {
    font-size: 1rem;
    font-weight: 200;
    color: #C6C8C9;
    margin-top: 8px;
    display: block;
}