/* GoMathy V31 — fiches récap statiques + test imprimable au verso */
.gm98-premium-wrap[data-gm31-printable="1"]{--gm31-ink:#0f172a;--gm31-muted:#64748b;--gm31-line:#dbe4ee;--gm31-blue:#eff6ff;--gm31-green:#ecfdf5}
.gm98-premium-wrap[data-gm31-printable="1"] .gm98-top-actions{align-items:center}
.gm31-export-note{margin:.45rem 0 0;color:#64748b;font-size:.72rem;font-weight:700;text-align:center}

.gm31-reference{grid-column:1/-1;border:1px solid #dbe4ee;border-radius:16px;background:#fff;padding:12px 14px}
.gm31-reference-head{display:flex;gap:9px;align-items:center;margin-bottom:9px}.gm31-reference-head>span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#f1f5f9}.gm31-reference-head small{display:block;color:#64748b;font-size:.58rem;font-weight:900;letter-spacing:.08em}.gm31-reference-head h3{margin:1px 0 0;font-size:.88rem;color:#0f172a}
.gm31-reference-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:10px}.gm31-reference-grid>div{border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;padding:9px 10px;min-width:0}.gm31-reference-grid b{display:block;margin-bottom:4px;color:#334155;font-size:.68rem}.gm31-reference-example p{margin:0;color:#334155;font-size:.72rem;line-height:1.45}.gm31-reference-vocab>div{display:grid;gap:4px}.gm31-reference-vocab span{display:block;color:#475569;font-size:.66rem;line-height:1.35}.gm31-reference-vocab span strong{color:#0f172a}
.gm31-static-block{grid-column:1/-1;border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:10px}.gm31-static-block h4{margin:0 0 7px;font-size:.78rem;color:#0f172a}

.gm31-test-sheet{margin:18px auto 0;max-width:1080px;border:1px solid #d6e0ea;border-radius:24px;background:linear-gradient(180deg,#fbfdff,#f8fbff);box-shadow:0 18px 45px -34px rgba(15,23,42,.45);overflow:hidden;color:var(--gm31-ink,#0f172a)}
.gm31-test-head{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;padding:24px 27px 20px;border-bottom:1px solid #dbeafe;background:linear-gradient(135deg,#eff6ff,#ecfdf5 62%,#fff7ed)}.gm31-test-head p{margin:0;color:#2563eb;font-size:.67rem;font-weight:950;letter-spacing:.11em}.gm31-test-head h2{margin:4px 0 3px;font-size:1.7rem;line-height:1.12;color:#0f172a}.gm31-test-head span{color:#64748b;font-size:.78rem;font-weight:700}.gm31-score{display:grid;place-items:center;min-width:88px;padding:10px 14px;border:1px solid #bfdbfe;border-radius:16px;background:#fff}.gm31-score small{font-size:.6rem;font-weight:950;letter-spacing:.09em;color:#64748b}.gm31-score strong{margin-top:2px;font-size:1.2rem;color:#1d4ed8}
.gm31-test-rule{margin:14px 18px 7px;padding:10px 12px;border-left:4px solid #10b981;border-radius:10px;background:#ecfdf5;color:#315b4d;font-size:.76rem;line-height:1.45}.gm31-test-questions{display:grid;gap:0;padding:2px 18px 8px}.gm31-test-question{padding:12px 0;border-bottom:1px solid #e2e8f0}.gm31-test-question:last-child{border-bottom:0}.gm31-test-qhead{display:grid;grid-template-columns:28px 1fr auto;gap:9px;align-items:start}.gm31-test-qhead>span{display:grid;place-items:center;width:26px;height:26px;border-radius:9px;background:#dbeafe;color:#1d4ed8;font-size:.72rem;font-weight:950}.gm31-test-qhead small{display:block;margin-bottom:2px;color:#64748b;font-size:.57rem;font-weight:950;letter-spacing:.08em}.gm31-test-qhead p{margin:0;color:#172033;font-size:.79rem;line-height:1.45;font-weight:700}.gm31-test-qhead>b{white-space:nowrap;color:#64748b;font-size:.67rem}.gm31-write-lines{display:grid;gap:7px;margin:10px 0 0 37px}.gm31-write-lines i{display:block;height:1px;border-bottom:1px solid #cbd5e1}
.gm31-test-bottom{display:grid;grid-template-columns:auto auto auto 1fr;gap:9px;align-items:center;margin:6px 18px 16px;padding:10px 12px;border-radius:12px;background:#fff;border:1px solid #e2e8f0;color:#475569;font-size:.68rem}.gm31-test-bottom div{white-space:nowrap;font-weight:750}.gm31-test-bottom span{text-align:right}.gm31-test-sheet footer{display:flex;justify-content:space-between;gap:12px;padding:8px 18px;border-top:1px solid #e2e8f0;color:#94a3b8;font-size:.58rem;font-weight:850;background:#fff}

@media(max-width:760px){.gm31-reference-grid{grid-template-columns:1fr}.gm31-test-head{grid-template-columns:1fr}.gm31-score{justify-self:start}.gm31-test-bottom{grid-template-columns:1fr 1fr}.gm31-test-bottom span{grid-column:1/-1;text-align:left}}

@media print{
  @page{size:A4 portrait;margin:7mm}
  html.gm98-printing,html.gm98-printing body{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;background:#fff!important}
  html.gm98-printing .gm98-premium-wrap{position:static!important;width:100%!important;max-width:none!important}
  html.gm98-printing .gm98-premium-sheet{page-break-after:always!important;break-after:page!important;page-break-inside:avoid!important;break-inside:avoid-page!important}
  html.gm98-printing .gm31-test-sheet{display:block!important;margin:0!important;max-width:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;page-break-inside:avoid!important;break-inside:avoid-page!important;min-height:270mm!important;background:#fff!important}
  html.gm98-printing .gm31-reference{padding:6px 8px!important;border-radius:8px!important}.gm31-reference-head{margin-bottom:4px!important}.gm31-reference-head>span{width:22px!important;height:22px!important}.gm31-reference-head small{font-size:4.8pt!important}.gm31-reference-head h3{font-size:6.7pt!important}.gm31-reference-grid{gap:5px!important}.gm31-reference-grid>div{padding:5px 6px!important;border-radius:7px!important}.gm31-reference-grid b{font-size:5.5pt!important}.gm31-reference-example p,.gm31-reference-vocab span{font-size:5.3pt!important;line-height:1.22!important}
  html.gm98-printing .gm31-test-head{padding:10mm 8mm 6mm!important;border-bottom:1px solid #dbeafe!important}.gm31-test-head p{font-size:6pt!important}.gm31-test-head h2{font-size:17pt!important}.gm31-test-head span{font-size:7pt!important}.gm31-score{min-width:22mm!important;padding:3mm!important;border-radius:4mm!important}.gm31-score small{font-size:5pt!important}.gm31-score strong{font-size:12pt!important}
  html.gm98-printing .gm31-test-rule{margin:5mm 6mm 2mm!important;padding:2.5mm 3mm!important;font-size:7pt!important;line-height:1.3!important}.gm31-test-questions{padding:0 6mm 2mm!important}.gm31-test-question{padding:3.2mm 0!important}.gm31-test-qhead{grid-template-columns:7mm 1fr auto!important;gap:2.5mm!important}.gm31-test-qhead>span{width:6.5mm!important;height:6.5mm!important;border-radius:2mm!important;font-size:6pt!important}.gm31-test-qhead small{font-size:5pt!important}.gm31-test-qhead p{font-size:7.2pt!important;line-height:1.35!important}.gm31-test-qhead>b{font-size:5.8pt!important}.gm31-write-lines{gap:2.4mm!important;margin:2.4mm 0 0 9mm!important}.gm31-write-lines i{border-bottom:.25mm solid #cbd5e1!important}.gm31-test-bottom{margin:1mm 6mm 4mm!important;padding:2.2mm 3mm!important;font-size:5.8pt!important;border-radius:2.5mm!important}.gm31-test-sheet footer{padding:2mm 6mm!important;font-size:5pt!important}
}
