@font-face {
  font-family: "Quicksand";
  src: url("https://kinsta.com/wp-content/themes/kinsta/fonts/BrandonText-Medium.woff") format("woff");
}

* {
  font-family: 'Quicksand', sans-serif;
}

body {
  overflow-x: hidden;
}

.fill-white {
  background: #fff;
}

.cards {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 500px;
  width: 100%;
}

.cards .card {
  display: flex;
  width: 400px;
  height: 400px;
  border-radius: 0.5rem;
  transform-origin: center center;
  transform: scale(1) translate(0px, 0px) perspective(750px) rotateY(0deg);
  transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
  transition-duration: 500ms;
  position: absolute;
  top: 0;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.1);
  z-index: 3;
  overflow: hidden;
}

.cards .card *:not(.card__button) {
  pointer-events: none;
}

.cards .card--left-left-left {
  transform: scale(0.85) translate(-450px, 0px) perspective(750px) rotateY(0deg);
  box-shadow: 0 3.7px 7px rgba(0, 0, 0, 0.1);
  z-index: 0;
  opacity: 0.8;
}

.cards .card--left-left {
  transform: scale(0.90) translate(-350px, 0px) perspective(750px) rotateY(0deg);
  box-shadow: 0 7.5px 13.5px rgba(0, 0, 0, 0.1);
  z-index: 1;
  opacity: 1;
}

.cards .card--left {
  transform: scale(0.95) translate(-200px, 0px) perspective(750px) rotateY(0deg);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
  z-index: 2;
  opacity: 1;
}

.cards .card--center {
  transform: scale(1) translate(0px, 0px) perspective(750px) rotateY(0deg);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.1);
  z-index: 3;
  opacity: 1;
}

.cards .card--right {
  transform: scale(0.95) translate(200px, 0px) perspective(750px) rotateY(0deg);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
  z-index: 2;
  opacity: 1;
}

.cards .card--right-right {
  transform: scale(0.90) translate(350px, 0px) perspective(750px) rotateY(0deg);
  box-shadow: 0 7.5px 13.5px rgba(0, 0, 0, 0.1);
  z-index: 1;
  opacity: 1;
}

.cards .card--right-right-right {
  transform: scale(0.85) translate(450px, 0px) perspective(750px) rotateY(0deg);
  box-shadow: 0 3.7px 7px rgba(0, 0, 0, 0.1);
  z-index: 0;
  opacity: 0.8;
}

