/* ===== PAGE DEDIEE COMPETENCES — ESPACE PROFOND ETOILE ===== */
/* Fond spatial bleu nuit / bleu-violet sombre, zero halo jaune, chrome B. + vrais logos SVG. */

html.skills-html,
html:has(body.skills-page) {
  --bg-rgb: 4 6 18;
  --bg-elevated-rgb: 12 16 40;
  --bg: #040612;
  --bg-elevated: #0c1028;
  background-color: #040612 !important;
  background:
    radial-gradient(ellipse 110% 80% at 50% 45%, #0c1028 0%, #060816 55%, #03040a 100%) fixed !important;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
}

body.skills-page {
  --bg-rgb: 4 6 18;
  --bg-elevated-rgb: 12 16 40;
  --bg: #040612;
  --bg-elevated: #0c1028;
  min-height: 100dvh;
  background-color: #040612 !important;
  background:
    radial-gradient(ellipse 110% 80% at 50% 45%, #0c1028 0%, #060816 55%, #03040a 100%) fixed !important;
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
}

body.skills-page::before {
  content: "";
  position: fixed;
  inset: -100vh -50vw;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 110% 80% at 50% 45%, #0c1028 0%, #060816 55%, #03040a 100%);
}

body.skills-page ::selection {
  background: rgba(124, 154, 255, 0.32);
  color: #f4f7ff;
}

body.skills-page .scroll-progress {
  background: rgba(142, 168, 255, 0.45);
}

body.skills-page .case-skip-link:not(:focus) {
  opacity: 0;
  pointer-events: none;
}

body.skills-page .case-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  pointer-events: none;
}

body.skills-page .case-nav__inner a,
body.skills-page .case-nav__inner button {
  pointer-events: auto;
}

.skills-shell {
  width: 100%;
  padding-top: 0;
  position: relative;
  z-index: 2;
}

.skills-studio {
  display: flex;
  flex-direction: column;
}

/* Full-bleed edge-to-edge 3D deep-space stage extending seamlessly behind the transparent top nav */
.skills-stage-full {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 580px;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
  background: transparent;
}

.skills-stage-full:active {
  cursor: grabbing;
}

.stage-editorial-title {
  position: absolute;
  top: calc(var(--nav-height, 64px) + 12px);
  left: clamp(20px, 4vw, 56px);
  z-index: 7;
  max-width: 34ch;
  pointer-events: none;
}

.stage-editorial-title h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.45rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
}

.stage-editorial-title p {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #a4acc4;
}

.skills-three-canvas,
.skills-ring-canvas,
.skills-nodes-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.skills-three-canvas {
  z-index: 2;
  pointer-events: none;
}

.skills-ring-canvas {
  z-index: 3;
  pointer-events: none;
}

.skills-nodes-layer {
  z-index: 4;
  pointer-events: none;
}

/* Crisp dark space logo chips — zero neon/yellow halos */
.orbit-hub,
.orbit-tool {
  position: absolute;
  top: 0;
  left: 0;
  padding: 2px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  transition: opacity 0.25s ease;
  will-change: transform;
}

.orbit-hub-chip {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(9, 12, 26, 0.94);
  border: 1px solid rgba(188, 202, 255, 0.28);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s var(--ease-out), border-color 0.18s ease, background 0.18s ease;
}

.orbit-hub-chip img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.orbit-hub:hover .orbit-hub-chip,
.orbit-hub.is-hovered .orbit-hub-chip,
.orbit-hub.is-selected .orbit-hub-chip {
  transform: scale(1.1);
  border-color: rgba(236, 242, 255, 0.9);
  background: rgba(18, 24, 52, 0.96);
}

.orbit-tool-chip {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(8, 11, 24, 0.92);
  border: 1px solid rgba(180, 196, 255, 0.16);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s var(--ease-out), border-color 0.16s ease, background 0.16s ease;
}

.orbit-tool-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.orbit-tool:hover .orbit-tool-chip,
.orbit-tool:focus-visible .orbit-tool-chip,
.orbit-tool.is-selected .orbit-tool-chip {
  transform: scale(1.16);
  border-color: rgba(240, 244, 255, 0.9);
  background: rgba(20, 27, 58, 0.98);
}

/* Ephemeral hover tooltip */
.orbit-tooltip {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 12;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 12px;
  background: rgba(5, 7, 17, 0.94);
  border-bottom: 1.5px solid #9db4ff;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.orbit-tooltip strong {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.orbit-tooltip span {
  font-size: 0.74rem;
  color: #9ba5c4;
}

