/* Carte du cours en réseau (public/app/graphe.js), pour le prof et les étudiant·es. Couleurs du thème clair ou sombre. */
.graphe { display: grid; gap: 10px; }
.graphe-barre { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.graphe-filtres { display: flex; flex-wrap: wrap; gap: 6px 14px; border: 0; margin: 0; padding: 0; }
.graphe-filtre { display: inline-flex; align-items: center; gap: 6px; flex-direction: row; font-weight: 400; min-height: var(--cible); }
.graphe-filtre input { width: 20px; height: 20px; min-height: 0; margin: 0; }
.graphe-zoom { display: flex; gap: 6px; }
.graphe-corps { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
@media (max-width: 860px) { .graphe-corps { grid-template-columns: 1fr; } }
.graphe-svg { width: 100%; height: auto; aspect-ratio: 10 / 7; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-carte);
  touch-action: none; cursor: grab; user-select: none; }
.graphe-svg:active { cursor: grabbing; }
.graphe-traits line { stroke: var(--trait-fort); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.graphe-traits line.allume { stroke: var(--texte); stroke-width: 2.2; }
.graphe-traits line.eteint { opacity: .15; }
.graphe-noeud { cursor: pointer; }
.graphe-noeud circle { stroke: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
.graphe-noeud text { font: 600 var(--t-petit)/1 var(--police); fill: var(--texte); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.graphe-noeud.eteint { opacity: .18; }
.graphe-noeud.choisi circle { stroke: var(--texte); stroke-width: 3; }
.graphe-seance circle, .graphe-point.graphe-seance { fill: var(--accent); background: var(--accent); }
.graphe-notion circle, .graphe-point.graphe-notion { fill: var(--attention-texte); background: var(--attention-texte); }
.graphe-brique circle, .graphe-point.graphe-brique { fill: var(--succes-texte); background: var(--succes-texte); }
.graphe-reference circle, .graphe-point.graphe-reference { fill: var(--rouille); background: var(--rouille); }
.graphe-auteur circle, .graphe-point.graphe-auteur { fill: var(--texte-discret); background: var(--texte-discret); }
.graphe-point { display: inline-block; width: 12px; height: 12px; border-radius: var(--rayon-rond); flex: none; }
.graphe-cote { display: grid; gap: 10px; max-height: 70vh; overflow: auto; }
.graphe-cote h3 { margin: 6px 0 0; font-size: var(--t-texte); }
.graphe-fiche { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--trait); border-radius: var(--rayon-carte); background: var(--surface); }
.graphe-fiche p { margin: 0; }
.graphe-fiche-tete { display: flex; align-items: center; gap: 8px; }
.graphe-fiche-titre { font-weight: 700; }
.graphe-fiche .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.graphe-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.graphe-puce { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 4px 6px; border: 0; border-radius: var(--rayon);
  background: none; color: var(--texte); font: inherit; text-align: left; cursor: pointer; }
.graphe-puce:hover, .graphe-puce:focus-visible { background: var(--accent-doux); }
.graphe-puce span:nth-child(2) { flex: 1; }
.graphe-aide { margin: 0; }
/* Maîtrise (14.11.2026) : les mêmes couleurs que la carte de maîtrise des étudiant·es. Le reste du réseau s'estompe. */
.graphe-couleurs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.graphe-couleurs .detail { margin-right: 4px; color: var(--texte-second); }
.graphe-noeud.estompe { opacity: .28; }
.graphe-noeud.maitrise-maitrisee circle, .graphe-point.maitrise-maitrisee { fill: var(--accent); background: var(--accent); }
.graphe-noeud.maitrise-en_cours circle, .graphe-point.maitrise-en_cours { fill: var(--attention); background: var(--attention); }
.graphe-noeud.maitrise-fragile circle, .graphe-point.maitrise-fragile { fill: var(--alerte); background: var(--alerte); }
.graphe-noeud.maitrise-pas_vue circle, .graphe-point.maitrise-pas_vue { fill: var(--surface); background: var(--surface); stroke: var(--texte-discret); box-shadow: inset 0 0 0 2px var(--texte-discret); }
.graphe-legende { display: grid; gap: 4px; }
.graphe-legende ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.graphe-legende li { display: inline-flex; align-items: center; gap: 6px; }
.graphe-legende p { margin: 0; color: var(--texte-second); font-size: var(--t-petit); }
.graphe-fiche-maitrise { display: flex; align-items: center; gap: 8px; }
.graphe-couleurs .onglet { min-height: 36px; padding: 4px 12px; border: 1px solid var(--trait-fort); border-radius: var(--rayon-pilule); background: var(--surface);
  color: var(--texte-second); font: inherit; font-size: var(--t-petit); cursor: pointer; }
.graphe-couleurs .onglet[aria-pressed="true"] { background: var(--accent-doux); border-color: var(--accent); color: var(--accent-texte); font-weight: 600; }
