:root {
  --primary: #054a91;
  --secondary: #fe5722;
  --tertiaire: #189ab4;
  --white: #fefefe;
  --black: #101010;
  --color-accent: #0f5132;

  --title: #032c57;
  --danger: #842029;
  --bg_danger: #f8d7da;
  --bg_success: #d1e7dd;
}
body {
  height: 100vh;
  font-family: 'Nunito Sans';
}

/* +++++++++++++++++++++++++++++++ *\
             CHECKBOX
\* +++++++++++++++++++++++++++++++ */
.form-check {
  display: inline-flex;
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  align-items: center;
  line-height: 1;
  
  user-select: none;
  cursor: pointer;
}
.form-check span {
  position: relative;
  display: flex;
  align-items: center;
  padding: 5px 7px 5px 7px;
  background-color: var(--primary);
  border-radius: 5px;
}
.form-check input {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.form-check input:checked + span {
  /* background-color: var(--secondary); */
  color: var(--secondary);
}
.form-check input:checked + span::after, .form-check input:hover + span::after {
  background-color: var(--secondary);
  transition: all .3s;
}
.form-check input:focus + span::before {
  border-color: var(--secondary);
}
.form-check input:disabled {
  opacity: .85;
}
.form-check input:disabled + span {
  color: #9a9a88;
}
.form-check span::before {
  content: "";
  display: inline-block;
  border-radius: 3px;
  background-color: #d8d8d8;
  margin-right: 8px;
  height: 14px;
  width: 14px;
  border: 1px solid transparent;
}
.form-check span::after {
  content: "";
  display: inline-block;
  height: 12px;
  width: 12px;
  border-radius: 3px;
  background-color: transparent;
  left: 9px;
  position: absolute;
  transition: all .3s;
}


.loader {
  display: inline-block;
  width: 80px;
  text-align: center;
}

.loader > div {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 2px;
  background-color: #333;
  border-radius: 100%;
  animation: loader 1.4s infinite ease-in-out both;
}

.loader .bounce1 {
  animation-delay: -0.32s;
}

.loader .bounce2 {
  animation-delay: -0.16s;
}

@keyframes loader {
  0%, 80%, 100% {
    transform: scale(0);
  } 40% {
    transform: scale(1);
  }
}

/* +++++++++++++++++++++++++++++++ *\
             BASE
\* +++++++++++++++++++++++++++++++ */
* {
  box-sizing: border-box;
}
body, html {
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
}
.mb_4 {
  margin-bottom: 16px;
}
h1, h2, h4, h6 {
  margin: 0;
}
h2{
  font-size: 32px;
  color: var(--secondary);
  margin-bottom: 24px;
}
h6 {
  font-size: 16px;
  font-weight: 500;
  color: var(--title);
  margin: 0;
  margin-bottom: 10px;
}
.label {
  padding: 0;
  font-size: 24px;
  text-align: left;
  color: var(--title);
  margin-top: 0;
  margin-bottom: 32px;
}
.w_65 {
  width: 260px;
}
.w_33 {
  width: 132px;
  padding: 0 !important;
}
.w_23 {
  width: 92px;
  padding: 0 !important;
}
/* +++++++++++++++++++++++++++++++ *\
             BUTTON
\* +++++++++++++++++++++++++++++++ */

.button {
  padding: 10px 20px;
  outline: none;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  border: none;
}
.button_close {
  padding: 1px 8px;
  background-color: var(--secondary);
  color: var(--white);

  position: sticky;
  top: 0px;
  
  display: block;
  margin-left: auto;

  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 500;
}
.button_close:hover {
  background-color: var(--danger);
}

.chat-input {
  width: calc(100% - 40px);
  border-radius: 0.25rem 0 0 0.25rem !important;
  height: 38px;
}

.send-button {
  margin-left: -0.625rem;
  background-color: var(--primary);
  border-radius: 0 0.25rem 0.25rem 0 !important;
  height: 38px;
  position: relative;
}
.send-data-button {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--primary);
  color: var(--white);
  font-size: 1rem;
  animation: shake-button 6s linear infinite;
}
.send-button:after {
  content: '';
  display: inline-block;
  width: 25px;
  height: 25px;
  background: url(../images/send.svg) center center no-repeat;
  background-size: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* +++++++++++++++++++++++++++++++ *\
            APP_BOX
\* +++++++++++++++++++++++++++++++ */
.max_w_box {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;

  padding: 16px;
}

.max_w_lg {
  width: 100%;
  max-width: 992px;
  margin-left: auto;
  margin-right: auto;
}

.app_box {
  background: url('../images/banner.webp') center center no-repeat;
  background-size: cover;
}

.app_header {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .app_box {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 16px;
  }
  .app_header {
    margin-top: 0;
  }
}
@media (min-width: 992px) {
  .app_box {
      gap: 32px;
      padding: 32px;
      min-height: calc(100vh - 135px);
  }
}

/* +++++++++++++++++++++++++++++++ *\
            LEFT_PANEL
\* +++++++++++++++++++++++++++++++ */
.left_panel {
  width: 100%;
}
@media (min-width: 768px) {
  .left_panel {
      width: 55%;
  }
}

/* +++++++++++++++++++++++++++++++ *\
            LEFT_SECTION
\* +++++++++++++++++++++++++++++++ */
.app_section {
  width: 100%;
}

.app_image img {
  width: 100%;
}

.app_image h1 {
  transform: rotate(-4deg);
  text-align: center;
  font-size: 20px;
  color: var(--primary);
  line-height: 1;
}
@media (max-width: 767px) {
  .app_image {
    width: 100%;
    max-width: 426px;
    margin-left: auto;
    margin-right: auto;
  }
  .app_image img {
    width: 100%;
  }
}

.app_content {
  transform: rotate(-4deg);
  color: #fefefe;
  width: 385px;
  height: 420px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.5rem;

  position: relative;
}
.app_content h2 {
  font-size: 22px;
  color: #fefefe;
  font-weight: 700;
  background-color: var(--secondary);
  text-align: right;
  clip-path: polygon(16% 3%, 100% 0, 97% 100%, 0 96%);
  padding: 16px;
  line-height: 1;
  width: 200px;
  margin: 0 auto;

  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

@media (min-width: 640px) {
  .app_image h1 {
    font-size: 28px;
  }
  .app_content h2 {
    font-size: 26px;
  }
}
.app_content_list {
  clip-path: polygon(17% 0, 100% 0, 86% 100%, 0 100%);
  background-color: var(--primary);
  width: 100%;
  height: 265px;

  padding: 0px 86px 24px;
  position: absolute;
  bottom: 85px;
}

.app_content_list h5 {
  font-size: 16px;
  font-weight: 700;
  color: #fefefe;
  margin-left: 24px;
  margin-bottom: 10px;
}
.app_content_list ul {
  list-style: none;
  font-size: 14px;
  color: #fefefe;
  margin: 0;
  padding: 0;

  counter-reset: list;
}
.app_content_list ul li {
  margin-bottom: 12px;
}
.app_content_list ul li:before {
  counter-increment: list;
  content: counter(list);
  background: var(--secondary);
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  margin-right: 12px;
}
@media (max-width: 639px) {
  .app_content {
    width: 100%;
    max-width: 385px;
  }
  .app_content h2 {
    position: static;
    transform: translate(0);
    margin-bottom: -2rem;
  }
  .app_content_list {
    clip-path: none;
    height: auto;
    position: static;
    padding: 16px;
  }
}
@media (min-width: 768px) {
  .app_section {
      min-height: 100%;
  }
}
@media (min-width: 1200px) {
  .app_header {
    margin-bottom: 0;
  }
  .app_section {
      min-height: calc(100% - 48px);
      display: flex;
      justify-content: center;
      align-items: center;
  }
  .app_section_container {
      width: 100%;
      position: relative;
      height: 465px;
  }
  .app_image {
      width: 80%;
      max-width: 425px;
  }
  .app_image img{
      width: 100%;
  }
  .app_content {
      position: absolute;
      top: 50%;
      right: 0;
      transform: translateY(-50%);
  }
}
/* +++++++++++++++++++++++++++++++ *\
            RIGHT_PANEL
\* +++++++++++++++++++++++++++++++ */
.right_panel {
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../images/background.webp) top center repeat;
  background-size: 200px;
  border-radius: 4px;
  padding: 16px;
}

.right_panel h3 {
  font-size: 16px;
  margin: 0;
  color: var(--primary);
}
@media (min-width: 768px) {
  .right_panel {
      width: 45%;
      padding: 20px;
  }
  .right_panel h3 {
    font-size: 22px;
  }
}

.chatbot-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--primary);
}
.chatbot-body {
  padding: 20px 0;
  max-height: 100%;
  overflow-y: auto;
}

