/* ================================================
   SECTION DESTINATIONS
   ================================================ */

.destinations-section {
  padding: 40px 0 120px 0; /* Augmenté de 80px à 120px pour plus d'espace */
  margin-top: -20px; /* Réduit l'espace avec la section précédente (équilibré) */
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  overflow: hidden;
}

.destinations-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header de section */
.section-header-destinations {
  text-align: center;
  margin-bottom: 40px;
}

.section-title-destinations {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle-destinations {
  font-size: 1.1rem;
  color: #5a5a6e;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grille de destinations - 6 colonnes sur une ligne */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 40px;
}

/* Carte de destination */
.destination-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.destination-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Image de destination */
.destination-image {
  position: relative;
  width: 100%;
  padding-top: 140%; /* Ratio plus vertical (environ 5:7) */
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.destination-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.destination-card:hover .destination-image img {
  transform: scale(1.03); /* Zoom réduit de 1.08 à 1.03 */
}

/* Nom de destination */
.destination-name {
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
  text-align: center;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.destination-card:hover .destination-name {
  color: #3CA7FF;
}

/* Responsive */
@media (max-width: 1200px) {
  .destinations-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .section-title-destinations {
    font-size: 2rem;
  }
  
  .destinations-section {
    padding: 30px 0 100px 0;
  }
}

/* Mode carrousel swipeable sur mobile */
@media (max-width: 640px) {
  .destinations-section {
    padding: 30px 0 80px 0;
    overflow: visible; /* Important pour le scroll horizontal */
  }
  
  .destinations-container {
    padding: 0; /* Enlève le padding pour le scroll bord à bord */
    overflow: visible;
  }
  
  .section-header-destinations {
    padding: 0 16px; /* Remet le padding pour le header */
  }
  
  .section-title-destinations {
    font-size: 1.75rem;
  }
  
  .section-subtitle-destinations {
    font-size: 1rem;
  }
  
  /* Grille devient scroll horizontal */
  .destinations-grid {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth scroll iOS */
    padding: 0 16px 20px 16px; /* Padding horizontal + bas pour scrollbar */
    margin-top: 30px;
    
    /* Cache la scrollbar tout en gardant le scroll */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }
  
  .destinations-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  
  /* Chaque carte prend 80% de la largeur de l'écran */
  .destination-card {
    flex: 0 0 80vw;
    min-width: 280px;
    max-width: 350px;
    scroll-snap-align: start;
  }
  
  .destination-name {
    font-size: 1rem;
    padding: 12px 14px;
  }
  
  /* Indicateur visuel de scroll (optionnel) */
  .destinations-grid::after {
    content: '';
    flex: 0 0 8px; /* Petit espace à la fin */
  }
}

/* Animation au scroll (optionnel) */
@media (prefers-reduced-motion: no-preference) {
  .destination-card {
    animation: fadeInUp 0.6s ease-out backwards;
  }
  
  .destination-card:nth-child(1) { animation-delay: 0.1s; }
  .destination-card:nth-child(2) { animation-delay: 0.15s; }
  .destination-card:nth-child(3) { animation-delay: 0.2s; }
  .destination-card:nth-child(4) { animation-delay: 0.25s; }
  .destination-card:nth-child(5) { animation-delay: 0.3s; }
  .destination-card:nth-child(6) { animation-delay: 0.35s; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}