
/* MaPrimaire - CM2 géographie : exercices à choix et corrections */
.mp-geo-eval-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
.mp-geo-eval-card,
.mp-geo-side-card,
.mp-geo-result-card {
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(30, 58, 138, .08);
}
.mp-geo-eval-card { padding: 18px; }
.mp-geo-side-card { padding: 14px; }
.mp-geo-side-card h2,
.mp-geo-result-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #13233f;
}
.mp-geo-side-card p {
  margin: 0;
  color: #475467;
  line-height: 1.55;
}
.mp-geo-side-card img {
  display: block;
  margin: 0 auto 12px;
  max-height: 330px;
  width: auto;
  object-fit: contain;
}
.mp-geo-questions {
  display: grid;
  gap: 12px;
}
.mp-geo-question {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 260px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5edff;
  border-radius: 16px;
  background: #f8fbff;
}
.mp-geo-qnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e0ecff;
  color: #1e3a8a;
  font-weight: 900;
}
.mp-geo-question label,
.mp-geo-question-text {
  margin: 0;
  color: #172033;
  font-size: 16px;
  line-height: 1.45;
}
.mp-geo-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #172033;
  font-size: 15px;
}
.mp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff !important;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}
.mp-btn-secondary { background: #64748b; }
.mp-btn-ghost {
  background: #eef5ff;
  color: #174ea6 !important;
  border: 1px solid #dbeafe;
}
.mp-geo-result-card {
  padding: 18px;
  text-align: center;
}
.mp-geo-score {
  display: block;
  margin: 6px 0 10px;
  color: #1e3a8a;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}
.mp-geo-result-card img {
  max-height: 80px;
  width: auto;
}
.mp-geo-correction-list {
  display: grid;
  gap: 12px;
}
.mp-geo-correction-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(150px, 220px) minmax(150px, 220px);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5edff;
  border-radius: 16px;
  background: #f8fbff;
}
.mp-geo-user-answer,
.mp-geo-good-answer {
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
}
.mp-geo-user-answer.is-ok { background: #dcfce7; color: #166534; }
.mp-geo-user-answer.is-wrong { background: #fee2e2; color: #991b1b; }
.mp-geo-good-answer { background: #eef5ff; color: #174ea6; }
.mp-geo-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 20px auto 28px;
  padding: 16px 18px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #ffffff;
  color: #64748b;
  font-size: 14px;
  box-shadow: 0 10px 26px rgba(30, 58, 138, .08);
}
.mp-geo-footer strong { color: #1e3a8a; }
.mp-geo-footer a { font-weight: 700; }
@media (max-width: 980px) {
  .mp-geo-eval-grid { grid-template-columns: 1fr; }
  .mp-geo-side-card { order: -1; }
  .mp-geo-side-card img { max-height: 260px; }
  .mp-geo-question { grid-template-columns: 44px minmax(0, 1fr); }
  .mp-geo-question .mp-geo-select { grid-column: 1 / -1; }
  .mp-geo-correction-row { grid-template-columns: 44px minmax(0, 1fr); }
  .mp-geo-user-answer, .mp-geo-good-answer { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 640px) {
  .mp-geo-eval-card, .mp-geo-side-card, .mp-geo-result-card { border-radius: 16px; }
  .mp-geo-eval-card { padding: 12px; }
  .mp-geo-question { padding: 10px; gap: 8px; }
  .mp-actions { flex-direction: column; }
  .mp-btn { width: 100%; }
  .mp-geo-footer { flex-direction: column; margin-bottom: 18px; border-radius: 16px; }
}
