/* fr-fr_lbdd.css */

:root {
  /* Couleurs */
  --particle-color: #fc7171;
  --particle-shadow: rgba(252, 113, 113, 0.3);
  --aviabot-bg-color: rgba(159, 42, 45, 0.8);
  --aviabot-bg-color-hover: rgba(159, 42, 45, 1);
  --aviabot-text-color: #fff;
  --aviabot-container-bg: white;
  --aviabot-container-shadow: rgba(0, 0, 0, 0.2);
  --aviabot-close-btn-color: #ffa1af;
  --aviabot-close-btn-bg: #BC0621;
  --aviabot-close-btn-bg-hover: #95051a;
  --aviabot-close-btn-shadow: #690615;
  
  /* Dimensions */
  --offset: 48px;
  --point-size: 12px;
  --move-up-top: 30px;
  --move-up-bottom: 10px;
  /* Animation */
  --anim-duration: 8s;
  --anim-delay-top-right: 13s;
  --anim-delay-bottom-left: 15s;
}

.avia-point {
  position: fixed;
  width: var(--point-size);
  height: var(--point-size);
  border-radius: 50%;
  background-color: var(--particle-color);
  box-shadow: 0px 50px 50px 0px var(--particle-shadow);
  opacity: 0;
}

/* Point partant du haut à droite */
.avia-point.avia-top-right {
  right: var(--offset);
  animation: avia-move-vertical var(--anim-duration) infinite;
  animation-delay: var(--anim-delay-top-right);
  animation-timing-function: ease-out;
}

@keyframes avia-move-vertical {
  0% {
    top: var(--offset);
    opacity: 0;
  }

  5% {
    top: calc(100vh - var(--offset) - var(--point-size) - var(--move-up-top));
    opacity: 0.4;
  }

  6% {
    top: calc(100vh - var(--offset) - var(--point-size) - var(--move-up-top));
    opacity: 0;
  }

  100% {
    top: calc(100vh - var(--offset) - var(--point-size) - var(--move-up-top));
    opacity: 0;
  }
}

/* Point partant du bas à gauche */
.avia-point.avia-bottom-left {
  left: var(--offset);
  top: calc(100vh - var(--offset) - var(--point-size));
  animation: avia-move-horizontal var(--anim-duration) infinite;
  animation-delay: var(--anim-delay-bottom-left);
  animation-timing-function: ease-out;
}

@keyframes avia-move-horizontal {
  0% {
    left: var(--offset);
    top: calc(100vh - var(--offset) - var(--point-size));
    opacity: 0;
  }

  5% {
    left: calc(100vw - var(--offset) - var(--point-size));
    top: calc(100vh - var(--offset) - var(--point-size));
    opacity: 1;
  }

  6% {
    left: calc(100vw - var(--offset) - var(--point-size));
    top: calc(100vh - var(--offset) - var(--point-size) - var(--move-up-bottom));
    opacity: 0.4;
  }

  7% {
    left: calc(100vw - var(--offset) - var(--point-size));
    top: calc(100vh - var(--offset) - var(--point-size) - var(--move-up-bottom));
    opacity: 0;
  }

  100% {
    left: calc(100vw - var(--offset) - var(--point-size));
    top: calc(100vh - var(--offset) - var(--point-size) - var(--move-up-bottom));
    opacity: 0;
  }
}

/* ******* CHATBOT ******* */

@keyframes vibrate {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateY(-6px);
  }

  60% {
    transform: translateX(-6px);
  }

  100% {
    transform: translateX(0) translateY(0);
  }
}

#aviabot-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  height: 60px;
  min-width: 48px;
  width: auto;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  z-index: 999;
  background-color: var(--aviabot-bg-color);
  justify-content: flex-end;
  padding-left: 8px;
  padding-right: 8px;
  text-transform: uppercase;
  color: var(--aviabot-text-color);
  font-size: 11pt;
  font-weight: bold;
  border-radius: 4px;
  line-height: 16px;
  font-family: Roboto;
  /* Valeur d'opacité initiale */
  opacity: 1;
  transition: opacity 0.3s, background-color 0.3s;
  white-space: nowrap;
  /* Animation vibrate (ici appliquée uniquement si vous le souhaitez en permanence) */
  animation: vibrate 0.3s ease 5s;
}

/* Ajout d'un espace uniquement quand le texte est affiché */
#aviabot-icon.has-text:before {
  margin-right: 8px;
}

#aviabot-icon.has-text img {
  margin-left: 8px;
}

#aviabot-icon:before {
  content: var(--aviabot-text);
  padding-top: 4px;
  white-space: pre;
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

/* L'effet hover et la classe .hovered appliquent le même style */
#aviabot-icon.hovered,
#aviabot-icon:hover {
  background-color: var(--aviabot-bg-color-hover);
  opacity: 1;
}

#aviabot-icon img {
  height: 48px;
  width: 48px;
}

#aviabot-icon.hidden {
  opacity: 0.6;
  transform: translateX(90%);
}

#aviabot-container {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 400px;
  height: 700px;
  background: var(--aviabot-container-bg);
  box-shadow: 0 4px 10px var(--aviabot-container-shadow);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease-in, opacity 0.3s ease;
}

.aviabot-close-btn {
  position: absolute;
  top: 22px;
  right: 5px;
  color: var(--aviabot-close-btn-color);
  border: medium;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 23pt;
  cursor: pointer;
  padding-bottom: 6px;
  background-color: var(--aviabot-close-btn-bg);
  font-weight: bold;
  z-index: 1001;
  line-height:33px;
}

.aviabot-close-btn:hover {
  background-color: var(--aviabot-close-btn-bg-hover);
  box-shadow: inset 0 0 5px -4px var(--aviabot-close-btn-shadow);
  color: var(--aviabot-close-btn-color);
}

#aviabot-icon.hidden {
  opacity: 0.2;
  transform: translateX(90%);
}

@media (max-width: 768px) {
  #aviabot-container {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
  }
}
