/* Jobmind V3 « Verre & Aurore » — tokens, verre liquide et primitives partagées.
   Layout : fond profond + aurores, verre réservé aux éléments flottants, cartes pleines pour lire. */
:root {
  --bg: #f1f5f7;
  --bg-2: #e6edf1;
  --surface: #ffffff;
  --surface-2: #f6f9fa;
  --fg: #0d1a24;
  --muted: #566775;
  --line: rgba(13, 26, 36, 0.09);
  --primary: #1b6c79;
  --primary-ink: #ffffff;
  --accent: #6e48d8;
  --glow-1: rgba(27, 140, 160, 0.28);
  --glow-2: rgba(110, 72, 216, 0.2);
  --good: #1d8560;
  --warn: #a8701a;
  --bad: #bf4038;
  --glass-hi: rgba(255, 255, 255, 0.66);
  --glass-lo: rgba(255, 255, 255, 0.3);
  --glass-rim: rgba(255, 255, 255, 0.85);
  --glass-edge: rgba(13, 26, 36, 0.09);
  --glass-spec: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 12px 32px -14px rgba(16, 44, 64, 0.32), 0 2px 6px rgba(16, 44, 64, 0.06);
  --card-shadow: 0 1px 2px rgba(16, 44, 64, 0.05), 0 12px 32px -18px rgba(16, 44, 64, 0.25);
  --grid-line: rgba(13, 26, 36, 0.045);
  --font-display: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.3, 1.5, 0.5, 1);
  --radius: 22px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05090f; --bg-2: #0a111a; --surface: #0d1520; --surface-2: #121b27; --fg: #e9f0f5; --muted: #8b9aa7;
    --line: rgba(233, 240, 245, 0.08); --primary: #5cc8d2; --primary-ink: #03121a; --accent: #a58cff;
    --glow-1: rgba(70, 190, 210, 0.3); --glow-2: rgba(140, 100, 255, 0.28);
    --good: #4cc795; --warn: #e3ac52; --bad: #f07a70;
    --glass-hi: rgba(255, 255, 255, 0.11); --glass-lo: rgba(255, 255, 255, 0.03); --glass-rim: rgba(255, 255, 255, 0.24);
    --glass-edge: rgba(255, 255, 255, 0.07); --glass-spec: rgba(255, 255, 255, 0.38);
    --glass-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.3);
    --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -22px rgba(0, 0, 0, 0.9);
    --grid-line: rgba(233, 240, 245, 0.035);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #05090f; --bg-2: #0a111a; --surface: #0d1520; --surface-2: #121b27; --fg: #e9f0f5; --muted: #8b9aa7;
  --line: rgba(233, 240, 245, 0.08); --primary: #5cc8d2; --primary-ink: #03121a; --accent: #a58cff;
  --glow-1: rgba(70, 190, 210, 0.3); --glow-2: rgba(140, 100, 255, 0.28);
  --good: #4cc795; --warn: #e3ac52; --bad: #f07a70;
  --glass-hi: rgba(255, 255, 255, 0.11); --glass-lo: rgba(255, 255, 255, 0.03); --glass-rim: rgba(255, 255, 255, 0.24);
  --glass-edge: rgba(255, 255, 255, 0.07); --glass-spec: rgba(255, 255, 255, 0.38);
  --glass-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.3);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  --grid-line: rgba(233, 240, 245, 0.035);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg);
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 10px; }
::selection { background: color-mix(in oklab, var(--primary) 30%, transparent); }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--primary);
  display: inline-flex; align-items: center; gap: 8px;
}
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.tabular { font-variant-numeric: tabular-nums; }
.demo-tag {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; text-transform: none;
  padding: 3px 8px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted);
}

/* ---------- Surfaces sobres ----------
   Le verre liquide est réservé à la nav (.nimbus-nav). Partout ailleurs, `.glass` n'est plus
   qu'une surface pleine bordée d'un filet : le contenu prime, rien ne brille. */
.glass {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
}

