/* SABA Studio — effets visuels : glassmorphism, glow, particules, machine à écrire */

canvas#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  z-index: -1;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.55;
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.hero__eyebrow { margin-bottom: var(--space-sm); }
.hero__title { max-width: 900px; }
.hero__subtitle { max-width: 620px; margin-inline: auto; font-size: 1.1rem; }
.hero__cta { display: flex; gap: var(--space-sm); flex-wrap: wrap; justify-content: center; margin-top: var(--space-md); }

.typewriter::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--electric-blue-bright);
  margin-left: 4px;
  vertical-align: -0.15em;
  animation: caret-blink 0.9s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* Glassmorphism card */
.glass-card {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-lg);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--glow-blue);
}
.glass-card--featured {
  border-color: var(--electric-blue);
  box-shadow: var(--glow-blue);
}

.glow-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-tag {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin: var(--space-sm) 0;
}
.price-tag small { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(139, 47, 255, 0.15);
  color: var(--violet-bright);
  border: 1px solid rgba(139, 47, 255, 0.4);
}

.video-placeholder {
  aspect-ratio: 9/16;
  max-height: 70vh;
  margin-inline: auto;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-glow);
  background: var(--gradient-glow), var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: center;
}
.portfolio-video {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 70vh;
  margin-inline: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  display: block;
}
.video-placeholder__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-blue);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float { animation: float 6s ease-in-out infinite; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.8s var(--ease-out) both; }

.whatsapp-float {
  position: fixed;
  bottom: var(--space-sm);
  right: var(--space-sm);
  z-index: 200;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform var(--dur-fast) var(--ease-out);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 20px; height: 20px; }
