/* ============================================================
   OUKIWEB — animations.css
   Keyframes · Effets spéciaux · Loaders
   ============================================================ */

/* ── Scan line (fond décoratif) ────────────────────────────── */
@keyframes scan {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* ── Typing cursor ─────────────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.cursor-blink::after {
  content: '|';
  color: var(--ow-primary);
  animation: blink 1s ease infinite;
  margin-left: 2px;
}

/* ── Shimmer (skeleton loading) ────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--ow-bg-secondary) 25%,
    var(--ow-bg-tertiary) 50%,
    var(--ow-bg-secondary) 75%
  );
  background-size: 200% auto;
  animation: shimmer 2s linear infinite;
  border-radius: var(--radius-xs);
}

/* ── Gradient border animation ─────────────────────────────── */
@keyframes border-rotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animated-border {
  background: linear-gradient(270deg, var(--ow-primary), var(--ow-accent), var(--ow-primary));
  background-size: 200% 200%;
  animation: border-rotate 4s ease infinite;
}

/* ── Counter number roll ───────────────────────────────────── */
@keyframes count-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.stat-number.counting {
  animation: count-up 0.4s ease forwards;
}

/* ── Fade slide in from bottom ─────────────────────────────── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Staggered fade ────────────────────────────────────────── */
@keyframes staggerFade {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/* ── Gradient text animation ───────────────────────────────── */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-gradient-text {
  background: linear-gradient(270deg, var(--ow-primary), var(--ow-accent), #a78bfa, var(--ow-primary));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s ease infinite;
}

/* ── Pulse ring (CTA attention) ────────────────────────────── */
@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}
.pulse-ring {
  position: relative;
  display: inline-flex;
}
.pulse-ring::before,
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ow-primary);
  animation: pulse-ring 2.5s cubic-bezier(0.4,0,0.2,1) infinite;
}
.pulse-ring::after {
  animation-delay: 1.25s;
}

/* ── Grid lines background ─────────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(124,92,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,92,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
}

/* ── Dot grid ──────────────────────────────────────────────── */
.dot-grid-bg {
  background-image: radial-gradient(rgba(124,92,255,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Glow line separator ───────────────────────────────────── */
.glow-line {
  height: 1px;
  background: var(--ow-edge-gradient);
  opacity: 0.5;
  margin: var(--spacing-xl) 0;
}

/* ── Floating animation (icônes, illustrations) ─────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
.float {
  animation: float 4s ease-in-out infinite;
}
.float-slow {
  animation: float 7s ease-in-out infinite;
}

/* ── Spin ──────────────────────────────────────────────────── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.spin { animation: spin 8s linear infinite; }

/* ── Icon bounce on hover ──────────────────────────────────── */
.icon-bounce {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.68,-0.55,0.265,1.55);
}
.icon-bounce:hover {
  transform: translateY(-5px) scale(1.1);
}

/* ── Stats counter ─────────────────────────────────────────── */
.counter-wrapper {
  display: inline-block;
  overflow: hidden;
}

/* ── Toast notification ────────────────────────────────────── */
@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: none; }
}
@keyframes toast-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-10px); }
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--ow-card);
  border: 1px solid var(--ow-border-accent);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  z-index: 9000;
  animation: toast-in 0.35s cubic-bezier(0.4,0,0.2,1) forwards;
}

.toast.is-leaving {
  animation: toast-out 0.3s ease forwards;
}

.toast--success { border-color: rgba(16,185,129,0.4); }
.toast--success .toast-icon { color: #10B981; }
.toast--error { border-color: rgba(239,68,68,0.4); }
.toast--error .toast-icon { color: #EF4444; }