/* ---------- Boutons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; text-decoration: none;
  white-space: nowrap; transition: transform 0.35s var(--spring), box-shadow 0.35s var(--ease), background 0.3s, color 0.2s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn .brand-logo { width: auto; height: 20px; color: currentColor; }
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-sm { --h: 36px; padding: 0 15px; font-size: 13px; }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 15.5px; }
/* Secondaire : contour fin. Principal : aplat d'encre, sans reflet ni dégradé. */
.btn-glass { color: var(--fg); background: transparent; }
.btn-glass:hover { border-color: color-mix(in oklab, var(--fg) 28%, transparent); }
.btn-liquid { color: var(--bg); background: var(--fg); border: 1px solid var(--fg); }
.btn-liquid:hover { background: color-mix(in oklab, var(--fg) 86%, var(--bg)); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--fg); background: var(--line); }
.icon-btn { width: 42px; height: 42px; padding: 0; border-radius: 999px; display: grid; place-items: center; cursor: pointer; border: 0; }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Bascule de thème « goutte » ---------- */
.lg-toggle {
  position: relative; width: 66px; height: 36px; padding: 0; border-radius: 999px; cursor: pointer; flex: none;
  display: inline-flex; align-items: center; justify-content: space-between; padding-inline: 10px; color: var(--muted);
}
.lg-toggle .ic-w { width: 15px !important; height: 15px !important; position: relative; z-index: 1; transition: color 0.3s; }
.lg-toggle .drop {
  position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 999px; z-index: 0;
  background: var(--fg); transition: transform 0.4s var(--ease);
}
.lg-toggle[aria-checked="true"] .drop { transform: translateX(30px); }
.lg-toggle[aria-checked="false"] .i-sun, .lg-toggle[aria-checked="true"] .i-moon { color: var(--bg); }

/* ---------- Segmented glass ---------- */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; gap: 2px; position: relative; }
.seg button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer; height: 34px; padding: 0 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted); transition: color 0.25s; display: inline-flex; align-items: center; gap: 6px;
}
.seg button[aria-pressed="true"] { color: var(--bg); }
.seg .seg-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; z-index: 0;
  background: var(--fg);
  transition: transform 0.5s var(--spring), width 0.5s var(--spring);
}

/* ---------- Cartes ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow);
  position: relative; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
/* survol discret : seul le filet se renforce */
.spot:hover { border-color: color-mix(in oklab, var(--fg) 22%, transparent); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap;
}
.chip svg { width: 13px; height: 13px; }
.logo-dot { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 600; font-family: var(--font-display); font-size: 15px; flex: none; }

/* ---------- Anneau de score ---------- */
.ring { --size: 52px; --stroke: 4.5px; width: var(--size); height: var(--size); position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: var(--stroke); }
.ring .track { stroke: var(--line); }
.ring .bar { stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.ring[data-tone="high"] .bar { stroke: var(--primary); }
.ring[data-tone="mid"] .bar { stroke: var(--accent); }
.ring[data-tone="low"] .bar { stroke: var(--muted); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: calc(var(--size) * 0.3); font-variant-numeric: tabular-nums; }

/* ---------- Barre de critère ---------- */
.meter { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; font-size: 13.5px; }
.meter .track { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter .fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), color-mix(in oklab, var(--primary) 60%, var(--accent))); transform-origin: left; transition: transform 1s var(--ease); }

