/*!**********************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./assets/pages/genealogie/genealogie.scss ***!
  \**********************************************************************************************************************************/
@charset "UTF-8";
/* L'arbre des maîtres et des élèves — /mathematiques/genealogie/
 *
 * Aligné sur les variables du site (--bg, --card, --txt, --mut, --acc) : le
 * site n'a qu'un thème, sombre, et la scène three.js lit ces variables au
 * démarrage — si le site gagne un thème clair, la scène suivra sans qu'on
 * touche au script. Les teintes propres à l'arbre sont déclarées ici, en
 * variables, pour la même raison. */
/* Pleine largeur d'écran, comme l'atlas : `:has()` plutôt que des marges en
   `100vw` (qui comptent la barre de défilement et décalent la page). Sans
   `:has()`, la page retombe à la largeur du site. L'en-tête suit, pour que le
   logo reste aligné sur la scène. */
.wrap:has(> .genealogie),
body:has(.genealogie) .site-header .wrap {
  max-width: none;
}

.genealogie {
  --ge-fond: var(--bg, #0f1115);
  --ge-panneau: var(--card, #171a21);
  --ge-filet: var(--line, #262b36);
  --ge-encre: var(--txt, #e7eaf0);
  --ge-attenue: var(--mut, #9aa3b2);
  --ge-these: var(--acc, #ff6600);
  --ge-ens: #7dd3fc;
  --ge-selection: #ffb063;
  --ge-maillon: #8a93a6;
  --ge-choisi: #ffffff;
  /* Plans du fond : lus par la scène (index.js) ET par la légende. */
  --ge-discipline: #a78bfa;
  --ge-lieu: #34d399;
  --ge-institution: #f472b6;
  color: var(--ge-encre);
  padding-bottom: 1.5rem;
}
.genealogie h1 {
  margin: 0.4rem 0 0.5rem;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
}
.genealogie h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.genealogie h3 {
  font-size: 0.9rem;
  margin: 0.9rem 0 0.3rem;
  color: var(--ge-attenue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.genealogie a {
  color: var(--ge-these);
}

.genealogie__chapo {
  max-width: 70ch;
  margin: 0 0 1rem;
  color: var(--ge-attenue);
  line-height: 1.55;
}

.genealogie .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Barre de commandes ── logée en tête de la console (#refconsole) par le
   script : elle y prend toute la largeur, sur une ligne. */
.genealogie__barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  flex-basis: 100%;
  width: 100%;
}

#refconsole .genealogie__b {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
}

#refconsole .genealogie__etat {
  font-size: 0.75rem;
  color: #c2d0e2;
}

.genealogie__recherche {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 160px;
  min-width: 0;
  font-size: 0.85rem;
  color: var(--ge-attenue);
}
.genealogie__recherche input {
  font: inherit;
  font-size: 1rem;
  color: var(--ge-encre);
  background: var(--ge-panneau);
  border: 1px solid var(--ge-filet);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  min-width: 0;
}
.genealogie__recherche input:focus {
  outline: 2px solid var(--ge-these);
  outline-offset: 1px;
}

.genealogie__b {
  font: inherit;
  font-size: 0.9rem;
  color: var(--ge-encre);
  background: var(--ge-panneau);
  border: 1px solid var(--ge-filet);
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}
.genealogie__b:hover:not(:disabled) {
  border-color: var(--ge-these);
}
.genealogie__b:focus-visible {
  outline: 2px solid var(--ge-these);
  outline-offset: 1px;
}
.genealogie__b:disabled {
  opacity: 0.45;
  cursor: default;
}
.genealogie__b[aria-pressed=true] {
  border-color: var(--ge-these);
  color: var(--ge-these);
}

.genealogie__etat {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.85rem;
  color: var(--ge-attenue);
}

/* ── Scène, planche de bord et panneau ──
   Comme la galaxie d'Habilo : la carte à gauche, et à droite la planche de
   bord AU-DESSUS du panneau de détail, à sa largeur. */
.genealogie__scene-cadre {
  position: relative;
  display: grid;
  /* 400 px : de quoi loger les six potentiomètres sur une rangée. */
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  grid-template-rows: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.genealogie__scene {
  position: relative;
  grid-column: 1;
  grid-row: 1/span 2;
  width: 100%;
  height: var(--ge-h, clamp(480px, 86vh, 1100px)); /* --ge-h : hauteur d'écran, voir « Pleine hauteur » */
  touch-action: none;
  border: 1px solid var(--ge-filet);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ge-fond);
}
.genealogie__scene canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.genealogie__dash {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  --line: var(--ge-filet);
}

.genealogie__reperes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.genealogie__repere {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-100vw, -100vh);
  /* L'axe du temps est à droite de l'arbre : les années s'écrivent à sa droite. */
  margin: -0.6em 0 0 0.3em;
  width: 6.5em;
  text-align: left;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--ge-attenue);
  white-space: nowrap;
}

.genealogie__bulle {
  position: absolute;
  z-index: 3;
  max-width: 260px;
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
  color: var(--ge-encre);
  background: color-mix(in srgb, var(--ge-panneau) 92%, transparent);
  border: 1px solid var(--ge-filet);
  border-radius: 6px;
  pointer-events: none;
}

.genealogie__panneau {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  max-height: 46vh;
  overflow-y: auto;
}
.genealogie__panneau h1 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  line-height: 1.25;
}
.genealogie__panneau .genealogie__chapo {
  font-size: 0.88rem;
  margin: 0 0 0.6rem;
}
.genealogie__panneau {
  padding: 0.9rem 1rem 1rem;
  background: var(--ge-panneau);
  border: 1px solid var(--ge-filet);
  border-radius: 10px;
}

.genealogie__panneau-nom {
  margin: 0 2rem 0.25rem 0;
  font-size: 1.15rem;
}

.genealogie__panneau-dates {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: var(--ge-attenue);
}

.genealogie__panneau-fiche {
  margin: 0;
  font-size: 0.9rem;
}

.genealogie__fermer {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ge-encre);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}
.genealogie__fermer:hover, .genealogie__fermer:focus-visible {
  border-color: var(--ge-filet);
  outline: none;
}

.genealogie__liens {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}
.genealogie__liens li {
  margin: 0 0 0.3rem;
  line-height: 1.4;
}

.genealogie__liens-vide {
  color: var(--ge-attenue);
  font-style: italic;
}

.genealogie__lien {
  font: inherit;
  color: var(--ge-encre);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--ge-filet);
}
.genealogie__lien:hover, .genealogie__lien:focus-visible {
  color: var(--ge-these);
  outline: none;
}

.genealogie__lien-detail {
  color: var(--ge-attenue);
}

/* ── Légende ── */
.genealogie__legende {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--ge-panneau);
  border: 1px solid var(--ge-filet);
  border-radius: 10px;
  font-size: 0.9rem;
}
.genealogie__legende ul {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}
.genealogie__legende li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.genealogie__legende p {
  margin: 0;
  color: var(--ge-attenue);
  line-height: 1.5;
  max-width: 80ch;
}

