/* ==========================================================================
   Styles pour déterminer y = ax + b à partir de deux points (p2_l4_t10)
   Écoles Pionnières - 2AC Mathématiques
   ========================================================================== */

.rdp-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
}

.rdp-header-card {
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
  border: 1.5px solid #99f6e4;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 24px;
}

.rdp-method-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0284c7;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.rdp-intro-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
}

.rdp-main-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Carte graphique */
.rdp-graph-wrapper {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rdp-svg-plot {
  max-width: 100%;
  height: auto;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

/* Carte des 5 étapes */
.rdp-steps-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rdp-step-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 15px;
  color: #1e293b;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.rdp-step-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rdp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f59e0b;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  flex-shrink: 0;
}

.rdp-step-desc {
  font-weight: 600;
  min-width: 260px;
}

.rdp-box-calc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 6px 18px;
  font-size: 17px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.rdp-step-final {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 12px;
  padding: 8px 24px;
  font-size: 20px;
  font-weight: 700;
  color: #15803d;
}

.rdp-c-red {
  color: #dc2626;
  font-weight: 700;
}

.rdp-c-blue {
  color: #1d4ed8;
  font-weight: 700;
}

.rdp-trans-arr {
  color: #64748b;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .rdp-section {
    padding: 16px;
  }
  .rdp-step-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .rdp-step-desc {
    min-width: unset;
  }
}
