/* ============================================
   VO2MAX ↔ VMA PAGE STYLES
   Conversion bidirectionnelle VO2max / VMA
   ============================================ */

/* Intro */
.vv-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 2rem;
}

/* Sections */
.vv-section {
  margin: 3rem 0;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vv-section h2 {
  color: #1e40af;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.vv-section h3 {
  color: #2563eb;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* Tabs navigation */
.vv-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #2563eb;
}

.vv-tab-btn {
  flex: 1;
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  background: white;
  color: #2563eb;
  text-align: center;
}

.vv-tab-btn:first-child {
  border-right: 2px solid #2563eb;
}

.vv-tab-btn.active {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
}

.vv-tab-btn:hover:not(.active) {
  background: #eff6ff;
}

/* Tab panels */
.vv-tab-panel {
  display: none;
}

.vv-tab-panel.active {
  display: block;
  animation: vvFadeIn 0.3s ease-out;
}

@keyframes vvFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Calculator Box */
.vv-calculator-box {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid #2563eb;
  width: 100%;
  box-sizing: border-box;
}

.vv-calculator-box label {
  display: block;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 0.5rem;
}

/* Input group */
.vv-input-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.vv-input-group input[type="number"] {
  width: 150px;
  padding: 0.75rem;
  font-size: 1.3rem;
  font-weight: 700;
  border: 2px solid #93c5fd;
  border-radius: 8px;
  text-align: center;
  color: #1e40af;
}

.vv-input-group input[type="number"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.vv-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: #64748b;
}

/* Form row */
.vv-form-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.vv-form-field {
  flex: 1;
  min-width: 140px;
}

.vv-form-field label {
  display: block;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.vv-form-field input,
.vv-form-field select {
  width: 100%;
  padding: 0.65rem;
  font-size: 1rem;
  border: 2px solid #93c5fd;
  border-radius: 8px;
  background: white;
  color: #1e40af;
  font-weight: 600;
}

.vv-form-field input:focus,
.vv-form-field select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.vv-form-hint {
  font-size: 0.85rem;
  color: #64748b;
  font-style: italic;
  margin-top: 0.25rem;
}

/* Coefficient slider */
.vv-slider-container {
  margin: 1.5rem 0;
}

.vv-slider-container label {
  font-weight: 600;
  color: #1e40af;
}

.vv-slider-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.vv-slider-row input[type="range"] {
  flex: 1;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, #10b981, #2563eb, #ef4444);
  border-radius: 4px;
  outline: none;
}

.vv-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 3px solid #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.vv-slider-row input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 3px solid #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.vv-coeff-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #2563eb;
  min-width: 40px;
  text-align: center;
}

.vv-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.3rem;
}

/* Button */
.vv-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 1rem;
  width: 100%;
}

.vv-submit-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.vv-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Result summary */
.vv-result-summary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  margin: 2rem 0;
  animation: vvSlideIn 0.4s ease-out;
}

@keyframes vvSlideIn {
  from { opacity: 0; transform: translateY(-15px); }
  to   { opacity: 1; transform: translateY(0); }
}

.vv-result-summary h3 {
  color: white;
  margin-top: 0;
  font-size: 1.3rem;
}

.vv-big-value {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0.5rem 0;
  line-height: 1.2;
}

.vv-fourchette {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 0.3rem;
}

.vv-level-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.8rem;
}

/* Chart containers */
.vv-chart-container {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.vv-chart-container h4 {
  color: #1e40af;
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.vv-chart-container canvas {
  max-height: 380px;
}

/* Barème table */
.vv-bareme-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vv-bareme-table th {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

.vv-bareme-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  font-size: 1rem;
}

.vv-bareme-table tbody tr:nth-child(odd) {
  background: #f8fafc;
}

.vv-bareme-table tbody tr:hover {
  background: #eff6ff;
}

.vv-bareme-table .vv-highlight {
  color: #2563eb;
  font-weight: 700;
}

/* Formula box */
.vv-formula-box {
  background: linear-gradient(135deg, #faf5ff, #ede9fe);
  border: 2px solid #8b5cf6;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  text-align: center;
}

.vv-formula-box code {
  font-size: 1.3rem;
  font-weight: 700;
  color: #7c3aed;
  display: block;
  margin: 0.75rem 0;
}

.vv-formula-box p {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0;
}

/* Info box */
.vv-info-box {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.vv-info-box p {
  margin: 0.4rem 0;
  color: #374151;
  line-height: 1.6;
}

/* Economy explanation cards */
.vv-economy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.vv-eco-card {
  padding: 1.25rem;
  border-radius: 10px;
  border: 2px solid;
  text-align: center;
}

.vv-eco-card.eco-good {
  background: #ecfdf5;
  border-color: #10b981;
}

.vv-eco-card.eco-avg {
  background: #eff6ff;
  border-color: #2563eb;
}

.vv-eco-card.eco-bad {
  background: #fef2f2;
  border-color: #ef4444;
}

.vv-eco-card .vv-eco-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.vv-eco-card h4 {
  margin: 0.3rem 0;
  font-size: 1.05rem;
}

.vv-eco-card .vv-eco-coeff {
  font-weight: 800;
  font-size: 1.3rem;
}

.vv-eco-card.eco-good .vv-eco-coeff { color: #059669; }
.vv-eco-card.eco-avg  .vv-eco-coeff { color: #2563eb; }
.vv-eco-card.eco-bad  .vv-eco-coeff { color: #dc2626; }

.vv-eco-card p {
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0.3rem 0 0;
}

/* Norms section */
.vv-norms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.vv-norms-grid .vv-chart-container {
  margin: 0;
}

/* FAQ */
.vv-faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 1.25rem 0;
}

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

.vv-faq-item h4 {
  color: #1e40af;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.vv-faq-item p {
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

/* Outils complémentaires */
.vv-outils-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.vv-outil-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.2s;
}

.vv-outil-card:hover {
  background: #eff6ff;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.vv-outil-card .vv-outil-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.vv-outil-card .vv-outil-text strong {
  display: block;
  color: #1e40af;
  font-size: 1rem;
}

.vv-outil-card .vv-outil-text span {
  font-size: 0.88rem;
  color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
  .vv-section {
    padding: 1.25rem;
    margin: 2rem 0;
  }

  .vv-section h2 {
    font-size: 1.4rem;
  }

  .vv-calculator-box {
    padding: 1.25rem;
  }

  .vv-input-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .vv-input-group input[type="number"] {
    width: 100%;
  }

  .vv-form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .vv-big-value {
    font-size: 2.2rem;
  }

  .vv-economy-cards {
    grid-template-columns: 1fr;
  }

  .vv-norms-grid {
    grid-template-columns: 1fr;
  }

  .vv-chart-container canvas {
    max-height: 280px;
  }

  .vv-outils-grid {
    grid-template-columns: 1fr;
  }

  .vv-tab-btn {
    font-size: 0.9rem;
    padding: 0.75rem 0.5rem;
  }
}