.genealogie__trait {
  flex: 0 0 36px;
  height: 0;
  border-top: 2px solid var(--ge-these);
}
.genealogie__trait--ens {
  border-top-color: var(--ge-ens);
}
.genealogie__trait--president {
  border-top-color: color-mix(in srgb, var(--ge-these) 25%, var(--ge-fond));
}
.genealogie__trait--doute {
  border-top-style: dashed;
  border-top-color: var(--ge-ens);
}

.genealogie__point {
  flex: 0 0 36px;
  display: inline-flex;
  justify-content: center;
}
.genealogie__point::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ge-selection);
}
.genealogie__point--maillon::before {
  width: 8px;
  height: 8px;
  background: var(--ge-maillon);
}
.genealogie__point--estime::before {
  background: color-mix(in srgb, var(--ge-selection) 45%, var(--ge-fond));
}
.genealogie__point {
  /* Disciplines et lieux : des losanges, comme leurs marqueurs (octaèdres). */
}
.genealogie__point--discipline::before, .genealogie__point--lieu::before, .genealogie__point--institution::before {
  width: 10px;
  height: 10px;
  border-radius: 1px;
  transform: rotate(45deg);
}
.genealogie__point--discipline::before {
  background: var(--ge-discipline);
}
.genealogie__point--lieu::before {
  background: var(--ge-lieu);
}
.genealogie__point--institution::before {
  background: var(--ge-institution);
}

