/* =========================================================
   CARTHAGE ANNECY — ANIMATIONS.CSS FINAL PREMIUM
   Animations douces / luxe / bleu nuit / doré
========================================================= */

/* =========================
   01. KEYFRAMES
========================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes softZoom {
  from {
    opacity: 0;
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lineReveal {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes goldGlow {
  0% {
    box-shadow: 0 0 0 rgba(228, 201, 130, 0);
  }

  50% {
    box-shadow: 0 0 18px rgba(228, 201, 130, 0.16);
  }

  100% {
    box-shadow: 0 0 0 rgba(228, 201, 130, 0);
  }
}

@keyframes softPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.025);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes softShine {
  0% {
    transform: translateX(-130%) skewX(-18deg);
    opacity: 0;
  }

  35% {
    opacity: 0.18;
  }

  100% {
    transform: translateX(135%) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes logoLuxuryGlow {
  0% {
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.20),
      inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  }

  50% {
    box-shadow:
      0 16px 38px rgba(0, 0, 0, 0.23),
      0 0 20px rgba(228, 201, 130, 0.12),
      inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  }

  100% {
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.20),
      inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  }
}

/* =========================
   02. APPARITIONS
========================= */

.reveal-up {
  animation: fadeUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-down {
  animation: fadeDown 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-left {
  animation: fadeLeft 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-right {
  animation: fadeRight 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.soft-zoom {
  animation: softZoom 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* =========================
   03. DÉLAIS
========================= */

.delay-1 {
  animation-delay: 0.08s;
}

.delay-2 {
  animation-delay: 0.15s;
}

.delay-3 {
  animation-delay: 0.22s;
}

.delay-4 {
  animation-delay: 0.29s;
}

.delay-5 {
  animation-delay: 0.36s;
}

/* =========================
   04. ORNEMENTS
========================= */

.ornament-line span {
  transform-origin: center;
  animation: lineReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ornament-line i {
  animation: softZoom 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* =========================
   05. TRANSITIONS GLOBALES
========================= */

a,
button,
.btn,
.header-btn,
.nav-link,
.mobile-link,
.menu-tab,
.gallery-filter,
input,
select,
textarea,
.social-links a,
.logo-img,
.logo-area {
  transition:
    color 0.32s ease,
    background 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    transform 0.32s ease,
    opacity 0.32s ease,
    filter 0.32s ease;
}

/* =========================
   06. LOGO CAPSULE PREMIUM
========================= */

.logo-area {
  animation: logoLuxuryGlow 6s ease-in-out infinite;
}

.logo-area:hover {
  transform: translateY(-1px);
}

.logo-area:hover .logo-img {
  transform: scale(1.022);
  filter:
    drop-shadow(0 8px 16px rgba(7, 27, 51, 0.20))
    saturate(1.10)
    contrast(1.05);
}

/* =========================
   07. BOUTONS
========================= */

.header-btn,
.btn-secondary {
  animation: goldGlow 5.8s ease-in-out infinite;
}

.btn,
.header-btn {
  position: relative;
  overflow: hidden;
}

.btn::before,
.header-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.btn:hover::before,
.header-btn:hover::before {
  animation: softShine 0.9s ease;
}

.btn span,
.header-btn span {
  transition: transform 0.32s ease;
}

.btn:hover span,
.header-btn:hover span {
  transform: translateX(3px);
}

/* =========================
   08. NAVIGATION
========================= */

.nav-link {
  transition:
    color 0.28s ease,
    opacity 0.28s ease,
    transform 0.28s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-link::after {
  transform-origin: center;
}

/* =========================
   09. CARTES / BLOCS
========================= */

.univers-card,
.dish-card,
.specialite-mini-card,
.specialite-feature,
.gallery-card,
.gallery-value,
.about-signature-card,
.reservation-benefit,
.reservation-info-card,
.contact-info-card,
.menu-category,
.legal-content,
.reservation-form-card,
.contact-form-card,
.menu-side-card,
.reservation-note,
.contact-side-card {
  will-change: transform;
}

.univers-card:hover,
.dish-card:hover,
.specialite-mini-card:hover,
.gallery-card:hover,
.gallery-value:hover,
.about-signature-card:hover,
.reservation-benefit:hover,
.reservation-info-card:hover,
.contact-info-card:hover {
  transform: translateY(-5px);
}

.specialite-feature:hover,
.menu-category:hover,
.legal-content:hover,
.reservation-form-card:hover,
.contact-form-card:hover,
.menu-side-card:hover,
.reservation-note:hover,
.contact-side-card:hover {
  transform: translateY(-3px);
}

/* =========================
   10. IMAGES
========================= */

.univers-card img,
.dish-card img,
.specialite-mini-card img,
.specialite-feature-image img,
.gallery-card img,
.about-intro-image img,
.about-ambiance-gallery img,
.reservation-image img,
.contact-side-image img,
.special-moment-image img,
.experience-image img,
.about-story-image img {
  will-change: transform;
  transition:
    transform 0.68s ease,
    filter 0.45s ease;
}

.univers-card:hover img,
.dish-card:hover img,
.specialite-mini-card:hover img,
.gallery-card:hover img {
  transform: scale(1.045);
}

.specialite-feature:hover .specialite-feature-image img,
.reservation-image:hover img,
.contact-side-image:hover img,
.about-intro-image:hover img,
.about-ambiance-gallery:hover img,
.experience-image:hover img,
.special-moment-image:hover img,
.about-story-image:hover img {
  transform: scale(1.022);
}

/* =========================
   11. ICONES
========================= */

.hero-feature .feature-icon,
.value-item span,
.gallery-value span,
.about-signature-card span,
.reservation-benefit span,
.reservation-info-card span,
.contact-info-card span,
.quick-benefits span {
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.hero-feature:hover .feature-icon,
.value-item:hover span,
.gallery-value:hover span,
.about-signature-card:hover span,
.reservation-benefit:hover span,
.reservation-info-card:hover span,
.contact-info-card:hover span,
.quick-benefits div:hover span {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 22px rgba(7, 27, 51, 0.08);
}

.social-links a:hover {
  animation: softPulse 0.65s ease both;
}

.menu-tab:hover span {
  transform: translateY(-1px);
}

/* =========================
   12. MENU MOBILE
========================= */

.mobile-menu {
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.38s ease;
}

.mobile-menu:not(.open) {
  opacity: 0;
}

.mobile-menu.open {
  opacity: 1;
}

.mobile-link {
  transition:
    color 0.28s ease,
    background 0.28s ease,
    transform 0.28s ease;
}

.mobile-link:hover {
  transform: translateX(4px);
}

/* =========================
   13. FORMULAIRES
========================= */

.form-group input,
.form-group select,
.form-group textarea,
.quick-field input,
.quick-field select {
  transition:
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    background 0.32s ease,
    transform 0.32s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.quick-field input:focus,
.quick-field select:focus {
  transform: translateY(-1px);
}

/* =========================
   14. ACCESSIBILITÉ
========================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(228, 201, 130, 0.22);
}

/* =========================
   15. MOBILE OPTIMISATION
========================= */

@media (max-width: 768px) {
  .reveal-up,
  .reveal-down,
  .reveal-left,
  .reveal-right,
  .soft-zoom {
    animation-duration: 0.62s;
  }

  .logo-area,
  .header-btn,
  .btn-secondary {
    animation: none;
  }

  .btn:hover::before,
  .header-btn:hover::before {
    animation: none;
  }

  .logo-area:hover,
  .logo-area:hover .logo-img,
  .nav-link:hover,
  .univers-card:hover,
  .dish-card:hover,
  .specialite-mini-card:hover,
  .specialite-feature:hover,
  .gallery-card:hover,
  .gallery-value:hover,
  .about-signature-card:hover,
  .reservation-benefit:hover,
  .reservation-info-card:hover,
  .contact-info-card:hover,
  .menu-category:hover,
  .legal-content:hover,
  .reservation-form-card:hover,
  .contact-form-card:hover,
  .menu-side-card:hover,
  .reservation-note:hover,
  .contact-side-card:hover {
    transform: none;
  }

  .univers-card:hover img,
  .dish-card:hover img,
  .specialite-mini-card:hover img,
  .specialite-feature:hover .specialite-feature-image img,
  .gallery-card:hover img,
  .reservation-image:hover img,
  .contact-side-image:hover img,
  .about-intro-image:hover img,
  .about-ambiance-gallery:hover img,
  .experience-image:hover img,
  .special-moment-image:hover img,
  .about-story-image:hover img {
    transform: none;
  }

  .hero-feature:hover .feature-icon,
  .value-item:hover span,
  .gallery-value:hover span,
  .about-signature-card:hover span,
  .reservation-benefit:hover span,
  .reservation-info-card:hover span,
  .contact-info-card:hover span,
  .quick-benefits div:hover span {
    transform: none;
    box-shadow: none;
  }
}

/* =========================
   16. RÉDUCTION DES ANIMATIONS
========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}