:root {
  --anim-duration: 1.25s;
}
.animate {
  opacity: 0;
}

/* Zoom in entrance */
.visible.zoomIn {
  animation: zoomIn 1.25s ease forwards;
}
@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale3d(.1, .1, .1);
    }
    100% {
        opacity: 1;
    }
}


/* Staggered fade-up entrance */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp var(--anim-duration) ease forwards;
}
.delay1 { animation-delay: 0.1s; }
.delay2 { animation-delay: 0.2s; }
.delay3 { animation-delay: 0.3s; }
.delay4 { animation-delay: 0.4s; }
.delay5 { animation-delay: 0.5s; }
.delay6 { animation-delay: 0.6s; }
.delay7 { animation-delay: 0.7s; }
.delay8 { animation-delay: 0.8s; }
.delay9 { animation-delay: 0.9s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Slide-in from side */
.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInLeft 0.7s ease forwards;
}
@keyframes slideInLeft {
  to { opacity: 1; transform: translateX(0); }
}

/* Scale reveal */
.scale-up {
  opacity: 0;
  transform: scale(0.9);
  animation: scaleUp 0.5s ease forwards;
}
@keyframes scaleUp {
  to { opacity: 1; transform: scale(1); }
}

/* Continuous float — decorative elements */
.float {
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
/* Continuous heartbeating — decorative elements */
.heartbeat {
  animation: heartbeat 3s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(100%); }
  50% { transform: scale(98%); }
}

/* Gradient background animation */
.gradient-shift {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hover transitions */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* text reveal */
h1 {
  animation: reveal 1.25s;
}
@keyframes reveal {
    0% {opacity:0;}
    20% {opacity:0.2;}
    80% {opacity:0.8;}
    100% {opacity:1;}
}

body:not(.search-results) main li:not(.wp-block-post) a[href^="http:"],
body:not(.search-results) main li:not(.wp-block-post) a[href^="https:"],
body:not(.search-results) main p a[href^="https:"],
body:not(.search-results) main p a[href^="http:"] {
  display:inline-block;
  padding: 0 0.2rem;
  color: #FFFFFF;
  text-decoration:none !important;
  background:
    linear-gradient(90deg,var(--wp--preset--color--accent-2) 50%,var(--wp--preset--color--accent-1) 0)
    var(--_p,100%)/200% no-repeat;
  -webkit-background-clip: border-box;
          background-clip: border-box;
  transition: .2s;
}
.search-results main .wp-block-search__button,
main .wp-block-buttons a[href="mailto:contact@osmose92sud.fr"],
main .wp-block-buttons a[href^="https:"],
main .wp-block-buttons a[href^="http:"] {
  color: #FFFFFF;
  background:
    linear-gradient(90deg,var(--wp--preset--color--accent-2) 50%,var(--wp--preset--color--accent-1) 0)
    var(--_p,100%)/200% no-repeat;
  -webkit-background-clip: border-box;
          background-clip: border-box;
  transition: .2s;
}

a[href^="tel:"]{
  display:inline-block;
  padding: 0 0.2rem;
  color: #FFFFFF;
  text-decoration:none !important;
  background:
    linear-gradient(90deg,var(--wp--preset--color--accent-5) 50%,var(--wp--preset--color--accent-6) 0)
    var(--_p,100%)/200% no-repeat;
  -webkit-background-clip: border-box;
          background-clip: border-box;
  transition: .2s;
}
button:hover,
a:hover {
  --_p: 0%;
}

/* Accessibility: always include */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