.genealogie__replilien, .genealogie__noscript {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ge-attenue);
}

/* ── Étroit : planche de bord puis panneau sous la scène ── */
@media (max-width: 900px) {
  .genealogie__scene-cadre {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }
  .genealogie__scene {
    grid-column: 1;
    grid-row: auto;
    height: clamp(360px, 60vh, 560px);
  }
  .genealogie__dash {
    grid-column: 1;
    grid-row: auto;
  }
  .genealogie__panneau {
    grid-column: 1;
    grid-row: auto;
    max-height: 50vh;
  }
  .genealogie__repere {
    font-size: 0.66rem;
  }
}
/* ══ Planche de bord — repris de habilo.fr/_archive/assets/galaxie/galaxie.css
   (même auteur), blocs #refconsole, .kn, .vu, .ksep, #refmanche, #refbtns,
   #refcenter, #refap, #refcockpit, #reftour, copiés tels quels. Ajouts en fin
   de bloc : #refbranche (propre à l'arbre), et le cockpit réduit à trois
   cadrans sur un écran étroit. ══ */
#refconsole {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 18px 9px;
  border-radius: 14px;
  border: 1px solid #2b333e;
  position: relative;
  /* panneau métal brossé sombre + 4 vis cruciformes aux coins */
  background: radial-gradient(circle 4px at 13px 13px, #3a4350 0 2.6px, #10141a 2.7px 4px, transparent 4px), radial-gradient(circle 4px at calc(100% - 13px) 13px, #3a4350 0 2.6px, #10141a 2.7px 4px, transparent 4px), radial-gradient(circle 4px at 13px calc(100% - 13px), #3a4350 0 2.6px, #10141a 2.7px 4px, transparent 4px), radial-gradient(circle 4px at calc(100% - 13px) calc(100% - 13px), #3a4350 0 2.6px, #10141a 2.7px 4px, transparent 4px), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px), linear-gradient(180deg, #1b212b, #0d1116 55%, #12171f);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -2px 6px rgba(0, 0, 0, 0.55);
}

#refconsole > * {
  flex-shrink: 0;
}

#refconsole .kn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
  outline: none;
}

#refconsole .kn:focus-visible {
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.5);
}

#refconsole .kn svg {
  display: block;
}

#refconsole .kn .rail {
  stroke: #333e4e;
}

#refconsole .kn .arc {
  stroke: var(--acc);
  filter: drop-shadow(0 0 3px rgba(255, 102, 0, 0.55));
}

#refconsole .kn .pin {
  stroke: #c9d4e4;
}

#refconsole .kn:hover .arc {
  stroke: #ffb000;
}

#refconsole .klabel {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb877;
  text-shadow: 0 0 6px rgba(255, 140, 40, 0.45);
}

#refconsole .kval {
  font-size: 10px;
  color: #52ff7a;
  font-variant-numeric: tabular-nums;
  min-height: 14px;
  background: #061309;
  border: 1px solid #12301a;
  border-radius: 3px;
  padding: 0 5px;
  text-shadow: 0 0 5px rgba(82, 255, 122, 0.55);
  line-height: 14px;
}

/* ── Carte des commandes : touches dessinées, groupe actif éclairé ── */
/* En surimpression, en haut à droite de la scène : petit, translucide, et
   transparent aux clics (on pilote à travers). */
