/* --- Home hero --- */
.card-service-container {
  position: relative;
}

.card-service {
  overflow: hidden;
  position: relative;
  min-height: fit-content;
  padding: 0 0 60px 0;
  border-radius: 8px;
}

.card-service .wp-block-cover__image-background {
  height: 60px;
  transition: height 0.6s ease;
  margin-top: auto;
}

.card-service .wp-block-cover__inner-container {
  transition: transform 0.6s ease;
}

.card-service:hover .wp-block-cover__image-background {
  height: 100%;
}

.card-service:hover .wp-block-cover__inner-container {
  transform: translateY(-100%);
}

.card-service-title {
  line-height: 1.5;
  transition: all 0.6s ease;
}

.card-service:hover .card-service-title {
  transform: translateY(140px);
  z-index: 10;
}

.card-service:hover .card-service-title a {
  color: var(--color-white);
}

.card-service-icon {
  position: absolute;
  bottom: 40px;
  right: 30px;
}

/* ---  Animation étoile --- */
.animation-star-stroke {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 500px;
  margin: 0 auto;
}
.mask-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask: url(#star-mask);
  mask: url(#star-mask);
  -webkit-mask-size: cover;
  overflow: hidden;
}

.star-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 110%;
  height: 110%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.star-image.active {
  opacity: 1;
}

.animation-star-stroke .star-image.active {
  opacity: 1;
}

.animation-star-stroke.is-solarothermie .star-image:first-child {
  opacity: 1;
}

.animation-star-stroke.is-eclairage .star-image:last-child {
  opacity: 1;
}

/* --- Fil d'ariane --- */
.yoast-breadcrumbs {
  color: var(--color-white);
  font-size: var(--font-size-text-xs);
  font-weight: 400;
  margin-bottom: 8px;
}

.yoast-breadcrumbs>span {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yoast-breadcrumbs>span>span:not(:last-child) {
  text-decoration: underline;
  text-underline-offset: 17.5%;
  text-decoration-thickness: 1px;
}

/* --- Hero simple --- */
@media (width < 782px) {
  .hero {
    padding-top: 121px;
    padding-bottom: 40px;
  }

  .hero .px-24 {
    padding-inline: 0;
  }
}

@media (width >= 782px) {
  .hero {
    padding-top: 168px;
  }
}

/* --- Hero Cover --- */
.hero-cover .wp-block-cover__inner-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (width < 782px) {
  .hero-cover {
    padding: 128px 0 64px 0;
  }
}

/* --- Templates --- */
@media (width < 782px) {
  .page-template-page-blank main {
    padding-top: 136px;
  }
}

@media (width >= 782px) {
  .page-template-page-blank main {
    padding-top: 152px;
    padding-bottom: 64px;
  }
}