@charset "UTF-8";@import url("https://fonts.googleapis.com/css?family=Rubik:300,400,500,700&display=swap");

body{
    background-color: black;
}

.aih-container {
    font-family: 'Rubik', sans-serif;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    text-align: center !important;
    transition: max-height 1s ease-in-out;
    position: relative; /* Ajouter position relative à la div parente */
}

.aih-titre {
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: center;
}

.aih-titre h2{
    font-family: 'Rubik', sans-serif;
}

.chat-box {
  border-radius: 15px;
  background-color: #fafafa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Adjust the values as needed */
}

.aih-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.aih-tooltip .aih-tooltiptext {
    visibility: hidden;
    width: 400px;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    position: absolute;
    bottom: -40px; /* Positionne le tooltip au milieu de la hauteur du texte */
    right: 125%; /* Positionne le tooltip à gauche du texte */
    margin-left: 0; /* Réinitialise la marge gauche */
    margin-right: 10px; /* Ajoute une marge à droite pour l'espace entre le texte et le tooltip */
    opacity: 0;
    transition: opacity 0.3s;
    /* transform: translateX(50%); */
    z-index:99999999 !important;
}


.aih-tooltip img {
    width: 16px !important;
    height: 16px !important;
}

.aih-tooltip:hover .aih-tooltiptext {
    visibility: visible;
    opacity: 1;
}

span .libelle-question {
    font-size: 20px;
}

    /* min-width: 850px; */
#tableauComposants {
    width: 100%;

    border-collapse: collapse;
    margin-top: 0px !important;
    margin-bottom: 20px !important;
    border: none !important; /* Supprime toutes les bordures du tableau */
  }

  th {
    padding: 10px;
    text-align: left;
    border: none !important; /* Supprime toutes les bordures des cellules */
  }

  tr td {
    padding: 10px;
    text-align: left;
    border: none;
    border-bottom: 1px solid #ccc !important; /* Supprime toutes les bordures du tableau */
  }

  tr td.td-reload-composant {
    border: none !important;
  }

  tr td.td-aih-tooltip {
    border: none !important;
  }

  th {
    background-color: #f2f2f2;
  }

  td img {
    max-width: 45px;
    max-height: 45px;
  }

  a.link-composant {
    color: black;
  }

  #pagination {
    margin-top: 10px;
    text-align: center;
  }


.aih-type-utilisation{
  padding-right: 3px;
  border-bottom: 1px solid #ccc !important;
}

.delete-button {
    border-bottom: 1px solid #ccc !important;
}

.delete-button .trash-icon {
    width: 20px;
    height: 20px;
    margin-bottom: -4px;
    fill: red;
    cursor: pointer;
    transition: transform 0.3s;
}

.delete-button .trash-icon:hover {
    transform: scale(120%);
}

.aih-entete-build {
  display: flex;
  font-size: 17px;
  text-align: left;
}

.edit-button {
  margin-right: 3px;
}

.edit-button .edit-icon {
  width: 23px;
  height: 23px;
  margin-bottom: -4px;
  cursor: pointer;
  transition: transform 0.3s;
}

.edit-button .edit-icon:hover {
  transform: scale(120%);
}

.alert-consommable {
  background-color: #bfd5ff;
  border: 1px solid #90b7ff;
  padding: 15px;
  margin: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
}

.alert-consommable h2 {
  font-family: 'Rubik', sans-serif;
  color: #2872fa;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.alert-consommable p {
  font-size: 14px;
  margin-bottom: 5px;
}

.alert-consommable a {
  color: #2872fa;
  text-decoration: none;
  font-weight: bold;
}

.tableau-container{
  overflow: visible;
}

@media screen and (max-width: 1024px) {

  .aih-container {
    display: block;
  }

}

@media screen and (max-width: 985px) {

  .tableau-container {
    overflow: auto;
  }

}



