/*
BACKUP VERSION - CURRENT STATE BEFORE PREMIUM UPGRADES
Pour revenir à la version actuelle, utiliser ce backup complet
*/

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
  color: #0D1B2A;
  line-height: 1.618;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container principal avec centrage vertical */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3.236rem 2.427rem; /* Golden ratio: 2rem * 1.618 */
  max-width: 100%;
}

/* Section logo */
.logo-section {
  margin-bottom: 4.854rem; /* 3rem * 1.618 */
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.214rem; /* 0.75rem * 1.618 */
}

.logo-icon {
  filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.2));
}

.logo {
  font-family: 'Crimson Pro', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0D1B2A;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Section héro */
.hero-section {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.main-title {
  font-family: 'Crimson Pro', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #0D1B2A;
  margin-bottom: 1.942rem; /* 1.2rem * 1.618 */
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #0D1B2A;
  opacity: 0.8;
  margin-bottom: 4.854rem; /* 3rem * 1.618 */
  line-height: 1.618;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Formulaire */
.signup-form {
  margin-bottom: 2rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.email-input-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 400px;
}

.email-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  z-index: 2;
  pointer-events: none;
}

#email {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #FEFEFE 100%);
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  outline: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.03),
    0 4px 8px rgba(0, 0, 0, 0.02),
    0 8px 16px rgba(0, 0, 0, 0.01),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.privacy-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #6B7280;
  margin-top: 0.5rem;
  margin-bottom: 0;
  text-align: center;
}

.urgency-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-style: italic;
  color: #DC2626;
  text-align: center;
  margin: 0.3rem 0 0 0;
  opacity: 0.9;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

#email:focus {
  border-color: #10B981;
  box-shadow: 
    0 0 0 3px rgba(16, 185, 129, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.03),
    0 16px 32px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

#email:invalid:not(:placeholder-shown) {
  border-color: #EF4444;
}

#email:valid {
  border-color: #10B981;
}

.cta-button {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.1rem 2.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 4px rgba(16, 185, 129, 0.15),
    0 8px 16px rgba(16, 185, 129, 0.12),
    0 16px 32px rgba(16, 185, 129, 0.08),
    0 32px 64px rgba(16, 185, 129, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  min-width: 280px;
  margin-bottom: 0.5rem;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 8px rgba(16, 185, 129, 0.18),
    0 12px 24px rgba(16, 185, 129, 0.15),
    0 24px 48px rgba(16, 185, 129, 0.12),
    0 48px 96px rgba(16, 185, 129, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.25);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 
    0 3px 8px rgba(16, 185, 129, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-button:disabled {
  background: linear-gradient(135deg, #64748B 0%, #475569 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.05);
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Messages de feedback */
.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  text-align: center;
}

.form-message.success {
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #10B981;
}

.form-message.error {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #EF4444;
}

/* Section social proof */
.social-proof {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.avatars-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: -8px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  margin-left: -6px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  filter: blur(0.5px);
}

.avatar:first-child {
  margin-left: 0;
}

.avatar.more {
  background: linear-gradient(135deg, #6B7280, #4B5563);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #FFFFFF;
  font-size: 0.7rem;
}

.trust-indicator {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #0D1B2A;
  opacity: 0.8;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.verified-icon {
  filter: drop-shadow(0 1px 2px rgba(29, 161, 242, 0.2));
}

/* Section Comment ça marche */
.how-it-works {
  margin-top: 0.75rem;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border-radius: 24px;
  width: 100%;
  max-width: 900px;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.02),
    0 4px 8px rgba(0, 0, 0, 0.015),
    0 8px 16px rgba(0, 0, 0, 0.01),
    0 16px 32px rgba(0, 0, 0, 0.005);
}

.section-title {
  font-family: 'Crimson Pro', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #0D1B2A;
  text-align: center;
  margin-bottom: 1.5rem;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 0 1.5rem;
}

.step {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFDFD 100%);
  border-radius: 16px;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.03),
    0 4px 8px rgba(0, 0, 0, 0.025),
    0 8px 16px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.035),
    0 16px 32px rgba(0, 0, 0, 0.03),
    0 32px 64px rgba(0, 0, 0, 0.015),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 
    0 1px 3px rgba(16, 185, 129, 0.2),
    0 4px 8px rgba(16, 185, 129, 0.15),
    0 8px 16px rgba(16, 185, 129, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.step-icon {
  font-size: 2.5rem;
  margin: 1rem 0 0.5rem 0;
}

.step-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0D1B2A;
  margin-bottom: 0.5rem;
}

.step-description {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.5;
  margin: 0;
}

/* Responsive design - Mobile first */
@media (max-width: 480px) {
  .container {
    padding: 1.5rem 1rem;
  }
  
  .logo {
    font-size: 2rem;
  }
  
  .logo-icon {
    width: 32px;
    height: 32px;
  }
  
  .main-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }
  
  .email-input-container {
    max-width: 100%;
  }
  
  .cta-button {
    min-width: 100%;
    max-width: 400px;
  }
  
  .how-it-works {
    padding: 2rem 1rem;
    margin-top: 3rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .avatar {
    width: 28px;
    height: 28px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .main-title {
    font-size: 2.6rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
}

@media (min-width: 769px) {
  .container {
    padding: 3rem 2rem;
  }
  
  .logo {
    font-size: 3rem;
  }
  
  .logo-icon {
    width: 48px;
    height: 48px;
  }
  
  .main-title {
    font-size: 3.2rem;
  }
  
  .subtitle {
    font-size: 1.3rem;
  }
  
  .steps-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Animations subtiles */
.logo-container,
.main-title,
.subtitle,
.signup-form,
.social-proof,
.how-it-works {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.logo-container { animation-delay: 0.1s; }
.main-title { animation-delay: 0.2s; }
.subtitle { animation-delay: 0.3s; }
.signup-form { animation-delay: 0.4s; }
.social-proof { animation-delay: 0.5s; }
.how-it-works { animation-delay: 0.6s; }

.step {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.step:nth-child(1) { animation-delay: 0.8s; }
.step:nth-child(2) { animation-delay: 0.9s; }
.step:nth-child(3) { animation-delay: 1s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
