/* ────────────────────────────────────────────────────────────
   Animations Fluides - Style United Carriers
   Parallax, Stagger, Reveal & Scroll Animations
   ──────────────────────────────────────────────────────────── */

/* ─── ANIMATIONS KEYFRAMES ─────────────────────────────────── */

@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 fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes slideInLine {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(232, 131, 106, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(232, 131, 106, 0.6);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ─── HERO SECTION ANIMATIONS ──────────────────────────────── */

.hero {
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-copy {
  animation: fadeInLeft 1s ease 0.3s both;
}

.hero-copy .eyebrow {
  animation: fadeInDown 0.8s ease 0.2s both;
  display: inline-block;
}

.hero-copy h1 {
  animation: fadeInUp 1s ease 0.4s both;
  line-height: 1.2;
}

.hero-copy .subtitle {
  animation: fadeInUp 1s ease 0.5s both;
}

.store-badges {
  animation: fadeInUp 1s ease 0.6s both;
}

.store-badges .store-badge {
  animation: slideInLine 0.6s ease forwards;
}

.store-badges .store-badge:nth-child(1) {
  animation-delay: 0.7s;
}

.store-badges .store-badge:nth-child(2) {
  animation-delay: 0.8s;
}

.store-note {
  animation: fadeInUp 1s ease 0.7s both;
}

.phone-shot {
  animation: fadeInRight 1s ease 0.4s both;
}

.phone-shot img {
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(61, 50, 41, 0.2));
}

/* Hover effect sur phone */
.phone-shot:hover img {
  filter: drop-shadow(0 40px 80px rgba(232, 131, 106, 0.3));
}

/* ─── FEATURES SECTION ─────────────────────────────────────── */

.section-head {
  animation: fadeInUp 1s ease both;
}

.section-head .eyebrow {
  animation: fadeInUp 0.8s ease 0.1s both;
  display: inline-block;
}

.section-head h2 {
  animation: fadeInUp 1s ease 0.2s both;
}

.section-head p {
  animation: fadeInUp 1s ease 0.3s both;
}

.feature-category {
  animation: fadeInUp 1s ease both;
  scroll-behavior: smooth;
}

.feature-category:nth-child(1) {
  animation-delay: 0.2s;
}

.feature-category:nth-child(2) {
  animation-delay: 0.3s;
}

.feature-category:nth-child(3) {
  animation-delay: 0.4s;
}

.feature-mini-card {
  animation: fadeInUp 0.8s ease both;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-mini-card:nth-child(1) { animation-delay: 0.3s; }
.feature-mini-card:nth-child(2) { animation-delay: 0.4s; }
.feature-mini-card:nth-child(3) { animation-delay: 0.5s; }
.feature-mini-card:nth-child(4) { animation-delay: 0.6s; }
.feature-mini-card:nth-child(5) { animation-delay: 0.7s; }

.feature-mini-card:hover {
  transform: translateY(-10px);
  animation: glow 2s ease infinite;
}

.feature-mini-card .icon {
  animation: float 4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  display: inline-block;
}

/* ─── PRICING SECTION ──────────────────────────────────────── */

.pricing-card {
  animation: scaleIn 0.8s ease 0.3s both;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 40px 80px rgba(232, 131, 106, 0.2) !important;
}

.pricing-features li {
  animation: fadeInLeft 0.6s ease both;
  transition: all 0.3s ease;
}

.pricing-features li:nth-child(1) { animation-delay: 0.3s; }
.pricing-features li:nth-child(2) { animation-delay: 0.4s; }
.pricing-features li:nth-child(3) { animation-delay: 0.5s; }
.pricing-features li:nth-child(4) { animation-delay: 0.6s; }
.pricing-features li:nth-child(5) { animation-delay: 0.7s; }
.pricing-features li:nth-child(6) { animation-delay: 0.8s; }
.pricing-features li:nth-child(7) { animation-delay: 0.9s; }
.pricing-features li:nth-child(8) { animation-delay: 1s; }

.pricing-features li:hover {
  transform: translateX(8px);
}

/* ─── CONTACT SECTION ──────────────────────────────────────── */

.contact-form {
  animation: fadeInLeft 1s ease 0.3s both;
}

.contact-side {
  animation: fadeInRight 1s ease 0.3s both;
}

.contact-form .form-row {
  animation: fadeInUp 0.6s ease both;
}

.contact-form .form-row:nth-child(1) { animation-delay: 0.35s; }
.contact-form .form-row:nth-child(2) { animation-delay: 0.45s; }
.contact-form .form-row:nth-child(3) { animation-delay: 0.55s; }
.contact-form .form-row:nth-child(4) { animation-delay: 0.65s; }

.contact-form input,
.contact-form textarea {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form input:focus,
.contact-form textarea:focus {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(232, 131, 106, 0.2) !important;
}

/* ─── SOCIAL MEDIA STYLES (CONTACT) ────────────────────────── */

.social-links-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 90px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.social-icon-link svg {
  width: 50px;
  height: 50px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: #f5f5f5;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon-link.tiktok:hover svg {
  background: #000;
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  animation: glow 2s ease infinite;
}

.social-icon-link.tiktok:hover svg {
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

.social-icon-link.instagram:hover svg {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 15px 40px rgba(200, 106, 82, 0.3);
  animation: glow 2s ease infinite;
}

.social-icon-link:hover span {
  color: var(--coral-dark);
  font-weight: 700;
}

/* ─── BUTTON ANIMATIONS ────────────────────────────────────── */

.btn-primary,
.btn-secondary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:active::before,
.btn-secondary:active::before {
  width: 300px;
  height: 300px;
  opacity: 1;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(232, 131, 106, 0.3);
}

/* ─── FOLLOW MINIMAL (NO ANIMATION) ────────────────────────── */

/* Les icones follow-minimal n'ont pas d'animation complexe */

/* ─── SCROLL REVEAL ────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── HEADER ANIMATION ─────────────────────────────────────── */

.site-header {
  animation: slideDown 0.5s ease;
}

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

.site-header .brand,
.site-header .main-nav a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header .main-nav a:hover {
  transform: translateY(-2px);
}

/* ─── RESPONSIVE ANIMATIONS ────────────────────────────────── */

@media (max-width: 768px) {
  .hero-content {
    animation: fadeInUp 1s ease 0.2s both;
  }

  .feature-mini-card {
    animation: fadeInUp 0.8s ease both !important;
  }

  .store-badges {
    flex-direction: column;
    animation: fadeInUp 1s ease 0.6s both;
  }

  .phone-shot {
    animation: fadeInUp 1s ease 0.4s both;
  }
}

/* ─── PERFORMANCE OPTIMIZATION ─────────────────────────────── */

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

/* ─── GSAP ADVANCED ANIMATIONS ─────────────────────────────── */

/* Split Text Styling */
h1 span[data-char],
h2 span[data-char] {
  will-change: opacity;
}

/* Card 3D Tilt */
.feature-mini-card,
.pricing-card {
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* Scroll-to-Top Button Base */
#scroll-to-top {
  font-family: var(--font-display);
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

#scroll-to-top:active {
  transform: scale(0.95);
}

/* Form Input Enhanced */
.contact-form input,
.contact-form textarea {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

/* Button Ripple */
.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
}

/* Nav Link Active */
.main-nav a.active {
  position: relative;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--coral-dark);
  animation: slideInLine 0.4s ease;
}

/* Horizontal Scroll Container */
.feature-mini-grid {
  scroll-behavior: smooth;
  will-change: transform;
}

/* Counter Animation Support */
[data-counter] {
  font-variant-numeric: tabular-nums;
}

/* ─── PARALLAX EFFECT ──────────────────────────────────────── */

.parallax-element {
  position: relative;
  z-index: 1;
}

.parallax-element::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  z-index: -1;
  will-change: transform;
}

/* ─── STAGGER ANIMATIONS ────────────────────────────────────── */

.stagger-item {
  animation: fadeInUp 0.8s ease both;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }
.stagger-item:nth-child(7) { animation-delay: 0.7s; }
.stagger-item:nth-child(8) { animation-delay: 0.8s; }
.stagger-item:nth-child(n+9) { animation-delay: 0.9s; }

/* ─── SMOOTH HOVER TRANSITIONS ────────────────────────────── */

*:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  animation: pulse 0.6s ease-out;
}

@keyframes pulse {
  0% {
    outline-width: 3px;
  }
  100% {
    outline-width: 0px;
  }
}
