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

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

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

/* Carte "Je retiens" */
.rpap-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);
}

.rpap-rule-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #0369a1;
  margin: 0 0 12px 0;
}

.rpap-banner-pill {
  background: #ffffff;
  border: 1.5px solid #fde047;
  color: #854d0e;
  font-weight: 700;
  font-size: 14.5px;
  padding: 6px 16px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 12px;
}

.rpap-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.rpap-box-pink {
  background: #ffffff;
  border: 1.5px solid #fbcfe8;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rpap-box-yellow {
  background: #ffffff;
  border: 1.5px solid #fef08a;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rpap-box-badge {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

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

.rpap-ops-pill {
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  border-radius: 12px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 14px;
}

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

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

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

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

.rpap-ex-item:last-child {
  margin-bottom: 0;
}

.rpap-ex-title {
  font-weight: 700;
  font-size: 16px;
  color: #c2410c;
  margin-bottom: 8px;
}

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

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

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

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