/* Intégration de TailwindCSS */
@import "https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css";

/* Styles personnalisés et animations */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

body {
    font-family: 'Poppins', sans-serif;
    background: #111827; /* bg-gray-900 */
}

/* Animation de fond */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(14, 165, 233, 0.1), rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    background-size: 400% 400%;
    animation: gradient-bg 15s ease infinite;
    z-index: -1;
}

@keyframes gradient-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Carte de son */
.sound-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.2);
}

.sound-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.4);
}

.sound-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.1) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.sound-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    opacity: 0;
}

.sound-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.sound-card:hover .overlay {
    background: linear-gradient(to top, rgba(14, 165, 233, 0.8) 0%, rgba(0, 0, 0, 0.2) 70%);
}

/* Animation d'entrée pour les cartes */
@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sound-card-animation {
  animation: card-enter 0.5s ease-out forwards;
}
