.timeBox {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  /* border-top: 10px #cbad84 solid; */
  /* border-bottom: 10px #cbad84 solid; */
  background: transparent url(/img/v_maison-home.jpg) no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
}


#HistoContainer {
  width: 600%; /* 5 fois la largeur de l'écran */
  position: relative;
  overflow: hidden;
}
.screen {
  width: 100vw; /* 20% de la largeur de l'écran */
  height: 100vh;
  float: left;
  /* border: 1px red solid; */
  box-sizing: border-box;
  position: relative;
}





/*  SLIDER  */
.carousel__slide h2 {
  font-family: "Cormorant Unicase", serif;
  font-style: normal;
  font-size: 8vw;
  font-weight: 100;
  line-height: 4.9vw;
  margin: 0;
  margin: 0 0 1.5vw 0vw;
  width: 100vw;
  height: 100vh;
  /* border: 1px red solid; */
  text-align: center;
  /* top: 50vh; */
  justify-content: center;
  align-content: center;
  display: grid;
}
.carousel__slide h2 span {
  text-align: right;
}
.carousel__slide h2 strong {
  display: block;
  font-weight: 100;
}

.carousel__slide h3 {
  width: 30vw;
  margin: 10vw 0 4vw 18vw;
  position: absolute;
  font-size: 1.2vw;
  line-height: 1.5vw;
  text-transform: uppercase;
  font-weight: 500;
  color: #cbad84;
  padding-top: 5vw;
  height: 7vw;
  background-position: right bottom!important;

}
.carousel__slide h3.decompte1 {
  background: transparent url("/img/decompte_1.svg") no-repeat;
}
.carousel__slide h3.decompte2 {
  background: transparent url("/img/decompte_2.svg") no-repeat;
}
.carousel__slide h3.decompte3 {
  background: transparent url("/img/decompte_3.svg") no-repeat;
}
.carousel__slide h3.decompte4 {
  background: transparent url("/img/decompte_4.svg") no-repeat;
}
.carousel__slide h3.decompte5 {
  background: transparent url("/img/decompte_5.svg") no-repeat;
}

.carousel__slide p {
  width: 30vw;
  height: 30vw;
  margin-top: 16.5vw;
  margin-left: 18vw;
  position: absolute;
  font-size: 1vw;
  font-weight: 200;
  padding-top: 2vw;
}

.carousel__slide .vBox {
  /* border: 1px red solid; */
  width: 33vw;
  height: 33vw;
  margin-left: 50vw;
  position: absolute;
  display: grid;
  align-items: center;
  align-content: center;
  justify-content: center;
  top: 118vh;
  margin-top: -50%;

  /* transition: all 1s ease; */
}

.carousel__slide img {
  /* max-width: 35vw;
  max-height: 35vw; */
  /* width: auto;
    height: auto; */
  /* opacity: 0; */
  /* margin-left: -25vw; */
  left: 0;
  transition: all 3s ease;
  /*border: 1px #cbad84 solid;*/
}
.carousel__slide img.zoom {
  opacity: 1;
  /*-moz-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -o-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);*/
}

@keyframes tonext {
  75% {
    left: 0;
  }
  95% {
    left: 100%;
  }
  98% {
    left: 100%;
  }
  99% {
    left: 0;
  }
}

@keyframes tostart {
  75% {
    left: 0;
  }
  95% {
    left: -300%;
  }
  98% {
    left: -300%;
  }
  99% {
    left: 0;
  }
}

@keyframes snap {
  96% {
    scroll-snap-align: center;
  }
  97% {
    scroll-snap-align: none;
  }
  99% {
    scroll-snap-align: none;
  }
  100% {
    scroll-snap-align: center;
  }
}

* {
  box-sizing: border-box;
  scrollbar-color: transparent transparent; /* thumb and track color */
  scrollbar-width: 0px;
}

*::-webkit-scrollbar {
  width: 0;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: transparent;
  border: none;
}

* {
  -ms-overflow-style: none;
}

