/* ===== IMPORT DES VARIABLES CSS ===== */
@import url('w3-theme.css'); /* Correction: w3-theme.css est dans le même dossier */

/* ===== CAROUSEL MODERNE ===== */

.carib-hero-section {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.carib-carousel-container {
  position: relative;
  width: 100%;
  min-height: 300px;
  max-height: 600px;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
}

.carib-slide {
  display: none;
  width: 100%;
}

.carib-slide:first-child {
  display: block;
}

.carib-slide img {
  width: 100%;
  height: auto;
  max-height: 600px;
  display: block;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
  .carib-carousel-container {
    min-height: 200px;
    max-height: 400px;
  }
  
  .carib-slide img {
    max-height: 400px;
  }
}


/* Animation fade moderne */
.carib-slide-fade {
  animation: caribFadeIn 1s ease-in-out;
}

@keyframes caribFadeIn {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

/* Overlay avec gradient */
.carib-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 30px 25px 20px;
}

.carib-slide-content h2 {
  color: white;
  font-size: 26px;
  font-weight: 700;
  text-shadow: 2px 2px 12px rgba(0,0,0,0.6);
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

/* Boutons de navigation modernisés */
.carib-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  border: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  z-index: 10;
}

.carib-nav-btn:hover {
  background: white;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  transform: translateY(-50%) scale(1.1);
}

.carib-nav-btn i {
  font-size: 20px;
  color: #1e3a8a; /* Fallback si variables pas chargées */
}

.carib-nav-prev {
  left: 25px;
}

.carib-nav-next {
  right: 25px;
}

/* Indicateurs modernisés */
.carib-indicators {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carib-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carib-indicator:hover,
.carib-indicator.active {
  background: white;
  border-color: white;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

/* ===== BARRE DE RECHERCHE MODERNE ===== */

.carib-search-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); /* Fallback couleurs fixes */
  padding: 25px 20px;
  margin: 0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.carib-search-container {
  max-width: 1200px;
  margin: 0 auto;
}

.carib-search-content h3 {
  color: white;
  text-align: center;
  margin: 0 0 18px 0;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}

.carib-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: center;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}

.carib-search-input-group {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.carib-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #1e3a8a; /* Fallback */
  font-size: 16px;
  z-index: 2;
}

.carib-search-input,
.carib-search-select {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 45px;
  border: none;
  border-radius: 14px;
  background: white;
  font-size: 15px;
  color: #1e3a8a; /* Fallback */
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  outline: none;
  font-weight: 500;
}

.carib-search-input:focus,
.carib-search-select:focus {
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.carib-search-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M7 10L12 15L17 10H7Z' fill='%236b7280'/></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px;
}

.carib-search-btn {
  height: 52px;
  padding: 0 35px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); /* Fallback orange */
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245,158,11,0.3);
  min-width: 160px;
  justify-content: center;
  letter-spacing: 0.5px;
}

.carib-search-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 8px 25px rgba(245,158,11,0.4);
  transform: translateY(-3px);
}

.carib-search-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.carib-search-btn i {
  font-size: 16px;
}

/* ===== SECTION PROMOTIONS MODERNE ===== */

.carib-promotions-header {
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%); /* Fallback bleu */
  padding: 25px 20px;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.carib-promotions-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='10' cy='10' r='1' fill='rgba(255,255,255,0.1)'/><circle cx='30' cy='25' r='1.5' fill='rgba(255,255,255,0.08)'/><circle cx='70' cy='15' r='1' fill='rgba(255,255,255,0.1)'/><circle cx='90' cy='35' r='1.2' fill='rgba(255,255,255,0.09)'/></svg>") repeat;
  opacity: 0.3;
}

.carib-promotions-title {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  letter-spacing: 0.5px;
}

.carib-promotions-title i {
  font-size: 24px;
  color: #f59e0b; /* Fallback orange */
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.carib-promotions-subtitle {
  position: relative;
  z-index: 2;
  text-align: center;
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  margin: 8px 0 0 0;
  font-weight: 400;
}

/* Conteneur des promotions */
.carib-promotions-container {
  padding: 40px 20px;
  min-height: 400px;
  background: transparent;
}

.carib-promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cards des promotions */
.carib-promo-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  height: fit-content;
}

.carib-promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.carib-promo-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.carib-promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carib-promo-card:hover .carib-promo-image img {
  transform: scale(1.05);
}

.carib-promo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(30,58,138,0.7) 0%, rgba(59,130,246,0.5) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carib-promo-card:hover .carib-promo-overlay {
  opacity: 1;
}

.carib-promo-overlay-text {
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Contenu de la card */
.carib-promo-content {
  padding: 24px;
}

.carib-promo-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e3a8a; /* Fallback bleu foncé */
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.carib-promo-description {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carib-promo-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.carib-price-tag {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.carib-price-tag i {
  font-size: 12px;
}

.carib-promo-cta {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.carib-promo-cta:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,58,138,0.3);
  color: white;
  text-decoration: none;
}

/* Badge type de voyage */
.carib-promo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.95);
  color: #1e3a8a;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Style pour la durée des séjours sur la page d'accueil */
.carib-sejour-duree {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #1e3a8a;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid rgba(59,130,246,0.2);
}

.carib-sejour-duree i {
  color: #3b82f6;
  font-size: 12px;
}

/* Animation au survol */
.carib-promo-card:hover .carib-sejour-duree {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

.carib-promo-card:hover .carib-sejour-duree i {
  color: white;
}

/* Responsive optimisé */
@media (max-width: 768px) {
  .carib-carousel-container {
    height: 250px;
  }
  
  .carib-search-section {
    padding: 20px 15px;
  }
  
  .carib-search-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .carib-search-form {
    flex-direction: column;
    gap: 12px;
  }
  
  .carib-search-input-group {
    min-width: 100%;
  }
  
  .carib-search-btn {
    width: 100%;
    min-width: 100%;
  }
  
  .carib-nav-btn {
    width: 45px;
    height: 45px;
  }
  
  .carib-nav-btn i {
    font-size: 16px;
  }
  
  .carib-nav-prev {
    left: 15px;
  }
  
  .carib-nav-next {
    right: 15px;
  }
  
  .carib-sejour-duree {
    font-size: 12px;
    padding: 4px 8px;
    gap: 4px;
  }
  
  .carib-sejour-duree i {
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  .carib-hero-section {
    display: none;
  }
  
  .carib-carousel-container {
    height: 200px;
  }
  
  .carib-search-content h3 {
    font-size: 18px;
  }
  
  .carib-search-input,
  .carib-search-select,
  .carib-search-btn {
    height: 48px;
    font-size: 14px;
  }
  
  .carib-search-icon {
    font-size: 14px;
  }
}

/* Responsive pour la partie promotion*/ 
@media (max-width: 768px) {
  .carib-promotions-header {
    padding: 20px 15px;
  }
  
  .carib-promotions-title {
    font-size: 24px;
  }
  
  .carib-promotions-container {
    padding: 30px 15px;
  }
  
  .carib-promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .carib-promo-image {
    height: 180px;
  }
  
  .carib-promo-content {
    padding: 20px;
  }
}

/* Animation d'apparition pour la partie promotion  */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carib-promo-card {
  animation: fadeInUp 0.6s ease-out;
}

.carib-promo-card:nth-child(2) {
  animation-delay: 0.1s;
}

.carib-promo-card:nth-child(3) {
  animation-delay: 0.2s;
}

.carib-promo-card:nth-child(4) {
  animation-delay: 0.3s;
}