/*----- Tout ce qui concerne la video ------- */

.boitevideo {
  margin-top: 10px;
  padding: 2rem 0;
  /* background-color: rgba(0, 0, 0, 0.833); */
  border-radius: 5px;
  transition: 2s;
  transform: scale(0.9);
}

.video {
  display: block;
  width: auto;
  height: 200px;
  margin: auto;
}

/*------------ le carrée qui sommes-nous-----------  */

.titre1 {
  padding-top: 5px;
  text-align: center;
}
.titrequi {
  text-decoration: underline;
  font-size: larger;
}

.txthistoire {
  text-align: justify;
  text-indent: 20px;
}
.services {
  text-align: left;
}

.listserv {
  left: 15px;
}
.lastpara {
  position: absolute;
}

#quisommenous {
  position: absolute;
  z-index: -1;
  top: 0px;
  left: 0px;
  height: calc(100%-2rem);
  width: calc(100%-2rem);
  padding: 2rem 2rem;
  color: var(--color-bleu);
}

#quisommenous h2 {
  padding-bottom: 2rem;
}

#boitecubes {
  position: relative;
  left: 3%;
  width: calc(100% - 6%);
  height: 180vh;
  text-align: justify;
  margin-top: 7rem;
}

#boitecubes div:nth-child(1) {
  position: absolute;
  z-index: -1;
  top: 0px;
  left: 0px;
  border-top: 10px solid #f9df5e;
  border-left: 10px solid#f9df5e;
  height: 150px;
  width: 150px;
  -webkit-box-shadow: -10px -8px 11px 2px rgba(249, 223, 94, 0.81);
  box-shadow: -10px -8px 11px -2px rgba(249, 223, 94, 0.81);
}

#boitecubes div:nth-child(2) {
  position: absolute;
  z-index: -1;
  top: 0px;
  right: 0px;
  border-top: 10px solid#92bc49;
  border-right: 10px solid#92bc49;
  height: 150px;
  width: 150px;
  -webkit-box-shadow: 10px -10px 25px -1px rgba(146, 188, 73, 0.91);
  box-shadow: 10px -10px 10px -5px rgba(146, 188, 73, 0.91);
}

#boitecubes div:nth-child(3) {
  position: absolute;
  z-index: -1;
  bottom: 0px;
  left: 0px;
  border-bottom: 10px solid#1084c5;
  border-left: 10px solid #1084c5;
  height: 150px;
  width: 150px;
  -webkit-box-shadow: -12px 12px 14px 0px rgba(16, 132, 197, 0.42);
  box-shadow: -12px 12px 14px 0px rgba(16, 132, 197, 0.42);
}

#boitecubes div:nth-child(4) {
  position: absolute;
  z-index: -1;
  bottom: 0px;
  right: 0px;
  border-bottom: 10px solid #e3a84f;
  box-shadow: 6px 6px 13px 0px rgba(227, 168, 79, 0.54);
  border-right: 10px solid#e3a84f;
  height: 150px;
  width: 150px;
  -webkit-box-shadow: 10px 10px 20px 7px rgba(227, 168, 79, 0.79);
  box-shadow: 10px 8px 9px -1px rgba(227, 168, 79, 0.79);
}

/* --------------------------------------------- */

/*------- le carousel----------- */
#group_caroussel {
  position: relative;
  transform: translateY(5rem);
  width: 100%;
  height: 130px;
  margin: 2rem auto;
  padding: 50px 0 15rem;
  perspective: 1000px;
  overflow: hidden;
}

#group_caroussel h2 {
  line-height: 50px;
  padding-bottom: 1rem;
  color: var(--color-bleu);
  text-align: center;
}

#group_caroussel .carousel {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: rotate3601 60s infinite forwards linear;
}

#group_caroussel .carousel__face {
  position: absolute;
  width: 150px;
  height: 60px;
  top: 50px;
  left: 10px;
  right: 10px;
  background-size: cover;
  /* box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.5); */
  display: flex;
  justify-content: center;
}

#group_caroussel a {
}

#group_caroussel img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  vertical-align: bottom;
  border: 1px solid rgba(16, 132, 197, 0.1);
}

