/* Digital Zen · carte des expertises : styles du globe tactique (servis par Sites comme /_rs/constellation.css).
   La scène (canvas), les lectures du HUD, la fiche du domaine ouvert, la rangée de boutons des domaines.
   Tout texte ≥ 80 % de blanc. Les variables --dz-* de la charte sont reprises quand elles existent. */

.rs-cst{position:relative;--cst-ease:var(--dz-ease,cubic-bezier(.2,.8,.2,1));--cst-title:var(--dz-font-title,'Space Grotesk',system-ui,sans-serif);--cst-body:var(--dz-font-body,'Hanken Grotesk',system-ui,sans-serif);color:#fff}
/* sans script : la source reste des fiches lisibles ; globe prêt : la source sort de l'écran (reste lue par les lecteurs d'écran) */
.rs-cst-source.is-globe{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.rs-cst.is-sans-canvas>*{display:none}

/* ── Scène ── */
.cst-stage{position:relative;width:100%;aspect-ratio:16/10;max-height:min(680px,78vh);min-height:400px;border-radius:20px;overflow:hidden;isolation:isolate;background:#000 radial-gradient(ellipse at 50% 45%,rgba(22,17,44,.7),rgba(0,0,0,0) 72%);border:1px solid rgba(255,255,255,.08);box-shadow:0 30px 80px -40px rgba(124,58,237,.35)}
.cst-canvas{display:block;width:100%;height:100%;touch-action:pan-y;outline:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.cst-stage.is-focus::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 2px rgba(167,139,250,.9);pointer-events:none;z-index:4}
.cst-stage.is-pilote .cst-canvas{cursor:grab}
.cst-stage.is-pilote .cst-canvas:active{cursor:grabbing}

/* ── HUD : quatre coins, quatre lectures ── */
.cst-hud{position:absolute;inset:0;z-index:2;pointer-events:none;font-family:var(--cst-title);text-transform:uppercase;letter-spacing:.14em;font-variant-numeric:tabular-nums;line-height:1.3}
.cst-c{position:absolute;width:18px;height:18px;border:1px solid rgba(255,255,255,.3)}
.cst-c1{top:12px;left:12px;border-right:0;border-bottom:0}
.cst-c2{top:12px;right:12px;border-left:0;border-bottom:0}
.cst-c3{bottom:12px;left:12px;border-right:0;border-top:0}
.cst-c4{bottom:12px;right:12px;border-left:0;border-top:0}
.cst-hud-b{position:absolute;display:flex;flex-direction:column;gap:4px;max-width:46%;padding:7px 10px 8px;border-radius:8px;background:rgba(4,4,8,.7)}
.cst-hud-tl{top:16px;left:16px}
.cst-hud-tr{top:16px;right:16px;text-align:right}
.cst-hud-bl{bottom:16px;left:16px}
.cst-hud-br{bottom:16px;right:16px;text-align:right}
.cst-hud-k{font-size:10px;font-weight:600;color:rgba(255,255,255,.8)}
.cst-hud-v{font-size:12px;font-weight:600;color:#fff;letter-spacing:.1em}
.cst-hud-tl .cst-hud-v{color:#fff}
.cst-hud-tl .cst-hud-v::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:9px;vertical-align:1px;background:#a78bfa;box-shadow:0 0 9px #a78bfa}
.cst-stage.is-pilote .cst-hud-tl .cst-hud-v::before{background:#22c1ff;box-shadow:0 0 9px #22c1ff}
.cst-stage.is-open .cst-hud-tl .cst-hud-v::before{background:#fff;box-shadow:0 0 9px #fff}
@media (prefers-reduced-motion:no-preference){.cst-stage.is-pilote:not(.is-open) .cst-hud-tl .cst-hud-v::before{animation:cstBlink 1.6s ease-in-out infinite}}
@keyframes cstBlink{50%{opacity:.35}}

/* bouton « Libérer » : écrans tactiles, pendant le pilotage seulement */
.cst-free{display:none;position:absolute;z-index:3;right:14px;top:14px;min-height:36px;padding:7px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.22);background:rgba(8,8,12,.86);color:#fff;font:600 12px/1.2 var(--cst-title);letter-spacing:.08em;text-transform:uppercase;cursor:pointer}
/* « Libérer » dès que le dernier geste est tactile (classe posée par le script : écrans tactiles et hybrides) */
.cst-stage.is-pilote.is-tactile .cst-free{display:inline-flex;align-items:center}.cst-stage.is-pilote.is-tactile .cst-hud-tr{display:none}
/* fiche ouverte à droite : les encarts et coins de droite passent derrière elle, on les retire ; « Libérer » se décale */
@media (min-width:760px){.cst-stage.is-open .cst-hud-tr,.cst-stage.is-open .cst-hud-br,.cst-stage.is-open .cst-c2,.cst-stage.is-open .cst-c4{display:none}.cst-stage.is-open .cst-free{right:calc(min(420px,44%) + 30px)}}

/* ── Fiche du domaine verrouillé : à droite sur grand écran, en bas sur téléphone ── */
.cst-panel{position:absolute;z-index:3;display:flex;flex-direction:column;top:16px;right:16px;bottom:16px;width:min(420px,44%);border-radius:16px;background:rgba(8,8,12,.92);border:1px solid rgba(255,255,255,.1);box-shadow:0 24px 60px -24px rgba(0,0,0,.8);--c:#a78bfa;--c-soft:rgba(167,139,250,.35)}
.cst-panel[hidden]{display:none}
.cst-panel::before{content:"";position:absolute;left:-1px;top:12%;bottom:12%;width:1px;background:linear-gradient(transparent,var(--c),transparent)}
.cst-panel-in{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:20px 22px 22px;display:flex;flex-direction:column;gap:12px}
.cst-panel-h{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cst-tag{font:600 10px/1.2 var(--cst-title);letter-spacing:.18em;text-transform:uppercase;color:var(--c)}
.cst-close{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:transparent;color:#fff;font:400 22px/1 var(--cst-body);cursor:pointer;flex-shrink:0;transition:border-color .3s,background .3s}
.cst-close span{transform:translateY(-1px)}
.cst-panel-t{margin:0;font:600 clamp(22px,2.2vw,28px)/1.12 var(--cst-title);letter-spacing:-.02em;color:#fff;outline:none;text-wrap:balance}
.cst-panel-t:focus-visible{text-decoration:underline;text-decoration-color:var(--c);text-underline-offset:6px}
.cst-panel-pos{display:flex;align-items:center;gap:10px;margin:0;font:600 10.5px/1.2 var(--cst-title);letter-spacing:.14em;text-transform:uppercase;font-variant-numeric:tabular-nums;color:rgba(255,255,255,.82)}
.cst-panel-pos::before{content:"";width:22px;height:1px;background:var(--c);flex-shrink:0}
.cst-panel-lead{margin:0;font:400 16px/1.55 var(--cst-body);color:rgba(255,255,255,.92)}
.cst-panel-pts{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.cst-panel-pts li{position:relative;padding-left:18px;font:400 15px/1.5 var(--cst-body);color:rgba(255,255,255,.86)}
.cst-panel-pts li::before{content:"";position:absolute;left:0;top:9px;width:7px;height:7px;border-radius:50%;background:var(--c);box-shadow:0 0 8px var(--c-soft)}
.cst-panel-cta{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;margin-top:6px;min-height:46px;padding:12px 20px;border-radius:999px;border:1px solid var(--c-soft);background:rgba(255,255,255,.03);color:#fff;font:600 14px/1.2 var(--cst-title);text-decoration:none;transition:border-color .3s,box-shadow .3s,transform .3s var(--cst-ease)}
.cst-panel-cta::after{content:"\2192";display:inline-block;transition:transform .35s var(--cst-ease)}
.cst-panel-n{display:flex;justify-content:space-between;gap:12px;margin-top:auto;padding-top:14px;border-top:1px solid rgba(255,255,255,.08)}
.cst-panel-n button{min-height:40px;padding:6px 2px;border:0;background:transparent;color:rgba(255,255,255,.85);font:500 13px/1.2 var(--cst-title);cursor:pointer;text-align:left;transition:color .3s}
.cst-panel-n .cst-next{text-align:right}
.cst-panel-n button:focus-visible,.cst-close:focus-visible,.cst-key:focus-visible,.cst-panel-cta:focus-visible,.cst-free:focus-visible{outline:2px solid #a78bfa;outline-offset:3px}
@media (hover:hover){
  .cst-close:hover{border-color:rgba(255,255,255,.5);background:rgba(255,255,255,.06)}
  .cst-panel-cta:hover{border-color:var(--c);box-shadow:0 0 28px -8px var(--c);transform:translateY(-1px)}
  .cst-panel-cta:hover::after{transform:translateX(4px)}
  .cst-panel-n button:hover{color:#fff}
}
@media (prefers-reduced-motion:no-preference){
  .cst-panel{animation:cstIn .5s var(--cst-ease) backwards}
}
@keyframes cstIn{from{opacity:0;transform:translateX(18px)}}

/* ── Rangée des domaines (clavier et lecteurs d'écran : chaque étoile est un bouton) ── */
.cst-keys{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:16px}
.cst-key{--c:#a78bfa;display:inline-flex;align-items:center;gap:9px;min-height:40px;padding:8px 15px 8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(12,12,16,.74);color:rgba(255,255,255,.88);font:500 13px/1.2 var(--cst-title);cursor:pointer;transition:border-color .3s,color .3s,box-shadow .3s,background .3s}
.cst-key-dot{width:8px;height:8px;border-radius:50%;background:var(--c);box-shadow:0 0 10px var(--c);flex-shrink:0}
.cst-key.is-on{border-color:var(--c);color:#fff;background:rgba(255,255,255,.04);box-shadow:0 0 24px -8px var(--c)}
@media (hover:hover){.cst-key:hover{border-color:var(--c);color:#fff}}
.cst-hint{margin:12px 0 0;text-align:center;font:400 14px/1.5 var(--cst-body);color:rgba(255,255,255,.8)}

/* ── Téléphone et tablette ── */
@media (max-width:759px){
  .cst-stage{aspect-ratio:1/1.12;max-height:76vh;min-height:360px;border-radius:16px}
  .cst-hud-tl{top:12px;left:12px}.cst-hud-tr{top:12px;right:12px}.cst-hud-bl{bottom:12px;left:12px}.cst-hud-br{bottom:12px;right:12px}
  .cst-hud-b{padding:6px 8px 7px}
  .cst-hud-k{font-size:9px}.cst-hud-v{font-size:11px}
  .cst-c{width:14px;height:14px}
  .cst-c1,.cst-c2{top:8px}.cst-c3,.cst-c4{bottom:8px}.cst-c1,.cst-c3{left:8px}.cst-c2,.cst-c4{right:8px}
  .cst-stage.is-open .cst-hud-bl,.cst-stage.is-open .cst-hud-br,.cst-stage.is-open .cst-c3,.cst-stage.is-open .cst-c4{display:none}
  .cst-panel{top:auto;left:0;right:0;bottom:0;width:auto;max-height:62%;border-radius:16px 16px 0 0;border-bottom:0}
  .cst-panel::before{left:12%;right:12%;top:-1px;bottom:auto;width:auto;height:1px;background:linear-gradient(90deg,transparent,var(--c),transparent)}
  .cst-panel-in{padding:16px 18px 18px;gap:10px}
  .cst-panel-t{font-size:22px}
  .cst-panel-lead{font-size:16.5px}
  .cst-panel-pts li{font-size:16px}
  .cst-key{font-size:12.5px;padding:7px 13px 7px 10px;min-height:38px}
  .cst-hint{font-size:14px}
  @keyframes cstIn{from{opacity:0;transform:translateY(18px)}}
}
@media (max-width:380px){
  .cst-hud-tr{display:none}
  .cst-keys{gap:6px}
}
@media (prefers-reduced-motion:reduce){
  .cst-panel,.cst-panel-cta,.cst-key,.cst-close{animation:none;transition:none}
}
