/* === Marche Pas Quotidiens === */
.mp-intro {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Boutons raccourcis pas */
.mp-step-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.mp-step-btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  background: #e2e8f0;
  color: #334155;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.mp-step-btn:hover {
  background: #cbd5e1;
}

.mp-step-btn.mp-step-active {
  background: #dbeafe;
  color: #1e40af;
  font-weight: 700;
  border-color: #3b82f6;
}

/* Formulaire */
.mp-panel {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  margin-bottom: 2rem;
}

.mp-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mp-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  align-items: end;
}

.mp-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155;
}

.mp-form-grid input,
.mp-form-grid select {
  padding: 0.55rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  background: #f9fafb;
  transition: border-color 0.2s;
}

.mp-form-grid input:focus,
.mp-form-grid select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.mp-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mp-inline .unit {
  font-size: 0.9rem;
  color: #4b5563;
  font-weight: 400;
}

/* Résultats principaux */
.mp-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.mp-result-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mp-result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.mp-result-card.mp-highlight {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 2px solid #3b82f6;
}

.mp-result-card.mp-accent {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
}

.mp-result-value {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.1;
}

.mp-result-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.3rem;
}

.mp-result-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

/* Équivalences alimentaires */
.mp-food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.mp-food-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 0.65rem;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.mp-food-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mp-food-emoji {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.mp-food-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}

.mp-food-qty {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f59e0b;
  margin: 0.15rem 0;
}

.mp-food-kcal {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Tableau paliers */
.mp-tiers-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.mp-tiers-table thead {
  background: #1e293b;
  color: #fff;
}

.mp-tiers-table th {
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.mp-tiers-table th:first-child {
  border-radius: 8px 0 0 0;
}

.mp-tiers-table th:last-child {
  border-radius: 0 8px 0 0;
}

.mp-tiers-table td {
  padding: 0.65rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.mp-tiers-table tbody tr:hover {
  background: #f1f5f9;
}

.mp-tiers-table tbody tr.mp-tier-active {
  background: #dbeafe;
  font-weight: 700;
}

/* Bénéfices santé */
.mp-health-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1rem;
  position: relative;
  padding-left: 2rem;
}

.mp-health-timeline::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #22c55e, #3b82f6, #8b5cf6);
  border-radius: 3px;
}

.mp-health-item {
  position: relative;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}

.mp-health-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border: 3px solid #3b82f6;
  border-radius: 50%;
  z-index: 1;
}

.mp-health-item:nth-child(1)::before { border-color: #22c55e; }
.mp-health-item:nth-child(2)::before { border-color: #34d399; }
.mp-health-item:nth-child(3)::before { border-color: #3b82f6; }
.mp-health-item:nth-child(4)::before { border-color: #6366f1; }
.mp-health-item:nth-child(5)::before { border-color: #8b5cf6; }
.mp-health-item:nth-child(6)::before { border-color: #a855f7; }

.mp-health-item.mp-health-active {
  background: #dbeafe;
  border-left-color: #3b82f6;
}

.mp-health-steps {
  font-weight: 800;
  font-size: 1.1rem;
  color: #1e293b;
}

.mp-health-level {
  font-weight: 600;
  color: #3b82f6;
  font-size: 0.85rem;
}

.mp-health-desc {
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

/* Comparaison marche vs course */
.mp-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.mp-compare-card {
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
}

.mp-compare-walk {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border: 2px solid #10b981;
}

.mp-compare-run {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  border: 2px solid #ec4899;
}

.mp-compare-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.mp-compare-label {
  font-weight: 700;
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.mp-compare-value {
  font-size: 2rem;
  font-weight: 800;
}

.mp-compare-walk .mp-compare-value { color: #059669; }
.mp-compare-run .mp-compare-value { color: #db2777; }

.mp-compare-detail {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Section graphique */
.mp-chart-container {
  height: 350px;
  position: relative;
  margin-top: 1rem;
}

/* Formule */
.mp-formula {
  text-align: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f3f4f6;
  border-radius: 8px;
}

.mp-formula strong {
  font-size: 1.15em;
}

/* Section SEO */
.mp-section {
  margin-bottom: 2rem;
}

.mp-section h3 {
  color: #1e293b;
  margin-bottom: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
  .mp-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mp-food-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mp-comparison {
    grid-template-columns: 1fr;
  }

  .mp-tiers-table {
    font-size: 0.8rem;
  }

  .mp-tiers-table th,
  .mp-tiers-table td {
    padding: 0.5rem 0.3rem;
  }
}

@media (max-width: 480px) {
  .mp-results-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .mp-result-value {
    font-size: 1.5rem;
  }

  .mp-food-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mp-chart-container {
    height: 280px;
  }
}

/* Comparaison par allure */
.mp-pace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.mp-pace-card {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.mp-pace-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mp-pace-card.mp-pace-active {
  border-color: #10b981;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.mp-pace-icon {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.mp-pace-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 0.25rem;
}

.mp-pace-cal {
  font-size: 1.25rem;
  font-weight: 800;
  color: #10b981;
}

.mp-pace-active .mp-pace-cal {
  color: #059669;
}

.mp-pace-detail {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.2rem;
}

@media (max-width: 480px) {
  .mp-pace-grid {
    grid-template-columns: 1fr;
  }
}
