/* MaPrimaire - CP dictée : compléments légers compatibles avec le bandeau CP moderne */
.mp-dictee-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mp-dictee-row {
  display: grid;
  grid-template-columns: 44px minmax(180px, 1fr) minmax(160px, 220px);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
}

.mp-dictee-row audio {
  width: 100%;
  max-width: 280px;
}

.mp-answer-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #b9c9e8;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 18px;
  font-weight: 700;
}

.mp-dictee-instructions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

.mp-dictee-instructions img {
  width: 130px;
}

.mp-correction-table {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mp-correction-row {
  display: grid;
  grid-template-columns: 44px 1fr 1fr 90px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}

.mp-correction-row strong {
  color: #12315f;
}

.mp-status-ok {
  color: #15803d;
  font-weight: 800;
}

.mp-status-ko {
  color: #b91c1c;
  font-weight: 800;
}

.mp-score-card {
  text-align: center;
}

.mp-score-card .mp-score {
  font-size: 38px;
  font-weight: 800;
  color: #12315f;
  line-height: 1.1;
}

.mp-score-card img {
  max-width: 120px;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .mp-dictee-row {
    grid-template-columns: 38px 1fr;
  }

  .mp-dictee-row audio,
  .mp-dictee-row .mp-answer-input {
    grid-column: 2;
    max-width: 100%;
  }

  .mp-dictee-instructions {
    grid-template-columns: 1fr;
  }

  .mp-dictee-instructions img {
    width: 110px;
    justify-self: center;
  }

  .mp-correction-row {
    grid-template-columns: 36px 1fr;
  }

  .mp-correction-row > span,
  .mp-correction-row > strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}