/* Revenue Leak Detector Styles - Cohérent avec le design sophistiqué du site */

:root {
  --revenue-accent: #2a3628; /* Variante plus sombre du vert principal pour les alertes */
  --revenue-bg-light: #f5f5f5; /* Background légèrement plus clair */
  --revenue-bg-card: #ffffff;
  --revenue-shadow: rgba(52, 69, 50, 0.08);
  --revenue-shadow-hover: rgba(52, 69, 50, 0.15);
  --revenue-border: #d4d4d4;
}



/* Section principale Revenue Leak */
.revenue-leak-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.revenue-leak-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(52, 69, 50, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(52, 69, 50, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.revenue-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.revenue-section-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-family: 'Inter Variable', sans-serif;
}

.revenue-section-subtitle {
  font-size: 1.2rem;
  color: var(--color-text);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 300;
}

/* Preview Calculator sur homepage */
.preview-calculator {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  align-items: center;
}

.calculator-preview {
  background: var(--revenue-bg-card);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--revenue-shadow);
  border: 2px solid var(--color-accent);
  position: relative;
  animation: fadeIn 0.8s cubic-bezier(0.4,0,0.2,1) both;
}

.calculator-preview::before {
  content: 'ANALYSE EN COURS...';
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--revenue-accent);
  color: var(--color-text-inverted);
  padding: 0.4rem 1rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

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

.preview-header h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.preview-header p {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 300;
}

/* Stats Preview Grid */
.preview-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--revenue-bg-light);
  border-radius: 8px;
  border-left: 3px solid var(--color-accent);
}

.stat-icon {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.stat-text strong {
  color: var(--revenue-accent);
  font-size: 1.1rem;
  font-weight: 600;
}

.stat-text small {
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 300;
}

/* Résultat preview */
.preview-result {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--revenue-bg-light) 0%, #f8f8f8 100%);
  border-radius: 12px;
  border: 2px dashed var(--color-accent);
}

.result-example {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-weight: 300;
}

.loss-daily {
  color: var(--revenue-accent);
  font-size: 1.4rem;
  font-weight: 700;
  display: block;
}

.loss-monthly {
  color: var(--color-accent);
  font-size: 1.1rem;
  font-weight: 500;
}

/* CTA Container */
.revenue-cta-container {
  text-align: center;
}

.calculator-cta {
  display: inline-block;
  padding: 1.5rem 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-inverted);
  background: var(--color-accent);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px var(--revenue-shadow);
  margin-bottom: 1rem;
  font-family: 'Inter Variable', sans-serif;
}

.calculator-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--revenue-shadow-hover);
  background: var(--revenue-accent);
}

.cta-note {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-top: 1rem;
}

/* Page dédiée - Calculateur principal */
.revenue-leak-page {
  min-height: 100vh;
}

/* Section Hero */
.revenue-hero-section {
  color: var(--color-text-inverted);
  padding: 4rem 0;
  text-align: center;
}

.revenue-hero-section h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: 'Inter Variable', sans-serif;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  line-height: 1.6;
}

/* Stats Grid Hero */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Formulaire Calculateur */
.calculator-container {
  max-width: 750px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--revenue-bg-card);
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--revenue-shadow);
  border: 2px solid var(--color-accent);
}

.calculator-header {
  text-align: center;
  margin-bottom: 3rem;
}

.calculator-header h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

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

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

.input-group label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.label-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.input-group input {
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid var(--revenue-border);
  border-radius: 8px;
  background: var(--revenue-bg-card);
  transition: all 0.3s ease;
  font-family: 'Inter Variable', sans-serif;
}

.input-group input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(52, 69, 50, 0.1);
}

.input-hint {
  font-size: 0.85rem;
  color: var(--color-text);
  font-style: italic;
  font-weight: 300;
}

.calculate-btn {
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-inverted);
  background: var(--color-accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter Variable', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.calculate-btn:hover {
  background: #2a3628;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--revenue-shadow);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* Résultats */
.results-container {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--revenue-bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 16px var(--revenue-shadow);
  border: 1px solid var(--revenue-border);
}

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

.results-header h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.results-subtitle {
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 300;
}

.results-steps {
  margin-bottom: 2rem;
}

.result-step {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--revenue-bg-light);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.result-step.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.step-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  color: var(--color-accent);
}

.step-content {
  flex: 1;
}

.step-loss {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.step-revenue {
  font-size: 0.95rem;
}

.loss-amount {
  color: var(--revenue-accent);
  font-weight: 600;
  font-size: 1.1rem;
}

.loss-monthly {
  color: var(--color-accent);
  font-weight: 500;
  margin-left: 0.5rem;
}

/* Résumé total */
.summary-total {
  padding: 2rem;
  background: linear-gradient(135deg, var(--revenue-bg-light) 0%, #f8f8f8 100%);
  border-radius: 12px;
  border: 2px solid var(--color-accent);
  text-align: center;
}

.total-loss {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.total-amount {
  color: var(--revenue-accent);
  font-size: 1.6rem;
  font-weight: 700;
}

.total-monthly {
  color: var(--color-accent);
  font-weight: 600;
}

.potential-gain {
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.solution {
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 400;
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin-top: 2rem;
}

.audit-cta-btn {
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-inverted);
  background: var(--color-accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter Variable', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.audit-cta-btn:hover {
  background: var(--revenue-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--revenue-shadow-hover);
}

/* Sections Bénéfices et Méthodologie */
.benefits-section,
.methodology-section {
  padding: 4rem 0;
}

.benefits-section {
  background: var(--revenue-bg-card);
}

.benefits-section h2,
.methodology-section h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 3rem;
  color: var(--color-accent);
}

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

.benefit-item-tool {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: var(--revenue-bg-light);
  transition: transform 0.3s ease;
  border: 1px solid var(--revenue-border);
}

.benefit-item:hover {
  transform: translateY(-4px);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin: 0 auto 1rem;
}

.benefit-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.benefit-item p {
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 300;
}

/* Méthodologie */
.methodology-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  line-height: 1.6;
}

.methodology-steps {
  max-width: 800px;
  margin: 0 auto;
}

.method-step {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  background: var(--revenue-bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--revenue-shadow);
  border: 1px solid var(--revenue-border);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--color-accent);
  color: var(--color-text-inverted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 600;
  min-width: 50px;
}

.step-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}

.step-content p {
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 300;
}

/* Disclaimer */
.disclaimer {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--revenue-bg-light);
  border: 1px solid var(--revenue-border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--color-text);
  max-width: 750px;
  align-self: center;
}

.disclaimer h4 {
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.disclaimer-icon {
  width: 20px;
  height: 20px;
}

.disclaimer p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-weight: 300;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .preview-calculator {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .revenue-leak-section {
    padding: 3rem 0;
  }

  .revenue-section-header h2 {
    font-size: 2.2rem;
  }

  .revenue-section-subtitle {
    font-size: 1.1rem;
  }

  .calculator-container {
    padding: 1.5rem;
  }

  .preview-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .calculator-cta {
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
  }

  .method-step {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .revenue-hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .stat-preview {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .result-step {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}
