/**
 * Block : Carousel HP
 * =================================
 *
 *
 *
 */

:root {
  --bg-primary: #d9d9d9;
}

.tns-outer {
  position: relative;
}

.wp-block-group > .tns-outer > .tns-nav {
  display: none;
}

.tns-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 100%;
  max-width: 1300px;
  transform: translateX(-50%);
  z-index: 2;
}

@media screen and (min-width: 480px) and (max-width: 1300px) {
  .tns-nav {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media screen and (max-width: 1300px) {
  .tns-nav {
    max-width: 100%;
  }
}

@media screen and (max-width: 769px) {
  .tns-nav {
    padding: 0 20px;
  }
}

@media screen and (max-width: 768px) {
  .carousel-hp .tns-nav {
    display:none;
  }
}

.tns-nav > button {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 10px;
  background-color: var(--bg-primary);
  transition: width 0.8s ease-out;
}

.tns-nav > button.tns-nav-active {
  width: 70px;
  background-color: var(--secondary);
}

.tns-nav > button:not(:last-child) {
  margin-right: 10px;
}

.carousel-hp {
  position: relative;
  background-image: url("bg-entete.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.carousel-hp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

@media screen and (min-width: 992px) {
  .carousel-hp__body {
    min-height: 500px;
  }
}

.carousel-hp__slides-item {
  height: 100%;
}

@media screen and (max-width: 769px) {
  .carousel-hp__slides-item {
    padding-top: 80px;
  }
}

.carousel-hp__slides-item.tns-fadeOut .carousel-hp__title {
  transform: translateY(30px);
  opacity: 0;
}

.carousel-hp__slides-item.tns-fadeIn .carousel-hp__title {
  transform: translateY(0);
  opacity: 1;
}

.carousel-hp__title {
  margin-bottom: 40px;
  transform: translateY(30px);
  opacity: 0;
  line-height: 1.4;
  transition: all 800ms cubic-bezier(0.17, 0.84, 0.44, 1);
}

@media screen and (max-width: 1440px) {
  .carousel-hp__title {
    font-size: 2.3rem;
    line-height: 1.4;
  }
}

@media screen and (max-width: 992px) {
  .carousel-hp__title {
    font-size: 2.1rem;
  }
}

@media screen and (max-width: 480px) {
  .carousel-hp__title {
    font-size: 1.7rem;
  }
}

.mb-block-preview .carousel-hp__title {
  transform: translateY(0);
  opacity: 1;
}

.carousel-hp__logos {
  padding: 0;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 800ms cubic-bezier(0.17, 0.84, 0.44, 1);
}

.carousel-hp__slides-item.tns-fadeOut .carousel-hp__logos {
  transform: translateY(30px);
  opacity: 0;
}

.carousel-hp__slides-item.tns-fadeIn .carousel-hp__logos {
  transform: translateY(0);
  transition-delay: 0.4s;
  opacity: 1;
}

.carousel-hp__logos-item:not(:last-child) {
  margin-right: 30px;
}

.carousel-hp__logos-item img {
  max-height: 80px;
}

@media screen and (max-width: 992px) {
  .carousel-hp__logos-item img {
    max-height: 40px;
  }
}

.carousel-hp .wp-block-button {
  display: flex;

  transform: translateX(60px);
  opacity: 0;
  transition: all 800ms cubic-bezier(0.17, 0.84, 0.44, 1);
}

@media screen and (min-width: 770px) {
  .carousel-hp .wp-block-button {
    margin-right: 60px;
    justify-content: flex-start;
  }
}

.mb-block-preview .wp-block-button {
  transform: translateX(0);
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .carousel-hp__title,
  .carousel-hp__logos,
  .carousel-hp .wp-block-button {
    margin-bottom: 15px;
  }
}

.carousel-hp__slides-item.tns-fadeOut .wp-block-button {
  transform: translateX(60px);
  opacity: 0;
}

.carousel-hp__slides-item.tns-fadeIn .wp-block-button {
  transform: translateX(0);
  transition-delay: 0.8s;
  opacity: 1;
}

.carousel-hp__circle-animation {
  position: relative;
  transform: scale(0.85);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.47, 1.64, 0.41, 0.8);
}

.carousel-hp__slides-item.tns-fadeOut .carousel-hp__circle-animation {
  transform: scale(0.85);
  opacity: 0;
}

.mb-block-preview .carousel-hp__circle-animation {
  transform: scale(1);
  opacity: 1;
}

.carousel-hp__slides-item.tns-fadeIn .carousel-hp__circle-animation {
  transform: scale(1);
  transition-delay: 0.25s;
  opacity: 1;
}

.carousel-hp__circle {
  display: flex;
  flex-shrink: 0;
  width: 100%;
  height: 560px;
}

@media screen and (max-width: 992px) {
  .carousel-hp__circle {
    max-height: 50vh;
  }
}

@media screen and (max-width: 768px) {
  .carousel-hp__circle {
    height: 400px;
  }
}

@media screen and (max-width: 480px) {
  .carousel-hp__circle {
    height: 350px;
    max-width: 400px;
  }
}

.carousel-hp__circle-animation::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-shrink: 0;
  z-index: 1;
  border: 4px solid var(--secondary);
  transform: translate(-50%, -50%);
  width: 560px;
  height: 560px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: morph 10s linear infinite;
}

.carousel-hp__circle-animation#border-style-1::before {
  top: 45%;
}

.carousel-hp__circle-animation#border-style-2::before {
  width: 100%;
  height: 400px;
  border-radius: 24% 76% 73% 27% / 30% 60% 40% 70%;
}

@media screen and (max-width: 480px) {
  .carousel-hp__circle-animation#border-style-2::before {
    height: 300px;
    max-width: 400px;
  }
}

@media screen and (max-width: 1024px) {
  .carousel-hp__circle-animation::before {
    width: 100%;
    height: 448px;
  }
}

@media screen and (max-width: 768px) {
  .carousel-hp__circle-animation::before {
    height: 100%;
  }
}

@media screen and (max-width: 480px) {
  .carousel-hp__circle,
  .carousel-hp__circle-animation::before {
    margin: 0 auto;
  }
}

.carousel-hp__image {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes morph {
  0%,
  100% {
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
  }
  34% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }
  67% {
    border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
  }
}
