/* ========================================
   FICHIER: animations.css
   DESCRIPTION: Animations et micro-interactions
   pour Résidence Meublée Merveilleuse
   
   INSTALLATION:
   1. Créer un dossier /css si inexistant
   2. Créer le fichier /css/animations.css
   3. Copier ce contenu dans le fichier
   4. Ajouter avant </head> dans index.html:
      <link rel="stylesheet" href="css/animations.css">
   5. Placer APRÈS <link rel="stylesheet" href="css/style.css">
   
   NOTE: Aucune modification HTML requise!
   ======================================== */

/* ===== VARIABLES ANIM ===== */
:root {
  --anim-duration: 0.4s;
  --anim-duration-slow: 0.6s;
  --anim-duration-fast: 0.2s;
  --anim-timing: cubic-bezier(0.4, 0, 0.2, 1);
  --anim-timing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --anim-timing-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESPECTER prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================
   SECTION HERO - ANIMATIONS PRINCIPALES
   ========================================== */

/* Animation du scroll hint en bas du hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  transform: translateX(-50%);
  animation: scrollHint 2s var(--anim-timing-ease) infinite;
  z-index: 5;
  pointer-events: none;
}

/* Petit point qui scroll dans le hint */
.hero::before {
  content: '';
  position: absolute;
  bottom: clamp(3rem, 5vw, 4rem);
  left: 50%;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2s var(--anim-timing-ease) infinite;
  z-index: 5;
  pointer-events: none;
}

@keyframes scrollHint {
  0% {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.6);
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
    border-color: rgba(255, 255, 255, 0.1);
  }
}

@keyframes scrollDot {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(24px);
  }
}

/* Hero title avec effet de texte */
.hero-title {
  animation: titleGlow 3s var(--anim-timing-ease) 0.3s both;
}

@keyframes titleGlow {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    text-shadow: 0 0 0px rgba(249, 115, 0, 0);
  }
  50% {
    text-shadow: 0 0 20px rgba(249, 115, 0, 0.4);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    text-shadow: 0 8px 50px rgba(0, 0, 0, 0.9);
  }
}

/* Hero subtitle avec fade in retardé */
.hero-subtitle {
  animation: subtitleFade 2.5s var(--anim-timing) 0.5s both;
}

@keyframes subtitleFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bouton hero avec pulse subtil */
.hero .btn {
  animation: buttonEnter 2s var(--anim-timing) 0.7s both;
}

@keyframes buttonEnter {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hover du bouton avec shimmer */
.hero .btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.hero .btn:hover::after {
  left: 100%;
}

/* ==========================================
   SECTION À PROPOS - ANIMATIONS
   ========================================== */

.about-section {
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 25%, #f8f3f0 100%);
  position: relative;
  overflow: hidden;
}

/* Fond animé subtil */
.about-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(249, 115, 0, 0.05) 0%, transparent 70%);
  animation: bgFloat 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes bgFloat {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(30px, -30px);
  }
  50% {
    transform: translate(-20px, 20px);
  }
  75% {
    transform: translate(20px, -20px);
  }
}

/* Feature cards avec animation d'apparition progressive */
.feature {
  animation: featureReveal 0.6s var(--anim-timing) both;
  animation-fill-mode: both;
}

.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3) { animation-delay: 0.3s; }

@keyframes featureReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hover features avec bounce */
.feature:hover {
  animation: featureBounce 0.6s var(--anim-timing-bounce) 1;
}

@keyframes featureBounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ==========================================
   SECTION SERVICES - ANIMATIONS
   ========================================== */

/* Service cards avec effet de glow au hover */
.service-card {
  transition: all var(--anim-duration) var(--anim-timing);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 0, 0.1), transparent);
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 0 40px rgba(249, 115, 0, 0.3),
              0 20px 60px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, rgba(249, 115, 0, 0.05), rgba(200, 4, 3, 0.02));
}

/* Icon animation - float */
.service-icon {
  display: inline-block;
  animation: iconFloat 3s ease-in-out infinite;
  transition: all var(--anim-duration-fast) ease;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
  }
}

/* Icon bounce au hover */
.service-card:hover .service-icon {
  animation: iconBounce 0.6s var(--anim-timing-bounce) 1;
}

@keyframes iconBounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Service divider animation */
.service-divider {
  animation: dividerExpand 0.6s var(--anim-timing);
}

@keyframes dividerExpand {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  100% {
    opacity: 0.5;
    transform: scaleX(1);
  }
}

/* ==========================================
   SECTION CHAMBRES - ANIMATIONS
   ========================================== */

