/* Harfang — jeu Boussole (tranche « jeux/boussole ») : présentation et partie, par-dessus les styles communs
   (commun/styles/). Fiche JEUX, charte : docs/charte.md. */

/* ---------- présentation ---------- */
.nords-intro { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
@media (max-width: 640px) { .nords-intro { grid-template-columns: 1fr; } .nords-schema { max-width: 200px; } }
.nords-schema { width: 100%; height: auto; }
.schema__nq { stroke: var(--encre); stroke-width: 2.5; }
.schema__ng { stroke: var(--bleu); stroke-width: 2.5; }
.schema__nm, .schema__nm-pointe { stroke: var(--rouge); stroke-width: 2.5; fill: var(--rouge); }
.schema__texte { font: 700 15px var(--texte); fill: var(--encre); text-anchor: middle; }
.schema__note { font: italic 12px var(--texte); fill: var(--encre-douce); text-anchor: middle; }
@media (prefers-color-scheme: dark) { .schema__ng { stroke: var(--or-clair); } }
.vocabulaire { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
.vocabulaire dt { font-family: var(--titre); font-size: 1.35rem; font-weight: 700; }
.vocabulaire dd { margin: 0; color: var(--encre-douce); }
@media (max-width: 640px) { .vocabulaire { grid-template-columns: 1fr; } .vocabulaire dd { margin-bottom: 8px; } }
.note-valeurs { margin: 24px 0 0; padding: 12px 16px; background: var(--fond-alt); border-left: 3px solid var(--or); color: var(--encre-douce); }

.a-venir { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.a-venir li { border-top: 3px solid var(--trait); padding-top: 12px; color: var(--encre-douce); }
.a-venir strong { display: block; font-family: var(--titre); font-size: 1.4rem; color: var(--encre); margin-bottom: 4px; }

/* ---------- partie ---------- */
.exercice { padding: 28px 0 56px; }
.exercice__corps { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr); gap: 28px; align-items: start; }
.exercice__corps--large { grid-template-columns: 1fr; }
@media (max-width: 860px) { .exercice__corps { grid-template-columns: 1fr; } }
.planche { position: relative; background: #fff; border: 1px solid var(--trait); touch-action: none; user-select: none; }
.planche img { width: 100%; height: auto; }
.planche svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.planche--vue { background: var(--noir); }

/* rapporteur */
.rapporteur__fond { fill: rgba(255, 255, 255, 0.5); stroke: var(--bleu-fonce); stroke-width: 2.5; }
.rapporteur--mobile .rapporteur__fond { cursor: move; }
.rapporteur__trait { stroke: var(--bleu-fonce); stroke-width: 1.4; }
.rapporteur__trait--moyen { stroke-width: 2.4; }
.rapporteur__trait--grand { stroke-width: 3.2; }
.rapporteur__chiffre { font: 600 19px var(--texte); fill: var(--bleu-fonce); text-anchor: middle; dominant-baseline: middle; }
.rapporteur__zero { stroke: var(--rouge); stroke-width: 3.5; }
.rapporteur__centre { fill: none; stroke: var(--bleu-fonce); stroke-width: 2; }
.rapporteur__poignee { fill: var(--or); stroke: var(--bleu-fonce); stroke-width: 2.5; cursor: grab; }
.rapporteur__poignee:active { cursor: grabbing; }
.point-carte { fill: var(--rouge); stroke: #fff; stroke-width: 3; }
.point-carte__nom { font: 700 34px var(--texte); fill: var(--rouge); paint-order: stroke; stroke: #fff; stroke-width: 7px; }
.trace-crayon { stroke: var(--rouge); stroke-width: 3; stroke-dasharray: 2 0; }
.trace-solution { stroke: var(--vert-solution); stroke-width: 4; stroke-dasharray: 16 10; }

/* boussole de visée sur la vue */
.couronne__fond { fill: rgba(14, 15, 18, 0.62); }
.couronne__trait { stroke: #fff; stroke-width: 2; }
.couronne__trait--grand { stroke-width: 3; }
.couronne__chiffre { font: 600 24px var(--texte); fill: #fff; text-anchor: middle; }
.repere-vise { fill: var(--or); stroke: #000; stroke-width: 2.5; }
.fil { stroke: var(--or-clair); stroke-width: 3; }
.fil__prise { fill: transparent; cursor: ew-resize; }
.fil__poignee { fill: var(--or); stroke: #000; stroke-width: 2; cursor: ew-resize; }
.vise-solution { stroke: var(--vert-vise); stroke-width: 3; stroke-dasharray: 10 8; }

/* schéma des trois nords (partie) */
.schema-partie { width: 100%; max-width: 380px; height: auto; background: #fff; border: 1px solid var(--trait); }
.schema-partie text { font: 600 17px var(--texte); }
.schema-partie .schema__valeur { font: 700 16px var(--texte); fill: var(--bleu-fonce); }

/* réponse chiffrée */
.reponse__chiffre { display: flex; align-items: center; gap: 10px; }
.champ-nombre { width: 9ch; }
.reponse__unite { font-weight: 600; color: var(--encre-douce); }
.enonce { font-size: 1.15rem; margin: 0; }
.enonce strong { font-family: var(--titre); font-size: 1.4rem; }
.planche--schema { max-width: 460px; }
.planche--schema img { display: none; }
.planche--schema svg { position: static; display: block; height: auto; }
