/* GoMathy V21 — exercices : lecture simple, linéaire et visuelle, inspirée d'une page d'exercices corrigés classique. */

/* Une vraie colonne de lecture : priorité à l'énoncé, pas au tableau de bord. */
.gm19-exercise-page{
  max-width:1040px!important;
  margin-inline:auto!important;
}

.gm19-exercise-head{
  align-items:center!important;
  margin:0 0 12px!important;
  padding:0 2px 10px!important;
  border-bottom:1px solid #e5e7eb!important;
}
.gm19-exercise-head__title{
  gap:11px!important;
}
.gm19-exercise-head__title>span{
  width:40px!important;
  height:40px!important;
  flex-basis:40px!important;
  border-radius:11px!important;
  box-shadow:none!important;
  font-size:1.25rem!important;
}
.gm19-exercise-head__title p{
  font-size:.65rem!important;
  letter-spacing:.09em!important;
}
.gm19-exercise-head__title h2{
  margin:.08rem 0 0!important;
  font-size:clamp(1.55rem,2.4vw,2.05rem)!important;
  line-height:1.12!important;
}
.gm19-exercise-head__title small,
.gm19-exercise-head__stats{
  display:none!important;
}

/* Le parcours reste pédagogiquement présent via les sections, sans doubler l'information en haut. */
.gm19-path{
  display:none!important;
}

