/* Animation pour le cœur */
.heart-pulse {
  animation: heartPulse 0.5s ease-in-out;
  transform-origin: center;
}

@keyframes heartPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

/* Animation pour le compteur de likes */
.like-count-animation {
  animation: countPop 0.5s ease-in-out;
  color: #ff4757;
}

@keyframes countPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* Animation pour les particules de cœur */
.heart-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #ff4757;
  border-radius: 50%;
  opacity: 0;
}

.particle:nth-child(1) {
  animation: particleAnimation 1s ease-out 0.1s;
  transform: translate(10px, -20px);
}

.particle:nth-child(2) {
  animation: particleAnimation 1s ease-out 0.2s;
  transform: translate(-15px, -10px);
}

.particle:nth-child(3) {
  animation: particleAnimation 1s ease-out 0.3s;
  transform: translate(15px, 10px);
}

.particle:nth-child(4) {
  animation: particleAnimation 1s ease-out 0.4s;
  transform: translate(-10px, 15px);
}

.particle:nth-child(5) {
  animation: particleAnimation 1s ease-out 0.5s;
  transform: translate(0, -15px);
}

@keyframes particleAnimation {
  0% {
    opacity: 1;
    transform: translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x, 20px), var(--y, -20px)) scale(0);
  }
}

/* Animation pour le conteneur du cœur */
.heart-animation {
  animation: heartBounce 0.5s ease-in-out;
}

@keyframes heartBounce {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(5px);
  }
  70% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}