.chatbot-body::-webkit-scrollbar {
  display: none;
}

.bubble {
  border-radius: 0.25rem;
  margin-bottom: 0.625rem;
  width: max-content;
  max-width: 75%;
  position: relative;
  color: #000;
}
.bubble.user-style {
  margin-left: auto;
}
.bubble.user-style .bubble-text {
  background-color: #bfdfe6;
  margin-bottom: 0.25rem;
  border-radius: 0.25rem;
}
.bubble.bot-style {
  background-color: #ffffff;
  margin-right: auto;
}
.bubble-text {
  font-size: 0.825rem;
  word-wrap: break-word;
  padding: 0.625rem;
}
.bubble-timestamp {
  font-size: 0.625em;
  text-align: right;
}
.bubble.loading .bubble-timestamp{
  display: none;
}
.bot-style .bubble-timestamp {
  display: none;
}

@media (min-width: 640px) {
  .bubble-text {
    font-size: 1rem;
  }
}
@media (min-width: 768px) {
  .bubble-text {
    font-size: 0.825rem;
  }
}
@media (min-width: 992px) {
  .bubble-text {
    font-size: 1rem;
  }
}

.bubble.loading {
  min-width: 55px;
  padding: 0.625rem;
}
.bubble.loading .bubble-text{
  position: relative;
  left: -9985px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary);
  box-shadow: 9984px 0 0 0 var(--primary), 9999px 0 0 0 var(--primary), 10014px 0 0 0 var(--primary);
  animation: dot-carousel 1.5s infinite linear;
  padding: 0;
}

