/* Modern Animations CSS */
:root {
  --animation-duration: 1s;
  --animation-delay: 0.2s;
  --section-spacing: 2rem;
  --container-spacing: 1.5rem;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Section spacing */
.container-fluid {
  padding-top: var(--section-spacing) !important;
  padding-bottom: var(--section-spacing) !important;
}

.container {
  padding-top: var(--container-spacing) !important;
  padding-bottom: var(--container-spacing) !important;
}

/* Base animation classes */
.animate {
  opacity: 0;
  will-change: transform, opacity;
}

.animate.visible {
  opacity: 1;
}

/* Fade animations */
.fade-in {
  opacity: 0;
  transition: opacity var(--animation-duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
}

/* Slide animations */
.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: transform var(--animation-duration) cubic-bezier(0.4, 0, 0.2, 1),
              opacity var(--animation-duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(30px);
  transition: transform var(--animation-duration) cubic-bezier(0.4, 0, 0.2, 1),
              opacity var(--animation-duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(-30px);
  transition: transform var(--animation-duration) cubic-bezier(0.4, 0, 0.2, 1),
              opacity var(--animation-duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Zoom animations */
.zoom-in {
  opacity: 0;
  transform: scale(0.95);
  transition: transform var(--animation-duration) cubic-bezier(0.4, 0, 0.2, 1),
              opacity var(--animation-duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Cascade animations */
.cascade-parent {
  opacity: 1;
}

.cascade-item {
  opacity: 0;
  transform: translateY(20px);
  transition: transform var(--animation-duration) cubic-bezier(0.4, 0, 0.2, 1),
              opacity var(--animation-duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.cascade-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax effects */
[data-parallax] {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Section transitions */
.section-transition {
  position: relative;
  margin-bottom: -1px; /* Élimine l'espace entre les sections */
}

.section-transition::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(var(--bs-body-bg-rgb), 0.1) 75%, rgba(var(--bs-body-bg-rgb), 1));
  pointer-events: none;
  z-index: 1;
}

/* Ajustement des marges pour les titres de section */
.section-title, .text-center {
  margin-bottom: 1.5rem !important;
}

.section-title h1, .text-center h1 {
  margin-bottom: 0.5rem !important;
}

/* Modern banner animations */
.page-banner {
  position: relative;
  overflow: hidden;
}

.page-banner .banner-image {
  transform: scale(1.1);
  transition: transform 6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-banner.visible .banner-image {
  transform: scale(1);
}

.page-banner .banner-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--animation-duration) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--animation-duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.page-banner.visible .banner-content {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Ultra-modern hover effects */
.hover-zoom {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.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(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Loading animations */
.loading-fade {
  animation: loadingFade 2s infinite;
}

@keyframes loadingFade {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* Progress animations */
.progress-bar {
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