/* Quiet editorial margin note bottom-right */
.margin-note {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: 72px;
  z-index: 9;
  width: min(350px, calc(100vw - 40px));
  padding: 16px 18px;
  background: rgba(7, 10, 22, 0.88);
  backdrop-filter: blur(14px);
  border-left: 2px solid #9db4ff;
}

.margin-note-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.margin-note-id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.margin-note-id img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.margin-note-id h2 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.15;
}

.margin-note-id p {
  font-size: 0.78rem;
  color: #9ba5c4;
  margin-top: 2px;
}

.margin-note-close {
  font-size: 0.78rem;
  color: #9ba5c4;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 2px 4px;
}

.margin-note-close:hover {
  color: var(--text);
}

.margin-note-desc {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #d6dcf0;
}

.margin-note-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.margin-note-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c7d5ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.margin-note-links a:hover {
  color: #ffffff;
}

/* Bottom typographic controls */
.stage-bottom-bar {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(16px, 2.4vw, 26px);
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}

.stage-domain-links,
.view-switch-link {
  pointer-events: auto;
}

.stage-domain-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 26px);
}

.domain-link {
  padding: 4px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #8f98b8;
  border-bottom: 1.5px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.domain-link:hover,
.domain-link:focus-visible {
  color: var(--text);
}

.domain-link.is-active {
  color: var(--text);
  border-bottom-color: #c7d5ff;
}

.view-switch-link {
  padding: 4px 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: #b7c1df;
  border-bottom: 1px solid rgba(183, 193, 223, 0.3);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.view-switch-link:hover,
.view-switch-link:focus-visible {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Ledger View (Index complet) */
.skills-ledger-view {
  width: min(1160px, calc(100% - 2 * clamp(20px, 4vw, 56px)));
  margin: 0 auto;
  padding: calc(var(--nav-height, 64px) + clamp(24px, 3vw, 48px)) 0 40px;
}

.ledger-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(180, 196, 255, 0.12);
}

.ledger-top h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.ledger-top p {
  margin-top: 6px;
  color: #a4acc4;
  font-size: 0.95rem;
}

.ledger-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.ledger-groups {
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-top: 36px;
}

.ledger-group-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.ledger-group-title img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  align-self: center;
}

.ledger-group-title h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.ledger-group-title span {
  font-size: 0.88rem;
  color: #8f98b8;
}

.ledger-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(180, 196, 255, 0.12);
}

.ledger-row {
  border-bottom: 1px solid rgba(180, 196, 255, 0.12);
}

.ledger-row-btn {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(160px, 230px) 1fr;
  gap: 16px;
  align-items: center;
  padding: 15px 6px;
  text-align: left;
  transition: background 0.16s ease;
}

.ledger-row-btn:hover,
.ledger-row-btn:focus-visible {
  background: rgba(157, 180, 255, 0.05);
}

.ledger-tool-id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ledger-tool-id img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.ledger-tool-id strong {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
}

.ledger-tool-role {
  font-size: 0.84rem;
  color: #a9beff;
}

.ledger-tool-detail {
  font-size: 0.88rem;
  color: #b8c1db;
  line-height: 1.5;
}

/* Soft skills & languages quiet ledger */
.skills-notes-ledger {
  border-top: 1px solid rgba(180, 196, 255, 0.12);
  padding: clamp(32px, 5vw, 56px) 0;
}

.notes-ledger-inner {
  width: min(1160px, calc(100% - 2 * clamp(20px, 4vw, 56px)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: clamp(20px, 4vw, 48px);
}

.notes-ledger-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.notes-ledger-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 36px;
  margin: 0;
}

.notes-ledger-row dt {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.notes-ledger-row dd {
  margin: 4px 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #a4acc4;
}

@media (max-width: 820px) {
  .skills-stage-full {
    height: calc(100dvh - 82px);
    min-height: 520px;
  }

  .stage-editorial-title {
    max-width: calc(100% - 40px);
  }

  .margin-note {
    left: 20px;
    right: 20px;
    bottom: 68px;
    width: auto;
  }

  .ledger-row-btn {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 4px;
  }

  .notes-ledger-inner {
    grid-template-columns: 1fr;
  }

  .notes-ledger-list {
    grid-template-columns: 1fr;
  }

  .orbit-hub-chip {
    width: 42px;
    height: 42px;
  }

  .orbit-hub-chip img {
    width: 21px;
    height: 21px;
  }

  .orbit-tool-chip {
    width: 34px;
    height: 34px;
  }

  .orbit-tool-chip img {
    width: 18px;
    height: 18px;
  }
}
