/* ========================================================================
   ANIMATIONS PROFESSIONNELLES - 50 NUANCES DE GREY
   ======================================================================== */

/* ========== SCROLL ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(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);
  }
}

/* ========== MARQUEE SCROLLING ========== */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-band {
  overflow: hidden;
  background: var(--anthracite);
  color: var(--blanc);
  padding: 20px 0;
  position: relative;
}

.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  padding: 0 30px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  flex-shrink: 0;
}

.marquee-item .sep {
  color: var(--or);
  margin: 0 10px;
}

/* ========== HERO ANIMATIONS ========== */
.hero-in {
  animation: fadeInDown 1s ease-out;
}

.hero-title {
  animation: fadeInUp 1s ease-out 0.2s both;
  line-height: 1.2;
}

.hero-actions {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-scroll {
  animation: fadeInUp 0.8s ease-out 0.6s both;
  display: inline-block;
  font-size: 28px;
  color: var(--blanc);
  cursor: pointer;
  animation-iteration-count: infinite;
  animation-duration: 2s;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.hero-scroll:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ========== REVEAL ON SCROLL ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */
.split.reveal,
.icon-features.reveal > div:nth-child(1),
.menu-categories.reveal > a:nth-child(1),
.testimonials-grid.reveal > div:nth-child(1) {
  transition-delay: 0s;
}

.icon-features.reveal > div:nth-child(2),
.menu-categories.reveal > a:nth-child(2),
.testimonials-grid.reveal > div:nth-child(2) {
  transition-delay: 0.1s;
}

.icon-features.reveal > div:nth-child(3),
.menu-categories.reveal > a:nth-child(3),
.testimonials-grid.reveal > div:nth-child(3) {
  transition-delay: 0.2s;
}

/* ========== HOVER EFFECTS ========== */
.menu-cat-card img {
  transition: transform 0.7s cubic-bezier(0.2, 0, 0, 1);
}

.menu-cat-card:hover img {
  transform: scale(1.08) rotate(1deg);
}

.testimonial-card {
  transition: all var(--transition);
  border: 1px solid var(--gris-perle);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--or);
}

.btn {
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(176, 141, 87, 0.3);
}

/* ========== ICON ANIMATION ========== */
.ic-circle {
  font-size: 48px;
  animation: fadeInUp 0.6s ease-out;
  display: inline-block;
  margin-bottom: 20px;
  transition: transform var(--transition);
}

.icon-feature:hover .ic-circle {
  transform: scale(1.15) rotate(5deg);
}

/* ========== STATS COUNTER ANIMATION ========== */
.stat-num {
  animation: scaleIn 1s ease-out;
}

/* ========== GALLERY GRID ANIMATION ========== */
.gallery-grid a {
  transition: transform 0.6s ease-out;
  overflow: hidden;
}

.gallery-grid a:hover img {
  transform: scale(1.1) rotate(0.5deg);
}

/* ========== PROMO CARDS ========== */
.promo-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  transition: transform var(--transition);
}

.promo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 26, 0.2);
  transition: background var(--transition);
}

.promo-card:hover::before {
  background: rgba(28, 27, 26, 0.4);
}

.promo-card:hover {
  transform: translateY(-8px);
}

/* ========== SMOOTH SCROLL BEHAVIOR ========== */
html {
  scroll-behavior: smooth;
}

/* ========== NUANCIER STRIP ANIMATION ========== */
.nuancier-strip span {
  transition: flex 0.6s ease-out;
}

/* ========== GRADIENT TEXT EFFECT ========== */
.hero-title em {
  background: linear-gradient(135deg, var(--or) 0%, var(--or-clair) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== LOADING ANIMATION ========== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s ease-in-out infinite;
}

/* ========== SMOOTH TRANSITIONS FOR ALL ========== */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== MOTION PREFERENCES ========== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
