/* ==============================================
   CHEZ ELISE - STYLES COMMUNS
   ============================================== */

/* Configuration Tailwind personnalisée intégrée */
:root {
  --beige-50: #fefdfb;
  --beige-100: #fef7f0;
  --beige-200: #f7e6d3;
  --beige-300: #f0d5b6;
  --beige-400: #e8c199;
  --beige-500: #d4a574;
  --beige-600: #c08e5a;
  --beige-700: #9d7148;
  --beige-800: #7a5436;
  --beige-900: #573724;
}

/* Polices */
.font-display { 
  font-family: 'Playfair Display', Georgia, serif; 
}

.font-body { 
  font-family: 'Inter', system-ui, sans-serif; 
}

/* ==============================================
   ANIMATIONS
   ============================================== */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { 
    opacity: 0; 
    transform: translateX(-50px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes slideInRight {
  from { 
    opacity: 0; 
    transform: translateX(50px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Animations pour les bulles décoratives */
@keyframes floatUp {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes floatDown {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(15px) rotate(-90deg); }
}

@keyframes floatSide {
  0%, 100% { transform: translateX(0px) scale(1); }
  50% { transform: translateX(25px) scale(1.1); }
}

@keyframes gentlePulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 0.3; 
  }
  50% { 
    transform: scale(1.15); 
    opacity: 0.6; 
  }
}

@keyframes rotateFloat {
  0% { transform: rotate(0deg) translateY(0px); }
  25% { transform: rotate(90deg) translateY(-10px); }
  50% { transform: rotate(180deg) translateY(0px); }
  75% { transform: rotate(270deg) translateY(10px); }
  100% { transform: rotate(360deg) translateY(0px); }
}

/* Classes d'animation */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out forwards;
}

/* Classes pour appliquer les animations aux bulles */
.animate-float-up {
  animation: floatUp 6s ease-in-out infinite;
}

.animate-float-down {
  animation: floatDown 5s ease-in-out infinite;
}

.animate-float-side {
  animation: floatSide 4s ease-in-out infinite;
}

.animate-gentle-pulse {
  animation: gentlePulse 3s ease-in-out infinite;
}

.animate-rotate-float {
  animation: rotateFloat 8s linear infinite;
}

/* État initial pour les éléments à animer */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================
   EFFETS HOVER
   ============================================== */

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.hover-scale {
  transition: transform 0.3s ease;
}

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

/* ==============================================
   NAVIGATION
   ============================================== */

.nav-sticky {
  backdrop-filter: blur(15px);
  background: rgba(254, 253, 251, 0.95);
  border-bottom: 1px solid rgba(212, 165, 116, 0.1);
}

/* ==============================================
   BOUTONS
   ============================================== */

.btn-primary {
  background: linear-gradient(135deg, var(--beige-500) 0%, var(--beige-600) 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--beige-600) 0%, var(--beige-700) 100%);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(212, 165, 116, 0.4);
}

.btn-secondary {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-secondary:hover {
  border-color: var(--beige-600);
  color: var(--beige-600);
  transform: translateY(-2px);
}

/* ==============================================
   GALERIES
   ============================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--beige-100);
}

.gallery-item img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0,0,0,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ==============================================
   GALERIE D'IMAGES MODERNE
   ============================================== */

/* Styles pour la galerie type Amazon/Airbnb */
.gallery-grid {
  gap: 8px;
}

.gallery-main {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.gallery-secondary {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.gallery-overlay {
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
  backdrop-filter: blur(1px);
}

/* Hover effects pour les images */
.image-hover-effect {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-hover-effect:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

/* ==============================================
   SIDEBAR DE RÉSERVATION MODERNE
   ============================================== */

.reservation-card {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.reservation-button {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.reservation-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.reservation-button:hover::before {
  left: 100%;
}

.price-highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==============================================
   BADGES ET ÉTIQUETTES MODERNES
   ============================================== */

.status-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.feature-badge {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* ==============================================
   ÉTOILES ET NOTATION
   ============================================== */

.rating-star {
  filter: drop-shadow(0 1px 3px rgba(245, 158, 11, 0.5));
}

.rating-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* ==============================================
   LIGHTBOX MODERNE POUR GALERIE
   ============================================== */

#image-lightbox {
  backdrop-filter: blur(5px);
  z-index: 9999;
}

.lightbox-image-container {
  max-width: 85vw;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-image {
  max-width: 80%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  border-radius: 8px;
}

/* Thumbnails scrollbar styling */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

/* Navigation buttons hover effects */
#lightbox-prev, #lightbox-next {
  backdrop-filter: blur(10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

#lightbox-prev:hover, #lightbox-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

/* Thumbnails hover effects */
#lightbox-thumbnails > div {
  transition: all 0.2s ease;
}

#lightbox-thumbnails > div:hover {
  transform: scale(1.05);
}

/* Animation d'entrée pour la lightbox */
#image-lightbox.opacity-100 #lightbox-image {
  animation: lightboxImageIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightboxImageIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lightbox-image-container {
    max-width: 90vw;
    max-height: 70vh;
  }
  
  #lightbox-prev, #lightbox-next {
    padding: 8px;
  }
  
  #lightbox-prev svg, #lightbox-next svg {
    width: 20px;
    height: 20px;
  }
  
  #lightbox-thumbnails > div {
    width: 60px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .lightbox-image-container {
    max-width: 95vw;
    max-height: 65vh;
  }
  
  #lightbox-prev, #lightbox-next {
    left: 10px;
    right: 10px;
    padding: 6px;
  }
}

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .hover-lift:hover {
    transform: translateY(-4px);
  }
  
  .page-header {
    min-height: 30vh;
  }
  
  /* Réduire les animations sur mobile pour les performances */
  .animate-on-scroll {
    transition: all 0.5s ease;
  }
  
  .gallery-grid {
    gap: 4px;
  }
  
  .gallery-main {
    border-radius: 8px;
  }
  
  .gallery-secondary {
    border-radius: 6px;
  }
  
  .reservation-card {
    margin: 16px;
    border-radius: 16px;
  }
}

@media (max-width: 640px) {
  .btn-primary, .btn-secondary {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .card {
    border-radius: 12px;
  }
}

/* ==============================================
   ACCESSIBILITÉ
   ============================================== */

/* Focus visible pour la navigation au clavier */
.focus-visible:focus {
  outline: 2px solid var(--beige-600);
  outline-offset: 2px;
}

/* Réduire les animations pour les utilisateurs qui préfèrent moins de mouvement */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-on-scroll {
    transition: none;
  }
  
  .hover-lift:hover {
    transform: none;
  }
}

/* ==============================================
   UTILITAIRES
   ============================================== */

.text-gradient {
  background: linear-gradient(135deg, var(--beige-600), var(--beige-800));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==============================================
   FORMULAIRES
   ============================================== */

/* Supprimer les styles par défaut des inputs et textareas */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  outline: none !important;
  box-shadow: none !important;
}

/* Focus personnalisé pour les inputs et textareas */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px var(--beige-500) !important;
  border-color: var(--beige-500) !important;
}

/* Supprimer l'apparence par défaut des selects */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* ==============================================
   ACCESSIBILITÉ
   ============================================== */
