@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: url("../images/bg.svg") no-repeat center center/cover;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
  user-select: none;
  transition: all 0.2s ease;
}

a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* General */
.button {
  border: none;
  background-color: transparent;
  font-size: calc(15px + 0.390625vw);
  font-weight: 500;
  font-family: inherit;
  color: white;
  padding: 15px 30px;
  border-radius: 16px;
  transition: 0.2s;
  text-align: center;
}
.button:hover {
  box-shadow: inset 100px 100px rgba(255, 255, 255, 0.1);
  transition: 0.2s;
  cursor: pointer;
}
.button-rounded:hover {
  box-shadow: inset 100px 100px rgba(255, 255, 255, 0.1),
    0 5px 5px rgb(0 0 0 / 20%);
  transition: 0.2s;
  cursor: pointer;
}
.button-rounded {
  border-radius: 100px;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 5px rgb(0 0 0 / 20%);
  width: 100px;
  height: 100px;
  transition: 0.2s;
}
.button-rounded img {
  display: block;
  width: 64px;
  height: 64px;
}

.button-primary {
  border: 4px solid #d05c09;
  background: linear-gradient(
    90deg,
    rgba(248, 111, 11, 1) 3%,
    rgba(236, 226, 0, 1) 100%
  );
}
.button-secondary {
  border: 4px solid #412dfc;
  background: linear-gradient(90deg, #445be8 22%, rgba(79, 144, 240, 1) 100%);
}

.bottom-logo {
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

/* Start */
.start {
  padding: 0 0 30px 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.start-wrapper {
  margin: auto;
  max-width: 1920px;
}
.start-title {
  font-weight: 500;
  text-align: center;
  letter-spacing: 5px;
  line-height: 1.5;
}
.start-tap-image {
  display: block;
  max-width: 201px;
  width: 100%;
  margin: 0 auto;
  object-fit: none;
}
/* ToS */
.tos {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.tos-wrapper {
  margin: auto;
  max-width: 1920px;
  display: flex;
  flex-direction: column;
}
.tos-description {
  line-height: 1.7;
  font-weight: 500;
  font-size: calc(15px + 0.390625vw);
}
.tos-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

/* Chat */
.chat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  margin: 0 auto;
}
.chat-messages {
  padding: 30px;
  overflow-y: auto;
  scrollbar-color: #445be8 transparent;
  scrollbar-width: thin;

  position: static;
}
.chat-message {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  word-wrap: break-word;
}
.chat-message.user {
  justify-content: end;
}
.chat-message-avatar {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-top: auto;
}
.chat-message.user .chat-message-avatar {
  display: none;
}
.chat-message-container {
  border-radius: 20px;
  padding: 20px 30px;
  font-weight: 500;
  max-width: 800px;
  margin: 0;
}
.chat-message.bot .chat-message-container {
  border: 2px solid #d8d8d8;
  background-color: #f2f2f2;
  color: #252525;
}
.chat-message.user .chat-message-container {
  background: linear-gradient(90deg, rgba(79, 144, 240, 1) 22%, #445be8 100%);
  color: white;
}
.chat-message-text {
  margin: 0;
}
.chat-form-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
  position: static;
}
.chat-form-wrapper {
  background-color: #fafafa;
  border: 4px solid #402dfc;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 30px;
  box-shadow: 0 0 60px rgb(64 45 252 / 20%);
}
.chat-form-wrapper-icon {
  display: block;
  width: 30px;
  height: 30px;
}
#chat-form-input {
  background-color: transparent;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  border: none;
  box-sizing: border-box;
  width: 100%;
  outline: none;
}
.chat-form-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.chat-form-buttons .button-primary {
  background: linear-gradient(
    90deg,
    rgba(236, 226, 0, 1) 3%,
    rgba(248, 111, 11, 1) 100%
  );
}

.chat-form-buttons .button-secondary {
  background: linear-gradient(90deg, rgba(79, 144, 240, 1) 22%, #445be8 100%);
}

.chat-activity-modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 10000;
}
.chat-activity-modal.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s, visibility 0.2s;
}

.chat-activity-modal-container {
  background-color: white;
  border-radius: 36px;
  padding: 30px;
  width: 100%;
  max-width: 814px;
  width: 100%;
  margin: 0 auto;
}

.chat-activity-modal-container-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 60px;
}

.chat-activity-modal-container-buttons .button {
  width: 100%;
}