.room-card {
  transition: all var(--anim-duration) var(--anim-timing);
  position: relative;
}

/* Image zoom fluide */
.room-card:hover .room-image img {
  animation: imageZoomSoft 0.6s var(--anim-timing) 1;
}

@keyframes imageZoomSoft {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.08) rotate(0.5deg);
  }
  100% {
    transform: scale(1.15) rotate(1deg);
  }
}

/* Badge pulse effect */
.room-type-badge {
  animation: badgePulse 2.5s ease-in-out infinite;
  position: relative;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 0, 0.7);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 15px rgba(249, 115, 0, 0);
    opacity: 0.9;
  }
}

/* Room card hover avec glow */
.room-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 0 40px rgba(249, 115, 0, 0.25),
              0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Amenities shimmer */
.room-amenities span {
  animation: amenityFade 0.5s var(--anim-timing) both;
}

.room-amenities span:nth-child(1) { animation-delay: 0s; }
.room-amenities span:nth-child(2) { animation-delay: 0.1s; }
.room-amenities span:nth-child(3) { animation-delay: 0.2s; }

@keyframes amenityFade {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Room details expansion smooth */
.room-full-details {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s var(--anim-timing);
  transform: translateY(-15px);
}

.room-full-details.active {
  opacity: 1;
  max-height: 2000px;
  transform: translateY(0);
}

/* ==========================================
   SECTION GALERIE - ANIMATIONS
   ========================================== */

.gallery-item {
  transition: all var(--anim-duration) var(--anim-timing);
}

/* Gallery card hover effect */
.gallery-item:hover .gallery-card {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(-15px) scale(1.02);
}

/* Image crossfade smooth */
.slide {
  animation: imageFade 0.6s ease-out;
}

@keyframes imageFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Slide image zoom smooth */
.gallery-item:hover .slide.active img {
  animation: galleryZoom 0.8s var(--anim-timing) 1;
}

@keyframes galleryZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.12);
  }
}

/* Navigation buttons visibility smooth */
.slide-prev,
.slide-next {
  transition: all var(--anim-duration) ease;
  opacity: 0 !important;
}

.gallery-card:hover .slide-prev,
.gallery-card:hover .slide-next {
  opacity: 1 !important;
}

.slide-prev:hover,
.slide-next:hover {
  transform: scale(1.15);
}

/* Dots animation */
.dot {
  transition: all var(--anim-duration) ease;
}

.dot.active {
  animation: dotPulse 0.4s var(--anim-timing-bounce);
}

@keyframes dotPulse {
  0% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1.3);
  }
}

/* Gallery overlay fade smooth */
.gallery-overlay {
  transition: all var(--anim-duration-slow) var(--anim-timing);
}

.gallery-content {
  transition: all var(--anim-duration-slow) var(--anim-timing);
}

/* Filter buttons avec underline animation */
.filter-btn {
  position: relative;
  transition: all var(--anim-duration) var(--anim-timing);
  overflow: hidden;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-orange), var(--accent-red));
  transition: left 0.4s var(--anim-timing);
}

.filter-btn:hover::after,
.filter-btn.active::after {
  left: 0;
}

.filter-btn.active {
  transform: translateY(-3px);
}

/* ==========================================
   SECTION TÉMOIGNAGES - ANIMATIONS
   ========================================== */

/* Testimonial cards avec glassmorphism animation */
.testimonial-content {
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1), 
    rgba(249, 115, 0, 0.05));
  transition: all var(--anim-duration-slow) var(--anim-timing);
  position: relative;
}

/* Quote animation */
.testimonial-content::before {
  animation: quoteFloat 3s ease-in-out infinite;
}

@keyframes quoteFloat {
  0%, 100% {
    transform: translateY(0px);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-5px);
    opacity: 0.5;
  }
}

/* Card glow au hover */
.testimonial-card:hover .testimonial-content {
  transform: scale(1.03);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15), 
    rgba(249, 115, 0, 0.1));
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15),
              0 0 20px rgba(249, 115, 0, 0.2);
}

/* Rating stars animation */
.rating {
  display: inline-block;
  animation: starPulse 2.5s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}

/* Text fade in staggered */
.testimonial-content p {
  animation: textReveal 0.8s var(--anim-timing) both;
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Carousel dot animation */
.carousel-dot {
  transition: all var(--anim-duration) var(--anim-timing);
  cursor: pointer;
}

.carousel-dot.active {
  animation: dotExpand 0.4s var(--anim-timing-bounce);
}

@keyframes dotExpand {
  0% {
    transform: scale(0.5);
  }
  70% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}

/* Carousel button hover */
.carousel-prev:hover,
.carousel-next:hover {
  animation: buttonPulse 0.4s var(--anim-timing-bounce);
}

@keyframes buttonPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1.1);
  }
}

