/* « Je veux savoir… Combien ? » — thème « espace », sans dépendance externe. */
:root {
  --fond: #0d1330;
  --fond2: #1a1f4d;
  --carte: #1c2457;
  --carte2: #252f6b;
  --bord: #36428a;
  --texte: #eef1ff;
  --doux: #a9b1dd;
  --or: #ffd166;
  --vert: #06d6a0;
  --rouge: #ef476f;
  --bleu: #4cc9f0;
  --violet: #9d4edd;
  --ombre: 0 10px 30px rgba(0, 0, 0, .35);
  --rayon: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--texte);
  background: radial-gradient(ellipse at 20% 0%, #2b2f7a 0%, transparent 55%),
              radial-gradient(ellipse at 90% 100%, #4a1d6e 0%, transparent 50%), var(--fond);
  background-attachment: fixed;
  font-size: 17px;
  line-height: 1.45;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--bleu); }

/* --- barre du haut --- */
.barre {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px;
  background: rgba(10, 14, 40, .6); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--bord); position: sticky; top: 0; z-index: 10;
}
.barre .logo { font-weight: 800; letter-spacing: .5px; cursor: pointer; white-space: nowrap; }
.barre .logo span { color: var(--or); }
.barre .espace { flex: 1; }
.barre .profil { cursor: pointer; padding: 6px 12px; border-radius: 99px; background: var(--carte); border: 1px solid var(--bord); white-space: nowrap; }
.barre .profil:hover { border-color: var(--or); }
.alerte { background: #6b1d33; color: #ffe1e8; padding: 8px 18px; text-align: center; font-size: 15px; }

main { max-width: 900px; margin: 0 auto; padding: 22px 16px 60px; }

/* --- éléments communs --- */
.carte { background: linear-gradient(160deg, var(--carte2), var(--carte)); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px; box-shadow: var(--ombre); margin-bottom: 18px; }
.carte h2 { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; }
.doux { color: var(--doux); }
.petit { font-size: 14px; }
.centre { text-align: center; }
.ligne { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ligne.droite { justify-content: flex-end; }
.grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .grille2 { grid-template-columns: 1fr; } }

.bouton {
  border: 0; cursor: pointer; border-radius: 12px; padding: 11px 20px; font-weight: 700;
  background: var(--bleu); color: #071330; transition: transform .1s, filter .15s; white-space: nowrap;
}
.bouton:hover { filter: brightness(1.12); }
.bouton:active { transform: scale(.97); }
.bouton:disabled { opacity: .45; cursor: default; filter: none; transform: none; }
.bouton.or { background: var(--or); }
.bouton.vert { background: var(--vert); }
.bouton.rouge { background: var(--rouge); color: #fff; }
.bouton.fantome { background: transparent; color: var(--texte); border: 1px solid var(--bord); }
.bouton.fantome:hover { border-color: var(--doux); }
.bouton.petit { padding: 6px 12px; font-size: 14px; border-radius: 9px; }

.champ { background: #0e1438; border: 2px solid var(--bord); border-radius: 12px; padding: 10px 14px; outline: none; }
.champ:focus { border-color: var(--bleu); }
select.champ { padding: 8px 10px; }
label.case { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--bord); border-radius: 99px; cursor: pointer; margin: 3px; user-select: none; }
label.case:has(input:checked) { background: var(--carte2); border-color: var(--or); }
.puce { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .08); border: 1px solid var(--bord); }
.puce.revision { border-color: var(--violet); color: #dcc1ff; }
.puce.nouvelle { border-color: var(--vert); color: #a7f5df; }

/* --- accueil --- */
.titre-jeu { text-align: center; margin: 30px 0 34px; }
.titre-jeu .je { font-size: 22px; letter-spacing: 6px; color: var(--doux); font-weight: 600; }
.titre-jeu .combien {
  font-size: clamp(46px, 9vw, 86px); font-weight: 900; margin: 4px 0;
  background: linear-gradient(90deg, var(--or), #ff9f1c, var(--rouge), var(--violet), var(--bleu));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: flotter 5s ease-in-out infinite;
}
@keyframes flotter { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.grands-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .grands-choix { grid-template-columns: 1fr; } }
.grand-choix {
  cursor: pointer; border: 2px solid var(--bord); border-radius: 24px; padding: 34px 24px; text-align: center;
  background: linear-gradient(160deg, var(--carte2), var(--carte)); box-shadow: var(--ombre); transition: transform .15s, border-color .15s;
}
.grand-choix:hover { transform: translateY(-4px); border-color: var(--or); }
.grand-choix .icone { font-size: 52px; }
.grand-choix .nom { font-size: 30px; font-weight: 900; letter-spacing: 2px; margin: 8px 0; }
.grand-choix.progresser .nom { color: var(--or); }
.grand-choix.entrainer .nom { color: var(--bleu); }
.liens-accueil { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* --- progresser --- */
.tableau-bord { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
@media (max-width: 640px) { .tableau-bord { grid-template-columns: 1fr; } }
.niveau-badge { text-align: center; min-width: 110px; }
.niveau-badge .n { font-size: 44px; font-weight: 900; color: var(--or); line-height: 1; }
.niveau-badge .sur { color: var(--doux); font-size: 14px; }
.pastilles { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.pastille { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; border: 2px solid var(--bord); color: var(--doux); }
.pastille.acquis { background: var(--or); color: #2a1b00; border-color: var(--or); cursor: pointer; }
.pastille.actuel { box-shadow: 0 0 0 3px rgba(255, 209, 102, .4); }
.pastille.joue { outline: 2px solid var(--bleu); outline-offset: 2px; }
.jauge { height: 14px; background: #0e1438; border-radius: 99px; overflow: hidden; border: 1px solid var(--bord); }
.jauge > div { height: 100%; background: linear-gradient(90deg, var(--vert), var(--or)); border-radius: 99px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.records { text-align: right; font-size: 14px; color: var(--doux); }
.records b { color: var(--texte); font-size: 18px; }
details.objectif { margin-top: 10px; }
details.objectif summary { cursor: pointer; color: var(--doux); font-size: 15px; }
.criteres { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 15px; }
@media (max-width: 640px) { .criteres { grid-template-columns: 1fr; } }
.criteres li::before { content: "○ "; color: var(--doux); }
.criteres li.ok::before { content: "✔ "; color: var(--vert); }

.question { font-size: clamp(21px, 3.4vw, 27px); font-weight: 700; margin: 14px 0 18px; }
.zone-reponse { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.zone-reponse .champ { font-size: 24px; flex: 1 1 260px; min-width: 0; }
.unite { font-size: 20px; color: var(--doux); }
.interpretation { min-height: 26px; margin-top: 8px; color: var(--bleu); font-size: 16px; }
.interpretation.erreur { color: #ff9db3; }
.chrono { height: 8px; background: #0e1438; border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.chrono > div { height: 100%; background: var(--bleu); transition: width .25s linear; }
.chrono.urgent > div { background: var(--rouge); }
.indice { margin-top: 12px; padding: 10px 14px; border-left: 4px solid var(--violet); background: rgba(157, 78, 221, .12); border-radius: 8px; }

/* --- retour pédagogique --- */
.retour { animation: apparaitre .35s ease-out; }
@keyframes apparaitre { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.verdict { font-size: 30px; font-weight: 900; display: inline-block; animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.verdict.parfait, .verdict.excellent { color: var(--or); }
.verdict.tresbien, .verdict.bien { color: var(--vert); }
.verdict.moyen { color: var(--bleu); }
.verdict.loin, .verdict.tresloin { color: var(--rouge); }
.comparaison { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 14px 0; font-size: 17px; }
.comparaison dt { color: var(--doux); }
.comparaison dd { margin: 0; font-weight: 600; }
.echelle-ecart { position: relative; height: 34px; margin: 18px 0 8px; border-radius: 8px; background: linear-gradient(90deg, rgba(239, 71, 111, .35), rgba(6, 214, 160, .35) 40%, rgba(6, 214, 160, .35) 60%, rgba(239, 71, 111, .35)); }
.echelle-ecart .ref { position: absolute; top: -4px; bottom: -4px; background: rgba(255, 209, 102, .5); border: 2px solid var(--or); border-radius: 6px; }
.echelle-ecart .moi { position: absolute; top: -10px; width: 4px; height: 54px; background: var(--bleu); border-radius: 2px; transform: translateX(-2px); }
.echelle-ecart .graduation { position: absolute; bottom: -20px; font-size: 12px; color: var(--doux); transform: translateX(-50%); }
.bloc { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.bloc h4 { margin: 0 0 4px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--doux); }
.bloc.repere { background: rgba(255, 209, 102, .1); border-left: 4px solid var(--or); }
.note-progression { font-size: 14px; color: var(--doux); margin-top: 10px; }

/* --- séries / classements --- */
table.classement { width: 100%; border-collapse: collapse; margin: 10px 0; }
table.classement th, table.classement td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--bord); }
table.classement th { color: var(--doux); font-weight: 600; font-size: 14px; }
table.classement tr.moi td { background: rgba(76, 201, 240, .1); }
table.classement td.nombre, table.classement th.nombre { text-align: right; }
.medaille { font-size: 22px; }
.participants-ia { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.joueur-ia { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--bord); font-size: 14px; color: var(--doux); }
.joueur-ia.fini { border-color: var(--vert); color: var(--vert); }
.passe-main { text-align: center; padding: 40px 20px; }
.passe-main .qui { font-size: 40px; font-weight: 900; color: var(--or); margin: 10px 0 20px; }

/* --- échelle des grands nombres --- */
table.echelle { width: 100%; border-collapse: collapse; }
table.echelle td { padding: 6px 8px; border-bottom: 1px solid rgba(255, 255, 255, .07); vertical-align: top; }
table.echelle td:first-child { white-space: nowrap; color: var(--or); font-weight: 700; }

/* --- fenêtre de niveau et confettis --- */
.voile { position: fixed; inset: 0; background: rgba(5, 8, 25, .75); display: grid; place-items: center; z-index: 50; animation: apparaitre .3s; padding: 16px; }
.fenetre { background: linear-gradient(160deg, #2d3a8c, #1c2457); border: 2px solid var(--or); border-radius: 24px; padding: 34px; max-width: 480px; text-align: center; box-shadow: 0 0 60px rgba(255, 209, 102, .35); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.fenetre .grand { font-size: 64px; font-weight: 900; color: var(--or); line-height: 1; }
.confetti { position: fixed; top: -12px; width: 10px; height: 14px; z-index: 60; pointer-events: none; animation: tomber linear forwards; }
@keyframes tomber { to { transform: translateY(105vh) rotate(720deg); opacity: .9; } }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--carte2); border: 1px solid var(--or); padding: 10px 18px; border-radius: 12px; z-index: 70; box-shadow: var(--ombre); animation: apparaitre .3s; max-width: calc(100% - 32px); }
.secoue { animation: secouer .4s; }
@keyframes secouer { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* --- planche : plusieurs questions à la fois --- */
.carte.compacte { padding: 12px 16px; margin-bottom: 12px; }
.bord { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 15px; }
.bord .niv { font-weight: 900; color: var(--or); font-size: 20px; white-space: nowrap; }
.bord .jauge { flex: 1 1 160px; min-width: 120px; }
.bord .pastilles { margin: 0; }
.bord .pastille { width: 24px; height: 24px; font-size: 12px; }
.bord .chiffres { color: var(--doux); font-size: 13px; width: 100%; }
.bord .chiffres b { color: var(--texte); }
.bord .chiffres .ok b { color: var(--vert); }
.planche-barre { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.planche-barre .chrono { flex: 1; margin: 0; }
.planche-barre .temps { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 70px; text-align: right; }
.planche-barre .temps.depasse { color: var(--rouge); }
.planche { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.cq { position: relative; background: linear-gradient(160deg, var(--carte2), var(--carte)); border: 2px solid var(--bord); border-radius: 14px; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, background .3s; }
.cq:focus-within { border-color: var(--bleu); }
.cq .enonce { font-weight: 600; font-size: 16px; line-height: 1.3; flex: 1; }
.cq .saisie { display: flex; gap: 6px; align-items: center; }
.cq .saisie .champ { flex: 1; min-width: 0; font-size: 18px; padding: 7px 10px; }
.cq .saisie .unite { font-size: 14px; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cq .interp { font-size: 12px; color: var(--bleu); min-height: 15px; margin-top: -4px; }
.cq .interp.erreur { color: #ff9db3; }
.cq .res { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cq.ok { border-color: var(--vert); background: linear-gradient(160deg, #1d4a55, #183a4f); animation: pop .3s; }
.cq.ok .res { color: #8ff0d2; }
.cq.ko { border-color: var(--rouge); background: linear-gradient(160deg, #4a2245, #351a40); }
.cq.ko .res { color: #ffb3c4; }
.cq.mi { border-color: var(--or); }
.cq .res .ref { color: var(--texte); font-weight: 600; }
.cq .haut { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--doux); }
.cq .haut .espace { flex: 1; }
.mini-bouton { border: 1px solid var(--bord); background: transparent; color: var(--doux); border-radius: 99px; width: 24px; height: 24px; padding: 0; cursor: pointer; font-size: 13px; line-height: 1; }
.mini-bouton:hover { color: var(--texte); border-color: var(--doux); }
.cq .indice-txt { font-size: 13px; color: #dcc1ff; }
.info { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; font-size: 13px; cursor: help; color: var(--doux); font-weight: 700; }
.info .bulle { display: none; position: absolute; z-index: 30; right: -8px; top: 28px; width: min(340px, 80vw); background: #10163f; border: 1px solid var(--or); border-radius: 12px; padding: 10px 12px; font-weight: 400; font-size: 13.5px; color: var(--texte); box-shadow: var(--ombre); text-align: left; cursor: default; }
.info:hover .bulle, .info.ouvert .bulle { display: block; }
.info .bulle p { margin: 0 0 6px; }
.info .bulle .doux { font-size: 12px; }
.fin-planche { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; margin: 14px 0; font-size: 18px; animation: apparaitre .3s; }
.fin-planche b { color: var(--or); }
.scores { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.scores span b { color: var(--texte); }
.scores .moi { color: var(--bleu); }

/* --- une question à la fois + historique de la série --- */
.serie-barre { display: flex; align-items: center; gap: 12px; margin: 8px 0 4px; color: var(--doux); font-variant-numeric: tabular-nums; }
.serie-barre .chrono { flex: 1; margin: 0; }
.serie-barre .temps { font-weight: 700; color: var(--texte); min-width: 70px; text-align: right; }
.serie-barre .temps.depasse { color: var(--rouge); }
.question-seule { text-align: center; padding: 34px 0 18px; }
.question-seule.finie { opacity: .35; }
.question-seule .etiquette { color: var(--doux); font-size: 15px; letter-spacing: .5px; }
.grande-question { font-size: clamp(26px, 4.4vw, 40px); font-weight: 600; margin: 10px 0 26px; line-height: 1.25; }
.grande-question b { color: var(--or); font-weight: 800; }
.question-seule .saisie { display: flex; justify-content: center; align-items: center; gap: 8px; }
.question-seule .champ { font-size: 28px; width: min(420px, 100%); text-align: center; }
.question-seule .interp { color: var(--bleu); min-height: 24px; margin-top: 8px; font-size: 16px; }
.question-seule .interp.erreur { color: #ff9db3; }
.question-seule .indice-txt { color: #dcc1ff; min-height: 20px; }
.historique { margin-top: 6px; border-top: 1px solid var(--bord); }
.ligne-h { display: grid; grid-template-columns: 1fr auto minmax(150px, auto) 26px; gap: 4px 14px; align-items: center; padding: 7px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 15px; }
.ligne-h:first-child { animation: apparaitre .25s; }
.ligne-h .h-q { color: var(--doux); }
.ligne-h .h-q b { color: var(--texte); font-weight: 600; }
.ligne-h .h-rep { font-variant-numeric: tabular-nums; text-align: right; }
.ligne-h .h-res { font-weight: 700; }
.ligne-h.ok .h-res { color: var(--vert); }
.ligne-h.mi .h-res { color: var(--or); }
.ligne-h.ko .h-res { color: #ff8fa8; }
.ligne-h .h-res .ref { color: var(--texte); }
@media (max-width: 640px) { .ligne-h { grid-template-columns: 1fr auto 26px; } .ligne-h .h-rep { display: none; } }


/* --- choix du mode de réponse et tranches de grandeur --- */
.choix-mode { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin: -14px 0 26px; }
.choix-mode .mode { display: flex; flex-direction: column; align-items: center; cursor: pointer; padding: 8px 18px; border-radius: 14px; border: 2px solid var(--bord); background: transparent; color: var(--texte); font-weight: 700; }
.choix-mode .mode small { font-weight: 400; color: var(--doux); font-size: 12px; }
.choix-mode .mode.actif { border-color: var(--or); background: rgba(255, 209, 102, .12); }
.bandes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 640px; margin: 0 auto; }
.bande { position: relative; padding: 12px 8px; border-radius: 12px; border: 2px solid var(--bord); background: #0e1438; color: var(--texte); font-size: 17px; font-weight: 600; cursor: pointer; }
.bande:hover:not(:disabled) { border-color: var(--bleu); }
.bande:disabled { opacity: .4; cursor: default; }
.bande.visee { border-color: var(--or); box-shadow: 0 0 0 2px var(--or) inset; }
/* Carte du module « Où ? » */
/* Carte à gauche, propositions et corrections à droite : pas besoin de faire défiler. */
.disposition-carte { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; align-items: start;
  width: min(1500px, 96vw); position: relative; left: 50%; transform: translateX(-50%); }
.cote-carte { max-height: calc(100vh - 230px); overflow-y: auto; }
.cote-carte .historique { margin-top: 10px; }
.cote-carte .ligne-h { font-size: 14px; grid-template-columns: auto 1fr 26px; gap: 2px 10px; }
.cote-carte .ligne-h .h-q { grid-column: 1 / -1; }
.cote-carte .ligne-h .h-rep { text-align: left; }
.question-seule.carte-q { margin-bottom: 6px; }
.question-seule.carte-q .grande-question { font-size: 26px; margin: 4px 0; }
@media (max-width: 900px) { .disposition-carte { grid-template-columns: 1fr; width: 100%; left: 0; transform: none; } .cote-carte { max-height: none; } }
.carte-ou { margin: 0; }
.carte-outils { display: flex; gap: 6px; align-items: center; justify-content: center; margin-bottom: 6px; }
.carte-svg { width: 100%; height: max(380px, calc(100vh - 270px)); background: #0a1030; border: 2px solid var(--bord); border-radius: 14px; touch-action: none; cursor: crosshair; display: block; }
.carte-svg .zone { fill: #22306e; stroke: #8f9ad6; stroke-width: calc(0.8px * var(--trait, 1)); vector-effect: non-scaling-stroke; }
.carte-svg.groupe .zone, .carte-svg.zone .zone { cursor: pointer; }
.carte-svg.groupe .zone:hover, .carte-svg.zone .zone:not(.hors):not(.inerte):hover { fill: #31458f; }
.carte-svg .zone.inerte { fill: #1a2350; }
.carte-svg .fond path { fill: #22306e; stroke: #8f9ad6; stroke-width: 0.8px; vector-effect: non-scaling-stroke; }
.carte-svg .fond path.hors { fill: #151c45; stroke: #3a4585; }
.carte-svg .lieu { fill: #dfe4ff; cursor: pointer; r: calc(4.5px * var(--trait, 1)); }
.carte-svg.point:not(.nommer) .lieu:hover { fill: var(--bleu); }
.carte-svg .lieu.montre { fill: var(--or); r: calc(8px * var(--trait, 1)); }
.carte-svg .lieu.cible, .carte-svg .lieu.cible:hover { fill: var(--vert) !important; r: calc(9px * var(--trait, 1)); stroke: #fff; }
.carte-svg .lieu.faux, .carte-svg .lieu.faux:hover { fill: var(--rouge) !important; r: calc(8px * var(--trait, 1)); stroke: #fff; }
.carte-svg.nommer .zone:hover { fill: #22306e; }
.carte-svg .zone.hors { fill: #151c45; stroke: #3a4585; }
/* Correction : la bonne réponse en vert, la mienne en rouge (plus fort que le survol). */
.carte-svg .zone.montre, .carte-svg .zone.montre:hover { fill: var(--or) !important; }
.carte-svg .zone.cible, .carte-svg .zone.cible:hover { fill: var(--vert) !important; stroke: #ffffff !important; stroke-width: 2.5px !important; }
.carte-svg .zone.faux, .carte-svg .zone.faux:hover { fill: var(--rouge) !important; stroke: #ffffff !important; stroke-width: 2px !important; }
.carte-svg .anneau { fill: none; stroke: var(--vert); stroke-width: 3px; vector-effect: non-scaling-stroke; r: calc(18px * var(--trait, 1)); animation: anneau 1.1s ease-in-out infinite; pointer-events: none; }
@keyframes anneau { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
/* « C'est quoi ? » : photo à reconnaître */
.cadre-photo { text-align: center; }
/* Grille des 25 photos : survol = agrandie, clic = choisie */
.grille-quoi { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: calc((max(380px, calc(100vh - 290px)) - 24px) / 5); gap: 6px; }
.grille-quoi .vignette { position: relative; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: #0a1030; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease; z-index: 1; }
.grille-quoi .vignette img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; } /* photo entière, jamais recadrée */
.grille-quoi:not(.corrigee) .vignette:hover { transform: scale(2.3); z-index: 10; border-color: var(--or); box-shadow: 0 10px 40px rgba(0, 0, 0, .7); }
.grille-quoi .vignette.bonne { border-color: var(--vert); border-width: 5px; z-index: 5; box-shadow: 0 0 0 4px var(--vert); }
.grille-quoi .vignette.mauvaise { border-color: var(--rouge); border-width: 5px; box-shadow: 0 0 0 4px var(--rouge); }
.grille-quoi.corrigee .vignette:not(.bonne):not(.mauvaise) { opacity: .35; }
.astuce { margin: 10px 0; padding: 10px 12px; border-left: 4px solid var(--or); background: rgba(255, 209, 102, .08); border-radius: 8px; font-size: 15px; }
.lecteur-chant { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.ecoute-grande { font-size: 120px; height: max(360px, calc(100vh - 290px)); display: flex; align-items: center; justify-content: center; background: #0a1030; border: 4px solid var(--bord); border-radius: 14px; cursor: pointer; }
.ecoute-grande[hidden], .photo-quoi[hidden] { display: none; }
.appris b { color: var(--or); }
.jauge-appris { flex-basis: 100%; margin-top: 4px; }
/* Frise (Quand ?) et échelle (Combien ?) de « J'apprends » */
.frise-bloc { margin: 8px 0 18px; }
.frise { position: relative; margin: 10px 4px 0; border-bottom: 2px solid var(--bord); }
.frise .point { position: absolute; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--bleu); border: 2px solid #0a1030; cursor: pointer; padding: 0; }
.frise .point:hover, .frise .point.actif { background: var(--or); transform: scale(1.5); z-index: 2; }
.frise-axe { position: relative; height: 34px; margin: 0 4px; }
.frise-axe span { position: absolute; top: 4px; font-size: 11px; color: var(--doux); white-space: nowrap; transform: translateX(-50%); }
.frise-axe span.bord { border-left: 1px solid var(--bord); height: 8px; top: -8px; transform: none; }
.japprends-pleine { width: min(1400px, 96vw); position: relative; left: 50%; transform: translateX(-50%); }
/* Je valide : choix du niveau */
.niveaux-valide { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.niveau-valide { display: flex; flex-direction: column; gap: 4px; align-items: center; width: 240px; padding: 16px; border-radius: 14px; border: 2px solid var(--bord); background: var(--carte); color: var(--texte); cursor: pointer; font-size: 15px; }
.niveau-valide:hover { border-color: var(--or); }
.niveau-valide b { font-size: 20px; }
.niveau-valide .pastille { font-size: 26px; }
.niveau-valide .valide-ok { color: var(--vert); font-size: 13px; }
.fiche-survol { padding: 14px; border: 2px solid var(--bord); border-radius: 14px; background: var(--carte); min-height: 120px; }
.fiche-survol .nom-survol { font-size: 28px; font-weight: 800; color: var(--or); }
.fiche-survol .vide { color: var(--doux); }
.japprends .vignette.survol { border-color: var(--or); }
.credit-grille { margin-top: 4px; font-size: 11px; text-align: center; }
.photo-quoi { width: 100%; height: max(360px, calc(100vh - 290px)); object-fit: contain; background: #0a1030; border: 4px solid var(--bord); border-radius: 14px; display: block; }
.photo-quoi.ok { border-color: var(--vert); }
.photo-quoi.ko { border-color: var(--rouge); }
.credit-photo { margin-top: 4px; font-size: 11px; }
.saisie-quoi { display: flex; gap: 8px; }
.saisie-quoi .champ { flex: 1; font-size: 20px; }
.saisie-quoi .champ.juste { border-color: var(--vert); }
.saisie-quoi .champ.faux { border-color: var(--rouge); }
#quoi-reponse { margin-top: 8px; font-size: 18px; }
.suite-carte { margin: 6px 0 10px; display: flex; gap: 10px; align-items: center; }
.choix-ou .bande.mauvaise { border-color: var(--rouge); background: #4a1426; }
.carte-svg .contours path { fill: none; stroke: #dfe4ff; stroke-width: 1.6px; vector-effect: non-scaling-stroke; pointer-events: none; }
.carte-svg circle { vector-effect: non-scaling-stroke; stroke: #0a1030; stroke-width: 2px; }
.carte-svg .trait-ecart { stroke: var(--rouge); stroke-width: 2px; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.carte-svg .etiquette-carte { fill: #fff; font-size: calc(20px * var(--trait, 1)); font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: #0a1030; stroke-width: calc(4px * var(--trait, 1)); pointer-events: none; }
.choix-ou { display: grid; grid-template-columns: 1fr; gap: 8px; }
.choix-ou .bande.bonne { border-color: var(--vert); background: #0d3b3a; }
.bande .touche { position: absolute; left: 8px; top: 6px; font-size: 11px; color: var(--doux); }
.bande .puiss { display: block; font-size: 12px; color: var(--doux); font-weight: 400; }
.ligne-indice { margin-top: 8px; }
input.cache { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
@media (max-width: 640px) { .bandes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* --- « ce qui est de l'ordre de » --- */
.grand-choix.ordre-choix { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px 24px; margin-top: 22px; text-align: left; }
.grand-choix.ordre-choix .icone { font-size: 40px; }
.grand-choix.ordre-choix .nom { display: block; font-size: 24px; color: var(--vert); margin: 0 0 2px; }
.ordre-de { max-width: 820px; margin: 0 auto; }
.titre-ordre { text-align: center; font-size: clamp(24px, 4vw, 34px); font-weight: 600; margin: 16px 0 12px; }
.titre-ordre b { color: var(--or); }
.cibles { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 8px; }
.cible { border: 1px solid var(--bord); background: transparent; color: var(--doux); border-radius: 99px; padding: 4px 12px; cursor: pointer; font-size: 14px; }
.cible:hover { color: var(--texte); border-color: var(--doux); }
.cible.actif { border-color: var(--or); color: var(--or); background: rgba(255, 209, 102, .1); font-weight: 700; }
.liste-ordre { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.item-ordre { display: grid; grid-template-columns: 18px 26px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 10px 14px; border: 2px solid var(--bord); border-radius: 12px; background: #0e1438; color: var(--texte); font-size: 17px; cursor: pointer; }
.item-ordre:hover:not(:disabled) { border-color: var(--doux); }
.item-ordre .touche { font-size: 11px; color: var(--doux); }
.item-ordre .case-ordre { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--doux); display: grid; place-items: center; }
.item-ordre.coche { border-color: var(--or); background: rgba(255, 209, 102, .1); }
.item-ordre.coche .case-ordre { background: var(--or); border-color: var(--or); }
.item-ordre.coche .case-ordre::after { content: "✓"; color: #2a1b00; font-weight: 900; font-size: 15px; }
.item-ordre:disabled { cursor: default; }
.item-ordre.juste { border-color: var(--vert); }
.item-ordre.faux { border-color: var(--rouge); }
.item-ordre .verdict-ordre { font-weight: 700; font-size: 15px; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.item-ordre.juste .verdict-ordre { color: var(--vert); }
.item-ordre.faux .verdict-ordre { color: #ff8fa8; }
.ordre-de .temps { font-weight: 700; min-width: 60px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .item-ordre { grid-template-columns: 26px 1fr; } .item-ordre .touche { display: none; } .item-ordre .verdict-ordre { grid-column: 2; } }

/* Accueil : trois actions discrètes (jouer, apprendre, jouer à plusieurs) */
.actions-jeu { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 22px 0 6px; }
.action { padding: 12px 22px; border-radius: 14px; border: 2px solid var(--bord); background: var(--carte); color: var(--texte); font-size: 17px; font-weight: 800; letter-spacing: .03em; cursor: pointer; }
.action:hover:not(:disabled) { border-color: var(--bleu); }
.action.principale { background: var(--or); color: #1a1f4d; border-color: var(--or); }
.action:disabled { opacity: .45; cursor: default; }
.action small { display: block; font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--doux); }

/* Bouton « ← Accueil » dans la barre du haut */
.retour-accueil { margin-right: 14px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--bord); background: var(--carte); color: var(--texte); font-weight: 700; cursor: pointer; }
.retour-accueil:hover { border-color: var(--or); }
.retour-accueil[hidden] { display: none; }

/* Exporter les réponses : tableau à l'écran, et version papier propre à l'impression. */
.export-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.export-barre h2 { margin: 0; font-size: 22px; }
.export-barre .espace { flex: 1; }
.tableau-export { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.tableau-export th, .tableau-export td { border: 1px solid var(--bord); padding: 4px 8px; text-align: left; vertical-align: top; }
.tableau-export th { background: var(--carte2); position: sticky; top: 0; }
.tableau-export td:first-child { color: var(--doux); text-align: right; }
@media print {
  body { background: #fff !important; color: #000 !important; }
  header.barre, #alerte, .export-barre button, .sans-impression { display: none !important; }
  .export-barre h2, .export p { color: #000 !important; }
  .tableau-export { font-size: 10pt; }
  .tableau-export th, .tableau-export td { border-color: #888; color: #000; }
  .tableau-export th { background: #eee; position: static; }
  .tableau-export tr { break-inside: avoid; }
}

/* Bonne réponse : grand emoji qui saute, gerbe d'étincelles, mot gentil (0,9 s, rien à cliquer). */
.fete { position: fixed; left: 50%; top: 42%; z-index: 80; pointer-events: none; width: 0; height: 0; }
.fete-emoji { position: absolute; left: 0; top: 0; font-size: 72px; line-height: 1; transform: translate(-50%, -50%);
  animation: fete-saut .9s cubic-bezier(.2, 1.4, .4, 1) forwards; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.fete-mot { position: absolute; left: 0; top: 46px; transform: translateX(-50%); white-space: nowrap; font-size: 26px; font-weight: 900;
  color: #fff; padding: 4px 16px; border-radius: 999px; background: var(--vert); box-shadow: var(--ombre); animation: fete-mot .9s ease-out forwards; }
.fete.serie .fete-emoji { font-size: 96px; }
.fete.serie .fete-mot { background: var(--or); color: #1a1f4d; font-size: 30px; }
.eclat { position: absolute; left: 0; top: 0; font-size: 26px; text-shadow: 0 0 8px currentColor; transform: translate(-50%, -50%); animation: fete-eclat .8s ease-out forwards; }
@keyframes fete-saut {
  0% { transform: translate(-50%, -50%) scale(.2) rotate(-25deg); opacity: 0; }
  25% { transform: translate(-50%, -50%) scale(1.35) rotate(10deg); opacity: 1; }
  45% { transform: translate(-50%, -50%) scale(1) rotate(0); }
  80% { opacity: 1; }
  100% { transform: translate(-50%, -80%) scale(.9); opacity: 0; }
}
@keyframes fete-mot {
  0%, 15% { transform: translateX(-50%) scale(.5); opacity: 0; }
  35% { transform: translateX(-50%) scale(1.08); opacity: 1; }
  50% { transform: translateX(-50%) scale(1); }
  80% { opacity: 1; }
  100% { transform: translateX(-50%) translateY(-10px); opacity: 0; }
}
@keyframes fete-eclat {
  0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; }
  65% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(90deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .fete-emoji, .fete-mot, .eclat { animation-duration: .01s; } }
@media print { .fete { display: none; } }

/* Choisir parmi 25 noms (Qui ?, C'est quoi ?) : une grille compacte, par ordre alphabétique. */
.noms25 { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; margin-top: 8px; }
.cote-carte .noms25 { grid-template-columns: repeat(2, 1fr); }
.nom25 { padding: 7px 8px; border-radius: 10px; border: 2px solid var(--bord); background: #0e1438; color: var(--texte); font-size: 14.5px; font-weight: 600; cursor: pointer; text-align: center; }
.nom25:hover:not(:disabled) { border-color: var(--bleu); }
.nom25:disabled { opacity: .5; cursor: default; }
.nom25.bonne { border-color: var(--vert); box-shadow: 0 0 0 2px var(--vert) inset; opacity: 1; }
.nom25.mauvaise { border-color: var(--rouge); box-shadow: 0 0 0 2px var(--rouge) inset; opacity: 1; }
.bandes.noms4 { grid-template-columns: repeat(2, 1fr); }

/* « Qui ? » : l'œuvre à reconnaître, au-dessus des noms. */
.oeuvre { margin: 0 auto 10px; text-align: center; }
.oeuvre img { max-width: 100%; max-height: 46vh; border-radius: 10px; border: 3px solid var(--bord); box-shadow: var(--ombre); }
.oeuvre figcaption { margin-top: 4px; }

/* « Quelle constellation ? » : la carte du ciel (fond étoilé, tracés, limites en pointillés). */
.carte-svg.ciel { background: #02040f; }
.carte-svg.ciel .decor { pointer-events: none; }
.carte-svg.ciel .ciel-disque { fill: #070d2b; stroke: #26306a; stroke-width: 1.5px; }
.carte-svg.ciel .ciel-traces { fill: none; stroke: #6f8fd8; stroke-opacity: .75; stroke-width: 1.3px; vector-effect: non-scaling-stroke; }
.carte-svg.ciel .ciel-etoiles circle { fill: #fffbe8; stroke: none; }
.carte-svg.ciel .zone, .carte-svg.ciel .fond path { fill: rgba(255, 255, 255, 0.001); stroke: #3c4a8c; stroke-dasharray: 3 3; stroke-width: 0.8px; }
.carte-svg.ciel .zone.inerte, .carte-svg.ciel .zone.hors, .carte-svg.ciel .fond path.hors { fill: rgba(0, 0, 0, .45); }
.carte-svg.ciel.zone .zone:not(.hors):not(.inerte):hover { fill: rgba(76, 201, 240, .18); }
.carte-svg.ciel.nommer .zone:hover { fill: rgba(255, 255, 255, 0.001); }
.carte-svg.ciel .zone.montre, .carte-svg.ciel .zone.montre:hover { fill: rgba(255, 209, 102, .35) !important; }
.carte-svg.ciel .zone.cible, .carte-svg.ciel .zone.cible:hover { fill: rgba(6, 214, 160, .35) !important; }
.carte-svg.ciel .zone.faux, .carte-svg.ciel .zone.faux:hover { fill: rgba(239, 71, 111, .35) !important; }
.carte-svg.ciel .lieu { fill: transparent; stroke: #ffd166; stroke-width: 1.5px; r: calc(7px * var(--trait, 1)); }
.carte-svg.ciel .lieu.montre { fill: rgba(255, 209, 102, .5); }

/* Éléments chimiques (C'est quoi ?) : le tableau de Mendeleïev, une couleur par famille. */
.fam-alcalin { --fam: #a93a5c; } .fam-alcalinoterreux { --fam: #b8662d; } .fam-transition { --fam: #3a5a9e; }
.fam-lanthanide { --fam: #2f7f86; } .fam-actinide { --fam: #2d7a55; } .fam-pauvre { --fam: #5d6b86; }
.fam-metalloide { --fam: #7a6a2c; } .fam-nonmetal { --fam: #4f8f3a; } .fam-halogene { --fam: #8a4fb0; } .fam-gaznoble { --fam: #7b3fa0; }
.grille-quoi.tableau-elements { grid-template-columns: repeat(18, minmax(0, 1fr)); grid-template-rows: repeat(7, minmax(0, 1fr)) 10px repeat(2, minmax(0, 1fr));
  grid-auto-rows: unset; height: max(380px, calc(100vh - 290px)); gap: 3px; }
.grille-quoi .vignette.tuile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; background: var(--fam, #22306e);
  border: 2px solid rgba(255, 255, 255, .14); border-radius: 6px; color: #fff; line-height: 1.05; }
.grille-quoi:not(.corrigee) .vignette.tuile:hover { transform: scale(1.35); }
.tuile .t-num { font-size: 10px; opacity: .8; }
.tuile .t-sym { font-size: clamp(12px, 1.5vw, 22px); font-weight: 800; }
.tuile-grande { height: max(360px, calc(100vh - 290px)); display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--fam, #1c2457); border: 4px solid var(--bord); border-radius: 14px; color: #fff; }
.tuile-grande[hidden] { display: none; }
.tuile-grande .t-num { font-size: 42px; opacity: .85; }
.tuile-grande .t-sym { font-size: 170px; font-weight: 900; line-height: 1; }
.tuile-grande.devinette { background: #1c2457; }
.tuile-grande.devinette p { font-size: 30px; line-height: 1.4; padding: 30px; text-align: center; margin: 0; }
.tuile-grande.ok { border-color: var(--vert); } .tuile-grande.ko { border-color: var(--rouge); }


/* ===================== Téléphone et écran tactile ===================== */
/* .tactile est posée sur <html> par app.js quand l'écran n'a pas de survol (doigt). */
.tactile .clavier, .tactile .touche { display: none; }
.tactile .mini-bouton { width: 40px; height: 40px; font-size: 18px; }
.retour-accueil, .barre .profil { white-space: nowrap; }

@media (max-width: 640px) {
  /* Barre du haut : tout tient sur une ligne. */
  .barre { gap: 8px; padding: 8px 10px; }
  .barre .logo { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
  .barre .logo-prefixe { display: none; }
  .barre .espace { display: none; }
  .barre .profil { padding: 5px 10px; font-size: 15px; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
  .barre .profil .detail { display: none; }
  .retour-accueil { margin-right: 0; padding: 5px 12px; font-size: 15px; }

  main { padding: 12px 10px 40px; }

  /* Accueil resserré. */
  .titre-jeu { margin: 6px 0 14px; }
  .titre-jeu .je { font-size: 13px; letter-spacing: 4px; }
  .titre-jeu .combien { font-size: 40px; margin: 0; }
  .titre-jeu .doux { font-size: 14px; }
  .choix-mode { margin: 0 0 12px; gap: 6px; }
  .choix-mode > .doux { flex-basis: 100%; text-align: center; font-size: 13px; margin-bottom: -2px; }
  .choix-mode .mode { padding: 6px 11px; font-size: 15px; }
  .choix-mode .mode small { font-size: 11px; }
  .choix-mode select.champ { font-size: 15px; }
  .actions-jeu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 6px; }
  .action { padding: 10px 8px; font-size: 14px; }
  .liens-accueil { gap: 6px; margin-top: 16px; }
  .liens-accueil .bouton { padding: 8px 12px; font-size: 14px; }

  /* Tableau de bord de la partie : replié sur une ligne, on le touche pour le déplier. */
  #tableau { padding: 10px 14px; margin-bottom: 10px; cursor: pointer; }
  #tableau .bord > span { font-size: 14px; }
  #tableau:not(.ouvert) .bord > span:not(.appris) { display: none; }
  #tableau:not(.ouvert) .jauge { margin-top: 6px; }
  #tableau:not(.ouvert) .bord::after { content: "▾ détails"; float: right; font-size: 12px; color: var(--doux); margin-top: -22px; }

  /* Grands tableaux (où j'en suis) : on les fait glisser de côté au lieu d'élargir la page. */
  table.classement { display: block; overflow-x: auto; }
}


/* ===================== Parmi 4 / parmi 25 ===================== */
.noms25.valeurs25 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-width: 820px; margin-left: auto; margin-right: auto; }
/* « Où ? » sur la carte parmi n : les lieux proposés ressortent, le reste est grisé et ne se clique pas. */
.carte-svg.parmi .zone:not(.propose) { fill: #151c45; stroke: #3a4585; pointer-events: none; }
.carte-svg.parmi .zone.propose { fill: #3c55b8; }
.carte-svg.parmi .zone.propose:hover { fill: var(--bleu); }
.carte-svg.parmi .lieu:not(.propose):not(.cible):not(.faux) { display: none; }
.carte-svg.parmi .lieu.propose { fill: var(--bleu); r: calc(14px * var(--trait, 1)); }
/* Au doigt, des points de ville plus gros (sinon 2 à 3 pixels sur un téléphone). */
.tactile .carte-svg .lieu:not(.cible):not(.faux):not(.montre):not(.propose) { r: calc(9px * var(--trait, 1)); }
.tactile .carte-svg.parmi .lieu.propose { r: calc(18px * var(--trait, 1)); }
.carte-svg.ciel.parmi .zone:not(.propose) { fill: rgba(0, 0, 0, .55); }
.carte-svg.ciel.parmi .zone.propose { fill: rgba(76, 201, 240, .22); }


/* ===================== Téléphone : écrans de jeu ===================== */
/* Apprendre : les points de la frise gardent leur taille, mais se touchent plus facilement. */
.tactile .frise .point::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.tactile .grille-quoi:not(.corrigee) .vignette.tuile:hover { transform: none; }

@media (max-width: 640px) {
  /* Moins de place perdue au-dessus de la question. */
  .serie-barre { margin: 2px 0; font-size: 14px; }
  .question-seule { padding: 8px 0 8px; }
  .question-seule .etiquette { font-size: 13px; }
  .grande-question { font-size: 23px; margin: 6px 0 14px; }
  .question-seule.carte-q .grande-question { font-size: 21px; }
  .question-seule .champ { font-size: 22px; }

  /* Historique : la question sur toute la largeur, le résultat dessous. */
  .ligne-h { grid-template-columns: 1fr 26px; font-size: 14px; }
  .ligne-h .h-q { grid-column: 1 / -1; }

  /* Cartes, photos, œuvres : assez grandes, mais les réponses restent visibles. */
  .carte-svg { height: 58vh; min-height: 300px; }
  .carte-svg.nommer { height: 44vh; }
  .photo-quoi, .tuile-grande { height: 40vh; min-height: 220px; }
  .tuile-grande .t-sym { font-size: 110px; }
  .tuile-grande.devinette p { font-size: 20px; padding: 16px; }
  .grille-quoi { grid-auto-rows: 70px; gap: 4px; }
  .oeuvre img { max-height: 34vh; }
  .noms25 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nom25 { padding: 6px; font-size: 14px; }

  /* Tableau des éléments : trop large pour l'écran, il glisse de côté (cases d'au moins 32 px). */
  #pl-carte:has(.tableau-elements) { overflow-x: auto; }
  .grille-quoi.tableau-elements { min-width: 640px; height: 420px; }
  .tuile .t-sym { font-size: 15px; }

  /* Frise d'Apprendre : graduations en biais pour qu'elles ne se chevauchent plus. */
  .frise-axe { height: 64px; }
  .frise-axe span:not(.bord) { font-size: 10px; transform: translateX(-100%) rotate(-40deg); transform-origin: right top; }
}