.chatbot-footer {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.chat-input {
  padding: 0.625rem;
  border: none;
  outline: none;
  border-radius: 0.25rem;
  background-color: #ffffff;
  color: #333;
  font-size: 1em;
  flex-grow: 1;

  appearance: none;         
  -webkit-appearance: none;  
  -moz-appearance: none;
}

.chat-input.is-invalid {
  border: 1px solid #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1rem;
  color: var(--danger);
}

.chat-error-message {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  position: relative;
  z-index: 2;
  background-color: #f8d7da;
  color: #842029;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
}
.chat-error-message:after {
  content: "";
  position: absolute;
  left: 10%;
  top: 100%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #f8d7da;
}
p.small-text, p.big-text {
  text-align: center;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.75rem;
  border-radius: 0.25rem;
}

p.small-text a, p.big-text a {
  text-decoration: underline;
  color: inherit;
  font-weight: 700;
}

p.big-text {
  font-size: 20px;
}
@media (min-width: 640px) {
  p.big-text {
    font-size: 24px;
  }
}
/* +++++++++++++++++++++++++++++++ *\
            FOOTER
\* +++++++++++++++++++++++++++++++ */
.footer_top_section {
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  padding: 6px 0 16px;
}

.footer_logo a{
  color: #222;
  text-decoration: none;
}
.footer_logo a:hover {
  color: var(--primary);
}

.legal_box {
  padding: 0;
}
.legal_box a {
  color: #054a91 !important;
  display: block;
  text-decoration: none !important;
}
.legal_box a:hover {
  text-decoration: underline;
}

.footer_bottom_section {
  margin-left: auto;
  margin-right: auto;
  max-width: 1000px;
  width: 100%;
}

.footer_bottom_section p {
  font-size: .75rem !important;
  line-height: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .legal_box a {
      display: inline-block;
      margin-right: 1rem;
  }
}
@media (min-width: 1280px) {
  .footer_top_section {
      display: flex;
      justify-content: space-between;
  }
  .legal_box a {
      border-left: 1px solid #fe5722;
      margin-left: 1rem;
      margin-right: 0;
      padding: 0 1rem;
  }
  .legal_box a:first-child {
      border: none;
  }
}
/* +++++++++++++++++++++++++++++++ *\
          BOITE MODAL
\* +++++++++++++++++++++++++++++++ */
.app_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);

  display: flex;
  align-items: center;
  justify-content: center;

  animation: fadeIn .3s both;
}