.chat-activity-modal-container-icon {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.chat-activity-modal-container-description {
  font-weight: 600;
  text-align: center;
  margin-top: 60px;
}

.chat-activity-modal-container-resume {
  color: #b1b1f4;
  font-weight: 700;
  text-align: center;
}

/*!* Product details *!*/
/*.chat-message-container.product {*/
/*  max-width: 1440px !important;*/
/*}*/
.chat-message-description {
  margin: 0;
}
.product-image {
  display: block;
  width: 100%;
  max-width: 375px;
  height: 375px;
  border: 2px solid black;
  border-radius: 33px;
  background-color: white;
}
.product-details {
  display: flex;
  flex-direction: column;
}
.product-brand {
  background-color: #d9d9d9;
  padding: 20px;
  border-radius: 20px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  margin-top: 20px;
}
.product-price {
  margin-top: 20px;
  font-weight: 700;
}
.product-features-title {
  color: #6b6b6c;
  font-weight: 400;
}
/* Feedbacks */
.feedback {
  background-color: #f2f2f2;
  border: 1px solid #d8d8d8;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.feedback.active {
  box-shadow: 0 4px 234px #d7d7d8;
  transform: translateY(0);
  display: block;
  animation: slideUp 0.3s ease-in-out;
}
.feedback-text {
  margin: 0;
  font-weight: 600;
}
.feedback-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feedback-button {
  color: white;
  border: none;
  background-color: transparent;
  transition: 0.2s;
  border-radius: 16px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.feedback-button:disabled {
  opacity: 0.5;
  cursor: unset;
}
.feedback-button.primary {
  border: 2px solid #412dfc;
  background: linear-gradient(90deg, #445be8 22%, rgba(79, 144, 240, 1) 100%);
}
.feedback-button.secondary {
  border: 2px solid #d05c09;
  background: linear-gradient(
    90deg,
    rgba(248, 111, 11, 1) 3%,
    rgba(236, 226, 0, 1) 100%
  );
}
.bouncing-dots {
  display: inline-block;
}

.bouncing-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 2px;
  background-color: #333;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.bouncing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.bouncing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

/* Media queries */
@media screen and (min-width: 768px) {
  .tos {
    height: 100vh;
  }
  .tos-description {
    line-height: 1.7;
    font-weight: 500;
    font-size: calc(15px + 0.390625vw);
    text-align: justify;
    text-align-last: justify;
  }
  .tos-description-span {
    text-align-last: left;
    display: block;
    word-spacing: 5px;
  }
}
@media screen and (min-width: 1024px) {
  /* General */
  body {
    overflow: hidden;
  }

  .button {
    font-size: 1.875rem;
    padding: 20px;
  }
  /* Start */
  .start {
    padding: 30px;
  }
  .start-title {
    font-size: 3.5rem;
  }
  .start-wrapper {
    position: relative;
  }
  .start-tap-image {
    position: fixed;
    right: calc(50% - 260px);
    bottom: calc(50% - 280px);
  }
  .tos {
    gap: 60px;
  }
  /* ToS */
  .tos-description {
    /* font-size: 2.3rem; */
    font-size: calc(20px + 0.390625vw);
  }
  .tos-buttons {
    display: grid;
    grid-template-columns: repeat(2, 280px);
  }
  /* Chat */
  .chat-activity-modal-container {
    padding: 50px 35px;
  }
  .chat-activity-modal-container-description {
    font-size: 1.75rem;
  }
  .chat-activity-modal-container-resume {
    font-size: 1.75rem;
  }
  .chat-activity-modal-container-buttons {
    display: grid;
    grid-template-columns: repeat(2, 274px);
    justify-content: center;
    gap: 30px;
  }
  .chat-message {
    flex-direction: row;
  }
  .chat-message-text {
    font-size: 1.875rem;
  }
  .chat-form-wrapper {
    width: 100%;
  }
  .chat-form-container {
    padding: 60px;
    flex-direction: row;
    justify-content: space-between;
  }
  #chat-form-input {
    font-size: 1.953rem;
  }
  .chat-form-buttons {
    margin: 0;
  }
  /* Product details */
  .chat-message-container.product {
    display: flex;
    flex-direction: column;
  }
  .chat-message-description {
    font-size: 1.875rem;
  }
  .container-title {
    font-size: 1.8rem;
  }
  .product {
    display: flex;
    gap: 30px;
  }
  .product-name {
    font-size: 1.875rem;
    margin: 0 0 20px 0;
  }
  .product-brand {
    font-size: 1.875rem;
    width: max-content;
  }
  .product-price {
    font-size: 1.875rem;
  }
  .product-features-title {
    font-size: 1.8rem;
    color: #6b6b6c;
    margin-bottom: 0;
  }
  .product-features {
    margin: 0;
    padding: 0 0 0 30px;
  }
  .product-features-item {
    font-size: 1.6rem;
  }
  /* Feedback */
  .feedback {
    margin-left: 70px;
    flex-direction: row;
    align-items: center;
    width: max-content;
    gap: 100px;
  }
  .feedback-text {
    margin: 0;
    font-size: 1.5rem;
  }
  .feedback-buttons {
    flex-direction: row;
  }
  .feedback-button {
    padding: 10px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
  }
}
.word-suggestions div {
  display: inline-block;
  padding: 15px;
  margin-right: 20px;
  background-color: #e0e0e0;
  border-radius: 5px;
  cursor: pointer;

}
.element-word {
  margin-top: 100px;margin-left: 200px;
}
@media screen and (min-width: 1920px) {
  .tos-wrapper {
    max-width: unset;
    gap: 30px;
  }
  .tos-description {
    font-size: calc(35px + 0.390625vw);
  }
}

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

.chat-message-container.carousel-container {
  width: 100%;
  max-width: none;
  background: transparent;
  padding: 0;
  margin: 0;
  border: none;
  display: flex;
  justify-content: center;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;

  background: transparent;
  border-radius: 0;
  box-sizing: border-box;
}

.carousel-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.carousel-card {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 100%;
  background: transparent;
  padding: 2rem 2rem 5rem 2rem;
  margin: 0 auto;
  gap: 2rem;
  align-items: flex-start;
  box-sizing: border-box;
  min-height: 260px;
}

.carousel-card-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.carousel-product-intro {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.8;
}

.product-name {
  font-size: 1.6rem;
  font-weight: 700;
}

.product-brand {
  font-size: 1rem;
  padding: 12px 18px;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
}

.product-features {
  font-size: 1.05rem;
}

.product-features li {
  font-size: 1.05rem;
  line-height: 1.6;
}



.carousel-card-main {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
  width: 100%;
}



/* Flèches navigation */
.carousel-arrow {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #444;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.carousel-arrow.left {
  left: -10px;
}

.carousel-arrow.right {
  right: -10px;
}



/* Bouton de localisation */
.btn-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  /* Taille agrandie */
  padding: 16px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 220px;
  height: 50px;

  /* Style */
  background-color: #8c8c8c;
  color: white;
  border: none;
  border-radius: 12px;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;

  position: absolute;
  bottom: 10px;
  left: 10px;
}



.btn-location i {
  font-size: 1rem;
}

.btn-location:hover {
  background-color: #6e6e6e;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .carousel-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 3rem;
  }

  .carousel-card-main {
    flex-direction: column;
    align-items: center;
  }

  .btn-location {
    position: static;
    margin-top: 1rem;
  }

  .product-image {
    width: 100%;
    max-width: 220px;
  }
}


