/* ============================================
   VMA PAGE STYLES
   ============================================ */

/* CTA Buttons */
.vma-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.vma-cta-buttons .rtc-primary-btn {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .vma-cta-buttons {
    flex-direction: column;
  }
  
  .vma-cta-buttons .rtc-primary-btn {
    width: 100%;
  }
}

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

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

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

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

.vma-select {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid #2563eb;
  border-radius: 8px;
  margin: 1rem 0;
  background: white;
  cursor: pointer;
}

.vma-test-form {
  margin: 1.5rem 0;
}

.vma-test-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e40af;
}

.vma-test-form input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid #93c5fd;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

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

.vma-test-form small {
  color: #64748b;
  font-size: 0.875rem;
}

/* Result Box */
.vma-result-box {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 2rem;
  animation: slideIn 0.5s ease-out;
}

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

.vma-result-box h3 {
  color: white;
  margin-top: 0;
}

.vma-result-big {
  font-size: 4rem;
  font-weight: 700;
  margin: 1rem 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.vma-result-level {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.vma-result-detail {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Definition Box */
.vma-definition-box {
  background: #f8fafc;
  padding: 1.5rem;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  margin: 1rem 0;
}

.vma-definition-box p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

/* Comparison Table */
.vma-comparison-table,
.vma-tests-table,
.vma-levels-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vma-comparison-table th,
.vma-tests-table th,
.vma-levels-table th {
  background: #2563eb;
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.vma-comparison-table td,
.vma-tests-table td,
.vma-levels-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.vma-comparison-table tbody tr:hover,
.vma-tests-table tbody tr:hover,
.vma-levels-table tbody tr:hover {
  background: #f8fafc;
}

.vma-tests-table a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.vma-tests-table a:hover {
  text-decoration: underline;
}

/* Benefits List */
.vma-benefits-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.vma-benefits-list li {
  padding: 0.75rem 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Schema Zones */
.vma-schema {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
}

.vma-schema h4 {
  text-align: center;
  color: #1e40af;
  margin-bottom: 1.5rem;
}

.vma-zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.vma-zone {
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s;
}

.vma-zone:hover {
  transform: translateY(-5px);
}

.vma-zone strong {
  font-size: 1.2rem;
  font-weight: 700;
}

.zone-1 {
  background: linear-gradient(135deg, #10b981, #059669);
}

.zone-2 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.zone-3 {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.zone-4 {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Note Box */
.vma-note {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-size: 1rem;
}

/* Progression Grid */
.vma-progression-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.vma-card {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.vma-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: #2563eb;
}

.vma-card h3 {
  color: #1e40af;
  margin-top: 0;
  font-size: 1.2rem;
}

.vma-card ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.vma-card li {
  padding: 0.5rem 0;
  line-height: 1.5;
}

/* Tip Box */
.vma-tip-box {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 2px solid #2563eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.vma-tip-box h4 {
  color: #1e40af;
  margin-top: 0;
  font-size: 1.3rem;
}

/* FAQ */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #2563eb;
}

.faq-item h3 {
  color: #1e40af;
  margin-top: 0;
  font-size: 1.2rem;
}

.faq-item p {
  margin: 0.5rem 0 0 0;
  line-height: 1.6;
}

/* Allures Table */
.vma-allures-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);
}

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

.vma-allures-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

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

.vma-allures-table tbody tr:hover {
  background: #eff6ff;
}

.vma-placeholder {
  text-align: center;
  padding: 2rem;
  color: #64748b;
  font-size: 1.1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 2px dashed #cbd5e1;
}

/* Responsive */
@media (max-width: 768px) {
  .vma-section {
    padding: 1.5rem;
  }

  .vma-calculator-box {
    padding: 1.5rem;
  }

  .vma-result-big {
    font-size: 3rem;
  }

  .vma-zones {
    grid-template-columns: 1fr;
  }

  .vma-progression-grid {
    grid-template-columns: 1fr;
  }

  .vma-comparison-table,
  .vma-tests-table,
  .vma-levels-table,
  .vma-allures-table {
    font-size: 0.85rem;
  }

  .vma-comparison-table th,
  .vma-tests-table th,
  .vma-levels-table th,
  .vma-allures-table th {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
  }

  .vma-comparison-table td,
  .vma-tests-table td,
  .vma-levels-table td,
  .vma-allures-table td {
    padding: 0.625rem 0.5rem;
  }

  /* Tableau des tests - format carte empilé sur mobile */
  .vma-tests-table {
    border: 0;
  }

  .vma-tests-table thead {
    display: none;
  }

  .vma-tests-table tbody {
    display: block;
  }

  .vma-tests-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
  }

  .vma-tests-table tbody tr td {
    display: block;
    width: 100% !important;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    padding: 0.75rem 1rem;
  }

  .vma-tests-table tbody tr td:last-child {
    border-bottom: none;
  }

  .vma-tests-table tbody tr td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #2563eb;
    display: block;
    margin-bottom: 0.25rem;
  }

  .vma-tests-table tbody tr td:nth-child(1)::before {
    content: "Test : ";
  }

  .vma-tests-table tbody tr td:nth-child(2)::before {
    content: "Avantages : ";
  }

  .vma-tests-table tbody tr td:nth-child(3)::before {
    content: "Limites : ";
  }

  .vma-tests-table tbody tr td:nth-child(4)::before {
    content: "Précision : ";
  }

  .vma-tests-table tbody tr td:nth-child(5)::before {
    content: "Lien : ";
  }

  /* Tableau des allures - ajustement pour mobile */
  .vma-allures-table thead {
    display: none;
  }

  .vma-allures-table tbody {
    display: block;
  }

  .vma-allures-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    padding: 0.75rem;
  }

  .vma-allures-table tbody tr td {
    border: none;
    padding: 0.25rem 0.5rem;
  }

  .vma-allures-table tbody tr td:nth-child(1) {
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    color: #2563eb;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
  }

  .vma-allures-table tbody tr td:nth-child(2),
  .vma-allures-table tbody tr td:nth-child(3),
  .vma-allures-table tbody tr td:nth-child(4) {
    width: 33.33%;
    text-align: center;
    font-size: 0.85rem;
  }

  .vma-allures-table tbody tr td:nth-child(2)::before {
    content: "% VMA: ";
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
  }

  .vma-allures-table tbody tr td:nth-child(3)::before {
    content: "km/h: ";
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
  }

  .vma-allures-table tbody tr td:nth-child(4)::before {
    content: "min/km: ";
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
  }

  .vma-allures-table tbody tr td:nth-child(5) {
    width: 100%;
    font-size: 0.75rem;
    color: #64748b;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.5rem;
  }

  /* Tableau des niveaux - format carte empilé sur mobile */
  .vma-levels-table {
    border: 0;
  }

  .vma-levels-table thead {
    display: none;
  }

  .vma-levels-table tbody {
    display: block;
  }

  .vma-levels-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
  }

  .vma-levels-table tbody tr td {
    display: block;
    width: 100% !important;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    padding: 0.75rem 1rem;
  }

  .vma-levels-table tbody tr td:last-child {
    border-bottom: none;
  }

  .vma-levels-table tbody tr td:nth-child(1) {
    font-weight: 700;
    font-size: 1rem;
    color: #2563eb;
    background: #eff6ff;
  }

  .vma-levels-table tbody tr td:nth-child(1)::before {
    content: "Niveau : ";
    font-weight: 600;
    color: #2563eb;
  }

  .vma-levels-table tbody tr td:nth-child(2)::before {
    content: "Homme : ";
    font-weight: 600;
    color: #2563eb;
    display: inline;
    margin-right: 0.5rem;
  }

  .vma-levels-table tbody tr td:nth-child(3)::before {
    content: "Femme : ";
    font-weight: 600;
    color: #2563eb;
    display: inline;
    margin-right: 0.5rem;
  }

  .vma-levels-table tbody tr td:nth-child(4)::before {
    content: "Profil : ";
    font-weight: 600;
    color: #2563eb;
    display: inline;
    margin-right: 0.5rem;
  }
}
