/* ==========================================================================
   Styles pour Vérifier si un nombre est solution d'une équation - 1AC (p2_l6_t1)
   Écoles Pionnières - AlloNajah
   (Fonds 100% blancs purs selon consigne stricte de l'utilisateur)
   ========================================================================== */

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

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

/* Carte principale */
.rse-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);
}

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

.rse-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

/* Tableau d'anatomie d'une équation */
.rse-table-wrap {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  margin-top: 10px;
}

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

.rse-table th {
  background: #ffffff;
  border-bottom: 2px solid #cbd5e1;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: #0f172a;
}

.rse-table td {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 14px;
  color: #334155;
}

.rse-table tr:last-child td {
  border-bottom: none;
}

.rse-table td.math {
  font-family: 'Segoe Print', 'Comic Sans MS', cursive, sans-serif;
  font-weight: 700;
  color: #0284c7;
}

/* Grille des démarches de vérification */
.rse-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

.rse-box-check.sol {
  border-color: #86efac;
}

.rse-box-check.nosol {
  border-color: #fca5a5;
}

.rse-check-badge {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

/* Modèle de balance */
.rse-balance-card {
  background: #ffffff;
  border: 1.5px dashed #f59e0b;
  border-radius: 12px;
  padding: 16px;
  margin-top: 10px;
}

.rse-balance-title {
  font-weight: 700;
  font-size: 14.5px;
  color: #b45309;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
