/* GoMathy V55 — corrections plus aérées et hiérarchisées. */
.gm27-correction[open] {
  width: 100% !important;
}
.gm27-correction[open] > summary {
  margin-bottom: 14px !important;
}
.gm27-correction__body {
  padding: 20px 22px !important;
  background: #fbfefc !important;
  border-radius: 16px !important;
}
.gm27-correction__row {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  line-height: 1.75 !important;
}
.gm27-correction__row > div {
  min-width: 0;
  font-size: .98rem !important;
  color: #24352c !important;
}
.gm55-correction-structured {
  display: grid;
  gap: 14px;
}
.gm55-correction-step {
  border: 1px solid #d8e8de;
  border-radius: 15px;
  background: #fff;
  padding: 15px 17px 16px;
  box-shadow: 0 3px 10px rgba(31, 71, 50, .035);
}
.gm55-correction-step__label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 9px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .76rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: #245c43;
  background: #edf7f1;
}
.gm55-correction-step__content {
  font-size: 1rem;
  line-height: 1.78;
  color: #1f3329;
}
.gm55-correction-step__content p {
  margin: 0 0 9px !important;
}
.gm55-correction-step__content p:last-child {
  margin-bottom: 0 !important;
}
.gm55-correction-step--property {
  border-left: 5px solid #5b83aa;
  background: #f7fbff;
}
.gm55-correction-step--property .gm55-correction-step__label {
  color: #28547b;
  background: #eaf3fb;
}
.gm55-correction-step--init {
  border-left: 5px solid #6f9b79;
}
.gm55-correction-step--hered {
  border-left: 5px solid #c39a4c;
  background: #fffdf8;
}
.gm55-correction-step--hered .gm55-correction-step__label {
  color: #765a20;
  background: #fff4d9;
}
.gm55-correction-step--conclusion {
  border-left: 5px solid #287553;
  background: #f2faf5;
  border-color: #bcdcca;
}
.gm55-correction-step--conclusion .gm55-correction-step__label {
  color: #145a3b;
  background: #dff3e7;
}
.gm55-correction-step--conclusion .gm55-correction-step__content {
  font-weight: 700;
}
.gm55-correction-step .math-inline {
  line-height: inherit;
}
@media (max-width: 700px) {
  .gm27-correction__body { padding: 14px !important; }
  .gm55-correction-structured { gap: 11px; }
  .gm55-correction-step { padding: 13px 14px 14px; }
  .gm55-correction-step__content { font-size: .94rem; line-height: 1.68; }
}
@media print {
  .gm55-correction-step { break-inside: avoid; box-shadow: none; }
}

/* GoMathy V56 — correction multi-question homogène : une carte par réponse. */
.gm27-correction__body {
  display: grid;
  gap: 16px;
}
.gm56-correction-answer {
  display: block !important;
  padding: 0 !important;
  border: 1px solid #d9e7df !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(31, 71, 50, .045);
}
.gm56-correction-answer__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-bottom: 1px solid #e2ece6;
  background: #f4faf6;
  color: #1d5f42;
  font-size: .82rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.gm56-correction-answer__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border: 1px solid #b9dbc8;
  background: #fff;
  font-weight: 900;
  color: #16613f;
}
.gm56-correction-answer__content {
  padding: 15px 17px 17px;
  font-size: 1rem;
  line-height: 1.78;
  color: #20372b;
}
.gm56-correction-answer__content .gm55-correction-structured {
  gap: 12px;
}
.gm56-correction-answer__content .gm55-correction-step {
  box-shadow: none;
}
.gm56-correction-plain {
  display: grid;
  gap: 10px;
}
.gm56-correction-plain p {
  margin: 0 !important;
  line-height: 1.78;
}
.gm56-correction-plain p + p {
  padding-top: 8px;
  border-top: 1px dashed #e1ebe5;
}
.gm30-correction-part + .gm56-correction-answer {
  margin-top: 6px;
}
@media (max-width: 700px) {
  .gm27-correction__body { gap: 12px; }
  .gm56-correction-answer__head { padding: 9px 11px; }
  .gm56-correction-answer__content { padding: 12px 13px 14px; font-size: .95rem; }
}
@media print {
  .gm56-correction-answer { break-inside: avoid; box-shadow: none; }
}
