/* 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.2);
  --revenue-shadow-hover: rgba(52, 69, 50, 0.15);
  --revenue-border: #d4d4d4;
}

/* Section principale Revenue Leak */
.revenue-leak-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-background); /* Solid background to cover sticky hero */
  border-radius: 32px 32px 0 0; /* The "Tab" effect */
  box-shadow: 0 -20px 50px rgba(0,0,0,0.15); /* Shadow to lift it above hero */
  z-index: 1; /* Ensure it sits on top of hero */
  margin-top: -20px; /* Slight overlap to ensure no gap */
}

.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;

  color: var(--color-accent);
  margin-bottom: 1rem;

}

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

}

/* 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;

  letter-spacing: 1px;
}

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

.preview-header h3 {
  font-size: 1.6rem;

  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

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

}

/* 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;

}

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

}

/* 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;

}

.loss-daily {
  color: var(--revenue-accent);
  font-size: 1.4rem;

  display: block;
}

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

}

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

.calculator-cta {
  display: inline-block;
  padding: 1.5rem 2rem;
  font-size: 1.2rem;

  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;

}

.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);

  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;

  margin-bottom: 1.5rem;

}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;

  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-family: 'ClashDisplay', sans-serif;
  margin-bottom: 0.5rem;
}

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

}

/* 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;

  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;

  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.label-icon {
  width: 30px;
  height: 30px;
  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;

}

.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;

}

.calculate-btn {
  padding: 1.2rem 2rem;
  font-size: 1.1rem;

  color: var(--color-text-inverted);
  background: var(--color-accent);
  border: none;
  border-radius: 8px;
   transition: all 0.3s ease;

  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;

  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

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

}

.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;

}

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

.loss-amount {
  color: var(--revenue-accent);

  font-size: 1.1rem;
}

.loss-monthly {
  color: var(--color-accent);

  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;

}

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

}

.total-monthly {
  color: var(--color-accent);

}

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

}

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

}

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

.audit-cta-btn {
  padding: 1.2rem 2rem;
  font-size: 1.1rem;

  color: var(--color-text-inverted);
  background: var(--color-accent);
  border: none;
  border-radius: 8px;
   transition: all 0.3s ease;

  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 h2,
.methodology-section h2 {
  text-align: center;
  font-size: 2.2rem;

  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;

  margin-bottom: 1rem;
  color: var(--color-accent);
}

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

}

/* 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;

  line-height: 1.6;
}

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

.method-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2.5rem;
  background: var(--revenue-bg-card);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: var(--color-accent);
}

.step-number {
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 8rem;
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
  font-family: 'ClashDisplay', sans-serif;
}

.step-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.step-content h4 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
  font-family: 'ClashDisplay', sans-serif;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-content h4::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--color-accent);
}

.step-content p {
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1.05rem;
  max-width: 90%;
}

/* 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: anchor-center;

}

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

.disclaimer-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent-extra);
}

.disclaimer p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  align-self: anchor-center;
}

/* 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;
  }

  .disclaimer {
    padding: 1.5rem;
 }
}

@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;
  }
}
