/* Page Perte de Poids Running */

/* Layout */
.categories-main .container {
  margin: 0 0 2rem 0;
  max-width: 1200px;
}

/* Simulateur Panel */
.wl-simulator-panel {
  background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 5px solid #f59e0b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wl-simulator-panel h2 {
  margin: 0 0 1.5rem 0;
  color: #92400e;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wl-simulator-panel h2 .icon {
  width: 28px;
  height: 28px;
  color: #f59e0b;
}

/* Formulaire */
.wl-form {
  margin-bottom: 1.5rem;
}

.wl-inputs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.wl-input-group label {
  display: block;
  font-weight: 600;
  color: #78350f;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.wl-input-with-unit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wl-input-with-unit input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #fbbf24;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 150px;
}

.wl-input-with-unit input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.wl-input-with-unit .unit {
  font-weight: 600;
  color: #92400e;
  font-size: 1rem;
}

/* Slider de vitesse */
.speed-slider-section {
  background: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
}

.speed-slider-section > label {
  display: block;
  font-weight: 600;
  color: #78350f;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.speed-slider-section > label strong {
  font-size: 1.5rem;
  color: #d97706;
}

.speed-slider-section > label span {
  color: #92400e;
  font-weight: 400;
  font-size: 0.95rem;
}

.speed-slider {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, #fcd34d, #f59e0b, #d97706);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #d97706;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.speed-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.speed-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #d97706;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #92400e;
}

.slider-labels span {
  text-align: center;
}

.slider-labels small {
  display: block;
  color: #b45309;
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

/* Résultats */
.wl-result {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Stats Grid */
.wl-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wl-stat-card {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.2s;
}

.wl-stat-card:hover {
  transform: translateY(-2px);
}

.wl-stat-card.accent {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.wl-stat-card.highlight {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.wl-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.1;
}

.wl-stat-card.accent .wl-stat-value,
.wl-stat-card.highlight .wl-stat-value {
  color: white;
}

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

.wl-stat-card.accent .wl-stat-label,
.wl-stat-card.highlight .wl-stat-label {
  color: rgba(255, 255, 255, 0.9);
}

/* Chart */
.wl-chart-container {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

#weight-loss-chart {
  max-height: 320px;
}

/* Sessions Grid */
.wl-sessions-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.wl-session-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

.wl-session-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  border-color: #f59e0b;
}

.wl-session-duration {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.wl-session-count {
  font-size: 2.2rem;
  font-weight: 800;
  color: #d97706;
  line-height: 1;
}

.wl-session-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0.25rem 0 0.5rem;
}

.wl-session-info {
  font-size: 0.7rem;
  color: #64748b;
  background: rgba(255,255,255,0.9);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
}

.wl-speed-reminder {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: #64748b;
  font-style: italic;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

/* Info Panel */
.wl-info-panel {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid #ef4444;
}

.wl-info-panel h2 {
  margin: 0 0 1rem 0;
  color: #991b1b;
  font-size: 1.2rem;
}

.wl-info-content {
  color: #7f1d1d;
  font-size: 0.95rem;
}

.wl-info-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.wl-info-content li {
  margin-bottom: 0.5rem;
}

.wl-note {
  background: rgba(255, 255, 255, 0.6);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

/* Tips Panel */
.wl-tips-panel {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid #10b981;
}

.wl-tips-panel h2 {
  margin: 0 0 1.5rem 0;
  color: #065f46;
  font-size: 1.3rem;
}

.wl-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.wl-tip-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wl-tip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wl-tip-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #047857;
}

.wl-tip-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #065f46;
  line-height: 1.5;
}

/* Related Panel */
.wl-related-panel {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.wl-related-panel h2 {
  margin: 0 0 1rem 0;
  color: #334155;
  font-size: 1.2rem;
}

.wl-related-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wl-related-links li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.wl-related-links li:last-child {
  border-bottom: none;
}

.wl-related-links a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.wl-related-links a:hover {
  text-decoration: underline;
}

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

@media (max-width: 768px) {
  .wl-inputs-grid {
    grid-template-columns: 1fr;
  }

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

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

  .wl-tips-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .wl-simulator-panel {
    padding: 1.25rem;
  }

  .wl-input-with-unit input {
    max-width: 100%;
  }

  .wl-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .wl-stat-value {
    font-size: 1.4rem;
  }

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

  .wl-session-count {
    font-size: 1.8rem;
  }

  #weight-loss-chart {
    max-height: 250px;
  }

  .speed-slider-section > label strong {
    font-size: 1.3rem;
  }
}
