/* Animations douces pour renforcer le caractère humain sans distraire. */

.fade-in {
  animation: fade-in 0.6s ease forwards;
  opacity: 0;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.floating {
  animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.btn-animated {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-animated:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg, 0 10px 20px rgba(0,0,0,0.12));
}

.rise {
  animation: rise 0.8s var(--ease-spring, ease) forwards;
  opacity: 0;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.03); opacity: 1; }
}

.glow {
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0% { box-shadow: 0 0 0 rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 0 22px rgba(255, 255, 255, 0.45); }
  100% { box-shadow: 0 0 0 rgba(255, 255, 255, 0.2); }
}

.loading-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg-primary, #ffffff);
  z-index: 30;
  transition: opacity 0.4s ease;
}

.loading-screen.fade-out {
  opacity: 0;
}

.logo-spin {
  width: 72px;
  height: 72px;
  animation: spin 8s linear infinite;
}

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