* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    color: #2C3775;
}

strong {
    font-weight: normal;
}

header {
    padding: 20px;
    background: #fff;
    position: fixed;
    width: 100%;
    z-index: 99999;
    transition: .3s;
    top: 0;
}

header nav ul {
    list-style: none;
}

header nav a {
    text-decoration: none;
    margin-left: 20px;
    color: #4a5568;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    color: #000;
    text-decoration: none;
}

.logo strong {
    margin-left: 10px;
}

form button {
    width: 600px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    margin-bottom: 2rem;
    display: block;
    transition: .3s;
    background: none;
    font-weight: 400;
    background-color: var(--nebulablue);
    color: #fff;
    cursor: pointer;

}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 50px;
    display: flex;
    justify-content: space-between;
}

.right-header {
    display: flex;
    align-items: center;
    height: 100%;
}

.login {
    margin-left: 150px;
    padding: 15px 30px;
    background-color: var(--nebulablue);
    color: #fff;
    border-radius: 40px;
    text-decoration: none;
}

header img {
    height: 20px;
}

.header-scrolled {
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .2);
}

.container {
    max-width: 1200px;
    margin: 10rem auto;
    padding: 20px;
}

.box {
    display: none;
}

.affect {
    display: block;
}



select,
input,
textarea {
    width: 600px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    margin-bottom: 2rem;
    display: block;
    transition: .3s;
    background: none;
    font-weight: 400;
}

label {
    margin-bottom: .5rem;
    display: block;
}

input:focus,
textarea:focus {
    border-color: var(--nebulablue);
    outline: none;
}

.custom-select {
    position: relative;
    width: 600px;
    margin-bottom: 4rem;
}

.custom-select select {
    display: none;
    /* Masquer le select natif */
}

.arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    position: relative;
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f4f7fe;
    border: 1px solid #e0e0e0;

    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.custom-options.open {
    display: block;
}

.custom-option {
    padding: 10px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

.custom-option:hover {
    background-color: #e0e0e0;
}






























#chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--nebulablue);
    color: white;
    border-radius: 20px;
    padding: 10px 12px;
    cursor: pointer;
    z-index: 1000;
    font-size: 1rem;
}

.cache {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 9;
    background: linear-gradient(to bottom, var(--nebulablue), #fff);
    border-radius: 20px;
    padding: 20px;
    transition: .8s;
    opacity: 1;
    left: 0;
    overflow: hidden;
}

.close-cache {
    border: none !important;
    cursor: pointer;
    padding: 5px 7px !important;
    border-radius: 8px;
    font-size: 1.5rem;
    transition: .3s;
    position: absolute;
    top: 0;
    right: 20px;
    bottom: 0;
    height: max-content;
    background: none !important;
    color: #fff !important;
    border-radius: 8px !important;
}

.close-cache:hover {
    background: #ffffff12 !important;
}

.cache a {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 20px;
    display: inline-block;
    margin-top: 1rem;
    background: #fff;
    border-radius: 20px;
}

.cache-content {
    transition: .8s;
    opacity: 1;
    margin-left: 0;
    margin-bottom: 0;
    margin-top: 0;
}

.cache-content i {
    margin-left: 0 !important;
}

.cache a i {
    margin-left: 20px;
}

.cache-content img {
    width: 600px;
}

.cache h3 {
    font-size: 2rem;
    font-weight: lighter;
    color: #fff;
}


.etat-wrapper {
    position: absolute;
    bottom: 20px;
    right: 0;
    width: 100%;
    padding: 0 20px;
    transition: .8s;
    opacity: 1;
    margin-left: 0;
    margin-bottom: 0;
    margin-top: 0;
}

.etat {
    display: flex;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 4px;
    padding: 10px;
    background: #fff;
    border-radius: 50px;

}

.chat-icon {
    font-size: 24px;
}

.etat i {
    padding: 10px 11px;
    background: #00b090;
    color: #fff;
    border-radius: 50%;
    margin-right: 20px;
}

#chat-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    max-width: 400px;
    height: 600px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
    display: flex;
    flex-direction: column;
    z-index: 999;
    transition: .8s;
    opacity: 1;

}

.head-ai {
    text-align: center;
    padding: 20px 30px;
    background: var(--nebulablue);
    color: #fff;
    border-radius: 20px 20px 0px 0;
    display: flex;
    align-items: center;
}

.head-ai h5 {
    margin-left: 10px;
}

.chat-header {
    padding: 10px;
    font-size: 12px;
    color: #555;
    text-align: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
}

#chat-date-time {
    font-size: 12px;
    margin-bottom: 5px;
}

.consigne {
    padding: 10px;
    border: 1px solid #b1b1b1;
    text-align: left;
    font-size: 9px;
}

.consigne span {
    color: #000;
}

.btn-chat-container{
    margin-left: 40px;
}
.btn-chat-container a{
    display: inline-block;
    padding: 10px;
    background: #f4f7fe;
    border-radius: 20px;
    margin-top: .5rem;
    cursor: pointer;
}


