/* ============================================
   Vertical AI — Custom Styles
   Complément à Tailwind CSS
   ============================================ */

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1A1A2E;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Cards --- */
.card {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* --- Blockquote --- */
.blockquote-elegant {
  border-left: 3px solid #2E75B6;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: #F8F9FA;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #1A1A2E;
  font-size: 1.125rem;
  line-height: 1.75;
}

/* --- Timeline --- */
.timeline-step {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 2.5rem;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 2.5rem;
  bottom: 0;
  width: 2px;
  background: #E5E7EB;
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2E75B6;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

/* --- Case Study List --- */
.case-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #E5E7EB;
  gap: 1rem;
}

.case-item:last-child {
  border-bottom: none;
}

.case-amount {
  font-weight: 700;
  font-size: 1.25rem;
  color: #DC2626;
  white-space: nowrap;
}

.case-solution {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #EFF6FF;
  color: #2E75B6;
  white-space: nowrap;
}

/* --- Guarantee Cards --- */
.guarantee-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.guarantee-card .icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #F0FDF4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* --- CTA Section --- */
.cta-section {
  background: #F8F9FA;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: #2E75B6;
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
  font-size: 1rem;
}

.btn-primary:hover {
  background: #245d94;
}

.btn-outline {
  display: inline-block;
  border: 1px solid #2E75B6;
  color: #2E75B6;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-outline:hover {
  background: #2E75B6;
  color: #FFFFFF;
}

/* --- Navbar --- */
.navbar {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #E5E7EB;
}

/* --- Problem Cards Icon Wrapper --- */
.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FEF2F2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================
   Diagnostic Page Styles
   ============================================ */

/* --- Progress Bar --- */
.progress-bar-track {
  width: 100%;
  height: 6px;
  background: #E5E7EB;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #2E75B6;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* --- Question Transitions --- */
.question-container {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.question-container.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Answer Buttons --- */
.answer-btn {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.9375rem;
  color: #1A1A2E;
  line-height: 1.5;
}

.answer-btn:hover {
  border-color: #2E75B6;
  background: #F8FAFF;
}

.answer-btn.selected {
  border-color: #2E75B6;
  background: #EFF6FF;
  font-weight: 500;
}

/* --- Circular Gauge --- */
.gauge-circle {
  width: 180px;
  height: 180px;
  position: relative;
}

.gauge-circle svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.gauge-circle .gauge-bg {
  fill: none;
  stroke: #E5E7EB;
  stroke-width: 10;
}

.gauge-circle .gauge-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease, stroke 0.3s ease;
}

.gauge-score {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gauge-score .score-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.gauge-score .score-total {
  font-size: 0.875rem;
  color: #6B7280;
}

/* --- Category Bars --- */
.category-bar-track {
  height: 8px;
  background: #E5E7EB;
  border-radius: 999px;
  overflow: hidden;
}

.category-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s ease;
}

/* --- Form Styles --- */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: #1A1A2E;
  background: #FFFFFF;
  transition: border-color 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: #2E75B6;
  box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.1);
}

.form-input::placeholder {
  color: #9CA3AF;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1A1A2E;
  margin-bottom: 0.375rem;
}

/* --- Recommendation Cards --- */
.recommendation-card {
  border-left: 3px solid #D97706;
  background: #FFFBEB;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
}

/* --- Results Section --- */
.results-section {
  animation: fadeInUp 0.5s ease;
}

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

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* --- LEGO Visual --- */
.lego-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lego-step svg {
  display: block;
}

/* --- Mobile Adjustments --- */
@media (max-width: 640px) {
  .blockquote-elegant {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .case-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .case-amount {
    font-size: 1.125rem;
  }

  .gauge-circle {
    width: 150px;
    height: 150px;
  }

  .gauge-score .score-number {
    font-size: 2rem;
  }
}
