/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(45deg, rgba(42, 44, 57, 0.9), rgba(42, 44, 57, 0.9)), url("../img/hero-bg.jpg") center center;
  background-size: cover;
  padding: 0;
  position: relative;
}

.hero .carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 15px;
  min-height: 100vh;
}

.hero h2 {
  color: var(--contrast-color);
  margin-bottom: 30px;
  font-size: 48px;
  font-weight: 700;
}

.hero h2 span {
  color: var(--accent-color);
  border-bottom: 4px solid var(--accent-color);
}

.hero p {
  width: 80%;
  color: var(--contrast-color);
  margin: 0 auto 30px auto;
  font-size: 20px;
}

.hero .btn-get-started {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  transition: 0.5s;
  line-height: 1;
  margin: 10px;
  color: var(--contrast-color);
  border: 2px solid var(--accent-color);
  background: transparent;
}

.hero .btn-get-started:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  text-decoration: none;
}

.hero .carousel-item {
  transition: transform 0.5s ease-in-out;
  position: relative;
  min-height: 100vh;
}

.hero .hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero .hero-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(42, 44, 57, 0.3), rgba(42, 44, 57, 0.3));
}

.carousel-item {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-item.active .carousel-container {
  animation: slideIn 0.5s ease-out forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .hero-waves {
  display: block;
  width: 100%;
  height: 60px;
  position: absolute;
  bottom: 0;
  left: 0;
}

.hero .wave1 use {
  animation: move-forever1 10s linear infinite;
  animation-delay: -2s;
  fill: var(--accent-color);
  opacity: 0.2;
}

.hero .wave2 use {
  animation: move-forever2 8s linear infinite;
  animation-delay: -2s;
  fill: var(--accent-color);
  opacity: 0.3;
}

.hero .wave3 use {
  animation: move-forever3 6s linear infinite;
  animation-delay: -2s;
  fill: var(--accent-color);
  opacity: 0.4;
}

@keyframes move-forever1 {
  0% { transform: translate(85px, 0%); }
  100% { transform: translate(-90px, 0%); }
}

@keyframes move-forever2 {
  0% { transform: translate(-90px, 0%); }
  100% { transform: translate(85px, 0%); }
}

@keyframes move-forever3 {
  0% { transform: translate(-90px, 0%); }
  100% { transform: translate(85px, 0%); }
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 10%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  height: auto;
  padding: 4rem 1.5rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
}

.hero .carousel-indicators {
  bottom: 80px; /* Au-dessus des vagues */
  z-index: 15;
}

.hero .carousel-indicators button {
  width: 12px;
  height: 12px;
  background-color: transparent;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.hero .carousel-indicators button.active {
  background-color: var(--accent-color);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 18px;
    width: 100%;
  }
}
