body {
  margin: 0;
  font-family: 'Raleway', sans-serif;
}

.header {
  height: 77px;
  border-bottom: 1.9px solid black;
  display: flex;
  align-items: center;
}

.fleche img {
  width: clamp(80px, 10vw, 140px);
  margin-left: 28px;
}

.fleche:hover {
  opacity: 0.4;
}

h1 {
  text-align: center;
  font-weight: 200;
  font-size: clamp(40px, 5vw, 60px);
  margin-top: 70px;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 20px;
}

.carousel {
  position: relative;
  height: 400px;
  margin-top: 80px;
}

.carousel-track {
  position: relative;
  height: 90%;
}

.carousel-track img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 330px;
  height: 200px;
  object-fit: cover;
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-track img.active:hover {
  transform: translate(-50%, -60%);
}

.carousel-track img.active {
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 340px;
  opacity: 1;
  z-index: 5;
  box-shadow: -8px 8px 20px rgba(255, 255, 255, 0.9),
    8px 8px 20px rgba(255, 255, 255, 0.9);
}

.carousel-track img.left {
  left: 40%;
  transform: translate(-50%, -50%);
  height: 280px;
  opacity: 0.8;
  z-index: 3;
  box-shadow: -25px 0px 30px rgba(0, 0, 0, 0.9);
}

.carousel-track img.right {
  left: 60%;
  transform: translate(-50%, -50%);
  height: 280px;
  opacity: 0.8;
  z-index: 3;
  box-shadow: 25px 0px 30px rgba(0, 0, 0, 0.9);
}

.carousel-track img.left2 {
  left: 30%;
  transform: translate(-50%, -50%);
  height: 230px;
  opacity: 0.5;
  box-shadow: -25px 0px 30px rgba(0, 0, 0, 0.9);
}

.carousel-track img.right2 {
  left: 70%;
  transform: translate(-50%, -50%);
  height: 230px;
  opacity: 0.5;
  box-shadow: 25px 0px 30px rgba(0, 0, 0, 0.9);
}

.carousel-track img.left3 {
  left: 20%;
  transform: translate(-50%, -50%);
  height: 180px;
  opacity: 0.2;
}

.carousel-track img.right3 {
  left: 80%;
  transform: translate(-50%, -50%);
  height: 180px;
  opacity: 0.2;
}

.arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.prev {
  left: 20%;
}

.next {
  right: 20%;
}

.arrow img {
  width: 27px;
}

.arrow:hover {
  opacity: 0.3;
}

.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(50, 50, 50);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.fullscreen img {
  max-width: 90vw;
  max-height: 90vh;
  user-select: none;
  -webkit-user-drag: none;
}

.fullscreen img:first-child {
  pointer-events: none;
}

.close {
  position: absolute;
  top: 0px;
  right: -50px;
  width: 200px;
  height: auto;
  cursor: pointer;
  opacity: 1;
}

.close:hover {
  opacity: 0.5;
}

.carousel-track img.active {
  left: 50%;
}

.carousel-track img.left {
  left: 45%;
}

.carousel-track img.right {
  left: 55%;
}

.carousel-track img.left2 {
  left: 42%;
}

.carousel-track img.right2 {
  left: 58%;
}

.carousel-track img.left3 {
  left: 39%;
}

.carousel-track img.right3 {
  left: 60%;
}

.arrow {
  z-index: 1000;
}

.carousel-track img {
  pointer-events: none;
}

.carousel-track img.active {
  pointer-events: auto;
}

@media screen and (min-width: 769px) and (max-width: 1100px) {
  .prev {
    left: 11%;
  }

  .next {
    right: 11%;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .header {
    display: flex;
    align-items: center;
    padding: 0 20px;
  }

  .fleche img {
    margin-left: 0;
  }

  h1 {
    font-size: 32px;
    margin-top: 40px;
    text-underline-offset: 10px;
  }

  .carousel {
    height: auto;
  }
  
  .carousel-track img {
    pointer-events: auto;
  }

  .carousel-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -40px;
  }

  .carousel-track img,  
  .carousel-track img.active,
  .carousel-track img.left,
  .carousel-track img.right,
  .carousel-track img.left2,
  .carousel-track img.right2,
  .carousel-track img.left3,
  .carousel-track img.right3  {
    position: static;
    transform: none;
    opacity: 1;
    width: 90%;
    height: auto;
    margin: 15px 0;
    box-shadow: none;
    box-shadow: 4px 5px 4px rgba(0, 0, 0, 0.4);
    border-radius: 1%;
  }

  .arrow {
    display: none;
  }

  .close {
    top: -15px;
    right: -80px;
    width: 250px;
  }
}