/* ==========================================
   INSTASON - Styles CSS
   Mobile-first, responsive, émotionnel
   ========================================== */

/* Variables */
:root {
  --primary: #7C3AED;
  --primary-dark: #6d28d9;
  --secondary: #F59E0B;
  --accent: #EC4899;
  --background: #faf5ff;
  --surface: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================
   HEADER
   ========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 1.8rem;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-mobile-menu {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.btn-lang {
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  background: linear-gradient(135deg, #faf5ff 0%, #ffffff 50%, #fdf2f8 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.gradient-text {
  display: block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-note {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Music Wave Animation */
.hero-visual {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.1;
  pointer-events: none;
}

.music-wave {
  display: flex;
  gap: 8px;
  height: 100px;
  align-items: end;
}

.music-wave span {
  width: 8px;
  background: var(--primary);
  border-radius: 4px;
  animation: wave 1.2s ease-in-out infinite;
}

.music-wave span:nth-child(1) { height: 20%; animation-delay: 0s; }
.music-wave span:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.music-wave span:nth-child(3) { height: 100%; animation-delay: 0.2s; }
.music-wave span:nth-child(4) { height: 60%; animation-delay: 0.3s; }
.music-wave span:nth-child(5) { height: 20%; animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

/* Floating Cards */
.floating-cards {
  position: absolute;
  top: 20%;
  right: 5%;
  display: none;
}

.card-float {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 2s; margin-top: 20px; margin-left: -30px; }
.card-3 { animation-delay: 4s; margin-top: 20px; margin-left: 30px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================
   SECTIONS COMMUNES
   ========================================== */

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ==========================================
   HOW IT WORKS
   ========================================== */

.how-it-works {
  background: white;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 2rem;
  background: var(--background);
  border-radius: var(--radius-lg);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step-arrow {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  display: none;
}

/* ==========================================
   PRICING
   ========================================== */

.pricing {
  background: linear-gradient(180deg, var(--background) 0%, white 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.pricing-price .currency {
  font-size: 1.5rem;
  vertical-align: super;
}

.pricing-period {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.feature-disabled {
  color: var(--text-secondary);
  opacity: 0.6;
}

.pricing-note {
  text-align: center;
  margin-top: 3rem;
  color: var(--text-secondary);
}

/* ==========================================
   EXAMPLES
   ========================================== */

.examples {
  background: white;
}

.examples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.example-card {
  background: var(--background);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.example-play {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.example-play:hover {
  transform: scale(1.1);
}

.example-card audio {
  width: 100%;
  margin-top: 1rem;
}

/* ==========================================
   FAQ
   ========================================== */

.faq {
  background: var(--background);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--background);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

/* ==========================================
   CTA FINAL
   ========================================== */

.cta-final {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  text-align: center;
}

.cta-final h2 {
  margin-bottom: 1rem;
}

.cta-final p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-final .btn-primary {
  background: white;
  color: var(--primary);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  background: var(--text-primary);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

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

.footer-brand .logo-text {
  color: white;
  -webkit-text-fill-color: white;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ==========================================
   QUESTIONNAIRE SPECIFIC
   ========================================== */

.questionnaire-page {
  background: white;
  min-height: 100vh;
}

.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border);
  z-index: 1001;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  width: 12.5%; /* 1/8 */
  transition: width 0.5s ease;
}

.progress-text {
  position: fixed;
  top: 15px;
  right: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  z-index: 1001;
  background: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.header-simple {
  padding: 80px 0 40px;
  text-align: center;
}

.questionnaire-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.5rem 100px;
}

.question-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.question-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-header {
  text-align: center;
  margin-bottom: 2rem;
}

.step-header .step-number {
  width: 50px;
  height: 50px;
  font-size: 1.25rem;
}

.step-header h2 {
  margin: 1rem 0 0.5rem;
}

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

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.char-count {
  display: block;
  text-align: right;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Symbol Grid */
.symbol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.symbol-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: var(--background);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.symbol-option:hover {
  border-color: var(--primary);
}

.symbol-option input {
  display: none;
}

.symbol-option input:checked + .symbol-icon,
.symbol-option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
}

.symbol-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.symbol-name {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Radio Groups */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--background);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.radio-option:hover {
  border-color: var(--primary);
}

.radio-option input {
  margin-right: 0.75rem;
}

.radio-option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.upload-zone:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
}

.upload-zone input {
  display: none;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.upload-placeholder p {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.upload-placeholder small {
  color: var(--text-secondary);
}

/* Form Navigation */
.form-navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.form-navigation .btn {
  flex: 1;
}

/* ==========================================
   RESPONSIVE - TABLET & DESKTOP
   ========================================== */

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  
  .btn-mobile-menu {
    display: none;
  }
  
  .hero {
    text-align: left;
  }
  
  .hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  
  .hero-content {
    text-align: left;
    margin: 0;
  }
  
  .hero-cta {
    align-items: flex-start;
  }
  
  .steps {
    flex-direction: row;
    align-items: stretch;
  }
  
  .step {
    flex: 1;
  }
  
  .step-arrow {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--primary);
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .examples-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-links {
    flex-direction: row;
  }
  
  .symbol-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .radio-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .radio-option {
    flex: 1;
    min-width: 200px;
  }
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .floating-cards {
    display: block;
  }
}

/* ==========================================
   ANIMATIONS & UTILITIES
   ========================================== */

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pulse {
  animation: pulse 2s infinite;
}

/* ==========================================
   STYLE GRID (Music Styles Checkboxes)
   ========================================== */

.style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.style-option {
  display: flex;
  align-items: center;
  padding: 12px;
  background: var(--background);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.style-option:hover {
  border-color: var(--primary);
}

.style-option input[type="checkbox"] {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.style-option:has(input[type="checkbox"]:checked) {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
}

.style-option span {
  font-weight: 500;
}

@media (min-width: 768px) {
  .style-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
