/**
 * Intro Component
 *
 * @package Annecy_Unik_Lodges
 */

/* Section Intro */
.section-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Container */
.intro__container {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: clamp(1.5rem, 5vw, 4rem);
  padding-right: clamp(1.5rem, 5vw, 4rem);
}

/* Image */
.intro__image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(500px, 50vw, 914px);
  height: clamp(500px, 50vw, 914px);
}

.intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Content */
.intro__content {
  display: flex;
  flex-direction: column;
  gap: clamp(35px, 4vw, 55px);
  width: clamp(500px, 50vw, 914px);
  height: clamp(500px, 50vw, 914px);
  justify-content: center;
  z-index: 2;
  position: relative;
}

/* Title */
.intro__title {
  color: var(--color-gray-darker);
}

.intro__title h1,
.intro__title h2,
.intro__title p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.5vw, 54px);
  font-weight: 400;
  line-height: normal;
  color: var(--color-gray-darker);
}

.intro__title em,
.intro__title i {
  font-style: normal;
  color: var(--color-primary);
}

/* Text */
.intro__text {
  color: var(--color-gray-darker);
}

.intro__text p {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 300;
  line-height: 1.75;
  max-width: 512px;
}

/* CTA Link - utilise .btn-border-draw de custom.css */
.intro__cta {
  width: fit-content;
}

.intro__cta .btn-border-draw__text {
  color: var(--bs-gray-dark);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Passage en mode colonne quand l'espace est trop petit pour le chevauchement */
@media (max-width: 1024px) {
  .intro__container {
    flex-direction: column;
    gap: 50px;
  }

  .intro__image {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 700px;
    height: clamp(350px, 50vw, 500px);
    order: -1;
  }

  .intro__content {
    width: 100%;
    max-width: 700px;
    height: auto;
  }

  .intro__text p {
    max-width: 100%;
  }
}
