/* GoMathy V24 — Exercices : lecture "feuille d'exercices" aérée.
   But : un titre, un énoncé, éventuellement un indice, puis la correction.
   Aucun contenu pédagogique n'est supprimé : cette couche ne change que l'affichage. */

/* Colonne de lecture confortable, proche d'une feuille d'exercices imprimée. */
.gm19-exercise-page{
  max-width:920px!important;
  margin-inline:auto!important;
  padding-bottom:48px!important;
}
.gm19-exercise-page .gm-ex76-back{
  margin-bottom:16px!important;
  color:#64748b!important;
  font-size:.8rem!important;
  font-weight:700!important;
}
.gm19-exercise-page .gm-ex76-back:hover{color:#0f172a!important}

/* En-tête : on garde uniquement ce qui aide à se repérer. */
.gm19-exercise-head{
  margin:0 0 30px!important;
  padding:0 0 18px!important;
  border-bottom:1px solid #e2e8f0!important;
}
.gm19-exercise-head__title>span{display:none!important}
.gm19-exercise-head__title{display:block!important}
.gm19-exercise-head__title p{
  margin:0 0 5px!important;
  color:#64748b!important;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:.72rem!important;
  font-weight:800!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
.gm19-exercise-head__title h2{
  margin:0!important;
  color:#111827!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:clamp(1.7rem,3vw,2.25rem)!important;
  font-weight:800!important;
  line-height:1.18!important;
}
.gm19-exercise-head__title small,
.gm19-exercise-head__stats,
.gm19-path{display:none!important}

/* Annales2maths est très lisible notamment parce que la page n'affiche pas un tableau de bord avant les exercices. */
.gm19-exercise-page .gm-ex76-filters{display:none!important}

/* Une étape pédagogique devient un simple repère de section. */
.gm19-stage-list{display:block!important}
.gm19-stage,
.gm19-stage--bilan{
  margin:0 0 40px!important;
  padding:0!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.gm19-stage__head,
.gm19-stage--essentiel .gm19-stage__head,
.gm19-stage--application .gm19-stage__head,
.gm19-stage--raisonnement .gm19-stage__head,
.gm19-stage--defi .gm19-stage__head,
.gm19-stage--bilan .gm19-stage__head{
  display:block!important;
  margin:0 0 4px!important;
  padding:0 0 0 11px!important;
  border:0!important;
  border-left:4px solid #cbd5e1!important;
  background:transparent!important;
}
.gm19-stage--essentiel .gm19-stage__head{border-left-color:#86b995!important}
.gm19-stage--application .gm19-stage__head{border-left-color:#8eb7dd!important}
.gm19-stage--raisonnement .gm19-stage__head{border-left-color:#aaa0cf!important}
.gm19-stage--defi .gm19-stage__head{border-left-color:#d8ad73!important}
.gm19-stage--bilan .gm19-stage__head{border-left-color:#d3b75f!important}
.gm19-stage__identity{display:block!important}
.gm19-stage__icon,
.gm19-stage__identity p,
.gm19-stage__identity div>div,
.gm19-stage__stats{display:none!important}
.gm19-stage__identity h3{
  margin:0!important;
  color:#334155!important;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:.92rem!important;
  font-weight:800!important;
  line-height:1.35!important;
}

/* Plus de cartes imbriquées : les exercices se lisent comme sur une feuille. */
.gm19-question-grid{display:block!important}
.gm19-question,
.gm19-question:nth-child(odd),
.gm19-question:nth-last-child(-n+2),
.gm19-stage--bilan .gm19-question{
  margin:0!important;
  padding:25px 2px 28px!important;
  border:0!important;
  border-bottom:1px solid #e5e7eb!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.gm19-question:last-child{border-bottom:0!important}

/* "Exercice 1" lisible immédiatement ; les badges de série/compétence disparaissent de la lecture. */
.gm19-question__top{
  display:block!important;
  margin:0 0 12px!important;
}
.gm19-question__number{
  display:inline!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#1e3a5f!important;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:1.02rem!important;
  font-weight:850!important;
  line-height:1.3!important;
}
.gm19-question__number::before{content:"Exercice "}
.gm19-question__origin,
.gm19-question>.gm-ex76-meta{display:none!important}

/* Énoncé : grande largeur utile, rythme vertical et maths respirantes. */
.gm19-question__statement{
  max-width:none!important;
  color:#172033!important;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:1.01rem!important;
  font-weight:430!important;
  line-height:1.78!important;
  letter-spacing:.002em!important;
}
.gm19-question__statement> :first-child{margin-top:0!important}
.gm19-question__statement> :last-child{margin-bottom:0!important}
.gm19-question__statement p{margin:.58rem 0!important}
.gm19-question__statement ul,
.gm19-question__statement ol{
  margin:.7rem 0 .7rem 1.35rem!important;
  padding:0!important;
}
.gm19-question__statement li{margin:.34rem 0!important;padding-left:.15rem!important}
.gm19-question__statement .katex-display,
.gm19-question__statement .MathJax_Display,
.gm19-question__statement mjx-container[display="true"]{
  margin:1.05rem 0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:.15rem 0!important;
}
.gm19-question__statement table{
  width:auto!important;
  max-width:100%!important;
  margin:1rem 0!important;
  border-collapse:collapse!important;
}
.gm19-question__statement img,
.gm19-question__statement svg{max-width:100%!important;height:auto!important}

/* Une seule aide visible : l'indice. Le "piège" reste dans le DOM mais ne surcharge plus la feuille. */
.gm19-question__tools{
  display:block!important;
  margin:14px 0 0!important;
}
.gm19-help--mistake{display:none!important}
.gm19-help--hint{
  display:block!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
.gm19-help--hint summary{
  display:inline-flex!important;
  align-items:center!important;
  min-height:0!important;
  padding:3px 0!important;
  border:0!important;
  background:transparent!important;
  color:#5b6b7f!important;
  font-size:.78rem!important;
  font-weight:700!important;
  text-decoration:none!important;
}
.gm19-help--hint summary:hover{color:#1e3a5f!important;text-decoration:underline!important}
.gm19-help--hint[open]{
  width:100%!important;
  margin-top:5px!important;
  border:0!important;
  background:transparent!important;
}
.gm19-help--hint[open] summary{
  border:0!important;
  background:transparent!important;
}
.gm19-help--hint>div{
  margin:7px 0 0!important;
  padding:9px 12px!important;
  border:0!important;
  border-left:3px solid #c9d8e8!important;
  border-radius:0!important;
  background:#f8fafc!important;
  color:#475569!important;
  font-size:.84rem!important;
  line-height:1.58!important;
}
.gm19-help--hint small{display:none!important}

/* Correction : un seul bouton clair, puis une zone de correction simple. */
.gm19-correction{
  display:block!important;
  margin:13px 0 0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.gm19-correction>summary{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-height:0!important;
  padding:6px 10px!important;
  border:1px solid #b9d7c7!important;
  border-radius:7px!important;
  background:#f6fbf8!important;
  color:#176447!important;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:.8rem!important;
  font-weight:800!important;
  line-height:1.3!important;
}
.gm19-correction>summary span{font-size:0!important}
.gm19-correction>summary span::before{content:"Correction";font-size:.8rem!important}
.gm19-correction>summary small{display:none!important}
.gm19-correction[open]{
  margin-top:13px!important;
  border:0!important;
  background:transparent!important;
}
.gm19-correction[open]>summary{
  width:auto!important;
  border:1px solid #b9d7c7!important;
  border-radius:7px!important;
  background:#edf7f1!important;
}
.gm19-correction__body{
  margin:10px 0 0!important;
  padding:13px 15px!important;
  border:0!important;
  border-left:3px solid #9bc8ad!important;
  border-radius:0!important;
  background:#f8fcfa!important;
  color:#263548!important;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:.91rem!important;
  line-height:1.68!important;
}
.gm19-correction__body p{margin:.52rem 0!important}
.gm19-correction__body .katex-display,
.gm19-correction__body .MathJax_Display,
.gm19-correction__body mjx-container[display="true"]{
  margin:.9rem 0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}

/* Neutraliser les sous-cartes historiques dans les corrections. */
.gm19-correction__body .gm-v104-correction,
.gm19-correction__body .gm-v109-correction,
.gm19-correction__body .gm19-premium-correction{display:block!important}
.gm19-correction__body .gm-v104-correction__row,
.gm19-correction__body .gm-v109-correction>div,
.gm19-correction__body .gm19-premium-correction>div{
  display:block!important;
  margin:0 0 .55rem!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.gm19-correction__body .gm-v104-correction__row:last-child,
.gm19-correction__body .gm-v109-correction>div:last-child,
.gm19-correction__body .gm19-premium-correction>div:last-child{margin-bottom:0!important}
.gm19-correction__body .gm-v104-correction__solution,
.gm19-correction__body .gm-v109-correction__work,
.gm19-correction__body .gm19-premium-correction__work{
  margin-top:.65rem!important;
  padding-top:.65rem!important;
  border-top:1px solid #dce9e1!important;
}

/* Dans l'index des chapitres, enlever les micro-badges de parcours : titre + résumé + action suffisent. */
.gm19-card-path{display:none!important}

@media(max-width:760px){
  .gm19-exercise-page{max-width:100%!important}
  .gm19-exercise-head{margin-bottom:22px!important}
  .gm19-stage{margin-bottom:32px!important}
  .gm19-question{padding:21px 0 24px!important}
  .gm19-question__statement{font-size:.98rem!important;line-height:1.7!important}
  .gm19-correction__body{padding:11px 12px!important;font-size:.88rem!important}
}

@media(prefers-reduced-motion:reduce){
  .gm19-exercise-page *{scroll-behavior:auto!important}
}
