body {
  margin: 0;
  padding: 0;
  background-color: #f2ebe3;
}

body .challenge {
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 10px;
  margin-right: 20px;
  color: black;
  font-family: Montserrat;
  font-weight: bold;
}

body .challenge .lien-dev {
  text-decoration: none;
  color: black;
}

body .creator {
  color: black;
  font-family: Montserrat;
  margin: 10px;
  position: absolute;
  top: 0;
  left: 0;
  margin-left: 20px;
  font-weight: bold;
}

body .creator .lien-dev {
  text-decoration: none;
  color: black;
}

body .preview-card {
  display: flex;
  position: absolute;
  width: 700px;
  height: 530px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

body .preview-card .encadre-infos-product {
  width: 50%;
  background-color: white;
  border-bottom-right-radius: 15px;
  border-top-right-radius: 15px;
  font-family: Montserrat;
  padding: 40px;
}

body .preview-card .encadre-infos-product .type-product {
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 5px;
  margin-bottom: 20px;
}

body .preview-card .encadre-infos-product .title-product {
  font-family: Fraunces;
  font-weight: 900;
  font-size: 35px;
  line-height: 1;
  text-align: left;
  margin-right: 25px;
}

body .preview-card .encadre-infos-product .description-product {
  font-size: 16px;
  font-weight: 500;
  margin-top: 25px;
  margin-right: 25px;
  line-height: 1.7;
}

body .preview-card .encadre-infos-product .encadre-price {
  display: flex;
  align-items: center;
  margin-top: 25px;
}

body .preview-card .encadre-infos-product .encadre-price .price-product {
  font-size: 40px;
  font-family: Fraunces;
  font-weight: bold;
  color: #3c8067;
}

body .preview-card .encadre-infos-product .encadre-price .false-product {
  text-decoration: line-through;
  margin-left: 30px;
}

body .preview-card .encadre-infos-product .add-to-cart {
  margin-top: 30px;
}

body .preview-card .encadre-infos-product .add-to-cart .add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  background-color: #3c8067;
  color: white;
}

body .preview-card .encadre-infos-product .add-to-cart .add:hover {
  background-color: #1c232b;
  cursor: pointer;
}

body .preview-card .encadre-infos-product .add-to-cart .add img {
  margin-right: 15px;
}

body .preview-card .img-product {
  width: 50%;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

body .preview-card .img-product-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  body .preview-card {
    flex-direction: column;
    align-items: center;
    height: 730px;
    width: 430px;
    max-width: 90%;
    max-height: 100%;
  }
  body .preview-card .img-product {
    display: none;
  }
  body .preview-card .img-product-mobile {
    display: flex;
    width: 100%;
    height: 50%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
  }
  body .preview-card .encadre-infos-product {
    border-radius: 0px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    width: 100%;
    height: max-content;
    padding: 0;
  }
  body .preview-card .type-product {
    margin-top: 30px;
    margin-left: 30px;
  }
  body .preview-card .title-product {
    margin-top: 0px;
    margin-left: 30px;
  }
  body .preview-card .description-product {
    margin-left: 30px;
    margin-right: 50px;
  }
  body .preview-card .encadre-price {
    margin-left: 30px;
    flex-wrap: wrap;
  }
  body .preview-card .add-to-cart {
    margin-left: 30px;
    margin-right: 30px;
    margin-bottom: 30px;
  }
}