ol,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.carousel {
  position: relative;
  padding-top: 75%;
  /* filter: drop-shadow(0 0 10px #0003); */
  perspective: 100px;
}

.carousel__viewport {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  overflow-y: hidden;
  /* counter-reset: item; */
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  height: 101vh;
}

.carousel__slide {
  /* position: relative; */
  /* flex: 0 0 100%; */
  /* width: 100%;
  height: 100vh; */
  /* counter-increment: item; */
  margin-bottom: -2px;
}

/* .carousel__snapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
} */

@media (prefers-reduced-motion: reduce) {
  .carousel__snapper {
    animation-name: none;
  }
}

.carousel:hover .carousel__snapper,
.carousel:focus-within .carousel__snapper {
  animation-name: none;
}

.carousel__navigation {
  width: 100vw;
  position: absolute;
  right: 0;
  bottom: -5vh;
  top: 90vh;
  left: 0;
  text-align: center;
  height: 2vw;
  font-size: 2vw;
}

.carousel__navigation-list,
.carousel__navigation-item {
  display: inline-block;
}

.carousel__navigation-button {
  display: inline-block;
  width: 0.5vw;
  height: 0.5vw;
  background-clip: content-box;
  /* border: 0.25rem solid #cbad84; */
  border-radius: 50%;
  font-size: 0;
  background-color: #666666;
  transition: all 0.5s ease;
}
.carousel__navigation-button.ON {
  background-color: #cbad84;
  transition: all 0.5s ease;
}

.carousel::before,
.carousel::after,
.carousel__prev,
.carousel__next {
  /* position: absolute; */
  /* top: 50vh; */
  /* margin: 17.5vw 0 0 0;
  margin-top: -4vh;
  width: 14vw;
  height: 100vh; */
  /* transform: translateY(-50%); */
  font-size: 0;
  outline: 0;
  /* border: 1px red solid; */
}


.carousel::before,
.carousel::after {
  content: "";
  z-index: 100;
  top: 45vh;
  margin: 21.5vw 0 0 6.5vw;
  margin-top: -4vh;
  width: 1.5vw;
  height: 15vh;
  pointer-events: none;
  /* transform: rotate(90deg); */
}

.carousel__prev,
.carousel__next {
  /* margin: 0;
  height: 100vh; */
  background: transparent url("/img/picto_fleche-verticale.svg") no-repeat;
  background-position: center center;
  background-size: 2vw;
  /* border: 1px red solid; */
  transform: rotate(-90deg);
  /* width: 100vh;
  height: 14vw;
  position: fixed;
  display: none; */
  position: absolute;
  bottom: 33vh;
  left: auto;
  right: 3vw;
  width: 10vw;
  height: 15vw;
}
.carousel__prev {
  /* border-top: 1px cyan solid; */
  transform: rotate(90deg);
  /* transform-origin: left bottom;
  left: 2vw;
  right: 0;
  bottom: 0;
  top: -14vw; */
  left: 3vw;
}

.carousel::after {
  /* transform: rotate(-90deg); */
  right: 6.5vw;
}

.carousel::after:hover {
  right: 4.5vw;
}

/* #refbox {
  position: fixed;
  top: 0%;
  left: 0;
  border: 1px red solid;
  padding: 1vw;
} */

