/* ==========================================================================
   Styles pour Expression Numérique (1AC - p1_l2_t5)
   Simplifier et calculer des expressions numériques
   Écoles Pionnières - AlloNajah
   (Fonds 100% blancs purs selon consigne de l'utilisateur)
   ========================================================================== */

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

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

/* Carte définition "Je retiens" */
.ren-def-card {
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  border-left: 5px solid #0284c7;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.ren-def-title {
  font-size: 17px;
  font-weight: 700;
  color: #0369a1;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ren-def-text {
  font-size: 15px;
  color: #1e293b;
  line-height: 1.6;
  margin: 0 0 6px 0;
}

/* Expression numérique pilule avec flèche vers "Termes" */
.ren-expr-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
}

.ren-expr-box {
  background: #ffffff;
  border: 1.5px solid #7dd3fc;
  border-radius: 12px;
  padding: 10px 20px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ren-expr-label {
  color: #0369a1;
  font-weight: 700;
  font-size: 14px;
  margin-right: 8px;
}

.ren-arrow-down {
  display: flex;
  justify-content: center;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
}

.ren-terms-badge {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
}

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

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

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

/* Blocs d'exercices numérotés */
.ren-ex-block {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.ren-ex-block:last-child {
  margin-bottom: 0;
}

.ren-ex-title {
  font-weight: 700;
  font-size: 15.5px;
  color: #c2410c;
  margin-bottom: 14px;
}

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

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

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

.ren-step-body {
  flex: 1;
}

.ren-step-label {
  font-size: 14px;
  color: #475569;
  font-style: italic;
  margin-bottom: 5px;
  line-height: 1.4;
}

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

/* Coloration spéciale des termes */
.ren-pos { color: #16a34a; }
.ren-neg { color: #dc2626; }
.ren-struck { text-decoration: line-through; color: #94a3b8; }

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

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

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