/* ==========================================================================
   Styles pour le tracé à partir de la pente et ordonnée à l'origine (p2_l4_t6)
   Écoles Pionnières - 2AC Mathématiques
   ========================================================================== */

.rsp-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);
}

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

.rsp-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;
}

.rsp-method-desc {
  font-size: 15px;
  color: #334155;
  line-height: 1.6;
}

/* Section "J'étudie l'exemple" */
.rsp-example-wrapper {
  margin-bottom: 26px;
}

.rsp-example-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.rsp-example-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ea580c;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
}

.rsp-case-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 22px;
  transition: all 0.2s ease;
}

.rsp-case-box:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.rsp-case-box:last-child {
  margin-bottom: 0;
}

.rsp-case-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
}

.rsp-case-num {
  color: #ea580c;
  font-weight: 800;
  margin-right: 4px;
}

.rsp-case-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
}

/* Colonne textuelle explicative */
.rsp-info-col {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rsp-eq-pill {
  display: inline-block;
  background: #f0f9ff;
  border: 1.5px solid #7dd3fc;
  border-radius: 999px;
  padding: 6px 20px;
  font-size: 20px;
  font-weight: 700;
  color: #0369a1;
  width: fit-content;
}

.rsp-steps-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: #1e293b;
}

.rsp-steps-bullets li {
  position: relative;
  padding-left: 18px;
  line-height: 1.6;
}

.rsp-steps-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ea580c;
  font-size: 18px;
  line-height: 1;
  top: 1px;
}

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

.rsp-c-teal {
  color: #0d9488;
  font-weight: 700;
}

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

/* Colonne graphique SVG */
.rsp-graph-col {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.rsp-svg-plot {
  max-width: 100%;
  height: auto;
}

/* Section "Je complète et je représente" */
.rsp-practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 14px;
}

.rsp-practice-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rsp-practice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
}

.rsp-practice-badge {
  color: #0284c7;
  font-weight: 800;
}

.rsp-practice-prompt {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: #7c2d12;
  line-height: 1.6;
}

.rsp-input-slot {
  display: inline-block;
  background: #ffffff;
  border: 1.5px dashed #f97316;
  border-radius: 6px;
  padding: 1px 8px;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .rsp-section {
    padding: 16px;
  }
  .rsp-case-layout {
    flex-direction: column;
  }
  .rsp-info-col {
    width: 100%;
  }
  .rsp-practice-grid {
    grid-template-columns: 1fr;
  }
}
