/* main */
main {
  margin: 0 1% 10% 1%;
}
.entete{
  display: flex;
justify-content: center;
align-items: center;
}
h1 {
  color: var(--color-text);
  font-size: 3rem;
}

.entete img {
  width: 4%;
  height: 50%;
  border-radius: 5px;
  margin-left: 1%;
}

/* carousel */

.villes_carousel {
  /* position: absolute; */
  margin: 4% auto 2%;
  padding: 40px 10px;
  justify-content: center;
  width: 90%;
  height: 400px;
  background-color: rgba(0, 0, 0, 0.65);
  border-radius: 15px;
  display: flex;
}
.container {
  /* display: flex; */
  position: absolute;
  width: 400px;
  margin: 0px auto 0 auto;
  perspective: 1000px;
}

.carousel {
  /* position: absolute; */
  width: 100%;
  /* height: 100%; */
  transform-style: preserve-3d;
  animation: rotate360 45s infinite forwards linear;
}
.carousel:hover {
  animation-play-state: paused;
}

.carousel_face {
  align-items: flex-end;
  position: absolute;
  width: 80%;
  height: 187px;
  top: 20px;
  left: 10px;
  right: 10px;
  background-size: cover;
  display: flex;
  justify-content: center;
  border-radius: 10px;
}

.ville {
  display: flex;
  justify-content: center;
}

span {
  margin: auto auto 5px auto;
  font-size: 2rem;
  -webkit-text-stroke: 1px;
  -webkit-text-stroke-color: green;
  text-align: center;
  color: white;
}

.carousel_face:nth-child(1) {
  background-image: url("../ASSETS/Japon/drapeau.png");
  transform: rotateY(0deg) translateZ(430px);
  opacity: 0.5;
}
.carousel_face:nth-child(2) {
  background-image: url("../ASSETS/Japon/tokyo.jpg");
  transform: rotateY(60deg) translateZ(430px);
  opacity: 0.5;
}
.carousel_face:nth-child(3) {
  background-image: url("../ASSETS/Japon/kyoto.jpg");
  transform: rotateY(120deg) translateZ(430px);
  opacity: 0.5;
}
.carousel_face:nth-child(4) {
  background-image: url("../ASSETS/Japon/osaka.jpg");
  transform: rotateY(180deg) translateZ(430px);
  opacity: 0.5;
}
.carousel_face:nth-child(5) {
  background-image: url("../ASSETS/Japon/hiroshima.jpg");
  transform: rotateY(240deg) translateZ(430px);
  opacity: 0.5;
}
.carousel_face:nth-child(6) {
  background-image: url("../ASSETS/Japon/kurashiki.jpg");
  transform: rotateY(300deg) translateZ(430px);
  opacity: 0.5;
}

.carousel_face:nth-child(1):hover {
  opacity: 1;
  transition: 0.5s;
}
.carousel_face:nth-child(2):hover {
  opacity: 1;
  transition: 0.5s;
}
.carousel_face:nth-child(3):hover {
  opacity: 1;
  transition: 0.5s;
}
.carousel_face:nth-child(4):hover {
  opacity: 1;
  transition: 0.5s;
}
.carousel_face:nth-child(5):hover {
  opacity: 1;
  transition: 0.5s;
}
.carousel_face:nth-child(6):hover {
  opacity: 1;
  transition: 0.5s;
}

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

.villes_responsive {
  display: none;
}
/* fond opaque + texte au mileu en hover */

.text {
  background-color: rgba(255, 255, 255, 0.253);
  /* -webkit-text-stroke: 1px;
 -webkit-text-stroke-color: white; */
  font-weight: bold;
  border-radius: 10px;
  text-align: justify;
  color: black;
  font-size: 16px;
  padding: 5px 5px;
  opacity: 0;
}

.description:hover .text {
  opacity: 1;
  transition: 1s;
}
/* .ville:hover .text{
    opacity: 1;
  } */

/* fin carousel */

.page_responsive {
  display: none;
}

@media screen and (max-width: 768px) and (min-width: 426px) {
  .villes_carousel {
    background-color: rgba(0, 0, 0, 0.65);
    width: 80%;
    height: 2100px;
  }
  .page_responsive {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .container {
    display: none;
  }
  .entete img {
    width: 7%;
  }
  
  main img {
    border-radius: 10px;
    width: 30%;
  }
  .villes {
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70em;
  }

  h3 {
    margin: 5px 0 0 0;
    text-decoration: underline;
  }
  main p {
    margin: 5px 0 50px 0;
    max-width: 250px;
    text-align: justify;
  }
}

@media screen and (max-width: 425px) {
  .villes_carousel {
    background-color: rgba(0, 0, 0, 0.65);
    width: 80%;
    height: 1650px;
  }
  .page_responsive {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .container {
    display: none;
  }
  .entete img {
    width: 12%;
  }
  
  main img {
    border-radius: 10px;
    width: 20%;
  }
  .villes {
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70em;
  }

  h3 {
    margin: 5px 0 0 0;
    text-decoration: underline;
  }
  main p {
    margin: 5px 0 50px 0;
    max-width: 250px;
    text-align: justify;
  }
}