.toast {
  position: fixed; left: 50%; bottom: calc(168px + env(safe-area-inset-bottom, 0px)); z-index: 80; transform: translate(-50%, 20px);
  padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 500; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.5s var(--spring); max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Nav liquide (port de « Liquid Glass Navbar », gughigug) ---------- */
.nimbus-nav { --n-tint: rgba(255, 255, 255, 0.34); --n-fg: #0b132b; --n-fg-soft: rgba(11, 19, 43, 0.62); --n-rim: rgba(255, 255, 255, 0.8);
  position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px; isolation: isolate;
  font-family: var(--font-body); user-select: none; -webkit-tap-highlight-color: transparent; }
.nimbus-nav[data-tone="dark"] { --n-tint: rgba(14, 22, 40, 0.42); --n-fg: #f1f7ff; --n-fg-soft: rgba(241, 247, 255, 0.66); --n-rim: rgba(255, 255, 255, 0.3); }
.nimbus-glass { position: absolute; inset: 0; border-radius: inherit; z-index: -2; overflow: hidden; background: var(--n-tint);
  -webkit-backdrop-filter: blur(12px) saturate(1.4) brightness(1.06); backdrop-filter: blur(12px) saturate(1.4) brightness(1.06);
  box-shadow: inset 0 1px 1px var(--n-rim), inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 14px 34px -14px rgba(0, 30, 70, 0.55), 0 2px 6px rgba(0, 30, 70, 0.12); }
.nimbus-nav[data-refract="on"] .nimbus-glass { -webkit-backdrop-filter: url(#lg-refract) blur(3px) saturate(1.4) brightness(1.06); backdrop-filter: url(#lg-refract) blur(3px) saturate(1.4) brightness(1.06); }
.nimbus-water { position: absolute; left: -14px; top: -14px; z-index: -1; pointer-events: none; }
.nimbus-nav[data-gl="off"] .nimbus-water { display: none; }
.nimbus-drop { display: none; position: absolute; top: 6px; bottom: 6px; left: 0; border-radius: 999px; z-index: -1; pointer-events: none; will-change: transform, width;
  background: radial-gradient(120% 140% at 30% 0%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 55%), rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.95), inset 0 -2px 6px rgba(0, 162, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 6px 16px -6px rgba(0, 70, 140, 0.45); }
.nimbus-nav[data-gl="off"] .nimbus-drop { display: block; }
.nimbus-item { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 999px;
  background: none; color: var(--n-fg-soft); font-family: inherit; font-weight: 500; font-size: 14px; line-height: 1; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: color 0.25s; }
.nimbus-item:hover, .nimbus-item[aria-current="page"] { color: var(--n-fg); }
.nimbus-item:focus-visible { outline: 2px solid #00a2ff; outline-offset: 2px; }
.nv-ico { position: relative; display: inline-flex; flex: none; }
.nv-ico svg { width: 18px; height: 18px; transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.nimbus-item[aria-current="page"] .nv-ico svg { transform: translateY(-1px) scale(1.08); }
.nv-door { fill: transparent; }
.nv-ico[data-fx="pop"] svg { animation: nvPop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes nvPop { 0% { transform: scale(0.72); } 60% { transform: scale(1.2); } 100% { transform: translateY(-1px) scale(1.08); } }
.nv-ico[data-fx="drop"] svg { animation: nvDrop 0.95s cubic-bezier(0.4, 0, 0.3, 1) both; transform-origin: 50% 100%; }
@keyframes nvDrop { 0% { transform: translateY(-1px); } 26% { transform: translateY(-13px) scale(0.88, 1.12); } 46% { transform: translateY(3px) scale(1.3, 0.68); } 62% { transform: translateY(-3px) scale(0.92, 1.08); } 80% { transform: translateY(0) scale(1.04, 0.97); } 100% { transform: translateY(-1px) scale(1.08); } }
.nv-ico[data-fx="spin"] svg { animation: nvSpin 1s cubic-bezier(0.2, 0.75, 0.25, 1) both; }
@keyframes nvSpin { 0% { transform: perspective(80px) rotateY(0); } 100% { transform: perspective(80px) rotateY(360deg) translateY(-1px) scale(1.08); } }
.nv-ico[data-fx="glow"] svg { animation: nvHop 0.8s cubic-bezier(0.3, 1.4, 0.5, 1) both; transform-origin: 50% 100%; }
@keyframes nvHop { 0% { transform: none; } 30% { transform: translateY(-5px) scale(1.04, 0.96); } 55% { transform: translateY(0) scale(1.12, 0.88); } 75% { transform: translateY(-2px) scale(0.98, 1.04); } 100% { transform: translateY(-1px) scale(1.08); } }
.nv-ico[data-fx="glow"] .nv-door { animation: nvDoor 1.3s ease both; }
@keyframes nvDoor { 0% { fill: transparent; } 30% { fill: #fff3a8; } 100% { fill: rgba(126, 232, 255, 0.6); } }
.nv-ico[data-fx="wave"] svg { animation: nvWave 0.9s ease-in-out both; transform-origin: 50% 92%; }
@keyframes nvWave { 0% { transform: none; } 20% { transform: rotate(-15deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } 100% { transform: translateY(-1px) scale(1.08); } }
/* Coach : pastille-orbe animée dans la nav */
.nv-orb { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(from 0deg, #9c43fe, #4cc2e9, #101499, #9c43fe);
  -webkit-mask: radial-gradient(circle, transparent 42%, #000 46%); mask: radial-gradient(circle, transparent 42%, #000 46%); animation: orbSpin 4s linear infinite; }
@keyframes orbSpin { to { transform: rotate(360deg); } }
.nimbus-nav[data-compact="true"] .nimbus-item { padding: 0 13px; }
.nimbus-nav[data-compact="true"] .nimbus-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) {
  .nimbus-nav:not([data-compact="false"]) .nimbus-item { padding: 0 13px; }
  .nimbus-nav:not([data-compact="false"]) .nimbus-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
