/* ==========================================================================
   Styles pour Résolution de Problèmes (1AC - p1_l2_t7)
   Méthodologie en 5 étapes : Comprendre, Modéliser, Calculer, Vérifier, Conclure
   Écoles Pionnières - AlloNajah
   (Fonds 100% blancs purs selon consigne de l'utilisateur)
   ========================================================================== */

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

.rpr-cards-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Grille des 5 étapes de la méthode du haut */
.rpr-method-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-left: 5px solid #0284c7;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.rpr-method-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rpr-step-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
}

.rpr-step-tag {
  background: #ffffff;
  border: 1.5px solid #0284c7;
  color: #0369a1;
  font-weight: 700;
  font-size: 13.5px;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.rpr-step-desc {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.5;
  margin: 0;
  align-self: center;
}

/* ========================================================
   Section "J'étudie l'exemple"
   ======================================================== */
.rpr-examples-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-left: 5px solid #f97316;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.rpr-examples-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.rpr-examples-pill {
  background: #ffffff;
  border: 1.5px solid #f97316;
  color: #ea580c;
  font-size: 16px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Énoncé du problème */
.rpr-problem-box {
  background: #ffffff;
  border: 1.5px solid #fdba74;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.rpr-problem-intro {
  font-weight: 700;
  font-size: 15.5px;
  color: #c2410c;
  margin-bottom: 8px;
}

.rpr-problem-text {
  font-size: 15px;
  color: #1e293b;
  line-height: 1.7;
}

.rpr-problem-question {
  font-weight: 700;
  color: #0f172a;
  margin-top: 8px;
}

/* Les 5 parties résolues */
.rpr-resolution-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rpr-reso-item {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.rpr-reso-title {
  font-weight: 700;
  font-size: 15.5px;
  color: #c2410c;
  margin-bottom: 10px;
}

/* Schéma visuel Gains / Pertes / Chronologie */
.rpr-schema-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
}

.rpr-schema-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rpr-badge-gain {
  background: #ffffff;
  border: 1.5px solid #86efac;
  color: #166534;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 14px;
  border-radius: 8px;
  min-width: 70px;
  text-align: center;
}

.rpr-badge-perte {
  background: #ffffff;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 14px;
  border-radius: 8px;
  min-width: 70px;
  text-align: center;
}

.rpr-badge-day {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  color: #ea580c;
  font-weight: 700;
  font-size: 14.5px;
  padding: 5px 16px;
  border-radius: 8px;
  min-width: 80px;
  text-align: center;
}

.rpr-badge-val {
  background: #ffffff;
  border: 1.5px solid #93c5fd;
  color: #0284c7;
  font-family: 'Segoe Print', cursive, sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 4px 12px;
  border-radius: 8px;
  text-align: center;
}

/* Lignes de calcul */
.rpr-calc-lines {
  font-family: 'Segoe Print', 'Comic Sans MS', cursive, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0284c7;
  line-height: 1.9;
}

/* Tableau de vérification (100% fond blanc) */
.rpr-table-wrapper {
  overflow-x: auto;
  margin-top: 8px;
}

.rpr-check-table {
  width: 100%;
  max-width: 480px;
  border-collapse: collapse;
  background: #ffffff;
  border: 1.5px solid #fdba74;
  border-radius: 10px;
  overflow: hidden;
}

.rpr-check-table th,
.rpr-check-table td {
  background: #ffffff;
  border: 1px solid #fdba74;
  padding: 8px 14px;
  text-align: center;
  font-size: 14.5px;
}

.rpr-check-table th {
  font-weight: 700;
  color: #c2410c;
}

.rpr-check-table td {
  font-family: 'Segoe Print', cursive, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0284c7;
}

/* Conclusion */
.rpr-conclusion-text {
  font-size: 16px;
  color: #0f172a;
  line-height: 1.6;
}

/* Accordéon Arabe */
.rpr-arabic-card {
  margin-top: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
}

.rpr-arabic-summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f766e;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rpr-arabic-content {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  line-height: 1.8;
  color: #334155;
  font-size: 14.5px;
  direction: rtl;
  text-align: right;
  background: #ffffff;
}