/* Filtres disponibles, mais visuellement secondaires. */
.gm19-exercise-page .gm-ex76-filters{
  width:max-content!important;
  max-width:100%!important;
  margin:0 0 14px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.gm19-exercise-page .gm-ex76-filters>summary{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:34px!important;
  padding:6px 10px!important;
  border:1px solid #dbe2ea!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#475569!important;
  font-size:.72rem!important;
}
.gm19-exercise-page .gm-ex76-filters>summary small{
  display:none!important;
}
.gm19-exercise-page .gm-ex76-filters[open]{
  width:100%!important;
  padding:0!important;
}
.gm19-exercise-page .gm-ex76-filters[open]>summary{
  margin-bottom:8px!important;
}
.gm19-exercise-page .gm-ex76-filters__grid{
  padding:10px!important;
  border:1px solid #e2e8f0!important;
  border-radius:12px!important;
  background:#f8fafc!important;
}

/* Sections de niveau : un simple intertitre, à la manière d'une feuille d'exercices. */
.gm19-stage-list{
  display:block!important;
}
.gm19-stage{
  overflow:visible!important;
  margin:0 0 28px!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{
  min-height:auto!important;
  margin:0 0 10px!important;
  padding:0 2px 8px!important;
  border:0!important;
  border-bottom:2px solid #dbe4ee!important;
  background:transparent!important;
}
.gm19-stage__identity{
  gap:8px!important;
}
.gm19-stage__icon{
  width:30px!important;
  height:30px!important;
  flex-basis:30px!important;
  border:0!important;
  border-radius:8px!important;
  background:#f1f5f9!important;
  font-size:.95rem!important;
}
.gm19-stage__identity p,
.gm19-stage__identity div>div{
  display:none!important;
}
.gm19-stage__identity h3{
  font-family:Georgia,serif!important;
  font-size:1.08rem!important;
  line-height:1.25!important;
}
.gm19-stage__stats{
  min-width:auto!important;
  padding:0!important;
  border:0!important;
  text-align:right!important;
}
.gm19-stage__stats strong{
  display:inline!important;
  margin-right:4px!important;
  font-size:.78rem!important;
  color:#475569!important;
}
.gm19-stage__stats span{
  display:inline!important;
  font-size:.68rem!important;
  color:#64748b!important;
}
.gm19-stage__stats small{
  display:none!important;
}

/* Une question = un bloc. Plus de grille deux colonnes. */
.gm19-question-grid{
  display:block!important;
}
.gm19-question{
  position:relative!important;
  margin:0 0 12px!important;
  padding:16px 18px 15px!important;
  border:1px solid #dde4ec!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.gm19-question:nth-child(odd),
.gm19-question:nth-last-child(-n+2),
.gm19-stage--bilan .gm19-question{
  border:1px solid #dde4ec!important;
}
.gm19-question:last-child{
  margin-bottom:0!important;
}

/* En-tête compact : numéro + origine, sans pluie de badges. */
.gm19-question__top{
  align-items:center!important;
  margin-bottom:10px!important;
}
.gm19-question__number{
  width:28px!important;
  height:28px!important;
  flex-basis:28px!important;
  border-radius:8px!important;
  background:#eef2f7!important;
  color:#0f172a!important;
  font-size:.74rem!important;
}
.gm19-question__origin{
  gap:6px!important;
}
.gm19-question__origin>span{
  font-size:.72rem!important;
  color:#334155!important;
}
.gm19-question__origin>small{
  padding:2px 6px!important;
  border:1px solid #e2e8f0!important;
  background:#fff!important;
  color:#64748b!important;
  font-size:.61rem!important;
}

.gm19-question__statement{
  max-width:900px!important;
  color:#0f172a!important;
  font-family:Georgia,serif!important;
  font-size:1.03rem!important;
  font-weight:500!important;
  line-height:1.68!important;
}
.gm19-question__statement p,
.gm19-question__statement ul,
.gm19-question__statement ol{
  margin-top:.45rem!important;
  margin-bottom:.45rem!important;
}

/* Les métadonnées étaient utiles pour le moteur, mais alourdissaient énormément la lecture. */
.gm19-question>.gm-ex76-meta{
  display:none!important;
}

/* Aides optionnelles : deux boutons discrets sous l'énoncé. */
.gm19-question__tools{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  margin-top:12px!important;
}
.gm19-help{
  flex:0 1 auto!important;
  width:auto!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  overflow:visible!important;
}
.gm19-help summary{
  display:inline-flex!important;
  align-items:center!important;
  min-height:31px!important;
  padding:5px 9px!important;
  border:1px solid #dce3eb!important;
  border-radius:8px!important;
  background:#f8fafc!important;
  color:#475569!important;
  font-size:.67rem!important;
}
.gm19-help[open]{
  flex-basis:100%!important;
  width:100%!important;
  padding:0!important;
  border:1px solid #dce3eb!important;
  background:#fbfdff!important;
}
.gm19-help[open] summary{
  border:0!important;
  border-bottom:1px solid #e8edf3!important;
  border-radius:8px 8px 0 0!important;
  background:transparent!important;
}
.gm19-help>div{
  padding:9px 11px!important;
  border:0!important;
  color:#475569!important;
  font-size:.76rem!important;
  line-height:1.52!important;
}
.gm19-help small{
  padding:0 11px 9px!important;
}

/* Correction : le repère visuel principal, directement sous l'exercice. */
.gm19-correction{
  margin-top:11px!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  overflow:visible!important;
}
.gm19-correction>summary{
  display:inline-flex!important;
  justify-content:flex-start!important;
  min-height:34px!important;
  padding:6px 10px!important;
  border:1px solid #bbd9cc!important;
  border-radius:9px!important;
  background:#f7fcf9!important;
  color:#116149!important;
  font-size:.72rem!important;
}
.gm19-correction>summary small{
  display:none!important;
}
.gm19-correction[open]{
  border:1px solid #cfe2d8!important;
  background:#fbfefc!important;
}
.gm19-correction[open]>summary{
  width:100%!important;
  border:0!important;
  border-bottom:1px solid #dceae3!important;
  border-radius:9px 9px 0 0!important;
  background:#f3faf6!important;
}
.gm19-correction__body{
  padding:13px 14px!important;
  color:#27364a!important;
  font-size:.83rem!important;
  line-height:1.58!important;
}

/* Les sous-cartes de correction redeviennent une lecture verticale simple. */
.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-premium-correction>div{
  display:block!important;
  margin:0 0 7px!important;
  padding:8px 10px!important;
  border:0!important;
  border-left:3px solid #dce8e1!important;
  border-radius:0 7px 7px 0!important;
  background:#fff!important;
}
.gm19-correction__body .gm-v104-correction__row:last-child,
.gm19-premium-correction>div:last-child{
  margin-bottom:0!important;
}

/* Page de choix des chapitres : moins de micro-infos décoratives. */
.gm19-card-path{
  display:none!important;
}

@media(max-width:760px){
  .gm19-exercise-page{max-width:100%!important}
  .gm19-question{padding:14px 13px!important;border-radius:12px!important}
  .gm19-question__statement{font-size:.98rem!important;line-height:1.62!important}
  .gm19-stage{margin-bottom:22px!important}
  .gm19-stage__head{padding-bottom:7px!important}
  .gm19-stage__stats{display:none!important}
  .gm19-exercise-page .gm-ex76-filters__grid{grid-template-columns:1fr!important}
}

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