main section:nth-child(1) {
  margin: 38% auto 0 auto;
  width: 60vw;
  background: rgb(255, 255, 255);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 0%,
    rgba(0, 0, 0, 0) 90%
  );
  display: flex;
  justify-content: center;
}
main section:nth-child(1) img {
  object-fit: contain;
  width: 200px;
}

/* main li{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    }
    main ul{
      width: 100%;
      background: rgb(255, 255, 255);
      background: radial-gradient(
        circle,
        rgba(255, 255, 255, 1) 0%,
        rgba(0, 0, 0, 0) 90%
      );
      display: flex;
      justify-content: space-between; */
/* }
     main ul img {
      margin: 1rem;
    } */
.partenaires {
  margin-top: 150px;
  text-align: center;
}

.container {
  position: relative;
  width: 320px;
  margin: 100px auto 350px auto;
  perspective: 1000px;
}

.carousel {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: rotate360 30s infinite forwards linear;
}
.carousel__face {
  display: block;
  position: absolute;
  width: 150px;
  height: 100px;
  top: -5px;
  left: 10px;
  right: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  display: flex;
  /* justify-items: center;
      align-items: center; */
}

/* .carousel__face:nth-child(1) {
  background-image: url("/img/LogoAMSPetit.png");
  transform: rotateY(0deg) translateZ(430px);
}
.carousel__face:nth-child(2) {
  background-image: url("/img/LogoMetropolePetit.png");
  transform: rotateY(calc((360 / (var(--nbPartenaires) + 1))*1));
  transform:  translateZ(430px);
}
.carousel__face:nth-child(3) {
  background-image: url("/img/LogoMinisterePetit.png");
  transform: rotateY(calc((360 / (var(--nbPartenaires) + 1))*2)) translateZ(430px);

}
.carousel__face:nth-child(4) {
  background-image: url("/img/LogoSapPetit.png");
  transform: rotateY(calc((360 / (var(--nbPartenaires) + 1))*3)) translateZ(430px);
}
.carousel__face:nth-child(5) {
  background-image: url("/img/LogoScop2Petit.png");
  transform: rotateY(160deg) translateZ(430px);
}
.carousel__face:nth-child(6) {
  background-image: url("/img/LogoUnepPetit.png");
  transform: rotateY(200deg) translateZ(430px);
}
.carousel__face:nth-child(7) {
  background-image: url("/img/logo-aggregotech.jpg");
  transform: rotateY(240deg) translateZ(430px);
} */
/* .carousel__face:nth-child(8) {
      background-image: url("/img/Dep13.png");
      transform: rotateY(280deg) translateZ(430px); }
    .carousel__face:nth-child(9) {
      background-image: url("/img/wp-logo-marche-1024x576.png");
      transform: rotateY(320deg) translateZ(430px); } */

@keyframes rotate360 {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(-360deg);
  }
}

.catchphrase {
  color: white;
  position:relative;
  top: 25px;
  text-align: center;
  font-size: 2rem;
  text-shadow: 0 0 2px black;
}
.concept img,
video {
  float: left;
  width: 491px;
  margin-right: 2.6rem;
  z-index: -100;
}
.concept p {
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}
.concept p:last-of-type {
  font-style: italic;
}

section h2 {
  margin: 40vh 0 10vh 0;
  font-size: 3rem;
}

@media screen and (max-width: 998px) {
  .catchphrase {
    color: white;
    position:relative;
    top: 20px;
    text-align: center;
    font-size: 1.4rem;
    text-shadow: 0 0 2px black;
  }
  main {
    width: 100vw;
    overflow-x: hidden;
  }
  section h2 {
    margin: 30vh 0 10vh 0;
    font-size: 2rem;
  }
  main p {
    margin: 0 20px;
  }
  .concept p {
    line-height: 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    text-align: center;
  }
  video {
    display: none;
  }
  section h2 {
    margin-top: 150px;
  }
  .carousel {
    top: 2rem;
  }
}