.chatbot-toggler {
  position: fixed;
  bottom: 30px;
  right: 35px;
  outline: none;
  border: none;
  height: 50px;
  width: 50px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2872fa;
  transition: all 0.2s ease;
}


.chatbot-toggler:hover {
  background: #3264fe;
}

body.show-chatbot .chatbot-toggler {
  transform: rotate(90deg);
}

.chatbot-toggler span {
  color: #fff;
  position: absolute;
}

.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child {
  opacity: 0;
}

body.show-chatbot .chatbot-toggler span:last-child {
  opacity: 1;
}

.chatbot {
  position: fixed;
  right: 35px;
  bottom: 90px;
  width: 420px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transform-origin: bottom right;
  box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1),
    0 32px 64px -48px rgba(0, 0, 0, 0.5);
  transition: all 0.1s ease;
  z-index: 99999999;
}

body.show-chatbot .chatbot {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}


.chatbot header {
  padding: 16px 0;
  position: relative;
  text-align: center;
  color: #fff;
  background: #2872fa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chatbot header span {
  position: absolute;
  right: 15px;
  top: 50%;
  display: none;
  cursor: pointer;
  transform: translateY(-50%);
}

header h2 {
  font-size: 1.4rem;
  color: white;
  font-family: 'Rubik', sans-serif;
  margin-bottom: 0px;
}

.chatbot .chatbox {
  overflow-y: auto;
  height: 510px;
  padding: 30px 20px 100px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
  width: 6px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 25px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 25px;
}

.chatbox .chat {
  display: flex;
  list-style: none;
}

.chatbox .outgoing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 20px 0;
}

.chatbox .outgoing img {
  width: 50px;
  margin-top: -20px;
}

.chatbox .incoming span {
  width: 32px;
  height: 32px;
  color: #fff;
  cursor: default;
  text-align: center;
  line-height: 32px;
  align-self: flex-end;
  background: #2872fa;
  border-radius: 4px;
  margin: 0 10px 7px 0;
}

.chatbox .chat p {
  white-space: pre-wrap;
  padding: 12px 16px;
  border-radius: 10px 10px 0 10px;
  max-width: 75%;
  color: #fff;
  font-size: 0.95rem;
  background: #2872fa;
}

.chatbox .incoming p {
  border-radius: 10px 10px 10px 0;
}

.chatbox .chat p.error {
  color: #721c24;
  background: #f8d7da;
}

.chatbox .incoming p {
  color: #000;
  background: #f2f2f2;
}

.chatbot .chat-input {
  display: flex;
  gap: 5px;
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 3px 20px;
  border-top: 1px solid #ddd;
}

.chat-input textarea {
  height: 55px;
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  max-height: 180px;
  padding: 15px 15px 15px 0;
  font-size: 0.95rem;
}

.chat-input span {
  align-self: flex-end;
  color: #2872fa;
  cursor: pointer;
  height: 55px;
  display: flex;
  align-items: center;
  visibility: hidden;
  font-size: 1.35rem;
}

.chat-input textarea:valid~span {
  visibility: visible;
}

#image-upload-container{
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.image-icon {
  width: 25px;
}

.image-container {
  position: absolute;
  bottom: 70px;
  right: 10px;
}

#previewImage {
  width: 50px;

  /* background-color: #000000a2; */
}

.cross {
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0.8;
  transform: translate(-50%, -40%);
  display: none; /* Caché par défaut */
  pointer-events: none;
}

.image-container:hover .cross {
  display: block; /* Affiche la croix au survol */
}


/* #previewImage:hover {
  opacity: 0.5;
} */

@media (max-width: 940px) {
  .chatbot-toggler {
    right: 20px;
    bottom: 20px;
  }

  .chatbot {
    right: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0;
    width: 100%;
  }

  .chatbot .chatbox {
    height: 90%;
    padding: 25px 15px 100px;
  }

  .chatbot .chat-input {
    padding: 5px 15px;
  }

  .chatbot header span {
    display: block;
  }
}













