/**
 * Hero Component
 *
 * @package Annecy_Unik_Lodges
 */

/* Section Hero */
.section-hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

/* Background */
.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-black);
}

/* Container */
.hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Content */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* Image centrale */
.hero__image {
  display: flex;
  margin-bottom: var(--spacing-sm);
}

.hero__image img {
  width: 180px;
  height: auto;
}

/* Réduire l'espace entre titre et sous-titre */
.hero__title + .hero__subtitle {
  margin-top: calc(var(--spacing-sm) * -0.5);
}

/* Titre */
.hero__title {
  color: var(--color-white);
}

.hero__title h1,
.hero__title h2,
.hero__title p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--display-lg);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-white);
}

/* Sous-titre */
.hero__subtitle {
  color: var(--color-white);
}

.hero__subtitle p {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: var(--line-height-base);
  opacity: 0.9;
}

/* ========================================
   ALIGNEMENTS
   ======================================== */

/* Alignement texte */
.hero--align-left .hero__content {
  align-items: flex-start;
  text-align: left;
}

.hero--align-center .hero__content {
  align-items: center;
  text-align: center;
}

.hero--align-right .hero__content {
  align-items: flex-end;
  text-align: right;
}

/* Position verticale */
.hero--position-top {
  align-items: flex-start;
}

.hero--position-center {
  align-items: center;
}

.hero--position-bottom {
  align-items: flex-end;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 991px) {
  .hero__title h1,
  .hero__title h2,
  .hero__title p {
    font-size: var(--display-md);
  }

  .hero__subtitle p {
    font-size: var(--text-base);
  }
}

@media (max-width: 767px) {
  .hero__title h1,
  .hero__title h2,
  .hero__title p {
    font-size: var(--display-sm);
  }
}