#group_caroussel .carousel__face:nth-child(1) {
  transform: rotateY(0deg) translateZ(430px);
}
#group_caroussel .carousel__face:nth-child(2) {
  transform: rotateY(30deg) translateZ(430px);
}
#group_caroussel .carousel__face:nth-child(3) {
  transform: rotateY(60deg) translateZ(430px);
}
#group_caroussel .carousel__face:nth-child(4) {
  transform: rotateY(90deg) translateZ(430px);
}
#group_caroussel .carousel__face:nth-child(5) {
  transform: rotateY(120deg) translateZ(430px);
}
#group_caroussel .carousel__face:nth-child(6) {
  transform: rotateY(150deg) translateZ(430px);
}
#group_caroussel .carousel__face:nth-child(7) {
  transform: rotateY(180deg) translateZ(430px);
}
#group_caroussel .carousel__face:nth-child(8) {
  transform: rotateY(210deg) translateZ(430px);
}
#group_caroussel .carousel__face:nth-child(9) {
  transform: rotateY(240deg) translateZ(430px);
}
#group_caroussel .carousel__face:nth-child(10) {
  transform: rotateY(270deg) translateZ(430px);
}
#group_caroussel .carousel__face:nth-child(11) {
  transform: rotateY(300deg) translateZ(430px);
}
#group_caroussel .carousel__face:nth-child(12) {
  transform: rotateY(330deg) translateZ(430px);
}

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

/* :::::::::::::::::::::::::::::::::: */

@media (min-width: 350px) {
  #boitecubes {
    height: 160vh;
  }
}

@media (min-width: 375px) {
  #boitecubes {
    height: 105vh;
  }
}

@media (min-width: 576px) {
  #boitecubes {
    height: 130vh;
  }

  #quisommenous {
    padding: 2rem;
  }

  #carousel h2 {
    line-height: 100px;
    color: var(--color-bleu);
    padding-top: 5rem;
    text-align: center;
  }

  .video {
    display: block;
    width: auto;
    height: 400px;
    margin: auto;
  }
}

@media (min-width: 720px) {
  #boitecubes {
    height: 60vh;
  }
}

@media (min-width: 800px) {
  #boitecubes {
    height: 100vh;
  }
}

@media (min-width: 900px) {
  #boitecubes {
    height: 45vh;
  }
}

@media (min-width: 992px) {
  /* --- Qui somme nous ? --- */
  #boitecubes {
    left: calc(50% - 325px);
    width: 650px;
    height: 80vh;
    margin-top: 7rem;
  }

  @media (min-width: 1000px) {
    #boitecubes {
      height: 100vh;
    }
  }

  @media (min-width: 1200px) {
    #boitecubes {
      height: 80vh;
    }
  }

  #boitecubes div:nth-child(1) {
    top: -5px;
    left: -5px;
  }

  #boitecubes div:nth-child(2) {
    top: -5px;
    right: -5px;
  }

  #boitecubes div:nth-child(3) {
    bottom: -5px;
    left: -5px;
  }

  #boitecubes div:nth-child(4) {
    bottom: -5px;
    right: -5px;
  }

  /*------- le carousel----------- */
  #group_caroussel {
    position: relative;
    transform: translateY(0);
    width: 320px;
    margin: 100px auto 0 auto;
    padding: 50px 0 15rem;
    perspective: 1000px;
    overflow: visible;
  }

  #group_caroussel .carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate3601 60s infinite forwards linear;
  }

  #group_caroussel .carousel__face {
    position: absolute;
    width: 200px;
    height: 80px;
    top: 50px;
    left: 10px;
    right: 10px;
    background-size: cover;
    /* box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.5); */
    display: flex;
    justify-content: center;
  }

  #group_caroussel a {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #group_caroussel img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    vertical-align: bottom;
  }

  #group_caroussel .carousel__face:nth-child(1) {
    transform: rotateY(0deg) translateZ(430px);
  }
  #group_caroussel .carousel__face:nth-child(2) {
    transform: rotateY(30deg) translateZ(430px);
  }
  #group_caroussel .carousel__face:nth-child(3) {
    transform: rotateY(60deg) translateZ(430px);
  }
  #group_caroussel .carousel__face:nth-child(4) {
    transform: rotateY(90deg) translateZ(430px);
  }
  #group_caroussel .carousel__face:nth-child(5) {
    transform: rotateY(120deg) translateZ(430px);
  }
  #group_caroussel .carousel__face:nth-child(6) {
    transform: rotateY(150deg) translateZ(430px);
  }
  #group_caroussel .carousel__face:nth-child(7) {
    transform: rotateY(180deg) translateZ(430px);
  }
  #group_caroussel .carousel__face:nth-child(8) {
    transform: rotateY(210deg) translateZ(430px);
  }
  #group_caroussel .carousel__face:nth-child(9) {
    transform: rotateY(240deg) translateZ(430px);
  }
  #group_caroussel .carousel__face:nth-child(10) {
    transform: rotateY(270deg) translateZ(430px);
  }
  #group_caroussel .carousel__face:nth-child(11) {
    transform: rotateY(300deg) translateZ(430px);
  }
  #group_caroussel .carousel__face:nth-child(12) {
    transform: rotateY(330deg) translateZ(430px);
  }

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