/* ==========================================================================
   Styles pour Priorités sans parenthèses (1AC - p1_l3_t6)
   Écoles Pionnières - AlloNajah
   (Fonds 100% blancs purs selon consigne de l'utilisateur)
   ========================================================================== */

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

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

/* Section "J'étudie l'exemple" */
.rpsp-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);
}

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

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

.rpsp-part-block {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.rpsp-part-block:last-child {
  margin-bottom: 0;
}

.rpsp-part-title {
  font-weight: 700;
  font-size: 16px;
  color: #c2410c;
  margin-bottom: 14px;
}

/* Grille des 2 techniques pour additions/soustractions */
.rpsp-tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.rpsp-tech-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rpsp-tech-name {
  font-weight: 700;
  color: #c2410c;
  font-size: 14.5px;
}

.rpsp-calc-flow {
  font-family: 'Segoe Print', 'Comic Sans MS', cursive, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #0284c7;
  line-height: 1.9;
}

/* Nuage bulle pour division en fraction */
.rpsp-cloud-box {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* Étapes numérotées */
.rpsp-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rpsp-step-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rpsp-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #f97316;
  color: #ea580c;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.rpsp-step-desc {
  font-size: 14.5px;
  color: #334155;
  font-style: italic;
  margin-bottom: 4px;
}

.rpsp-step-math {
  font-family: 'Segoe Print', 'Comic Sans MS', cursive, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0284c7;
  line-height: 1.8;
}

/* Fractions HTML */
.rpsp-f {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  text-align: center;
  padding: 0 2px;
  line-height: 1.1;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.rpsp-f-num {
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
}

.rpsp-f-den {
  padding-top: 1px;
}

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

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

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