/* ==========================================================================
   Styles pour Simplification d'écriture sans × et ÷ - 1AC (p2_l4_t2)
   Écoles Pionnières - AlloNajah
   (Fonds 100% blancs purs selon consigne stricte de l'utilisateur)
   ========================================================================== */

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

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

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

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

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

/* Grille 2 colonnes */
.res-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

.res-box-rule.sky {
  border-color: #38bdf8;
}

.res-box-rule.amber {
  border-color: #fcd34d;
}

.res-rule-head {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

/* Tableau des termes et coefficients */
.res-table-wrap {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  margin-top: 10px;
}

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

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

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

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

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

/* Badge d'avertissement */
.res-alert-box {
  background: #ffffff;
  border: 1.5px solid #fca5a5;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #991b1b;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
