/* --- HOME HERO --- */
.home-hero.wp-block-columns {
  padding: 0;
  gap: 0;
}

.home-hero .wp-block-column:not(:last-child) {
  border-right: 1px solid var(--blue-secondary);
}

.home-hero .wp-block-column {
  border-bottom: 1px solid var(--blue-secondary);
}

.home-hero .home-hero__content h2 {
  margin-bottom: 0;
}

.home-hero .home-hero__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--orange-primary);
}


@media (max-width: 1024px) {
   .home-hero.wp-block-columns {
    flex-wrap: wrap!important;
   }
   
  .home-hero.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
    flex-basis: 50% !important;
  }
}

/* MOBILE */
@media (max-width: 781px) {
  .home-hero .home-hero__content .home-hero__description {
    display: none;
  }

  .home-hero .wp-block-column {
    height: 288px;
    height: 100%;
  }

  .home-hero .home-hero__image {
    position: relative;
    z-index: 1;
    overflow: hidden;
  }

  .home-hero .home-hero__image img {
    width: 100%;
    height: 288px;
    object-fit: cover;
    transform: scale(1.25);
    transform-origin: top center;
    transition: transform 0.4s ease-out, height 0.4s ease-out;
  }

  .home-hero .home-hero__content {
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 16px 48px 16px;
    z-index: 2;
    background: linear-gradient(180deg, rgba(29, 51, 91, 0) 0%, #1D335B 50%);
  }

  .home-hero .home-hero__content .home-hero__arrow {
    position: absolute;
    bottom: 0;
    width: 32px;
    height: 32px;
  }
}

/* DESKTOP */
@media (min-width: 782px) {
  .home-hero .wp-block-column {
    min-height: 620px;
    height: 100%;
  }

  .home-hero .home-hero__image {
    position: relative;
    z-index: 1;
    overflow: hidden;
  }

  .home-hero .home-hero__image img {
    width: 100%;
    height: 475px;
    object-fit: cover;
    transform: scale(1.25);
    transform-origin: top center;
    transition: transform 0.4s ease-out, height 0.4s ease-out;
  }

  .home-hero .wp-block-column:hover .home-hero__image img {
    height: 300px;
    object-position: bottom;
    transform: scale(1);
  }

  .home-hero .home-hero__content {
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 32px 64px 32px;
    z-index: 2;
    height: 300px;
    background: linear-gradient(180deg, rgba(29, 51, 91, 0) 0%, #1D335B 50%);
    transition: background 0.4s ease-out, height 0.4s ease-out;
  }

  .home-hero .wp-block-column:hover .home-hero__content {
    height: 60%;
    background: linear-gradient(180deg, #515f87 0%, #515f87 100%) !important;
  }

  .home-hero .home-hero__content .home-hero__description {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition:
      opacity 0.4s ease-out,
      max-height 0.5s ease-out;
  }

  .home-hero .wp-block-column:hover .home-hero__content .home-hero__description {
    opacity: 1;
    max-height: 300px;
  }

  .home-hero .home-hero__content .home-hero__arrow {
    position: absolute;
    bottom: 0;
    width: 44px;
    height: 44px;
  }
}

/* HOME GRILLE */
.home-grille {
  position: relative;
  padding: 0;
  gap: 0;
  z-index: 1;
}

.home-grille .home-grille__carte {
  position: relative;
}

.home-grille p {
  margin-bottom: 24px !important;
}

.home-grille .home-grille__image figure {
  height: 100%;
  width: 100%;
}

.home-grille .home-grille__image figure img {
  height: 100%;
  width: 100% !important;
  object-fit: cover;
}

@media (max-width: 781px) {
  .home-grille .home-grille__carte {
    padding: 52px 24px;
  }

  .home-grille .home-grille__image figure img {
    aspect-ratio: 1;
  }
}

@media (min-width: 782px) {
  .home-grille .home-grille__carte {
    padding: 52px;
  }

  .home-grille.home-grille__bottom {
    padding-bottom: 80px;
  }
}

.texte-scrolling {
  display: flex;
  width: fit-content;
  height: auto;
  z-index: 0;
  position: absolute;
  top: 50%;
  animation: defilement 10s linear infinite;
}

.texte-scrolling img {
  display: block;
  height: 120px;
  object-fit: contain;
  min-width: fit-content;
}

@keyframes defilement {
  0% {
    transform: translateY(-50%) translateX(0%);
  }

  100% {
    transform: translateY(-50%) translateX(-50%);
  }
}