#refcommandes {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 250px;
  padding: 6px 7px 5px;
  border-radius: 7px;
  border: 1px solid rgba(38, 46, 58, 0.8);
  background: rgba(8, 11, 16, 0.62);
  backdrop-filter: blur(2px);
  opacity: 0.85;
}

#refcommandes .cmd-groupe {
  opacity: 0.5;
  transition: opacity 0.15s;
}

#refcommandes .cmd-groupe.actif {
  opacity: 1;
}

#refcommandes .cmd-titre {
  font: 700 7px/1 system-ui;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb877;
  text-shadow: 0 0 6px rgba(255, 140, 40, 0.4);
  margin: 0 0 3px;
}

#refcommandes .cmd-groupe.actif .cmd-titre {
  color: #ffd9b0;
}

#refcommandes .cmd-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0 0 2px;
}

#refcommandes kbd {
  font: 600 7.5px/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  color: #c9d4e4;
  min-width: 12px;
  text-align: center;
  padding: 2px 3px 1px;
  border-radius: 3px;
  background: linear-gradient(180deg, #232b36, #141920);
  border: 1px solid #333e4e;
  border-bottom-width: 2px;
  transition: background 0.08s, color 0.08s, box-shadow 0.08s;
}

#refcommandes kbd.on {
  color: #061309;
  background: #52ff7a;
  border-color: #2f6a44;
  box-shadow: 0 0 8px rgba(82, 255, 122, 0.6);
}

#refcommandes .cmd-effet {
  font: 8.5px/1.2 system-ui;
  color: #9fb0c8;
  margin-left: 2px;
}

/* Écran étroit : la carte masquerait la scène, on la retire. */
@media (max-width: 900px) {
  #refcommandes {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #refcommandes kbd, #refcommandes .cmd-groupe {
    transition: none;
  }
}
#refconsole .vu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: linear-gradient(180deg, #0c1017, #080b10);
  border: 1px solid #262e3a;
  border-radius: 8px;
  padding: 5px 7px 3px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

#refconsole .vu canvas {
  display: block;
  background: #0a0e14;
  border: 1px solid #1d242f;
  border-radius: 4px;
}

#refconsole .vu .fps {
  font-size: 9.5px;
  color: #52ff7a;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  text-shadow: 0 0 5px rgba(82, 255, 122, 0.5);
}

#refconsole .ksep {
  width: 3px;
  align-self: stretch;
  margin: 4px 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.6));
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.8);
}

/* ── Poste de vol : manche à balai + manette des gaz (vol libre) ─────────── */
#refmanche {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 6px 8px 14px;
  border-radius: 8px;
  border: 1px solid #262e3a;
  background: linear-gradient(180deg, #0c1017, #080b10);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

#refmanche .mlabel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb877;
  text-shadow: 0 0 6px rgba(255, 140, 40, 0.45);
  pointer-events: none;
}

#refmanche .pad {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  user-select: none;
  outline: none;
  background: radial-gradient(circle at 35% 30%, #1d242f, #0a0e14 70%);
  border: 1px solid #333e4e;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

#refmanche .pad:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.5), inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

#refmanche .pad .croix {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent calc(50% - 0.5px), #232c38 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)), linear-gradient(0deg, transparent calc(50% - 0.5px), #232c38 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px));
  border-radius: 50%;
}

#refmanche .pad .stick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #3a4250, #12151c);
  border: 1px solid #3d4655;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.65);
}

#refmanche .pad .stick.actif {
  border-color: var(--acc);
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.5), 0 2px 5px rgba(0, 0, 0, 0.65);
}

#refmanche .gaz {
  position: relative;
  width: 20px;
  height: 56px;
  border-radius: 5px;
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
  outline: none;
  background: linear-gradient(180deg, #0a0e14, #10151d);
  border: 1px solid #333e4e;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

#refmanche .gaz:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.5), inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

#refmanche .gaz .rail {
  position: absolute;
  left: 50%;
  top: 5px;
  bottom: 5px;
  width: 2px;
  margin-left: -1px;
  background: #232c38;
  border-radius: 1px;
  pointer-events: none;
}