/* ==========================================
   SECTION CONTACT - ANIMATIONS
   ========================================== */

/* Info cards avec border animation */
.info-card {
  position: relative;
  overflow: hidden;
  transition: all var(--anim-duration-slow) var(--anim-timing);
}

.info-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 0, 0.1), transparent);
  transition: left 0.6s ease;
}

.info-card:hover::after {
  left: 100%;
}

.info-card:hover {
  transform: translateX(10px);
  box-shadow: 0 0 30px rgba(249, 115, 0, 0.15);
  border-left-color: var(--accent-red);
}

/* Info card icon rotation */
.info-card i {
  transition: all var(--anim-duration) var(--anim-timing);
}

.info-card:hover i {
  transform: rotate(360deg) scale(1.2);
}

/* Form inputs avec focus glow */
.form-group input,
.form-group textarea {
  transition: all var(--anim-duration) var(--anim-timing);
  position: relative;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  transition: color var(--anim-duration) ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 0 rgba(249, 115, 0, 0.1),
              inset 0 0 20px rgba(249, 115, 0, 0.05);
  transform: translateY(-2px);
  background: var(--pure-white);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  color: var(--primary-orange);
}

/* Form submit button animation */
.btn-submit {
  position: relative;
  overflow: hidden;
  transition: all var(--anim-duration) var(--anim-timing);
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.6s ease;
  z-index: 0;
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:active {
  animation: buttonPress 0.2s ease;
}

@keyframes buttonPress {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

/* Message animations */
.message {
  animation: messageSlide 0.4s var(--anim-timing-bounce);
}

@keyframes messageSlide {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   SECTION NEWSLETTER - ANIMATIONS
   ========================================== */

.newsletter-container {
  transition: all var(--anim-duration-slow) var(--anim-timing);
}

.newsletter-container:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 40px rgba(249, 115, 0, 0.2);
}

/* Checkbox animation */
.checkbox-group input[type="checkbox"] {
  transition: all var(--anim-duration) ease;
  accent-color: var(--primary-orange);
}

.checkbox-group input[type="checkbox"]:hover {
  transform: scale(1.2);
}

.checkbox-group input[type="checkbox"]:checked {
  animation: checkPulse 0.4s var(--anim-timing-bounce);
}

@keyframes checkPulse {
  0% {
    transform: scale(0.5);
  }
  70% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* ==========================================
   SECTION FOOTER - ANIMATIONS
   ========================================== */

/* Wave animation - plus fluide */
@keyframes wave {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 1200px;
  }
}

.footer-wave {
  animation: wave 12s linear infinite;
}

/* Footer links avec underline animation */
.footer-links a {
  position: relative;
  transition: all var(--anim-duration) var(--anim-timing);
}

.footer-links a::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-orange);
  transition: width 0.3s var(--anim-timing);
}

.footer-links a:hover::before {
  width: 100%;
}

.footer-links a:hover {
  color: var(--primary-orange);
  transform: translateX(5px);
}

/* Social links animation */
.social-link {
  transition: all var(--anim-duration) var(--anim-timing);
  position: relative;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--anim-duration) ease;
}

