/* Styles spécifiques à la page d'accueil */

body {
  font-family: "Georgia", serif;
  background-color: var(--off-white);
  color: var(--charcoal);
  overflow-x: hidden;
}

/* HERO CAROUSEL */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
}

.carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 5rem);
}

.carousel__slide.active {
  opacity: 1;
}

.carousel__image {
  width: auto;
  height: auto;

  max-width: min(1100px, 85vw);
  max-height: 75vh;

  object-fit: contain;

  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

.hero__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: white;
  font-size: 5rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

.hero__title-line {
  display: block;
}

.hero__title-accent {
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  color: var(--charcoal);
}

.carousel__nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel__nav--prev {
  left: 2rem;
}

.carousel__nav--next {
  right: 2rem;
}

.carousel__dots {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 1rem;
}

.carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel__dot.active {
  background: white;
  transform: scale(1.2);
}

/* SECTION ACCUEIL */
.accueil {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--cream) 0%, var(--off-white) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.speech {
  max-width: 800px;
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  position: relative;
  transform: rotate(-0.5deg);
  transition: transform 0.3s ease;
}

.speech:hover {
  transform: rotate(0deg) scale(1.02);
}

.speech::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: 8px;
  bottom: 8px;
  border: 2px solid var(--rust);
  border-radius: 8px;
  z-index: -1;
}

.speech p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--charcoal);
  text-align: justify;
  font-style: italic;
  position: relative;
}

.speech p::before {
  content: ""
    ";
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 4rem;
  color: var(--rust);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.speech p::after {
  content: "
    "";
  position: absolute;
  bottom: -40px;
  right: 10px;
  font-size: 4rem;
  color: var(--rust);
  opacity: 0.3;
  font-family: Georgia, serif;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .navbar__list {
    gap: 1.5rem;
  }

  .hero__title {
    font-size: 3rem;
    padding: 0 2rem;
  }

  .carousel__nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .carousel__nav--prev {
    left: 1rem;
  }

  .carousel__nav--next {
    right: 1rem;
  }

  .accueil {
    padding: 4rem 1.5rem;
  }

  .speech {
    padding: 2rem;
  }

  .speech p {
    font-size: 1rem;
    text-align: left;
  }
}