#refmanche .gaz .levier {
  position: absolute;
  left: 2px;
  right: 2px;
  height: 9px;
  bottom: 3px;
  border-radius: 2.5px;
  pointer-events: none;
  background: linear-gradient(180deg, #3a4453, #161b22);
  border: 1px solid #4a5566;
}

#refmanche .gaz .levier.actif {
  border-color: var(--acc);
  box-shadow: 0 0 7px rgba(255, 102, 0, 0.45);
}

/* CENTRER + PILOTE AUTO intégrés au poste de vol : pile verticale compacte */
/* Deux joysticks (mode drone) : repères discrets sur chaque face. */
#refmanche .pad .lab {
  position: absolute;
  font: 600 7px/1 system-ui;
  color: #5d6b7f;
  pointer-events: none;
  letter-spacing: 0.04em;
}

#refmanche .pad .lab-h {
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
}

#refmanche .pad .lab-b {
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
}

#refmanche .pad .lab-g {
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
}

#refmanche .pad .lab-d {
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
}

#refmanche .pad-d .lab-g, #refmanche .pad-d .lab-d {
  font-size: 6px;
}

#refmanche #refbtns {
  flex-direction: column;
  box-shadow: none;
  margin-left: 3px;
  align-self: stretch;
}

#refmanche #refbtns > button {
  font-size: 8px;
  padding: 4px 9px;
  flex: 1;
  letter-spacing: 0.1em;
}

#refmanche #refbtns > button:first-child {
  border-radius: 6px 6px 0 0;
}

#refmanche #refbtns > button:last-child {
  border-radius: 0 0 6px 6px;
  margin-left: 0;
  margin-top: -1px;
}

#refmanche #refbtns > button:not(:first-child):not(:last-child) {
  margin-left: 0;
  margin-top: -1px;
}

/* ── Cockpit d'avion (horizon, vario, cap) : HUD en bas à gauche de la carte ── */
#refcockpit {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 10px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.94;
}

#refcockpit .inst {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: linear-gradient(180deg, rgba(20, 25, 34, 0.85), rgba(12, 15, 21, 0.85));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 7px 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#refcockpit .inst canvas {
  display: block;
}

#refcockpit .inst span {
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9fb0c8;
}

/* cockpit logé dans la console (à côté du vu-mètre) : cadrans nus, sans capsule */
#refconsole #refcockpit {
  position: static;
  display: flex;
  gap: 8px;
  pointer-events: none;
  opacity: 1;
}

#refconsole #refcockpit .inst {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  gap: 1px;
}

#refconsole #refcockpit .inst span {
  font-size: 8px;
}

/* interrupteur PILOTE AUTO : plaque aviation, LED d'armement */
#refap, #refvoix {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  background: linear-gradient(180deg, #1d242e, #11151c);
  border: 1px solid #333d4b;
  border-radius: 8px;
  padding: 7px 11px;
  color: #8fa2bd;
  font: 600 9.5px/1.25 system-ui;
  letter-spacing: 0.14em;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 6px rgba(0, 0, 0, 0.4);
}

#refap .led, #refvoix .led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a3a2a;
  border: 1px solid #0a0e0a;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

#refap:hover, #refvoix:hover {
  border-color: #4a5769;
  color: #c9d4e4;
}

#refap.on, #refvoix.on {
  color: #7fe6a0;
  border-color: #2f6a44;
}

#refap.on .led, #refvoix.on .led {
  background: #3fd06a;
  box-shadow: 0 0 8px rgba(63, 208, 106, 0.8);
}

/* bouton CENTRER : même famille que PILOTE AUTO */
#refcenter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: linear-gradient(180deg, #1d242e, #11151c);
  border: 1px solid #333d4b;
  border-radius: 8px;
  padding: 7px 11px;
  color: #8fa2bd;
  font: 600 9.5px/1.25 system-ui;
  letter-spacing: 0.14em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 6px rgba(0, 0, 0, 0.4);
}

#refcenter .mire {
  font-size: 15px;
  line-height: 1;
  color: #5fb4ff;
}

