/* ===== 03 — Maîtrises v2 : noyau + orbite ===== */
.mx-stage { position: relative; height: clamp(400px, 46vw, 520px); margin: 0 auto; max-width: 980px;
  padding: 0; perspective: 1000px; }
.mx-orbit { position: absolute; inset: 22px 70px; width: calc(100% - 140px); height: calc(100% - 44px); overflow: visible; pointer-events: none; }
.mx-orbit ellipse { fill: none; stroke: rgba(201,168,106,.28); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 6; }
.mx-orbit .mx-orbit__in { stroke: rgba(79,174,143,.18); stroke-dasharray: none; }
.mx-poles { list-style: none; margin: 0; padding: 0; position: absolute; inset: 22px 70px; }
.mx-poles li { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.mx-pole { position: absolute; left: 0; top: 0; transform: translate(-50%,-50%); display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap; padding: 11px 18px 11px 12px; border-radius: 999px; cursor: pointer; font: 600 15px/1 var(--font); color: var(--ink);
  border: 1px solid var(--line-strong); background: rgba(16,24,20,.88); backdrop-filter: blur(6px);
  box-shadow: 0 14px 34px -18px rgba(0,0,0,.9); transition: border-color .25s ease, box-shadow .25s ease, background .25s ease; will-change: transform; }
.mx-pole .mx-ico { color: var(--gold-bright); }
.mx-pole:hover, .mx-pole.is-active { border-color: var(--gold); background: rgba(40,34,20,.92); box-shadow: 0 0 0 4px rgba(201,168,106,.12), 0 18px 40px -16px rgba(201,168,106,.45); }
.mx-pole:focus-visible, .mx-core:focus-visible, .mx-live a:focus-visible, .mx-more summary:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.mx-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Noyau */
.mx-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2; width: 168px; height: 168px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer; background: transparent; color: var(--ink); display: grid; place-items: center; font: inherit; }
.mx-core__sphere { position: absolute; inset: 0; border-radius: 50%; transform-style: preserve-3d;
  background: radial-gradient(circle at 35% 30%, rgba(231,205,142,.35), rgba(79,174,143,.16) 45%, rgba(8,12,10,.9) 72%);
  box-shadow: 0 0 60px -6px rgba(201,168,106,.35), inset 0 0 30px rgba(111,211,178,.18); }
.mx-core__sphere i { position: absolute; inset: 6px; border-radius: 50%; border: 1px solid rgba(231,205,142,.35); }
.mx-core__sphere i:nth-child(1) { transform: rotateX(72deg); animation: mx-spin 14s linear infinite; }
.mx-core__sphere i:nth-child(2) { transform: rotateY(72deg); border-color: rgba(111,211,178,.35); animation: mx-spin2 18s linear infinite; }
.mx-core__sphere i:nth-child(3) { inset: 22px; border-style: dashed; border-color: rgba(201,168,106,.25); animation: mx-spin3 26s linear infinite; }
@keyframes mx-spin { to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes mx-spin2 { to { transform: rotateY(72deg) rotateX(360deg); } }
@keyframes mx-spin3 { to { transform: rotate(360deg); } }
.mx-core__k { position: relative; display: grid; justify-items: center; gap: 6px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.mx-core__k .mx-ico { color: var(--gold-bright); width: 24px; height: 24px; }
.mx-core.is-active .mx-core__sphere, .mx-core:hover .mx-core__sphere { box-shadow: 0 0 80px 0 rgba(201,168,106,.5), inset 0 0 30px rgba(111,211,178,.25); }
/* Ligne de preuve */
.mx-readout { min-height: 3.2em; margin: 18px auto 0; max-width: 760px; text-align: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; font-size: 16px; color: var(--ink-soft); }
.mx-readout b { color: var(--gold-bright); font-weight: 600; }
.mx-readout em { font-style: normal; font-size: 13px; color: var(--muted); }
.mx-readout__hint { color: var(--muted); font-size: 14px; }
/* Pied : LIVE + preuves */
.mx-foot { margin-top: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-start; justify-content: space-between; }
.mx-live { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.mx-live__title { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--emerald-bright); }
.mx-live ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mx-live a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink);
  border: 1px solid rgba(79,174,143,.35); background: rgba(79,174,143,.1); transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.mx-live a .mx-ico { color: var(--emerald-bright); }
.mx-live a:hover { background: rgba(79,174,143,.2); border-color: var(--emerald-bright); transform: translateY(-2px); }
.mx-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald-bright); animation: mx-pulse 2.4s ease-out infinite; }
@keyframes mx-pulse { 0% { box-shadow: 0 0 0 0 rgba(111,211,178,.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(111,211,178,0); } }
.mx-more { flex: 0 1 auto; min-width: 0; }
.mx-more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-soft); border: 1px solid var(--line); }
.mx-more summary::-webkit-details-marker { display: none; }
.mx-more summary::after { content: "+"; color: var(--gold-bright); font-weight: 600; }
.mx-more[open] { flex-basis: 100%; }
.mx-more[open] summary::after { content: "–"; }
.mx-more dl { margin: 14px 0 0; display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.mx-more dl div { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(12,18,15,.6); min-width: 0; }
.mx-more dt { font-size: 13px; font-weight: 600; color: var(--gold-bright); margin-bottom: 4px; }
.mx-more dd { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); overflow-wrap: anywhere; }
/* Apparition */
.mx .mx-stage { opacity: 0; transition: opacity .8s ease; } .mx.is-in .mx-stage, #maitrises.is-in .mx-stage { opacity: 1; }
/* Mobile : constellation statique en grille */
@media (max-width: 639px) {
  .mx-stage { height: auto; perspective: none; display: grid; gap: 14px; }
  .mx-orbit { display: none; }
  .mx-core { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; width: 140px; height: 140px; }
  .mx-poles { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mx-poles li { position: static; width: auto; height: auto; }
  .mx-poles li:last-child { grid-column: 1 / -1; }
  .mx-pole { position: static; transform: none !important; opacity: 1 !important; width: 100%; white-space: normal; justify-content: flex-start; padding: 12px; font-size: 14px; line-height: 1.25; text-align: left; }
  .mx-readout { justify-content: flex-start; text-align: left; min-height: 3em; margin-top: 12px; }
  .mx-foot { flex-direction: column; margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .mx-core__sphere i, .mx-pulse { animation: none !important; }
  .mx .mx-stage { opacity: 1; transition: none; }
  .mx-live a:hover { transform: none; }
}
.mx-core__k small { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: -2px; }
