/* ==========================================================================
   Styles pour Tracer ax + by = c à partir des intersections avec les axes (p2_l5_t3)
   Écoles Pionnières - 2AC Mathématiques
   ========================================================================== */

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

/* En-tête */
.rlei-header-card {
  background: linear-gradient(135deg, #fefce8 0%, #fffbeb 100%);
  border: 1.5px solid #fde047;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 24px;
}

.rlei-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ca8a04;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.rlei-intro-text {
  font-size: 15.5px;
  color: #1e293b;
  line-height: 1.5;
  margin: 0;
}

/* Conteneur des exemples */
.rlei-examples-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Carte d'un exemple */
.rlei-example-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.rlei-example-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 17.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 18px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.rlei-example-num {
  color: #ea580c;
  font-weight: 800;
  font-size: 18.5px;
}

.rlei-eq-pill {
  background: #f0fdf4;
  color: #16a34a;
  border: 1.5px solid #86efac;
  padding: 3px 14px;
  border-radius: 8px;
}

/* Puce circulaire d'étape */
.rlei-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #f97316;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
}

.rlei-step-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: #1e293b;
}

/* Ligne fléchée de capsules de calcul */
.rlei-capsule-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 10px 34px;
}

.rlei-capsule {
  background: #ffffff;
  border: 1.5px solid #38bdf8;
  color: #0284c7;
  font-size: 16px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.08);
  white-space: nowrap;
}

.rlei-flow-arrow {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
}

/* Résultat de l'intersection */
.rlei-res-text {
  font-size: 15px;
  color: #334155;
  margin: 0 0 16px 34px;
}

/* Conteneur de graphique centré (Exemple 1) */
.rlei-graph-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Grille 2 colonnes pour Exemple 2 */
.rlei-grid-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.rlei-col-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rlei-step-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rlei-graph-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rlei-svg {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Police manuscrite pour les variables et formules */
.font-hand {
  font-family: 'Segoe Print', 'Comic Sans MS', cursive, sans-serif;
}

/* Responsive */
@media (max-width: 820px) {
  .rlei-grid-layout {
    grid-template-columns: 1fr;
  }
  .rlei-graph-box {
    width: 100%;
  }
}
