/**
 * 2007-2024 PrestaShop
 *
 * @author    Régis Daum
 * @copyright 2007-2024
 */

.hero {
  min-height: calc(100vh - 120px);
  padding: 2vw 5vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 50px;
  background: linear-gradient(
    333deg,
    hsl(344, 69%, 37.25%),
    hsl(341.8, 27.7%, 18%)
  );
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  background-image: url(../../img/moustache-black.png);
  background-size: 60px;
  rotate: -3deg;
  z-index: -1;
  opacity: 0.05;
  pointer-events: none;
}
.hero-title {
  padding-top: 25px;
  rotate: -3deg;
  text-align: center;
  color: white;
  will-change: transform;
  transform: translateZ(0);
}
.hero-title h1 {
  font-size: clamp(20px, calc(10px + 3vw), 50px);
  line-height: 1;
  font-family: "Comfortaa", sans-serif;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}
.hero-title p {
  font-size: 1.1rem;
  margin-bottom: 0;
}
.hero-tuiles {
  display: flex;
  gap: 20px;
  align-items: stretch;
  will-change: transform;
  transform: translateZ(0);
  position: relative;
  max-width: 1340px;
  margin: 0 auto;
  z-index: 1;
}
.hero-tuile {
  padding: 40px 20px;
  background-color: var(--primary-dark);
  color: white;
  background-color: var(--primary-dark);
  border-radius: 15px;
  flex: 1;
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  isolation: isolate;
  box-shadow: 5px 5px 5px rgb(0 0 0 / 18%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  align-self: stretch;
}
.hero-tuile::before {
  content: "";
  position: absolute;
  border-radius: 15px;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  z-index: -1;
  backdrop-filter: blur(0px);
  transition: 0.3s ease;
  pointer-events: none;
}

.hero-tuile:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(0 0 0 / 50%) 20%, transparent 50%);
  z-index: -1;
  border-radius: 15px;
  opacity: 1;
}

.hero-tuile:hover {
  color: white !important;
  flex: 2;
}
.hero-tuile:hover:before {
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.7);
}
.hero-tuile:hover:after {
  opacity: 0;
}

.hero-tuile-title {
  font-size: 1.75rem;
  font-family: "Comfortaa", sans-serif;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.1;
}
.hero-tuile-punchline {
  rotate: -3deg;
  position: absolute;
  bottom: 0;
  transform: translateY(50%);
  background: var(--primary);
  padding: 3px 10px;
  font-size: 1.1rem;
  width: auto;
  max-width: 90%;
  box-shadow: 4px 3px 3px #0000006e;
  transition: 0.3s;
}
.hero-tuile:hover .hero-tuile-punchline {
  rotate: 0deg;
}
.hero-tuile-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  will-change: opacity;
  width: 100%;
  margin-top: 0;
  padding: 3px;
}
.hero-tuile-content p {
  /* max-width: 450px; */
  margin-bottom: 15px;
  margin-top: 0;
}
.hero-tuile-content a {
  display: inline-block;
  margin-top: 10px;
}
.hero-tuile-content img {
  width: 60px;
  position: absolute;
  bottom: 10px;
  right: 10px;
  fill: white;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  scale: 1;
  transition: scale 0.3s ease;
}
.hero-tuile-content img:hover {
  scale: 1.1;
}
.home-chiffre-number {
  color: var(--primary);
  font-family: Comfortaa, sans-serif;
  font-size: clamp(60px, calc(30px + 6vw), 80px);
  font-weight: 100;
  line-height: 1.3;
}
.home-chiffre-number-suffix {
  font-size: clamp(30px, calc(30px + 4vw), 60px);
}
.home-chiffre-title {
  font-size: clamp(20px, calc(10px + 3vw), 30px);
  line-height: 1.2;
}
.home-chiffre-description {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 15px;
}

.home-rassurance {
  will-change: transform;
  transform: translateZ(0);
}

@media (max-width: 1024px) {
  .hero {
    gap: 30px;
  }
  .hero-title p {
    display: none;
  }
  .hero-tuiles {
    flex-direction: column;
    gap: 60px;
  }
  .hero-tuile {
    background-position: bottom;
    padding: 20px 20px;
    min-height: 250px;
  }
  .hero-tuile-content {
    opacity: 0;
    height: 0;
  }
  .hero-tuile-content img {
    display: none;
  }
  .hero-rassurance {
    flex-direction: row;
  }
}

.hero-tuile.unreleased.pro {
  pointer-events: none;
  &:before {
    content: "";
    position: absolute;
    inset: 0;
    height: 110%;
    filter: grayscale(100%) blur(2px);
    z-index: 999;
  }
}

.coming-soon {
  position: absolute;
  z-index: 9999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary);
  font-weight: 600;
  font-size: 2rem;
  text-align: center;
  background: white;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 5px;
  outline: 2px solid white;
  outline-offset: 3px;
  rotate: -5deg;
}
