/* Prévention du scroll horizontal */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

/* Force la prévention du débordement sur tous les éléments */
*, *::before, *::after {
    max-width: 100%;
}

/* Conteneurs principaux */
.container, section, div, main, article, header, footer, nav {
    max-width: 100%;
    overflow-x: hidden;
}

/* Corrections pour mobile - prévention débordement */
@media (max-width: 768px) {
    .container, .max-w-7xl, .max-w-6xl, .max-w-4xl, .max-w-3xl, .max-w-2xl {
        margin-left: auto;
        margin-right: auto;
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    /* Correction des espaces horizontaux sur mobile */
    .space-x-8 > * + * {
        margin-left: 1rem !important;
    }
    
    .space-x-6 > * + * {
        margin-left: 0.75rem !important;
    }
    
    .space-x-4 > * + * {
        margin-left: 0.5rem !important;
    }
    
    .space-x-3 > * + * {
        margin-left: 0.375rem !important;
    }
    
    .space-x-2 > * + * {
        margin-left: 0.25rem !important;
    }
    
    /* Grilles responsives */
    .grid {
        display: grid;
        gap: 1rem;
    }
    
    .grid-cols-7 {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
    
    /* Flex containers responsifs */
    .flex {
        display: flex;
        flex-wrap: wrap;
    }
    
    /* Textes qui peuvent déborder */
    .text-5xl, .text-6xl, .text-7xl {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    .text-4xl {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    
    .text-3xl {
        font-size: 1.75rem !important;
        line-height: 1.4 !important;
    }
    
    /* Images et éléments qui peuvent déborder */
    img, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Boutons responsifs */
    .btn-primary, .btn-secondary {
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Navigation mobile */
    .nav-link {
        padding: 0.5rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Formulaires */
    .form-input {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Tables et grilles */
    .grid {
        padding: 0 0.5rem !important;
    }
    
    /* Calendrier mobile amélioré */
    .calendar-day {
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 0.5rem !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        margin: 1px !important;
    }
    
    .calendar-nav-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    .calendar-nav-btn span {
        display: none !important;
    }
    
    #calendar-period {
        font-size: 16px !important;
        font-weight: 700 !important;
        text-align: center !important;
    }
    
    /* Grille du calendrier mobile */
    .grid-cols-7 {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 2px !important;
    }
    
    /* En-têtes des jours */
    .calendar-day-header {
        font-size: 12px !important;
        font-weight: 600 !important;
        text-align: center !important;
        padding: 8px 4px !important;
        color: #64748b !important;
    }
    
    /* Conteneur du calendrier mobile */
    #calendar-container {
        gap: 1rem !important;
        padding: 0 !important;
    }
    
    /* Mois du calendrier */
    .bg-white.rounded-2xl {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Styles pour les menus mobiles */
#mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.active {
    transform: translateY(0);
}

/* Styles typographiques */
body {
    font-family: 'Cinzel', serif;
}

.font-heading {
    font-family: 'Bodoni Moda', serif;
}

.font-body {
    font-family: 'Cinzel', serif;
}

.font-display {
    font-family: 'Bodoni Moda', serif;
}

/* Styles pour les images avec zoom au hover */
.image-zoom-hover {
    transition: transform 0.3s ease-in-out;
}

.image-zoom-hover:hover {
    transform: scale(1.05);
}

/* Styles pour les thumbnails actives */
.activity-thumbnail {
    transition: opacity 0.3s ease-in-out;
    opacity: 0.7;
}

.activity-thumbnail.active-thumbnail {
    opacity: 1;
    border: 2px solid #f59e0b;
}

/* Animation de flottement pour les éléments */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Styles pour les cartes avec ombres */
.card-shadow {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease-in-out;
}

.card-shadow:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Styles pour les boutons avec effets */
.btn-hover-effect {
    transition: all 0.3s ease-in-out;
}

.btn-hover-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Styles pour les liens de navigation avec underline */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Responsive design pour les menus */
@media (max-width: 768px) {
    .nav-link::after {
        display: none;
    }
}

/* Styles pour les sections avec parallax */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Styles pour les animations de scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Styles pour les badges et étiquettes */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Styles pour les gradients personnalisés */
.gradient-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

/* ===== FORMULAIRE DE RÉSERVATION ===== */

/* Indicateurs d'étapes */
.step-indicator {
  transition: all 0.3s ease;
}

.step-indicator div {
  background: #e2e8f0;
  color: #64748b;
}

.step-indicator span {
  color: #64748b;
}

.step-indicator.active div,
.step-indicator.completed div {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.step-indicator.active span,
.step-indicator.completed span {
  color: #1e293b;
  font-weight: 600;
}

.step-indicator.completed div {
  background: #10b981;
}

/* Étapes du formulaire */
.form-step {
  min-height: 500px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
}

.form-step.active {
  opacity: 1;
  transform: translateX(0);
}

/* Options de séjour */
.stay-option {
  background: #f8fafc;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.stay-option:hover {
  background: white;
  border-color: #f59e0b;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.1);
}

.stay-option.selected {
  background: white;
  border-color: #f59e0b;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15);
}

.stay-option.selected[data-type="signature"] {
  border-color: #ec4899;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.15);
}

/* Boutons */
.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover:not(.disabled) {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-primary.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
}

.btn-secondary {
  background: #e2e8f0;
  color: #475569;
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: #cbd5e1;
  transform: translateY(-1px);
}

/* Compteurs */
.counter-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid #e2e8f0;
  color: #475569;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.counter-btn:hover {
  border-color: #f59e0b;
  background: #fef3c7;
  color: #d97706;
  transform: scale(1.1);
}

/* Calendrier */
.calendar-month {
  text-align: center;
}

.calendar-day {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.calendar-day:hover {
  background: #fef3c7;
  color: #d97706;
}

.calendar-day.selected {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.calendar-day.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.calendar-day.disabled:hover {
  background: transparent;
  color: #cbd5e1;
}

/* Inputs */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-input:invalid {
  border-color: #ef4444;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideInUp 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .step-indicator span {
    display: none;
  }
  
  .step-indicator {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .form-step {
    min-height: 400px;
  }
}

.language-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.language-btn:hover {
    transform: scale(1.1);
    border-color: rgba(157, 177, 124, 0.5);
}

.language-btn.active {
    border-color: #9DB17C;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(157, 177, 124, 0.5);
}
        
/* Effets de Ciel (Nuages) - Version Améliorée */
.cloud {
    position: absolute;
} 