@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors - Light Theme */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-light: #e2e8f0;
  
  --accent-primary: #6366f1; /* Default Indigo */
  --accent-secondary: #8b5cf6; /* Default Violet */
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

html.dark, .dark {
  /* Colors - Dark Theme */
  --bg-primary: #0b0c10;
  --bg-secondary: #12141d;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-light: #1e293b;
  
  --glass-bg: rgba(18, 20, 29, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-right: 0.1em;
}

/* Page specific styles */
.main {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.backgroundGlow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.dark .backgroundGlow {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.loginBtn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.loginBtn:hover {
  background: var(--glass-border);
  transform: translateY(-2px);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: slideDown 0.6s ease-out forwards;
}

.title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out forwards;
}

.description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  animation: fadeInUp 1s ease-out forwards;
}

.ctaGroup {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 1.2s ease-out forwards;
}

.primaryBtn {
  background: var(--accent-gradient);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.primaryBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.secondaryBtn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.secondaryBtn:hover {
  background: var(--glass-border);
  transform: translateY(-3px);
}

.heroImageContainer {
  width: 100%;
  max-width: 900px;
  perspective: 1000px;
  animation: fadeInUp 1.4s ease-out forwards;
}

.dashboardMockup {
  width: 100%;
  aspect-ratio: 16/9;
  transform: rotateX(5deg) scale(0.95);
  transition: transform 0.5s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dashboardMockup:hover {
  transform: rotateX(0deg) scale(1);
}

.mockupHeader {
  height: 40px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--glass-border);
}

.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.mockupHeaderRight {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.mockupAvatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-gradient);
}

.mockupName {
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 500;
}

.mockupBody {
  flex: 1;
  display: flex;
  padding: 1rem;
  gap: 1rem;
}

.mockupSidebar {
  width: 20%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockupMenuItem {
  height: 24px;
  border-radius: 6px;
  background: var(--glass-border);
  opacity: 0.3;
}

.mockupMenuItem.active {
  background: var(--accent-primary);
  opacity: 0.8;
}

.mockupContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockupCard {
  flex: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 1rem;
  gap: 8px;
}

.mockupChartBar {
  flex: 1;
  background: var(--accent-gradient);
  border-radius: 4px 4px 0 0;
  opacity: 0.8;
  animation: growBar 1.5s ease-out forwards;
  transform-origin: bottom;
}

@keyframes growBar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.mockupCardRow {
  display: flex;
  gap: 1rem;
  height: 35%;
}

.mockupStatCard {
  flex: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
}

.mockupStatLabel {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.mockupStatValue {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.parallaxHero {
  width: 100%;
  height: 65vh;
  min-height: 400px;
  background-image: url('assets/music-hero.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  margin-bottom: 4rem;
}

/* Fondu en haut et en bas de l'image parallax pour s'intégrer au fond */
.parallaxHero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 15%, transparent 85%, var(--bg-primary) 100%);
  pointer-events: none;
}

/* New Sections */
.sectionTitle {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features, .contact {
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.featuresGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.featureCard {
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.featureCard:hover {
  transform: translateY(-5px);
}

.featureIcon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.featureCard h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.featureCard p {
  color: var(--text-secondary);
}

.contactDesc {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

.contactForm {
  max-width: 100%;
  margin: 0;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.formGroup {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.formGroup label {
  font-weight: 500;
  color: var(--text-primary);
}

.formGroup input,
.formGroup textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.formGroup input:focus,
.formGroup textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.submitBtn {
  margin-top: 1rem;
  width: 100%;
}

.footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 5%;
  margin-top: 4rem;
}

.footerContent {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footerLinks {
  display: flex;
  gap: 2rem;
}

.footerLinks a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footerLinks a:hover {
  color: var(--accent-primary);
}

.footerCopyright {
  text-align: center;
  margin-top: 3rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.contactLayout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.contactImageWrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contactImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 2rem;
  }
  .title {
    font-size: 2rem;
  }
  .ctaGroup {
    flex-direction: column;
  }
  .footerContent {
    flex-direction: column;
    text-align: center;
  }
  .contactLayout {
    grid-template-columns: 1fr;
  }
}