#refcenter:hover {
  border-color: #4a5769;
  color: #c9d4e4;
}

#refcenter:active .mire {
  color: #ffb000;
}

/* groupe de commandes CENTRER + PILOTE AUTO : plaque commune, boutons jointifs */
#refbtns {
  display: inline-flex;
  border-radius: 9px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.45);
}

#refbtns > button {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: color 0.15s, border-color 0.15s, transform 0.1s;
}

#refbtns > button:first-child {
  border-radius: 8px 0 0 8px;
}

#refbtns > button:last-child {
  border-radius: 0 8px 8px 0;
  margin-left: -1px;
}

#refbtns > button:not(:first-child):not(:last-child) {
  border-radius: 0;
  margin-left: -1px;
}

/* enfoncement au clic (course courte, comme un vrai poussoir) */
#refbtns > button:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55);
}

/* reflet discret qui balaie le bouton au survol */
#refbtns > button::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  left: -65%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

#refbtns > button:hover::after {
  animation: btnsheen 0.75s ease;
}

@keyframes btnsheen {
  from {
    left: -65%;
  }
  to {
    left: 125%;
  }
}
/* ── Tour de contrôle : fil radio de la console ──────────────────────────── */
#reftour {
  flex-basis: 100%;
  order: 9;
  background: linear-gradient(180deg, #0c1017, #080b10);
  border: 1px solid #262e3a;
  border-radius: 8px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
  margin-top: 2px;
  overflow: hidden;
}

#reftour .entete {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 4px;
  font: 700 8.5px/1 system-ui;
  letter-spacing: 0.22em;
  color: #8fa2bd;
  border-bottom: 1px solid #1c232e;
}

#reftour .entete .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fd06a;
  box-shadow: 0 0 6px rgba(63, 208, 106, 0.8);
  animation: tourdot 2.2s infinite;
}

@keyframes tourdot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
#reftour .fil {
  height: 88px;
  overflow-y: auto;
  padding: 6px 10px;
  font: 11px/1.65 ui-monospace, "Cascadia Mono", Consolas, monospace;
  scrollbar-width: thin;
}

#reftour .ligne {
  color: #9fd4ae;
  text-shadow: 0 0 4px rgba(82, 255, 122, 0.25);
  word-break: break-word;
}

#reftour .ligne .h {
  color: #55657a;
  font-size: 9.5px;
  margin-right: 2px;
}

#reftour .ligne.alerte {
  color: #ffb0a0;
  text-shadow: 0 0 4px rgba(255, 90, 60, 0.35);
}

#reftour .ligne.ok {
  color: #7dffa0;
}

#reftour .ligne.cliquable {
  cursor: pointer;
}

#reftour .ligne.cliquable:hover {
  text-decoration: underline;
}

#reftour .curseur {
  animation: tourdot 0.7s infinite;
  margin-left: 1px;
}

/* lignes de survol / télémétrie du journal : discrètes, sans halo */
#reftour .ligne.hov {
  color: #7d8ea5;
  font-size: 10.5px;
  text-shadow: none;
}

/* ── Ajouts propres à l'arbre ── */
/* AUTRE BRANCHE : même famille que CENTRER, n'apparaît qu'à un embranchement */
#refbranche {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: linear-gradient(180deg, #1d242e, #11151c);
  border: 1px solid #333d4b;
  border-radius: 8px;
  padding: 7px 11px;
  color: #8fa2bd;
  font: 600 9.5px/1.25 system-ui;
  letter-spacing: 0.14em;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 6px rgba(0, 0, 0, 0.4);
}

#refbranche .mire {
  font-size: 15px;
  line-height: 1;
  color: #ffb877;
}

#refbranche:hover {
  border-color: #4a5769;
  color: #c9d4e4;
}

#refbranche[hidden] {
  display: none;
}

