/**
 * Parallax Section Component
 *
 * @package Annecy_Unik_Lodges
 */

/* Section Parallax */
.section-parallax {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  /* Clip pour contenir les éléments fixed */
  clip-path: inset(0);
}

/* Image de fond fixe (effet parallax) */
.parallax__background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay sombre */
.parallax__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-black);
  z-index: -1;
}

/* Contenu */
.parallax__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* Title */
.parallax__title {
  text-align: center;
}

.parallax__title h1,
.parallax__title h2,
.parallax__title p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: -0.84px;
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.parallax__title em,
.parallax__title i {
  font-style: normal;
  color: var(--color-primary);
}

/* Text */
.parallax__text {
  text-align: center;
}

.parallax__text p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 300;
  line-height: 35px;
  color: var(--color-white);
  max-width: 1048px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* CTA Link - utilise .btn-border-draw de custom.css */
.parallax__cta {
  margin-top: 10px;
}

/* Couleur du texte spécifique (blanc sur fond sombre) */
.parallax__cta .btn-border-draw__text {
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  /* Désactiver le parallax sur mobile pour meilleures performances */
  .section-parallax {
    clip-path: none;
  }

  .parallax__background,
  .parallax__overlay {
    position: absolute;
  }

  .parallax__title h1,
  .parallax__title h2,
  .parallax__title p {
    font-size: 32px;
    line-height: 45px;
  }

  .parallax__text p {
    font-size: 18px;
    line-height: 28px;
    max-width: 100%;
  }

  .parallax__cta .btn-border-draw__text {
    font-size: 14px;
    letter-spacing: 1.4px;
  }
}

@media (max-width: 480px) {
  .parallax__title h1,
  .parallax__title h2,
  .parallax__title p {
    font-size: 28px;
    line-height: 38px;
  }

  .parallax__text p {
    font-size: 16px;
    line-height: 26px;
  }
}

/* Performance optimizations */
.parallax__background,
.parallax__overlay {
  will-change: transform;
  backface-visibility: hidden;
}
