/*==== Carousel ====*/

#carousel {
  box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.2); /* generate the shadow under the carousel*/
}
.carousel-inner {
  /* margin-top: 4rem; */
  max-height: 100rem !important;
  /*height of the carousel*/
}

@media (min-aspect-ratio: 19/9){
  .carousel-inner{
    width: 100%;
    height: auto;
  }
}

@media (max-aspect-ratio: 19/9){
  .carousel-inner{
    width: auto;
    height: 100%;
  }
}
.gradient {
  background: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.8));
  min-height: 100vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

/*-- Change Carousel transition Speed --*/
.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
  transition: transform 1.4s ease;
}

/*-- Carousel Content --*/
.carousel-caption {
  position: absolute;
  top: 54%;
  transform: translateY(-50%);
  text-transform: uppercase;
  /* width: 50%; */
}
.bg-custom {
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border-radius: 0.5rem;
}
.carousel-caption h1 {
  font-size: 2rem;
  text-shadow: 0.1rem 0.1rem 0.3rem rgba(0, 0, 0, 1);
}
.border-primary {
  border-top: 0.2rem solid #4981b3 !important;
}
.carousel-caption h3 {
  font-size: 1.2rem;
  text-shadow: 0.1rem 0.1rem 0.3rem rgba(0, 0, 0, 1);
  width: 50%;
}
.btn-lg {
  border-radius: 0;
  text-transform: uppercase;
  font-size: 1rem;
  border-width: medium;
}
.btn-info {
  background-color: #4981b3 !important;
  border: 0.1rem solid #172c3f;
}
.btn-info:hover,
.btn-info:focus {
  background-color: #0c4783 !important;
  border: 0.1rem solid #5da5e9 !important;
}

.carousel-caption-work {
  position: absolute;
  top: 90%;
  transform: translateY(-50%);
  text-transform: uppercase;
}
/* controle de la position des flèche du carousel*/
.carousel-control-next, .carousel-control-prev {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  /* align-items: center; */
  align-items: end;
  justify-content: center;
  width: 15%;
  padding: 0;
  color: #fff;
  text-align: center;
  background: 0 0;
  border: 0;
  opacity: .5;
  transition: opacity .15s ease;
  }