/* la radio ne fige pas quand le visiteur demande moins de mouvement */
@media (prefers-reduced-motion: reduce) {
  #reftour .entete .dot, #reftour .curseur, #refbtns > button:hover::after {
    animation: none;
  }
}
/* écran étroit : les trois cadrans restent (année, vitesse, cap), manche au pouce */
@media (max-width: 480px) {
  #refconsole {
    padding: 10px 10px 8px;
    gap: 8px 10px;
  }
  #refmanche .pad {
    width: 64px;
    height: 64px;
  }
  #refmanche .gaz {
    height: 64px;
    width: 24px;
  }
}
/* ── Poste compact (03/10/2026) ──
   Les six potentiomètres sur UNE rangée : boutons de 36 px, libellés serrés.
   La recherche prend toute la largeur, « Suivre la lignée » passe dessous.
   Manche, vu-mètre et cadrans se partagent les rangées suivantes ; la radio
   est moins haute. */
#refconsole {
  gap: 8px 8px;
  padding: 10px 10px 8px;
}

#refconsole .kn svg {
  width: 36px;
  height: 36px;
}

#refconsole .klabel {
  font-size: 8px;
  letter-spacing: 0.05em;
}

#refconsole .kval {
  font-size: 9px;
  padding: 0 3px;
}

#refconsole .ksep {
  margin: 4px 1px;
}

#refconsole .genealogie__recherche {
  flex: 1 1 100%;
}

#refconsole .vu canvas {
  width: 120px;
  height: auto;
}

#reftour .fil {
  height: 64px;
}

/* ── Onglets du pied de console : Radio / Légende / À propos ──
   Repris de habilo.fr/_archive/assets/galaxie/galaxie.css (#reftabs) : style
   ANNONCIATEUR de cockpit, plaques métal + LED témoin, la vue active est
   ALLUMÉE. Une seule vue à la fois. */
#refconsole [hidden], #refonglets [hidden] {
  display: none !important;
}

#reftabs {
  flex-basis: 100%;
  order: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  padding: 7px 2px 0;
  border-top: 1px solid #232b36;
}

#reftabs button {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 700 8.5px/1 system-ui;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #71809a;
  background: linear-gradient(180deg, #1d242e, #10141b);
  border: 1px solid #2b333e;
  border-radius: 6px;
  padding: 6px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

#reftabs button::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 6px;
  background: #1c232e;
  border: 1px solid #333e4e;
}

#reftabs button:hover {
  color: #9fb0c8;
  border-color: #3d4855;
}

#reftabs button:focus-visible {
  outline: 2px solid rgba(255, 102, 0, 0.6);
  outline-offset: 1px;
}

#reftabs button:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55);
}

#reftabs button.on {
  color: #ffd9b0;
  border-color: #7a4a20;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 9px rgba(255, 120, 30, 0.25);
}

/* nouvelle fiche à lire : la LED de l'onglet clignote, sans voler l'écran */
#reftabs button.nouveau::before {
  background: #ffb000;
  border-color: #ffd27a;
  animation: tourdot 1s infinite;
}

@media (prefers-reduced-motion: reduce) {
  #reftabs button.nouveau::before {
    animation: none;
  }
}
/* dernier message de la tour, rappelé sous les onglets quand la radio est fermée */
.genealogie__dernier {
  margin: 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: #080b10;
  border: 1px solid #1c232e;
  font: 10.5px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  color: #9fd4ae;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* barres de défilement noires, dans le ton du poste */
#reftour .fil, #refonglets .genealogie__vue {
  scrollbar-color: #2a313c #05070a;
}

#reftour .fil::-webkit-scrollbar, #refonglets .genealogie__vue::-webkit-scrollbar {
  width: 8px;
  background: #05070a;
}

#reftour .fil::-webkit-scrollbar-thumb, #refonglets .genealogie__vue::-webkit-scrollbar-thumb {
  background: #2a313c;
  border-radius: 4px;
  border: 2px solid #05070a;
}

#reftabs button.on::before {
  background: var(--acc);
  border-color: #ffb877;
  box-shadow: 0 0 7px rgba(255, 120, 30, 0.9);
}

