/* Recruiting dashboard — the M.E.J. design system: Archivo + Plex Mono, ink on paper, one red (#ED362F). */
@font-face { font-family: 'Archivo'; src: url('../assets/Archivo-VF.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../assets/PlexMono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../assets/PlexMono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --red: #ED362F; --red-soft: rgba(237,54,47,.1);
  --ink: #0B0B0C; --paper: #FFFFFF; --bg: #F3F3F0; --line: rgba(11,11,12,.08); --line-2: rgba(11,11,12,.14);
  --muted: #6B6B6E; --shell: rgba(11,11,12,.035);
  --display: 'Archivo', ui-sans-serif, system-ui, sans-serif; --mono: 'Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --out: cubic-bezier(.22,1,.36,1); --spring: cubic-bezier(.32,.72,0,1);
  --r: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 450 15px/1.5 var(--display); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons: pill + nested icon */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 20px; min-height: 48px; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; text-decoration: none; transition: transform .5s var(--spring), background .3s var(--out), opacity .3s; }
.btn:active { transform: scale(.98); }
.btn__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-style: normal; transition: transform .5s var(--spring); }
.btn:hover .btn__icon { transform: translateX(3px) scale(1.05); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink .btn__icon { background: var(--red); color: #fff; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(237,54,47,.6); }
.btn--red .btn__icon { background: rgba(255,255,255,.18); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13.5px; font-weight: 550; text-decoration: none; transition: background .3s var(--out), color .3s var(--out), transform .4s var(--spring); }
.chip-btn:hover { background: var(--ink); color: #fff; }
.chip-btn:active { transform: scale(.97); }
.chip-btn--danger:hover { background: var(--red); }

/* the double bezel */
.shell { padding: 6px; border-radius: calc(var(--r) + 6px); background: var(--shell); box-shadow: inset 0 0 0 1px var(--line); }
.core { border-radius: var(--r); background: var(--paper); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(11,11,12,.04), 0 24px 48px -32px rgba(11,11,12,.18); }

/* fields */
.field { display: grid; gap: 7px; }
.field > span { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.input { width: 100%; min-height: 50px; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s var(--out), background .3s var(--out); }
.input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }

/* ================================================================ login */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.login::before { content: ''; position: absolute; inset: auto -20% -55% -20%; height: 90%; background: radial-gradient(closest-side, rgba(237,54,47,.13), transparent); pointer-events: none; }
.login__card { width: min(440px, 100%); position: relative; animation: rise 1s var(--out) both; }
.login__core { padding: 36px 32px 30px; display: grid; gap: 22px; }
.login__brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login__brand img { height: 40px; width: auto; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(237,54,47,.5); animation: pulse 2.4s var(--out) infinite; flex: none; }
.login h1 { margin: 6px 0 0; font-size: clamp(30px, 6vw, 38px); line-height: 1.02; letter-spacing: -.035em; font-weight: 750; font-stretch: 92%; text-wrap: balance; }
.login h1 em { font-style: normal; color: var(--red); }
.login form { display: grid; gap: 14px; }
.login .btn { justify-self: start; margin-top: 4px; }
.note { min-height: 1.4em; margin: 0; font-size: 13.5px; }
.note.is-error { color: var(--red); font-weight: 550; }
.login__foot { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ================================================================ app */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; justify-content: center; padding: 14px 16px 0; pointer-events: none; }
.top__pill { pointer-events: auto; display: flex; align-items: center; gap: 14px; width: min(1320px, 100%); padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 32px -20px rgba(11,11,12,.25); }
.top__logo { height: 30px; width: auto; display: block; }
.top__sep { width: 1px; height: 22px; background: var(--line-2); }
.top__title { font-weight: 650; font-size: 14px; letter-spacing: -.01em; }
.top__sync { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.top__user { color: var(--muted); }

.page { width: min(1320px, 100%); margin: 0 auto; padding: 40px 16px 120px; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; margin-bottom: 28px; animation: rise .9s var(--out) both; }
.head h1 { margin: 10px 0 0; font-size: clamp(38px, 6vw, 72px); line-height: .95; letter-spacing: -.045em; font-weight: 760; font-stretch: 90%; }
.head h1 em { font-style: normal; color: var(--red); }
.stats { display: flex; flex-wrap: wrap; gap: 8px; }
.stat { min-width: 128px; padding: 14px 18px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.stat b { display: block; font-size: 28px; line-height: 1.05; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 18px; border-radius: 16px; background: var(--red-soft); color: #8E1C17; font-size: 14px; }
.banner b { color: var(--ink); }

/* sector tabs */
.sectors { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.sector { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border: 0; border-radius: 999px; background: transparent;
  font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .4s var(--out), color .4s var(--out); }
.sector:hover { background: rgba(255,255,255,.7); }
.sector[aria-selected="true"] { background: var(--ink); color: #fff; }
.sector .count { min-width: 24px; padding: 2px 7px; border-radius: 999px; background: var(--shell); font-family: var(--mono); font-size: 11.5px; text-align: center; }
.sector[aria-selected="true"] .count { background: var(--red); color: #fff; }

.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 22px; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search .input { padding-left: 44px; background: var(--paper); border-radius: 999px; min-height: 46px; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 1.4; }
.select { appearance: none; min-height: 46px; padding: 0 40px 0 18px; border: 0; border-radius: 999px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230B0B0C' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 16px center;
  box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 550; }

/* list */
.list { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 76px minmax(0, 1.5fr) minmax(0, 2.2fr) auto; gap: 22px; align-items: center; width: 100%; padding: 16px 22px 16px 16px; border: 0;
  border-radius: var(--r); background: var(--paper); text-align: left; box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .6s var(--spring), box-shadow .4s var(--out); animation: rise .8s var(--out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.row:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-2), 0 22px 40px -28px rgba(11,11,12,.3); }
.row.is-new { box-shadow: inset 0 0 0 1.5px var(--red); }
.row__who { min-width: 0; }
.row__name { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 680; letter-spacing: -.02em; line-height: 1.2; }
.row__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; }
.row__sum { min-width: 0; color: #2A2A2D; font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row__sum .warn { color: #8E1C17; font-weight: 600; }
.row__side { display: grid; justify-items: end; gap: 8px; }
.new-flag { padding: 3px 8px; border-radius: 6px; background: var(--red); color: #fff; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; flex: none; }

/* score ring */
.score { --p: 0; position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--red) calc(var(--p) * 1%), rgba(11,11,12,.07) 0); transition: --p 1s var(--out); }
.score::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--paper); }
.score b { position: relative; font-size: 22px; font-weight: 750; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.score small { position: relative; display: block; font-family: var(--mono); font-size: 9.5px; color: var(--muted); text-align: center; margin-top: 2px; }
.score--big { width: 108px; height: 108px; }
.score--big::before { inset: 8px; }
.score--big b { font-size: 40px; }
.score--big small { font-size: 11px; }
.score.is-pending { background: conic-gradient(var(--red) 0 22%, rgba(11,11,12,.07) 0); animation: spin 1.1s linear infinite; }
.score.is-pending b, .score.is-pending small { animation: spin 1.1s linear infinite reverse; }
.score.is-off { background: rgba(11,11,12,.07); }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }

/* statuses */
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--shell); box-shadow: inset 0 0 0 1px var(--line); }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }
.status--nouvelle { color: var(--ink); }
.status--nouvelle::before { background: var(--red); opacity: 1; }
.status--a-contacter { background: #FFF4E5; color: #8A4B00; box-shadow: none; }
.status--entrevue { background: #E9F0FF; color: #1D3F8F; box-shadow: none; }
.status--retenue { background: var(--ink); color: #fff; box-shadow: none; }
.status--retenue::before { background: var(--red); opacity: 1; }
.status--refusee { color: var(--muted); }

/* empty / loading */
.empty { padding: 72px 24px; text-align: center; border-radius: var(--r); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.empty h2 { margin: 18px 0 6px; font-size: 24px; letter-spacing: -.02em; }
.empty p { margin: 0 auto; max-width: 46ch; color: var(--muted); }
.empty img { width: 52px; opacity: .9; }
.skel { height: 96px; border-radius: var(--r); background: linear-gradient(90deg, #fff 30%, #F7F7F5 50%, #fff 70%) 0 0 / 300% 100%; box-shadow: inset 0 0 0 1px var(--line); animation: shimmer 1.6s linear infinite; }

/* ================================================================ detail panel */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(11,11,12,.32); opacity: 0; transition: opacity .5s var(--out); }
.scrim.is-on { opacity: 1; }
.panel { position: fixed; z-index: 31; top: 0; right: 0; bottom: 0; width: min(760px, 100%); display: flex; flex-direction: column;
  background: var(--bg); box-shadow: -30px 0 80px -40px rgba(11,11,12,.45); transform: translateX(104%); transition: transform .7s var(--spring); }
.panel.is-on { transform: none; }
.panel__bar { display: flex; align-items: center; gap: 10px; padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 14px; border-bottom: 1px solid var(--line); background: rgba(243,243,240,.9); }
.panel__bar .mono { color: var(--muted); }
.panel__close { margin-left: auto; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; transition: transform .5s var(--spring), background .3s; }
.panel__close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.panel__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 26px 22px calc(60px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; align-content: start; }

.hero { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 26px; }
.hero h2 { margin: 0; font-size: clamp(28px, 4.5vw, 40px); line-height: 1; letter-spacing: -.04em; font-weight: 760; font-stretch: 92%; overflow-wrap: anywhere; }
.hero__sub { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 14px; }
.hero__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.verdict { grid-column: 1 / -1; padding: 16px 18px; border-radius: 16px; background: var(--bg); font-size: 15px; line-height: 1.55; }
.verdict p { margin: 0; }
.verdict p + p { margin-top: 8px; }
.flag { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 12px; border-radius: 10px; background: var(--red-soft); color: #8E1C17; font-size: 13.5px; font-weight: 600; }

.card { padding: 22px 24px; }
.card h3 { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card h3::before { content: ''; width: 14px; height: 1.5px; background: var(--red); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.bullets li { position: relative; padding-left: 20px; line-height: 1.45; }
.bullets li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 1.5px; background: var(--ink); }
.bullets--plus li::before { background: var(--red); height: 2px; }
.bullets--check li::before { content: '?'; top: 0; width: auto; height: auto; background: none; font-family: var(--mono); font-weight: 500; color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 6px 11px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 550; }
.chips--strong span { background: var(--ink); color: #fff; }
.none { color: var(--muted); font-size: 14px; }
.timeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 132px 1fr; gap: 14px; }
.timeline .mono { color: var(--muted); padding-top: 2px; }
.timeline b { display: block; font-weight: 650; }
.timeline span { color: var(--muted); font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-weight: 550; overflow-wrap: anywhere; }
.facts .wide { grid-column: 1 / -1; }
.qs { margin: 0; padding: 0; list-style: none; counter-reset: q; display: grid; gap: 10px; }
.qs li { counter-increment: q; display: grid; grid-template-columns: 28px 1fr; gap: 8px; line-height: 1.45; }
.qs li::before { content: counter(q, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--red); padding-top: 2px; }
.cv-frame { width: 100%; height: min(78vh, 900px); border: 0; border-radius: 14px; background: var(--bg); }
.cv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.follow { display: grid; gap: 14px; }
.follow__status { display: flex; flex-wrap: wrap; gap: 6px; }
.follow__status button { border: 0; }
.follow__status button[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.saved { font-size: 12.5px; color: var(--muted); min-height: 1.3em; }
.ai-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; padding: 0 6px; }
.confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--red-soft); }
.confirm p { margin: 0; flex: 1 1 220px; font-size: 14px; color: #8E1C17; font-weight: 550; }
.ia-wait { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 550;
  box-shadow: 0 18px 40px -18px rgba(11,11,12,.6); animation: rise .6s var(--out) both; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(237,54,47,.5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(237,54,47,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -300% 0; } }

@media (max-width: 960px) {
  .row { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .row__sum { grid-column: 2 / -1; grid-row: 2; }
  .score:not(.score--big) { width: 56px; height: 56px; }
}
@media (max-width: 640px) {
  .top__pill { padding-left: 14px; gap: 10px; }
  .top__title, .top__sep, .top__user, .top__sync .label { display: none; }
  .page { padding-top: 28px; }
  .row { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .row__sum { grid-column: 1 / -1; }
  .row__side { grid-column: 1 / -1; grid-row: 3; justify-items: start; grid-auto-flow: column; justify-content: start; }
  .cols, .facts { grid-template-columns: 1fr; }
  .hero { padding: 20px; grid-template-columns: 1fr; }
  .hero .score { justify-self: start; grid-row: 1; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .panel__body { padding-inline: 12px; }
  .card { padding: 18px; }
  .stat { min-width: 0; flex: 1 1 40%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.cols > .shell { display: grid; }
