/* Reset général */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #000;
  color: white;
  overflow-x: hidden;
}

/* Header */
.logo-image {
  border: 1px solid #35aec1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
}

.logo-image:hover {
  transform: scale(1.1);
}

.main-header {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.main-header .logo {
  font-size: 20px;
  font-weight: bold;
  color: white;
}

.main-header nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-header nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.main-header nav a:hover {
  color: #35aec1;
}

/* Section Hero + Destination */
.destination-container {
  position: relative;
  height: 100vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px; /* Réduit le padding pour petits écrans */
  z-index: 1;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: background-image 0.5s ease;
}

.hero-background::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  z-index: 2;
  pointer-events: none;
}

.hero-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  z-index: 2;
  flex: 1;
  width: 100%; /* Prend toute la largeur disponible */
  max-width: 600px; /* Limite la largeur max sur grands écrans */
  transition: height 0.4s ease;
}

.hero-text h1 {
  font-size: 36px; /* Réduit pour mobile */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 14px;
  margin-bottom: 20px;
}

.hero-text .btn {
  display: none; /* Caché par défaut, ajustez si nécessaire */
  background-color: #35aec1;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  width: 120px;
  text-align: center;
  border-radius: 10px;
}

.hero-text .btn:hover {
  background-color: #009cb3;
}

#heroTitle, #heroDescription {
  transition: opacity 0.4s ease;
}

/* Destination Cards */
.destination-wrapper {
  position: relative;
  flex: 1;
  width: 100%; /* Prend toute la largeur */
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
}

.destinations {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  z-index: 2;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
}

.destinations::after {
  content: "";
  flex: 0 0 15px; /* Espace pour défilement */
}

.destinations::-webkit-scrollbar {
  display: none;
}

.destination-card {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 160px; /* Réduit pour mobile */
  height: 240px;
  border-radius: 20px;
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.destination-card.selected {
  border: 2px solid #35aec1;
  box-shadow: 0 0 10px rgba(53, 174, 193, 0.5);
}

.destination-card:hover {
  border: 0.3px solid #f9f9f949;
}

.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destination-card .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
}

/* Arrow Controls */
.arrow-controls {
  position: absolute;
  bottom: 30px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  gap: 15px;
  z-index: 3;
}

.ios-arrows {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.ios-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: background-color 0.3s ease;
  border-radius: 50%;
}

.ios-arrow:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.ios-arrow svg {
  width: 25px;
  height: 25px;
  color: #ffffff;
}

.ios-arrow:active {
  transform: scale(0.9);
}

.arrow-controls button {
  pointer-events: auto;
  background-color: rgba(75, 75, 75, 0.121);
  border: none;
  color: white;
  font-size: 8px;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
}

.arrow-controls button:hover {
  background-color: #009bb37b;
}

/* Responsive : Mobile (max-width: 768px) */
@media screen and (max-width: 768px) {
  .arrow-controls {
    display: none;
  }
  .main-header {
      padding: 15px 20px;
      flex-direction: column;
      gap: 10px;
  }

  .main-header nav ul {
      gap: 15px;
      flex-wrap: wrap;
      justify-content: center;
  }

  .destination-container {
      padding: 0 10px;
      height: auto; /* Permet un ajustement naturel */
      min-height: 100vh;
  }

  .hero-row {
      flex-direction: column;
      padding: 10px;
      gap: 10px;
  }

  .hero-text {
      width: 100%;
      max-width: 100%;
      padding: 10px;
      text-align: center;
      align-items: center;
  }

  .hero-text h1 {
      font-size: 28px;
      margin-bottom: 10px;
  }

  .hero-text p {
      font-size: 12px;
      margin-bottom: 15px;
  }

  .destination-wrapper {
      width: 100%;
      max-width: 100%;
      padding: 10px;
  }

  .destinations {
      margin-top: 10px;
      gap: 10px;
  }

  .destination-card {
      width: 140px;
      height: 200px;
  }

  .arrow-controls {
      position: static;
      margin-top: 10px;
      transform: none;
      justify-content: center;
  }
}

@media screen and (max-width: 400px) {
  /* Header */
  .logo-image {
    width: 70px;
    height: 70px;

  }
}

/* Responsive : Tablette (max-width: 1024px) */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  .destination-container {
      padding: 0 20px;
  }

  .hero-row {
      flex-direction: column;
      padding: 15px;
      gap: 15px;
  }

  .hero-text {
      width: 100%;
      max-width: 100%;
      padding: 15px;
      text-align: center;
  }

  .hero-text h1 {
      font-size: 32px;
  }

  .hero-text p {
      font-size: 14px;
  }

  .destination-wrapper {
      width: 100%;
      max-width: 100%;
      padding: 15px;
  }

  .destinations {
      margin-top: 15px;
      gap: 15px;
  }

  .destination-card {
      width: 180px;
      height: 260px;
  }

  .arrow-controls {
      bottom: 20px;
      right: 50%;
      transform: translateX(50%);
  }
}