@media (max-width: 414px) {
  .carousel__slide {
    position: relative;
  }
  .carousel__slide h2 {
    font-size: 19vw;
    line-height: 12vw;
  }
  .carousel__slide h2 span {
    text-align: inherit;
  }
  .carousel__slide p {
    font-size: 3.5vw;
    padding-top: 6vw;
    line-height: 5vw;
    margin-left: 6vw;
    margin-top: 30vw;
    width: 90vw;
  }
  .carousel__slide h3.decompte1 {
    background-position: 42vw bottom;
  }
  .carousel__slide h3 {
    width: 90vw;
    font-size: 5vw;
    line-height: 5vw;
    padding-bottom: 1vw;
    margin: 4vw 0 4vw 6vw;
    background-position: center top !important;
    background-size: 15vw !important;
    padding-top: 20vw;
    text-align: center;
  }
  .carousel__slide .vBox {
    /* border: 1px red solid; */
    width: 100vw;
    height: 70vw;
    margin-left: auto;
    position: inherit;
    display: grid;
    align-items: center;
    align-content: center;
    justify-content: center;
    top: auto;
    margin-top: 100%;
    overflow: hidden;
    /* transition: all 1s ease; */
  }
  .carousel__slide img {
    max-width: 70vw;
    max-height: inherit;
    opacity: 1;
    margin-left: -25vw;
    left: 0;
    transition: all 3s ease;
    /* border: 1px #cbad84 solid; */
    margin-left: 0;
  }

  .carousel__prev,
  .carousel__next {
    margin: 0;
    /* height: 100vh; */
    background: transparent url(/img/picto_fleche-verticale.svg) no-repeat;
    background-position: center bottom;
    background-size: 10vw auto;
    
    transform: rotate(-90deg);
    width: 10vh;
    height: 20vw;
    /* position: fixed; */
    display: block;
    position: absolute;
    bottom: 0;
    top: auto;
    right: auto;
    /* border: 1px red solid; */

  }
    .carousel__next {
    /* transform-origin: right bottom; */
    right: 5vw;
  }
  .carousel__prev {
    /* border-top: 1px cyan solid; */
    transform: rotate(90deg);
    /* transform-origin: left bottom; */
    left: 5vw;
    /* right: 0;
    bottom: 0;
    top: 132vw; */
  }
  .carousel__navigation {
    bottom: -5vh;
    top: 88vh;
    left: 0;
    text-align: center;
    height: 2vw;
    font-size: 2vw;
    /* display: none; */
  }
  .carousel__navigation-button {
    width: 3vw;
    height: 3vw;
    margin: 0 0.5vw;
  }
}

@media all and (min-width: 415px) and (max-width: 1023px) {
  .screen .carousel__slide {
    display: grid;
    justify-content: center;
    align-items: center;
    justify-items: center;
    align-content: center;
  }
  .tBox {
    /* border: 1px red solid; */
    width: 50vw;
    height: auto;
    margin: auto;
    padding: 2vw 0;
  }
  .vBox {
    /* border: 1px blue solid; */
    width: 50vw!important;
    height: 50vw!important;
    margin: auto!important;
    top: auto!important;
    position: relative!important;
  }
  
  .carousel__slide h3 {
    width: 100%;
    margin: 0;
    position: relative;
    font-size: 2vw;
    text-transform: uppercase;
    font-weight: 500;
    color: #cbad84;
    padding-top: 5vw;
    height: 7vw;
    background-position: right bottom!important;
}
  .carousel__slide p {
    width: 100%;
    height: auto;
    margin-top: 1vw; 
    margin-left: 0;
    position: relative;
    font-size: calc(16px + 0.5vw);
    line-height: calc(16px + 1vw);
    font-weight: 200;
}
.carousel__slide img {
  max-width: auto!important;
  max-height: auto!important;
  left: 0;
  transition: all 3s ease;

}

.carousel__prev, .carousel__next {
  background-position: bottom;
  background-size: 10vw;
  /* border: 1px red solid; */
  transform: rotate(-90deg);
  position: absolute;
  bottom: 46vh;
  left: auto;
  right: 3vw;
  width: 10vw;
  height: 10vw;
  max-width: 50px;
    max-height: 50px;
}
.carousel__prev {
  transform: rotate(90deg);
  left: 3vw;
  right: auto;

}
}

@keyframes histoFadeImg {
  0% {
    transform: scale(110%);
    opacity: 0;
  }
  100% {
    transform: scale(100%);
    opacity: 1;
  }
}



@keyframes zoomfadedown {
  0% {
    transform: scale(100%);
    opacity: 1;
  }
  100% {
    transform: scale(50%);
    opacity: 0;
  }
}
@keyframes zoomfadeup {
  0% {
    transform: scale(150%);
    opacity: 0;
  }
  100% {
    transform: scale(100%);
    opacity: 1;
  }
}