/* ==========================================================================
   Styles pour Résolution de problèmes (Multiplication et Division) - 1AC (p1_l3_t9)
   Écoles Pionnières - AlloNajah
   (Fonds 100% blancs purs selon consigne stricte de l'utilisateur)
   ========================================================================== */

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

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

/* Carte principale */
.rpmd-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-left: 5px solid #059669;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.rpmd-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #047857;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* "Je me prépare" card */
.rpmd-prep-card {
  background: #ffffff;
  border: 1.5px solid #38bdf8;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rpmd-prep-badge {
  background: #ffffff;
  border: 1.5px solid #0284c7;
  color: #0369a1;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}

.rpmd-prep-text {
  font-size: 14.5px;
  color: #1e293b;
  line-height: 1.6;
}

.rpmd-prep-solution {
  background: #ffffff;
  border: 1px dashed #0284c7;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #0369a1;
  font-weight: 600;
}

/* Section "J'étudie l'exemple" */
.rpmd-example-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-left: 5px solid #ea580c;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.rpmd-enonce-box {
  background: #ffffff;
  border: 1.5px solid #fdba74;
  border-radius: 12px;
  padding: 16px;
  font-size: 15px;
  color: #9a3412;
  font-weight: 600;
  line-height: 1.6;
}

.rpmd-step-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Étape 1 : Puces de compréhension */
.rpmd-pill-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rpmd-pill {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rpmd-pill.purple {
  border-color: #c084fc;
  color: #6b21a8;
}

.rpmd-pill.orange {
  border-color: #fdba74;
  color: #c2410c;
}

.rpmd-pill.blue {
  border-color: #7dd3fc;
  color: #0369a1;
}

.rpmd-pill.green {
  border-color: #86efac;
  color: #15803d;
}

/* Étape 2 : Modélisation en barres (Modèle en rectangles) */
.rpmd-model-wrap {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rpmd-model-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rpmd-model-label {
  min-width: 190px;
  font-weight: 600;
  font-size: 14px;
  color: #1e293b;
}

.rpmd-blocks-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rpmd-rect-green {
  background: #ffffff;
  border: 2px solid #16a34a;
  color: #16a34a;
  width: 58px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.rpmd-rect-blue {
  background: #ffffff;
  border: 2px solid #0284c7;
  color: #0284c7;
  width: 68px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13.5px;
}

.rpmd-total-brace {
  background: #ffffff;
  border: 1.5px solid #a855f7;
  color: #7e22ce;
  font-family: 'Segoe Print', 'Comic Sans MS', cursive, sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 10px;
  margin-left: auto;
}

/* Étape 3 : Calculs */
.rpmd-calc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: #1e293b;
}

.rpmd-calc-item {
  background: #ffffff;
  border-left: 3.5px solid #10b981;
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  border: 1px solid #f1f5f9;
  border-left-width: 3.5px;
}

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

/* Étape 4 : Tableau récapitulatif */
.rpmd-table-wrap {
  width: 100%;
  max-width: 440px;
  margin: 10px auto 0 auto;
  border: 1.5px solid #fdba74;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.rpmd-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 14.5px;
}

.rpmd-table td {
  padding: 9px 16px;
  border-bottom: 1px solid #fed7aa;
  background: #ffffff;
}

.rpmd-table tr:last-child td {
  border-bottom: none;
  font-weight: 700;
}

.rpmd-table td:last-child {
  text-align: right;
  font-family: 'Segoe Print', 'Comic Sans MS', cursive, sans-serif;
  font-weight: 700;
  color: #0284c7;
  font-size: 15.5px;
}