.chat-box {
    padding: 10px;
    overflow-y: auto;
    font-size: 13px;
    flex-grow: 1;
}

.link-chatbot-css {
    cursor: pointer;
    padding: 5px 7px;
    border-radius: 8px;
    font-size: 1.5rem;
    transition: .3s;

}

.link-chatbot-css:hover {
    background: #ffffff12;
}



.message-info {
    display: flex;
    align-items: flex-start;
}


.message-content {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.profile-pic {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    padding: 4px;
    background: #fff;
    margin: 0px 10px 0px 0px;
    box-shadow: 0 0px 2px rgba(0, 0, 0, 0.2);
}


.bot-message {
    text-align: left;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    max-width: 80%;
}

.bot-message .message-content {
    background-color: rgb(245, 245, 245);
    padding: 13px 16px;
    border-radius: 20px;
    position: relative;
}

.user-message {
    background-color: var(--nebulablue);
    color: white;
    text-align: right;
    padding: 13px 16px;
    border-radius: 20px;
    max-width: max-content;
    margin-left: auto;
    margin-bottom: 1.5rem;
    position: relative;
    max-width: 80%;
    width: max-content;
}

.user-message .message-content {
    background-color: transparent;
    padding: 0;
}

.user-message .message-time {
    font-size: 12px;
    color: #707070;

    margin-top: 5px;
    text-align: right;
    position: absolute;
    bottom: -15px;
    right: 10px;
    font-size: 10px;
}



.bot-message .message-time {
    font-size: 10px;
    color: #707070;
    margin-top: 5px;
    text-align: right;
    position: absolute;
    bottom: -15px;
    left: 0;
}

.input-area {
    display: flex;
    padding: 10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    flex-direction: column;
    font-size: 13px;
    position: relative;
}

#user-input {
    flex-grow: 1;
    padding: 13px;
    border-radius: 20px;
    border: 1px solid #ffffff;
    width: 100%;
    margin: 0;
    font-size: 13px;
    transition: .3s;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 4px;
}

#user-input:focus {
    border: 1px solid var(--nebulablue);
}

#send-btn {
    padding: 7px 9px;
    background-color: var(--nebulablue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translatey(-50%);
    right: 17px;
}

#send-btn:hover {
    background-color: var(--nebulablue);
}

.hidden {
    opacity: 0 !important;
    right: -15px !important;
    visibility: hidden !important;
}

.hidden-opacity {
    opacity: 0 !important;
    visibility: hidden !important;
}

.hidden-content {
    opacity: 0 !important;
    visibility: hidden !important;
    margin-left: -15px !important;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.typing-indicator {
    display: flex;
    font-size: 20px;
    margin-left: 10px;
    gap: 3px;

}

.typing-indicator span {
    animation: blink 1.4s infinite;
    opacity: 0;
    margin: 0 !important;
    padding: 2px;
    background: var(--nebulablue);
    border-radius: 50%;
    width: 2px;
    height: 2px;
    display: table-cell;
    margin: 0 10px;
}

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

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







/*loader*/
.loader-container-ai {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    position: absolute;
    z-index: 8;
    border-radius: 20px;
}

.spinner-ai {
    width: 50px;
    height: 50px;
    border: 4px solid var(--nebulablue);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner 0.7s linear infinite;
}

@keyframes spinner {
    from {}

    to {
        transform: rotate(360deg);
    }
}

.houdy-img{
    width: 100%;
}
.fondu-out {
    opacity: 0;
    transition: .5s;
    visibility: hidden;
}

.hidden-ai {
    opacity: 0;
    visibility: hidden;
}












@media (max-width: 1024px) {
    header {
        position: relative !important;
        border-bottom: 1px solid #dad9da;
        padding: 10px 20px;

    }

    nav a {
        display: none;
    }

    .login {
        margin: 0;
        padding: 0;
        color: var(--nebulablue);
        background: none;
    }

    select,
    input,
    textarea,
    .custom-select,
    form button {
        width: 100% !important;
    }

}

@media (max-width: 768px) {

    h1,
    h3 {
        font-size: 28px !important;
        line-height: 36px !important;
    }

    h2 {
        line-height: 24px;
        font-size: 1rem;
    }



    #chat-window {
        right: 0;
        bottom: 0;
        z-index: 9999999999999;
        max-width: 100%;
        height: 100%;
        border: none;
        width: 100%;
        min-width: 100%;
    }

    #chat-window,
    .cache,
    .head-ai {
        border-radius: 0;
    }

    .hidden {
        opacity: 0 !important;
        bottom: -15px !important;
        right: 0 !important;
        left: 0 !important;
        visibility: hidden !important;
    }

    .hidden-opacity {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .hidden-content {
        opacity: 0 !important;
        visibility: hidden !important;
        margin-bottom: -15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #user-input {
        font-size: 16px;
        /* Empêche le zoom sur mobile */
        border-radius: 30px;
    }
}