.cards .card__img {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.cards .card__img_img {
  width: 380px;
  height: 250px;
  position: absolute;
  display: flex;
  align-items: baseline;
  justify-content: center;
  border-radius: 0px 0px 0.5rem 0.5rem;
  box-shadow: 0px 10px 27px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.img {
  display: initial;
}

.cards .card__detail {
  width: 100%;
  height: 150px;
  position: absolute;
  display: block;
  bottom: 0;
  user-select: none;
}

.cards .card__button {
  user-select: none;
  height: 40px;
  width: 40px;
  position: absolute;
  float: right;
  top: 16px;
  font-weight: 900;
  font-size: 40px;
  background: #fff;
  display: inline-block;
  color: #303030;
  border: none;
  line-height: 0;
  /* padding: 0px 10px; */
  text-transform: uppercase;
  border-radius: 50px;
  right: 16px;
  transition: ease 0.3s;
  padding-bottom: 0px;
}

.cards .card__button::after {
  position: absolute;
  content: '+';
  left: 8px;
  top: 21px;
  font-weight: 900;
  font-size: 40px;

  display: block;
  color: #303030;
}

.cards .card__button:hover::after {
  content: 'en savoir plus';
  color: #fff;
  width: 160px;
  font-size: 20px;
  padding: 0px 0 0 2px;
}

.card__button:hover {
  content: 'en savoir plus';
  background: #303030;
  color: #fff;
  width: 180px;
}

.cards .card__subtext {
  padding: 10px 0 0 10px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 18px;
  font-weight: 900;
}

.cards .card__text {
  padding: 0 0 0 10px;
  font-size: 34px;
  font-weight: 900;
}

.card__aftertext {
  padding: 4px 0 0 10px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 18px;
  font-weight: 900;
}

@media only screen and (max-width : 736px) {
  .cards {
    flex-direction: column;
    margin: 0PX 0px;
  }

  .cards .card__detail {
    position: relative;
    display: block;
    height: 40%;
  }

  .cards .card__img_img {
    position: relative;
    height: auto;
    display: block;
  }
  .cards .card__img {
    width: 100%;
    height: fit-content;
    position: relative;
    display: block;
  }

  .cards .card {
    width: 300px;
    height: -webkit-fill-available;
    display: block;
  }

  .cards .card--left-left-left {
    transform: scale(0.85) translate(-950px, 0px) perspective(0px) rotateY(0) rotateX(0deg) translateZ(-5px);
    opacity: 0;
  }

  .cards .card--left-left {
    transform: scale(0.85) translate(-650px, 0px) perspective(0px) rotateY(0) rotateX(0deg) translateZ(-5px);
    opacity: 1;
  }

  .cards .card--left {
    transform: scale(0.85) translate(-110%, 0px) perspective(0px) rotateY(0) rotateX(0deg) translateZ(-5px);
    opacity: 1;
  }

  .cards .card--center {
    transform: scale(0.90) translate(0px, 0px) perspective(0px) rotateY(0) rotateX(0deg) translateZ(-5px);
    opacity: 1;
  }

  .cards .card--right {
    transform: scale(0.85) translate(110%, 0px) perspective(0px) rotateY(0) rotateX(0deg) translateZ(0px);
    opacity: 1;
  }

  .cards .card--right-right {
    transform: scale(0.85) translate(650px, 0px) perspective(0px) rotateY(0) rotateX(0deg) translateZ(0px);
    opacity: 1;
  }

  .cards .card--right-right-right {
    transform: scale(0.85) translate(950px, 0px) perspective(0px) rotateY(0) rotateX(0deg) translateZ(0px);
    opacity: 0;
  }

}






.carousel {
  top: 50%;
  /* margin: 10px 0 20px 0; */
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 400px;
  width: 100%;
}

.carousel .card {
  display: flex;
  width: 400px;
  height: 400px;
  transform-origin: center center;
  transform: scale(1) translate(0px, 0px) perspective(750px) rotateY(0deg);
  transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
  transition-duration: 500ms;
  position: absolute;
  top: 0;
  z-index: 3;
}

.carousel .card *:not(.card__button) {
  pointer-events: none;
}

.carousel .card--left-left-left {
  transform: scale(0.85) translate(-450px, 0px) perspective(750px) rotateY(0deg);
  box-shadow: 0 3.7px 7px rgba(0, 0, 0, 0.1);
  z-index: 0;
  opacity: 0.8;
}

.carousel .card--left-left {
  transform: scale(0.90) translate(-350px, 0px) perspective(750px) rotateY(0deg);
  box-shadow: 0 7.5px 13.5px rgba(0, 0, 0, 0.1);
  z-index: 1;
  opacity: 1;
}

.carousel .card--left {
  transform: scale(0.95) translate(-200px, 0px) perspective(750px) rotateY(0deg);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
  z-index: 2;
  opacity: 1;
}

.carousel .card--center {
  transform: scale(1) translate(0px, 0px) perspective(750px) rotateY(0deg);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.1);
  z-index: 3;
  opacity: 1;
}

.carousel .card--right {
  transform: scale(0.95) translate(200px, 0px) perspective(750px) rotateY(0deg);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
  z-index: 2;
  opacity: 1;
}

.carousel .card--right-right {
  transform: scale(0.90) translate(350px, 0px) perspective(750px) rotateY(0deg);
  box-shadow: 0 7.5px 13.5px rgba(0, 0, 0, 0.1);
  z-index: 1;
  opacity: 1;
}

.carousel .card--right-right-right {
  transform: scale(0.85) translate(450px, 0px) perspective(750px) rotateY(0deg);
  box-shadow: 0 3.7px 7px rgba(0, 0, 0, 0.1);
  z-index: 0;
  opacity: 0.8;
}

.carousel .card__img {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.carousel .card__img_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  display: flex;
  align-items: baseline;
  justify-content: center;
  border-radius: 0.5rem;
  box-shadow: 0px 10px 27px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.img {
  display: initial;
}


.carousel .card__button {
  user-select: none;
  height: 40px;
  width: 40px;
  position: absolute;
  float: right;
  top: 16px;
  font-weight: 900;
  font-size: 40px;
  background: #fff;
  display: inline-block;
  color: #303030;
  border: none;
  line-height: 0;
  /* padding: 0px 10px; */
  text-transform: uppercase;
  border-radius: 50px;
  right: 16px;
  transition: ease 0.3s;
  padding-bottom: 0px;
}

.carousel .card__button::after {
  position: absolute;
  content: '+';
  left: 8px;
  top: 21px;
  font-weight: 900;
  font-size: 40px;

  display: block;
  color: #303030;
}

.carousel .card__button:hover::after {
  content: 'partager';
  color: #fff;
  width: 160px;
  font-size: 20px;
  padding: 0px 0 0 2px;
}

.card__button:hover {
  content: 'partager';
  background: #303030;
  color: #fff;
  width: 180px;
}



@media only screen and (max-width : 736px) {
  .carousel {
    flex-direction: column;
    margin: 0PX 0px;
  }


  .carousel .card__img_img {
    position: relative;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .carousel .card__img {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
  }

  .carousel .card {
    width: 300px;
    height: 300px;
    display: block;
  }


  .carousel .card--right-right {
    transform: scale(0.85) translate(-110%, 0px) perspective(0px) rotateY(0) rotateX(0deg) translateZ(-5px);
    opacity: 1;
  }

  .carousel .card--center {
    transform: scale(0.90) translate(0px, 0px) perspective(0px) rotateY(0) rotateX(0deg) translateZ(-5px);
    opacity: 1;
  }

  .carousel .card--right {
    transform: scale(0.85) translate(110%, 0px) perspective(0px) rotateY(0) rotateX(0deg) translateZ(0px);
    opacity: 1;
  }

  
}

button:focus {
  outline: 0;
}