/* ==========================================================================
   AlloNajah - Résolution de problèmes avec équations (Page 100 - 1AC)
   Strict Pure White Background (#ffffff) Policy
   Prefix: rpe-
   ========================================================================== */

.rpe-section {
  background: #ffffff !important;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.rpe-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #ffffff !important;
}

.rpe-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.rpe-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  background: #ffffff !important;
}

.rpe-title i {
  color: #0284c7;
}

.rpe-rule-banner {
  background: #ffffff !important;
  border: 2px solid #0284c7;
  border-radius: 0.65rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.rpe-rule-banner h3 {
  font-weight: 700;
  color: #0369a1;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.rpe-rule-banner p {
  color: #334155;
  font-size: 0.925rem;
  line-height: 1.5;
  margin: 0;
}

.rpe-grid-problem-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #ffffff !important;
}

.rpe-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #ffffff !important;
}

.rpe-step-pill {
  border: 1.5px solid #0284c7;
  color: #0284c7;
  font-weight: 700;
  font-size: 0.775rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.375rem;
  background: #ffffff !important;
  white-space: nowrap;
}

.rpe-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: #ffffff !important;
}

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

.rpe-box {
  background: #ffffff !important;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 3px solid #0284c7;
}

.rpe-calc-box {
  background: #ffffff !important;
  border: 1px dashed #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.7;
}

.rpe-bar-model-wrap {
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.rpe-ar-note {
  direction: rtl;
  text-align: right;
  font-size: 0.85rem;
  color: #475569;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  background: #ffffff !important;
}
