/* Subjects (French, math, social studies): home, activity lists, exercise screen (boards: css/plateaux.css),
   parent report. Uses the variables of css/jeu.css. */

/* ---------- home of the subjects ---------- */
.cartes.matieres { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; margin-top: 18px; }
.carte-matiere { min-height: 210px; font-size: 1.5rem; color: #fff; }
.carte-matiere small { color: rgba(255,255,255,.9); font-size: .95rem; }
.carte-matiere .icone { font-size: 4rem; line-height: 1; }
.m-anglais { background: linear-gradient(160deg, #ff8fab, #ff6f91); box-shadow: 0 5px 0 #d94f73; }
.m-francais { background: linear-gradient(160deg, #7aa5f5, #5b8def); box-shadow: 0 5px 0 #3b6bcf; }
.m-maths { background: linear-gradient(160deg, #4fcf8a, #2fb36d); box-shadow: 0 5px 0 #1f8a52; }
.m-univers { background: linear-gradient(160deg, #f7b77f, #f4a261); box-shadow: 0 5px 0 #cf7f3e; }
.m-sciences { background: linear-gradient(160deg, #4fd0c9, #20b2aa); box-shadow: 0 5px 0 #168a84; }
.carte-matiere .etiquette { color: var(--texte); }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.puce { padding: 6px 14px; border-radius: 999px; font-size: .9rem; box-shadow: 0 2px 0 var(--bord); }
.puce.actif { background: var(--accent-2); color: #fff; box-shadow: 0 2px 0 #3b6bcf; }
.carte-activite { min-height: 130px; }
.carte-activite .mode { font-size: 1.6rem; }
.rangee.gauche { justify-content: flex-start; }
.aide { color: var(--doux); }
.dialogue-fond { position: fixed; inset: 0; background: rgba(30,25,50,.45); display: grid; place-items: center; z-index: 50; }
.dialogue { background: #fff; border-radius: var(--rayon); padding: 24px 28px; max-width: 560px; text-align: center; display: grid; gap: 14px; }
.dialogue h2 { margin: 0; }

/* ---------- exercise screen ---------- */
.exo { min-height: 100vh; background: var(--fond); display: flex; flex-direction: column; }
.exo-barre { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); flex-wrap: wrap; }
.exo-barre .rond { width: 46px; height: 46px; font-size: 1.3rem; }
.exo-titre { font-weight: 700; font-size: 1.2rem; }
.exo-joueurs { display: flex; gap: 10px; }
.exo-joueur { padding: 6px 14px; border-radius: 999px; border: 3px solid var(--c); font-weight: 600; opacity: .55; }
.exo-joueur.actif { opacity: 1; background: color-mix(in srgb, var(--c) 15%, white); }
.exo-joueur b { margin-left: 6px; color: var(--c); }
.exo-temps { flex: 1; min-width: 160px; height: 18px; background: #eee6da; border-radius: 999px; overflow: hidden; }
.exo-temps span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--mauvais), var(--jaune) 40%, var(--bon)); border-radius: 999px; }
.exo-corps { flex: 1; display: grid; grid-template-columns: minmax(280px, 42%) 1fr; gap: 20px; padding: 18px; align-items: start; }
.exo-corps.serie { grid-template-columns: 1fr; max-width: 1000px; margin: 0 auto; width: 100%; }
.exo-plateau { background: #fff; border-radius: var(--rayon); padding: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.exo-question { background: #fff; border-radius: var(--rayon); padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.05); min-height: 360px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.exo-consigne { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; color: var(--doux); align-self: stretch; }
.exo-ecouter { padding: 4px 10px; }
.exo-enonce { font-size: 2.4rem; font-weight: 700; text-align: center; line-height: 1.3; white-space: pre-wrap; }
.trou { display: inline-block; min-width: 1.6em; border-bottom: 4px solid var(--accent); color: var(--accent); text-align: center; }
.exo-image { display: flex; justify-content: center; max-width: 100%; }
.exo-image svg { max-width: 100%; height: auto; max-height: 300px; }
.exo-reponses { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; width: 100%; }
.exo-reponses.type-mots, .exo-reponses.type-relier { display: flex; flex-direction: column; align-items: center; }
.exo-reponses.type-carte, .exo-reponses.type-ligne { display: block; width: 100%; }
.exo-choix { font-size: 1.7rem; font-weight: 700; padding: 18px 10px; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.avec-images .exo-choix { font-size: 1.1rem; }
.exo-choix.long { font-size: 1.15rem; hyphens: auto; overflow-wrap: anywhere; }
.exo-image svg.exo-svg { height: 230px; width: auto; max-width: 100%; }
.exo-choix.bon, .exo-mot.bon, .exo-relier.bon { background: var(--bon); color: #fff; box-shadow: 0 4px 0 #1f8a52; }
.exo-choix.mauvais, .exo-mot.mauvais { background: var(--mauvais); color: #fff; box-shadow: 0 4px 0 #b13a33; }
.exo-choix.montre { animation: clignote .5s 2; }
.exo-choix:disabled { opacity: 1; }
@keyframes clignote { 50% { transform: scale(1.06); } }
.exo-phrase { font-size: 1.7rem; line-height: 2.4; text-align: center; }
.exo-mot { font-size: 1.5rem; padding: 6px 12px; margin: 3px 2px; }
.exo-mot.choisi { background: var(--jaune); box-shadow: 0 4px 0 #d4a73d; }
.exo-mot.manque { outline: 4px dashed var(--bon); }
.exo-ponct { font-size: 1.6rem; }
.exo-valider { font-size: 1.3rem; }
.exo-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; width: 100%; max-width: 640px; }
.exo-colonnes > div { display: flex; flex-direction: column; gap: 12px; }
.exo-relier { font-size: 1.4rem; font-weight: 600; border: 3px solid transparent; }
.exo-relier.pris { border-color: var(--accent-2); background: #eaf1fe; }
.exo-relier.relie { cursor: default; }
.exo-relier.mauvais { background: var(--mauvais); color: #fff; }
.secoue { animation: secoue .3s; }
@keyframes secoue { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.exo-explication { background: #fff4e5; border-left: 6px solid var(--jaune); border-radius: 12px; padding: 12px 16px; font-size: 1.15rem; align-self: stretch; }
.exo-explication.bon { background: #e9f8ef; border-color: var(--bon); }
.exo-annonce { display: grid; gap: 22px; justify-items: center; text-align: center; margin: auto; }
.exo-annonce p { font-size: 1.6rem; font-weight: 600; margin: 0; max-width: 560px; }
.exo-annonce[style] p { color: var(--c); }
.exo-annonce button, .exo-continuer { font-size: 1.4rem; padding: 14px 34px; }
.exo-bilan { font-size: 1.6rem; margin: auto; text-align: center; color: var(--doux); }
.exo-bilan.bon { color: var(--bon); font-weight: 700; }
.exo-bilan b { font-size: 3rem; display: block; }
.exo-fin { text-align: center; margin: auto; }
.exo-fin ul { list-style: none; padding: 0; font-size: 1.2rem; }
.exo-fin li { border-left: 6px solid var(--c); padding: 4px 10px; margin: 6px 0; text-align: left; }
.serie-points { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.serie-points span { width: 18px; height: 18px; border-radius: 50%; background: #eee6da; }
.serie-points span.bon { background: var(--bon); }
.serie-points span.mauvais { background: var(--mauvais); }
@media (max-width: 800px) { .exo-corps { grid-template-columns: 1fr; } .exo-enonce { font-size: 1.8rem; } }

/* ---------- parent report ---------- */
.rapport { max-width: 1050px; }
.rap-outils { margin: 12px 0; }
.rap-outils .espace { flex: 1; }
.rap-partage { background: #fff; border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; }
.rap-partage code { background: #f4efe6; padding: 6px 10px; border-radius: 8px; word-break: break-all; font-size: .85rem; }
.rap-entete h1 { margin-bottom: 4px; }
.rap-entete p { margin: 0 0 8px; color: var(--doux); }
.rap-table th { text-align: left; font-size: .85rem; color: var(--doux); padding: 6px 10px; font-weight: 600; }
.rap-barre { width: 30%; }
.rap-barre span { display: block; height: 12px; border-radius: 6px; }
.pastille { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.rap-graph { max-width: 100%; height: auto; background: #fff; border-radius: 12px; }
.legende { color: var(--doux); font-size: .85rem; display: flex; gap: 16px; flex-wrap: wrap; }
.monte { color: var(--bon); } .baisse { color: var(--mauvais); } .egal { color: var(--doux); }
.rap-detail td { font-size: .9rem; }
@media print {
  body { background: #fff; }
  .pas-imprime, .ecran[hidden] { display: none !important; }
  .rapport { max-width: none; padding: 0; }
  .suivi-resume > div, .suivi-table, .rap-graph { box-shadow: none; border: 1px solid #ddd; }
  h2 { break-after: avoid; }
  tr { break-inside: avoid; }
}
/* trous: complete the text */
.exo-reponses.type-trous { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.exo-texte-trous { font-size: 1.5rem; line-height: 2.3; text-align: left; max-width: 760px; }
.exo-trou { min-width: 4.5em; padding: 2px 10px; margin: 0 3px; font-size: 1.35rem; border-bottom: 4px solid var(--accent); border-radius: 8px; background: #fffaf0; box-shadow: none; }
.exo-trou.choisi { outline: 3px solid var(--accent-2); }
.exo-trou.plein { background: #fff3c4; }
.exo-trou.bon { background: var(--bon); color: #fff; }
.exo-trou.mauvais { background: var(--mauvais); color: #fff; }
.exo-banque { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.exo-banque-mot { font-size: 1.3rem; padding: 8px 16px; }
.exo-banque-mot:disabled { opacity: .3; }
.acc-defis { margin-top: 26px; justify-content: center; }
.mat-domaine .mat-lire { vertical-align: middle; margin-left: 10px; }
/* avatar choice (profile creation, settings) */
.choix-avatars { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-avatar { display: grid; place-items: center; padding: 6px 8px; border-radius: 14px; background: #fff; box-shadow: 0 2px 0 var(--bord); cursor: pointer; }
.choix-avatar input { position: absolute; opacity: 0; pointer-events: none; }
.choix-avatar:has(input:checked) { outline: 4px solid var(--accent-2); background: #eaf1fe; }
.carte-profil .avatar-svg { display: block; margin: 0 auto 4px; }
