/* ============================================================
   My Studio — styles globaux
   Reproduit la base CSS de l'index.html d'origine + ajouts
   nécessaires pour les composants portés en HTML.
   ============================================================ */

body {
  font-family: 'Inter', sans-serif;
  background-color: #09090b;
  color: #e4e4e7;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #18181b; }
::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #52525b; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #27272a; border-radius: 3px; }

/* Animations utilitaires (équivalent aux classes Tailwind animate-fade-in déjà présentes) */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fade-in .35s ease-out forwards; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(99, 102, 241, 0.6); }
  50%      { box-shadow: 0 0 24px rgba(99, 102, 241, 0.9); }
}
.pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, #18181b 25%, #27272a 50%, #18181b 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Boutons gradient récurrents */
.btn-gradient-amber {
  background-image: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}
.btn-gradient-indigo {
  background-image: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

/* Petites cartes "credit pill" */
.credit-pill {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .5rem 1rem;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 9999px;
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Image grid lazy placeholders */
.img-skeleton {
  background-color: #18181b;
  background-image: linear-gradient(90deg, #18181b 0%, #27272a 50%, #18181b 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Inputs (rendre fluide même en pur HTML) */
input, textarea, select {
  background-color: #18181b;
  color: #e4e4e7;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  width: 100%;
  font-size: 0.875rem;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
button { font-family: inherit; cursor: pointer; }

/* Loaders */
.spinner {
  display: inline-block;
  width: 1.25rem; height: 1.25rem;
  border: 2px solid #3f3f46;
  border-top-color: #818cf8;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