/* vues Fiche, Légende et À propos : le même écran bordé que la radio */
#refonglets .genealogie__vue {
  font-size: 12.5px;
  line-height: 1.6;
  color: #a7b4c7;
  background: linear-gradient(180deg, #0c1017, #080b10);
  border: 1px solid #262e3a;
  border-radius: 8px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
  padding: 10px 12px;
  overflow-y: auto;
  scrollbar-width: thin;
}

#refonglets .genealogie__vue h1 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: #d7e0ee;
}

#refonglets .genealogie__vue h3 {
  margin: 0.8rem 0 0.3rem;
}

#refonglets .genealogie__invite {
  margin: 0;
  color: #8494a8;
}

#refonglets .genealogie__personne {
  position: relative;
}

/* « Lire l'arbre » déplacé dans l'onglet Légende : sans son titre ni son cadre de section */
#reflegende .genealogie__legende {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

#reflegende .genealogie__legende h2 {
  display: none;
}

#reflegende ul {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#reflegende li {
  display: flex;
  align-items: center;
  gap: 8px;
}

#reflegende p {
  margin: 0 0 0.6rem;
  max-width: none;
}

#refapropos .genealogie__chapo {
  margin: 0 0 8px;
  font-size: inherit;
}

/* ── Pleine hauteur (03/10/2026) : la scène prend la hauteur de l'écran ; à
   droite, le poste occupe toute la colonne — la console en haut, puis les
   onglets, dont la vue ouverte remplit ce qui reste et défile en elle-même. */
.genealogie {
  --ge-h: max(480px, calc(100dvh - 7.5rem));
}

.genealogie__scene {
  height: var(--ge-h);
}

.genealogie--onglets .genealogie__dash {
  grid-row: 1/span 2;
}

/* Fil d'Ariane et lien vers la liste, montés en tête du poste : la scène
   regagne la hauteur du fil. */
.genealogie--onglets {
  --ge-h: max(480px, calc(100dvh - 5.6rem));
}

/* Ctrl tenu : on manipule le graphe, le curseur le dit. */
.genealogie__scene--graphe, .genealogie__scene--graphe canvas {
  cursor: move;
}

/* Maj tenu : on fait tourner le graphe. */
.genealogie__scene--tourner, .genealogie__scene--tourner canvas {
  cursor: grab;
}

/* Indicateur du zoom optique, en coin de scène — même afficheur que les
   valeurs des potentiomètres (vert sur noir). */
.genealogie__zoom {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 4;
  font: 600 0.72rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.08em;
  color: #52ff7a;
  background: #061309;
  border: 1px solid #12301a;
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  text-shadow: 0 0 5px rgba(82, 255, 122, 0.55);
  pointer-events: none;
}

.genealogie__tete-poste {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 0.2rem;
  font-size: 0.78rem;
}
.genealogie__tete-poste .fil {
  margin: 0;
}
.genealogie__tete-poste .genealogie__replilien {
  margin: 0;
  color: var(--ge-attenue);
  line-height: 1.4;
}

@media (min-width: 901px) {
  .genealogie--onglets #refdash {
    height: var(--ge-h);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .genealogie--onglets #refconsole {
    flex: none;
  }
  #refonglets {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  /* les `order` d'Habilo (console en rangées) n'ont plus cours ici : onglets d'abord */
  #refonglets > * {
    order: 0;
  }
  #refonglets #reftabs {
    flex: none;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  #refonglets > .genealogie__vue, #refonglets > #reftour {
    flex: 1;
    min-height: 0;
    margin-top: 0;
  }
  #refonglets > #reftour {
    display: flex;
    flex-direction: column;
  }
  #refonglets > #reftour .fil {
    flex: 1;
    height: auto;
    min-height: 0;
  }
}
@media (max-width: 900px) {
  #refonglets {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
  }
  #refonglets > * {
    order: 0;
  }
  #refonglets > .genealogie__vue {
    max-height: 50vh;
  }
}

/*# sourceMappingURL=genealogie.css.map*/