.app_overlay[aria-hidden="true"] {
  animation-name: fadeOut;
}

.app_modal {
  background-color: #fefefe;
  max-width: 992px;
  max-height: 80vh;
  width: calc(100vw - 20px);
  height: calc(100vh - 20px);
  padding: 30px;
  overflow: auto;
  border-radius: 4px;

  box-shadow: rgba(60, 64, 67, 0.3) 0px 0px 4px 2px;

  animation: slideFromTop .3s both 0.1s;
}

.app_overlay[aria-hidden="true"] .app_modal {
  animation-name: slideToBottom;
}

.app_modal *:focus {
  border-bottom: 1px solid rgba(0, 0, 0);
}

/* +++++++++++++++++++++++++++++++ *\
        ANIMATION MOT PAR MOT
\* +++++++++++++++++++++++++++++++ */
.js-animation span {
  display: inline-block;
  overflow: hidden;
}
.js-animation span span {
  display: block;
  animation: titleReveal .7s both;
}

/* +++++++++++++++++++++++++++++++ *\
              KEYFRAMES
\* +++++++++++++++++++++++++++++++ */
@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0%);
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes slideFromTop {
  from { transform: translateY(-50px); }
  to { transform: translateY(0px); }
}
@keyframes slideToBottom {
  from { transform: translateY(0px); }
  to { transform: translateY(50px); }
}

.overlay_animation {
  animation: animate 1.5s forwards;
  background-color: #189ab4;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  position: absolute;
  z-index: 999999;
}
@keyframes animate {
  10% {
      transform: scale(1, 0.002);
  }
  50% {
      transform: scale(0.2, 0.002);
      opacity: 1;
  }
  100% {
      transform: scale(1, 1);
  }
}

.loader {
  border: 16px solid #f3f3f3;
  border-top: 16px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes dot-carousel {
  0% {
    box-shadow: 9984px 0 0 -1px var(--primary), 9999px 0 0 1px var(--primary), 10014px 0 0 -1px var(--primary);
  }
  50% {
    box-shadow: 10014px 0 0 -1px var(--primary), 9984px 0 0 -1px var(--primary), 9999px 0 0 1px var(--primary);
  }
  100% {
    box-shadow: 9999px 0 0 1px var(--primary), 10014px 0 0 -1px var(--primary), 9984px 0 0 -1px var(--primary);
  }
}

@keyframes shake-button {
  0%, 16%, 100% {
      transform: translateZ(0);
  }
  1.6%, 4.8%, 8%, 11.2%, 14.4% {
      transform: translate3d(-2px, 0, 0);
  }
  3.2%, 6.4%, 9.6%, 12.8% {
      transform: translate3d(2px, 0, 0);
  }
}