.social-link:hover::before {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    opacity: 1;
    transform: scale(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.social-link:hover {
  transform: translateY(-8px) scale(1.15);
  filter: brightness(1.3);
}

/* Schedule item animation */
.schedule-item {
  transition: all var(--anim-duration) var(--anim-timing);
}

.schedule-item:hover {
  transform: translateX(5px);
  background: rgba(249, 115, 0, 0.15);
}

/* Contact item animation */
.contact-item {
  animation: contactSlide 0.5s var(--anim-timing) both;
}

.contact-item:nth-child(1) { animation-delay: 0s; }
.contact-item:nth-child(2) { animation-delay: 0.1s; }
.contact-item:nth-child(3) { animation-delay: 0.2s; }

@keyframes contactSlide {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================
   MODAL ANIMATIONS
   ========================================== */

/* Modal slide in */
.modal.active,
.room-modal.active {
  animation: modalFadeIn 0.3s var(--anim-timing);
}

@keyframes modalFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.modal-container {
  animation: modalSlideUp 0.4s var(--anim-timing-bounce);
}

@keyframes modalSlideUp {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal close button hover */
.modal-close {
  transition: all var(--anim-duration) var(--anim-timing);
}

.modal-close:hover {
  animation: closeRotate 0.4s var(--anim-timing-bounce);
}

@keyframes closeRotate {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(45deg);
  }
  100% {
    transform: rotate(90deg);
  }
}

/* Modal image animation */
.modal-image img {
  transition: transform 0.4s var(--anim-timing);
}

.modal-image:hover img {
  transform: scale(1.05);
}

/* Modal buttons animation */
.btn-primary,
.btn-secondary {
  transition: all var(--anim-duration) var(--anim-timing);
  position: relative;
}

.btn-primary:hover:not(.disabled),
.btn-secondary:hover {
  animation: buttonHover 0.4s ease;
}

@keyframes buttonHover {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(-3px);
  }
}

/* ==========================================
   ANIMATIONS GLOBALES
   ========================================== */

/* Bouton standard hover effect */
.btn {
  transition: all var(--anim-duration-slow) var(--anim-timing);
  position: relative;
  overflow: hidden;
}

.btn:hover:not(:disabled) {
  animation: buttonLift 0.4s ease 1;
}

@keyframes buttonLift {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(-3px);
  }
}

.btn:active {
  transform: translateY(-1px);
}

/* Card base animation */
.card {
  transition: all var(--anim-duration) var(--anim-timing);
}

/* Scroll reveal animation - pour éléments apparaissant au scroll */
.fade-in {
  animation: fadeInUp 0.6s var(--anim-timing) both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fa-spinner,
[class*="spinner"],
[class*="loading"] i {
  animation: spin 1s linear infinite;
}

/* Skeleton loading shimmer */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  animation: shimmer 2s infinite;
}

/* ==========================================
   ANIMATIONS RESPONSIVE - MOBILE
   ========================================== */

@media (max-width: 768px) {
  /* Réduire les animations sur mobile */
  :root {
    --anim-duration: 0.3s;
    --anim-duration-slow: 0.4s;
  }

  /* Hero moins animé */
  .hero::after,
  .hero::before {
    display: none;
  }

  /* Service icon moins rapide */
  .service-icon {
    animation: iconFloat 4s ease-in-out infinite;
  }

  /* Gallery moins agressif sur mobile */
  .gallery-item:hover .gallery-card {
    transform: translateY(-8px);
  }

  /* Testimonial cards moins grosses */
  .testimonial-card:hover .testimonial-content {
    transform: scale(1.01);
  }

  /* Buttons moins de bounce */
  @keyframes buttonLift {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-3px);
    }
  }

  /* Fade title plus court */
  .hero-title {
    animation: titleGlow 2s var(--anim-timing-ease) 0.2s both;
  }

  /* Room card hover moins agressif */
  .room-card:hover {
    transform: translateY(-6px);
  }

  .room-card:hover .room-image img {
    animation: imageZoomSoft 0.4s var(--anim-timing) 1;
  }
}

@media (max-width: 480px) {
  /* Animations très réduites sur petit mobile */
  :root {
    --anim-duration: 0.2s;
    --anim-duration-slow: 0.3s;
  }

  /* Désactiver certaines animations */
  .feature:hover {
    animation: none;
  }

  .service-icon {
    animation: none;
  }

  /* Cards plus simples */
  .card:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
  }

  /* Gallery moins d'effets */
  .gallery-item:hover .gallery-card {
    transform: translateY(-4px);
  }

  /* Modal plus rapide */
  .modal-container {
    animation: modalSlideUp 0.3s var(--anim-timing-bounce);
  }
}

/* Landscape mode animations */
@media (max-width: 768px) and (orientation: landscape) {
  .hero::after,
  .hero::before {
    display: none;
  }

  .feature {
    animation: none;
  }

  .service-card:hover {
    transform: translateY(-8px) scale(1.01);
  }
}

/* ==========================================
   OPTIMISATIONS PERFORMANCE
   ========================================== */

/* Utiliser transform et opacity pour les animations */
.room-card,
.service-card,
.gallery-item,
.testimonial-card {
  will-change: transform, box-shadow;
}

/* Désactiver will-change après animation */
.room-card:not(:hover),
.service-card:not(:hover),
.gallery-item:not(:hover),
.testimonial-card:not(:hover) {
  will-change: auto;
}

/* ==========================================
   COMPATIBILITÉ NAVIGATEURS
   ========================================== */

/* Fallback pour backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  .testimonial-content {
    background: rgba(26, 26, 26, 0.85);
  }
}

/* Support webkit */
.testimonial-content {
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
}

/* ==========================================
   FIN DU FICHIER ANIMATIONS.CSS
   ========================================== */