.vitalisite-section.full-section.hero-side-image,
.vitalisite-section.full-section.hero-image-bg,
.vitalisite-section.full-section.hero-centered-bg {
  padding-left: 15px;
  padding-right: 15px;
}

.vitalisite-style--mineral .vitalisite-section.full-section.hero-side-image,
.vitalisite-style--mineral .vitalisite-section.full-section.hero-image-bg,
.vitalisite-style--mineral .vitalisite-section.full-section.hero-centered-bg {
  padding-left: 0;
  padding-right: 0;
}
.vitalisite-hero__inner {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 64px 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.vitalisite-hero.hero-image-bottom .vitalisite-hero__inner {
  padding-bottom: 50px;
}

.vitalisite-hero__inner--filled {
  background-color: var(--wp--preset--color--primary);
  border-radius: var(--wp--custom--image-radius);
  overflow: hidden;
  padding: 64px 40px;
  gap: 0;
}

.vitalisite-hero__inner--filled,
.vitalisite-hero__inner--filled * {
  color: var(--wp--preset--color--on-primary);
}

.vitalisite-style--mineral .vitalisite-hero__inner--filled {
  border-radius: 0;
}

.vitalisite-hero--tight {
  height: 75vh;
  min-height: 750px;
}

.vitalisite-hero .has-background {
  border-radius: var(--wp--custom--image-radius);
  overflow: hidden;
  background-clip: padding-box;
  padding: 20px;
}

.vitalisite-style--mineral .vitalisite-hero--tight {
  padding-left: 0;
  padding-right: 0;
}

.vitalisite-hero__columns {
  gap: 48px;
  align-items: center;
}

.vitalisite-hero__columns > .wp-block-column {
  flex-basis: 0;
  flex-grow: 1;
}

.vitalisite-hero__title {
  font-size: clamp(2.25rem, 3vw + 1rem, 3.75rem);
  line-height: 1.1;
}

.vitalisite-hero__lead {
  font-size: 1.125rem;
  margin-top: 16px;
}

.vitalisite-hero--tight .vitalisite-hero__lead {
  margin-top: 8px;
}

.vitalisite-hero__image {
  margin-top: var(--wp--preset--spacing--60);
}

.vitalisite-hero__inner + .wp-block-image,
.vitalisite-hero__inner + figure {
  margin-top: var(--wp--preset--spacing--60);
}

.vitalisite-hero__actions {
  gap: 10px !important;
}

.hero-centered-bg .vitalisite-hero__actions {
  margin-top: 90px;
  align-items: flex-start;
}

/* Custom substitute for WP Cover Block to avoid block parsing errors */
.vitalisite-hero-custom-cover {
  position: relative;
  width: 100%;
  max-width: unset !important;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  border-radius: var(--wp--custom--image-radius, 16px) !important;
  overflow: hidden;
  background-color: #000;
}

.vitalisite-hero-custom-bg {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  z-index: 0;
  margin: 0 !important;
}

.vitalisite-hero-custom-bg figure,
.vitalisite-hero-custom-bg .components-resizable-box__container,
.vitalisite-hero-custom-bg img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.vitalisite-hero-custom-bg img {
  object-fit: cover;
  opacity: 0.65; /* Dark overlay effect instead of a separate span */
}

.vitalisite-hero-custom-cover .hero-image-bg__content {
  position: relative;
  z-index: 1;
}

/* === Bannière Hero (Cover Pattern) === */
.hero-image-bg {
  border-radius: var(--wp--custom--image-radius, 16px) !important;
  overflow: hidden;
  max-width: unset;
}

.vitalisite-hero-cover .wp-block-cover__inner-container {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  height: 100%;
  width: 100%;
  padding: 0;
}

.hero-image-bg__content {
  padding: 110px 40px;
  max-width: 100%;
  width: 100%;
  color: #fff !important;
}

.hero-image-bg__content h1,
.hero-image-bg__content h2,
.hero-image-bg__content p,
.hero-image-bg__content a {
  color: #fff !important;
}

.hero-image-bg__content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid white;
  margin-bottom: 0;
}

.hero-image-bg__content h2 {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  opacity: 0.9;
}

/* Réseaux sociaux dans la bannière */
.hero-image-bg .vitalisite-social-link a {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.hero-image-bg .vitalisite-social-link a:hover {
  background: var(--wp--preset--color--primary);
}

@media (max-width: 781px) {
  .hero-image-bg__content {
    max-width: 100%;
  }
}