@media screen and (min-width: 1024px) {
  .carousel-product-intro {
    font-size: 1.5rem;
  }

  .product-name {
    font-size: 2rem;
  }

  .product-brand {
    font-size: 1.25rem;
  }

  .product-price {
    font-size: 1.5rem;
  }

  .product-features li {
    font-size: 1.2rem;
  }
}

.escalade-popup {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: "Poppins", sans-serif;
}

.escalade-popup-container {
  background-color: #ffffff;
  border-radius: 36px;
  padding: 50px; /* plus d'aération */
  max-width: 750px; /* popup élargie */
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.escalade-popup-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px auto;
  display: block;
}

.escalade-popup-description {
  font-weight: 400; /* retiré le gras */
  font-size: 1.25rem;
  color: #111827;
  margin: 0;
  line-height: 1.8;
}

.escalade-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 60px;
}

.escalade-popup-buttons .button {
  width: 100%;
}

@media screen and (min-width: 1024px) {
  .escalade-popup-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }

  .escalade-popup-buttons .button {
    width: 274px;
  }

  .escalade-popup-description {
    font-size: 1.75rem;
  }
}


.popup-localisation {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background-color: rgba(0, 0, 0, 0.6); z-index: 2000;
}
.popup-overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}
.popup-content {
  position: relative; background: white;
  padding: 20px; border-radius: 12px;
  z-index: 2100;
  width: 80%;
  max-width: 700px;
}


#svgModal .modal-content {
  max-width: 1000px;
  width: 95%;
}


#svgMap path {
  fill: #e0e0e0;
  transition: fill 0.3s ease;
}

#svgMap path.selected {
  fill: #FFD700 !important;  /* jaune pour le surlignage */
}