
/**
 * ----------------------------------------
 * FONTS
 * ----------------------------------------
 */

.barlow-light {
  font-family: "Barlow", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.barlow-regular {
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.barlow-medium {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.barlow-semibold {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.barlow-bold {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.barlow-extrabold {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.barlow-light-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.barlow-regular-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.barlow-medium-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.barlow-semibold-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.barlow-bold-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.barlow-extrabold-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  font-style: italic;
}



/**
 * ----------------------------------------
 * MAIN
 * ----------------------------------------
 */

body {
	background-color: #f9e547;
    background-image: url("img/pattern.svg");
    background-repeat: no-repeat;
    background-position: bottom -50px center;
    background-size: 2200px;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: auto;
    height: 100vh;
    font-family: "Roboto", arial, helvetica, sans-serif;
    font-weight: 400;
}



/**
 * ----------------------------------------
 * CHAT
 * ----------------------------------------
 */

.chatbox {
    background: #f9e547;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    overflow-y: auto;
    position: fixed;
    bottom: -120%; /* Caché en bas de l'écran */
    left: 0;
    right: 0;
    height: 90%;
    transition: bottom 0.5s ease-in-out;
    padding-bottom: 100px;
}
.chatbox.visible {
    bottom: 0; /* Remonte et prend tout l'écran */
}
.message {
    margin: 8px 0;
    padding: 8px 12px;
    max-width: 80%;
    word-wrap: break-word;
    display: inline-block; /* Permet à la largeur de la bulle de s'ajuster */
    position: relative;
    width: fit-content;
    font-size: 16px;
    line-height: 21px;
    border-radius: 6px;
}
.message.bot {
    background-color: #fff;
    color: #000;
    /* margin-left: 42px; Crée de l'espace pour l'avatar */
    border-radius: 1px 16px 16px 16px;

}
.message.user {
    background-color: #000;
    color: #fff;
    align-self: flex-end;
    border-radius: 16px 1px 16px 16px;
}
.bot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: absolute;
    left: -44px; /* Positionne l'avatar à gauche de la bulle */
    top: 18px;
    transform: translateY(-50%); /* Aligne verticalement l'avatar */
    box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.2);
    border: #fff solid 1px;
}
.typing {
  position: relative;
  margin-left: 10px;
}
.typing span {
  content: "";
  -webkit-animation: blink 1.5s infinite;
          animation: blink 1.5s infinite;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
  height: 6px;
  width: 6px;
  background: #000;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
}
.typing span:nth-child(2) {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s;
  margin-left: 10px;
}
.typing span:nth-child(3) {
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s;
  margin-left: 20px;
}

@-webkit-keyframes blink {
  0% {
    opacity: 0.1;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0.1;
  }
}

@keyframes blink {
  0% {
    opacity: 0.1;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0.1;
  }
}
button {
    padding: 16px 20px;
    cursor: pointer;
    border: none;
    background-color: #000;
    color: #fff;
    font-size: 16px;
    border-radius: 4px;
    font-family: "Roboto", arial, helvetica, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.quit-button {
    background-color: transparent;
    color: #000;
    border: #000 solid 2px;
    padding: 12px 20px;
    margin: 0 10px;
    position: absolute;
    bottom: 24px;
    position: absolute;
    bottom: 24px;
    left: 30px;
    right: 30px;
}
.offline-message {
    font-style: italic;
    color: #000;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}
.close-button {
    position: absolute;
    z-index: 10;
    top: 2vh;
    right: 5vw;
    transition: opacity 0.1s ease-in-out;
    opacity: 0;
    width: 32px;
    display: inline-block;
}
.close-button.visible {
    opacity: 1;
}
#logo-h {
    position: absolute;
    z-index: 10;
    top: 3vh;
    left: 5vw;
    visibility: hidden;
    width: 40%;
    display: inline-block;
}
#logo-h img {
    max-width: 160px;
}
#logo-h.visible {
    visibility: visible;
}
#formulaire {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    display: flex;
    padding: 24px;
    box-sizing: border-box;
}
#reponse {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    display: flex;
    padding: 24px 60px;
    box-sizing: border-box;
    justify-content: space-evenly;
}
#reponse button {
    background-color: transparent;
    color: #000;
    border: #000 solid 2px;
    padding: 12px 20px;
    width: 86px;
}
#prenom {
    width: 100%;
    padding: 20px;
    border: none;
    margin: 0 8px 0 0;
    border-radius: 4px;
    font-size: 16px;
}
#new-consult.hidden{
    visibility: hidden;
}
#new-consult.visible {
    visibility: visible;
}


/**
 * ----------------------------------------
 * animation scale-up-center
 * ----------------------------------------
 */

#logo {
    width: 70%;
    max-width: 250px;
    margin: 70px 0 60px;
}

#visuel {
    width: 40vh;
    position: absolute;
    bottom: 0;
}

.scale-up-center {
    -webkit-animation: scale-up-center 1s cubic-bezier(0.680, -0.550, 0.265, 1.550) both;
            animation: scale-up-center 1s cubic-bezier(0.680, -0.550, 0.265, 1.550) both;
}

@-webkit-keyframes scale-up-center {
  0% {
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
    -webkit-filter: blur(12px);
            filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-filter: blur(0px);
            filter: blur(0px);
    opacity: 1;
  }
}
@keyframes scale-up-center {
  0% {
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
    -webkit-filter: blur(12px);
            filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-filter: blur(0px);
            filter: blur(0px);
    opacity: 1;
  }
}

.scale-up-bottom {
    -webkit-animation: scale-up-bottom 1s cubic-bezier(0.680, -0.550, 0.265, 1.550) both;
            animation: scale-up-bottom 1s cubic-bezier(0.680, -0.550, 0.265, 1.550) both;
}


@-webkit-keyframes scale-up-bottom {
  0% {
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
    -webkit-transform-origin: 50% 100%;
            transform-origin: 50% 100%;
    -webkit-filter: blur(12px);
            filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-transform-origin: 50% 100%;
            transform-origin: 50% 100%;
    -webkit-filter: blur(0px);
            filter: blur(0px);
    opacity: 1;
  }
}
@keyframes scale-up-bottom {
  0% {
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
    -webkit-transform-origin: 50% 100%;
            transform-origin: 50% 100%;
    -webkit-filter: blur(12px);
            filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-transform-origin: 50% 100%;
            transform-origin: 50% 100%;
    -webkit-filter: blur(0px);
            filter: blur(0px);
    opacity: 1;
  }
}


