/* Styles pour la landing page Muziplay */

/* Variables CSS pour la thématique musicale */
:root {
  --music-primary: #1e40af;
  --music-secondary: #3b82f6;
  --music-accent: #f59e0b;
  --music-text: #1f2937;
  --music-light: #f8fafc;
}

/* Fond principal avec motif musical subtil */
body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(30, 64, 175, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  position: relative;
}

/* Éléments décoratifs musicaux */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e2e8f0' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

/* Header avec motif musical */
.app-header {
  background: linear-gradient(135deg, var(--music-primary) 0%, var(--music-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.app-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20h10v10H20zM70 20h10v10H70zM20 70h10v10H20zM70 70h10v10H70z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Section Hero */
.hero-section {
  background: linear-gradient(135deg, var(--music-primary) 0%, var(--music-secondary) 100%);
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20h10v10H20zM70 20h10v10H70zM20 70h10v10H20zM70 70h10v10H70z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Cartes avec effet musical */
.music-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.music-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

.music-card:hover::before {
  left: 100%;
}

.music-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Icônes musicales décoratives */
.music-icon {
  position: absolute;
  opacity: 0.1;
  pointer-events: none;
}

.music-icon.note-1 {
  top: 10%;
  left: 5%;
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
}

.music-icon.note-2 {
  top: 20%;
  right: 10%;
  font-size: 1.5rem;
  animation: float 8s ease-in-out infinite reverse;
}

.music-icon.note-3 {
  bottom: 15%;
  left: 15%;
  font-size: 1.8rem;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* Boutons avec style musical */
.music-btn {
  background: linear-gradient(135deg, var(--music-primary) 0%, var(--music-secondary) 100%);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
}

.music-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.music-btn:hover::before {
  left: 100%;
}

.music-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(30, 64, 175, 0.3);
  color: white;
}

.music-btn-secondary {
  background: white;
  color: var(--music-primary);
  border: 2px solid var(--music-primary);
}

.music-btn-secondary:hover {
  background: var(--music-primary);
  color: white;
}

/* Footer avec motif musical */
.footer-music {
  background: linear-gradient(135deg, var(--music-primary) 0%, #1e3a8a 100%);
  position: relative;
  overflow: hidden;
}

.footer-music::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20h10v10H20zM50 20h10v10H50zM20 50h10v10H20zM50 50h10v10H50z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Animations pour les éléments musicaux */
@keyframes musicPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.music-pulse {
  animation: musicPulse 2s ease-in-out infinite;
}

/* Carte d'enseignant */
.teacher-card {
  transition: all 0.3s ease;
  border-radius: 0.75rem;
  overflow: hidden;
}

.teacher-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.teacher-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Formulaire d'inscription */
.newsletter-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.newsletter-input {
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  width: 100%;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--music-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Section "Bientôt disponible" */
.coming-soon-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--music-accent);
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  animation: pulse 2s ease-in-out infinite;
}

/* Décompte */
.countdown-container {
  max-width: 600px;
  margin: 0 auto;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 1rem 0.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.2);
}

.countdown-number {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.countdown-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

@media (max-width: 640px) {
  .countdown-grid {
    gap: 0.5rem;
  }
  
  .countdown-item {
    padding: 0.75rem 0.25rem;
  }
  
  .countdown-number {
    font-size: 1.5rem;
  }
  
  .countdown-label {
    font-size: 0.65rem;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Slogan avec effets visuels */
.brand-slogan {
  position: relative;
  display: inline-block;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.75rem;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.brand-slogan::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
  transition: width 0.5s ease;
}

.brand-slogan:hover {
  opacity: 1;
  transform: translateX(2px);
}

.brand-slogan:hover::before {
  width: 100%;
}

/* Effet de brillance pour le slogan */
@keyframes shimmer {
  0% {
    text-shadow: 0 0 5px rgba(191, 219, 254, 0.5);
  }
  50% {
    text-shadow: 0 0 10px rgba(191, 219, 254, 0.8), 0 0 15px rgba(191, 219, 254, 0.5);
  }
  100% {
    text-shadow: 0 0 5px rgba(191, 219, 254, 0.5);
  }
}

.brand-slogan-shimmer {
  position: relative;
  animation: shimmer 4s ease-in-out infinite;
}

.brand-slogan-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

@media (max-width: 768px) {
  .music-icon {
    display: none;
  }
  
  .music-card {
    backdrop-filter: none;
  }

  .hero-section {
    padding: 4rem 0;
  }

  .teacher-avatar {
    width: 120px;
    height: 120px;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Section de présentation des enseignants */
.teachers-section {
  background: white;
  position: relative;
}

/* Section d'inscription */
.signup-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}

