/* ════════════════════════════════════════════════════════════════════════
   Spotlite Recruteur · couche VISUELLE (refonte du 2026-10-08)

   Chargée APRÈS style.css, qu'elle prolonge : mêmes tokens (--panel, --line,
   --brand…), donc le thème sombre suit sans rien redéfinir. Intention : un
   outil qui montre des visages, des offres et des preuves plutôt que des
   lignes de texte. Grandes cartes blanches, titres francs, pieds de carte
   cliquables, couleur réservée à ce qui compte (la semaine, les étapes).
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --card-shadow: 0 1px 2px rgba(16,20,40,.04), 0 6px 22px -8px rgba(16,20,40,.10);
  --card-shadow-hover: 0 2px 4px rgba(16,20,40,.05), 0 16px 36px -12px rgba(16,20,40,.18);
  --radius-xl: 20px;
  --week-a: #3466f6;
  --week-b: #6b4dff;
  --s-new: #4f7cff; --s-short: #8b5cf6; --s-iv: #f59e0b; --s-pres: #10a37f; --s-hired: #e8467c; --s-rej: #98a1b0;
}
:root[data-theme="dark"] { --card-shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -12px rgba(0,0,0,.6); --card-shadow-hover: 0 18px 40px -14px rgba(0,0,0,.7); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --card-shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -12px rgba(0,0,0,.6); --card-shadow-hover: 0 18px 40px -14px rgba(0,0,0,.7); }
}

/* Fond plus calme : l'œil va aux cartes, pas au décor. */
.app-view { background: var(--bg); }
/* Pleine fenêtre (2026-10-08, demande de Javi) : le plafond de 1 240 px
   (style.css) laissait un tiers d'écran vide sur un grand moniteur. */
.content { max-width: none; min-width: 0; }

/* ── Barre latérale : groupes par intention ─────────────────────────────── */
.brand-tag {
  margin-left: .1rem; font-size: .66rem; font-weight: 700; letter-spacing: .02em;
  padding: .14rem .45rem; border-radius: 999px; background: var(--brand-wash); color: var(--brand);
}
.nav-group {
  font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); opacity: .7; padding: .7rem .75rem .2rem;
}
/* Menu serré : les 17 entrées + 4 groupes tiennent sans défiler sur un écran
   d'ordinateur portable (~800 px utiles). */
.nav-item { padding: .4rem .7rem; font-size: .9rem; }
.nav-item svg { width: 18px; height: 18px; }
.sidebar { gap: .7rem; padding-top: 1.1rem; }
.nav-sep { margin: .35rem .3rem; }
.nav-count {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 .4rem; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); font-size: .7rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-item .pro-tag { margin-left: auto; }

/* ── Visages & vignettes ────────────────────────────────────────────────── */
.av {
  --s: 40px; width: var(--s); height: var(--s); flex: 0 0 var(--s); border-radius: 50%;
  overflow: hidden; display: inline-grid; place-items: center; position: relative;
  background: var(--panel-2); box-shadow: 0 0 0 2px var(--panel);
}
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-ini {
  background: linear-gradient(135deg, hsl(var(--h) 85% 88%), hsl(calc(var(--h) + 40) 80% 80%));
  color: hsl(var(--h) 45% 28%); font-weight: 750; font-size: calc(var(--s) * .38); letter-spacing: -.02em;
}
:root[data-theme="dark"] .av-ini { background: linear-gradient(135deg, hsl(var(--h) 45% 32%), hsl(calc(var(--h) + 40) 40% 26%)); color: hsl(var(--h) 80% 86%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .av-ini { background: linear-gradient(135deg, hsl(var(--h) 45% 32%), hsl(calc(var(--h) + 40) 40% 26%)); color: hsl(var(--h) 80% 86%); } }
.av-more { background: var(--panel-2); color: var(--muted); font-size: calc(var(--s) * .36); font-weight: 700; }
.avs { display: inline-flex; align-items: center; }
.avs .av + .av { margin-left: -8px; }

.jt {
  --s: 40px; width: var(--s); height: var(--s); flex: 0 0 var(--s); border-radius: calc(var(--s) * .28);
  display: inline-grid; place-items: center; font-size: calc(var(--s) * .52); line-height: 1;
  background: hsl(var(--h) 90% 93%); box-shadow: inset 0 0 0 1px hsl(var(--h) 60% 85%);
  overflow: hidden;
}
.jt-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
:root[data-theme="dark"] .jt { background: hsl(var(--h) 35% 22%); box-shadow: inset 0 0 0 1px hsl(var(--h) 30% 30%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .jt { background: hsl(var(--h) 35% 22%); box-shadow: inset 0 0 0 1px hsl(var(--h) 30% 30%); } }

.sbar { height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.sbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f8a5c2, #e8467c); }
.sbar.mid i { background: linear-gradient(90deg, #fcd34d, #f59e0b); }
.sbar.lo i { background: linear-gradient(90deg, #cbd5e1, #94a3b8); }

.ring-row { display: flex; align-items: center; gap: .75rem; }
.ring-row > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.ring-row small { color: var(--muted); font-size: .78rem; }
.ring {
  --p: 0; width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%; display: grid; place-items: center; align-content: center;
  background: radial-gradient(closest-side, var(--panel) 76%, transparent 78% 100%), conic-gradient(var(--brand) calc(var(--p) * 1%), var(--panel-2) 0);
}
.ring b { font-size: 1.05rem; line-height: 1; }
.ring small { font-size: .62rem; color: var(--muted); }

.confetti { position: absolute; inset: -14px; pointer-events: none; }
.confetti i { position: absolute; width: 7px; height: 7px; border-radius: 50%; animation: cf-float 3.2s ease-in-out var(--d) infinite; }
@keyframes cf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .confetti i { animation: none; } }

.chip-ic {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600;
  padding: .22rem .55rem; border-radius: 999px; background: var(--panel-2); color: var(--txt);
  border: 1px solid var(--line); text-decoration: none; white-space: nowrap;
}
a.chip-ic:hover { border-color: var(--line-strong); }
.chip-ic.vid { background: rgba(232,70,124,.10); border-color: rgba(232,70,124,.25); color: #c2185b; }
.chip-ic.ok { background: var(--accent-wash); border-color: rgba(16,163,127,.3); color: var(--accent); }
.chip-ic.brand { background: var(--brand-wash); border-color: color-mix(in srgb, var(--brand) 30%, transparent); color: var(--brand); }
:root[data-theme="dark"] .chip-ic.vid { color: #ff8fb4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip-ic.vid { color: #ff8fb4; } }
.chip { background: var(--brand-wash); color: var(--brand); }

.small-btn, .ghost-btn.small { padding: .38rem .7rem; font-size: .82rem; }
.primary-btn.small { padding: .45rem .85rem; font-size: .84rem; }

/* ── ACCUEIL ────────────────────────────────────────────────────────────── */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .2rem 0 1.5rem; }
.hello-date { display: block; color: var(--muted); font-size: .88rem; font-weight: 500; text-transform: capitalize; margin-bottom: .2rem; }
.hello-t { margin: 0; font-size: clamp(1.7rem, 2.6vw, 2.35rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.hello-emo { display: inline-block; transform-origin: 70% 70%; }
.hello-actions { display: flex; gap: .55rem; flex-wrap: wrap; }
/* Le titre de la barre du haut répète « Accueil » : sur l'accueil, la salutation suffit. */
.app-view[data-section="dashboard"] #section-title { visibility: hidden; }

.hb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.hb-col { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.hc {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 1.3rem 1.35rem; box-shadow: var(--card-shadow); display: flex; flex-direction: column; min-width: 0; overflow: hidden;
}
.hc-t { margin: 0 0 1rem; font-size: 1.18rem; font-weight: 760; letter-spacing: -.02em; }
.hc-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.hc-row .hc-t { margin: 0; }
.hc-foot {
  margin: 1.1rem -1.35rem -1.3rem; padding: .9rem 1rem; border: 0; border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-2) 70%, var(--panel)); color: var(--txt);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background .15s var(--ease);
}
.hc-foot:hover { background: var(--panel-2); }
.hc-n { min-width: 22px; height: 20px; padding: 0 .45rem; border-radius: 999px; background: var(--txt); color: var(--panel); font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.dash-skel { color: var(--muted); font-size: .88rem; padding: .3rem 0; }

/* Mes offres */
.hj-list { display: flex; flex-direction: column; gap: .2rem; }
.hj {
  display: flex; align-items: center; gap: .8rem; padding: .55rem .5rem; margin: 0 -.5rem; border: 0; background: transparent;
  border-radius: 14px; text-align: left; color: inherit; font: inherit; cursor: pointer; transition: background .15s var(--ease);
}
.hj:hover { background: var(--panel-2); }
.hj-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hj-txt b { font-size: .97rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hj-txt small { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hj-side { display: flex; align-items: center; gap: .45rem; flex: 0 0 auto; }
.hj-n { font-size: .78rem; font-weight: 700; color: var(--muted); }
.hj-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: 0 0 8px; }
.hj-dot.on { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }

/* À faire (rendu par notes.js) */
.dash-tasks { display: flex; flex-direction: column; gap: .15rem; }
.dash-tasks .dt-item {
  display: flex; align-items: center; gap: .65rem; width: 100%; padding: .55rem .5rem; margin: 0 -.5rem; width: calc(100% + 1rem);
  border: 0; background: transparent; border-radius: 12px; cursor: pointer; text-align: left; color: var(--txt); font: inherit; font-size: .95rem;
}
.dash-tasks .dt-item:hover { background: var(--panel-2); }
.dash-tasks .dt-check { color: var(--muted); display: inline-flex; }
.dash-tasks .dt-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-tasks .dt-due { font-size: .76rem; color: var(--muted); }
.dash-tasks .dt-item.over .dt-due { color: var(--danger); font-weight: 600; }

/* Le candidat mis en avant */
.hc-spot { text-align: center; align-items: center; padding-top: 1.4rem; }
.hs-k { font-size: 1.18rem; font-weight: 760; letter-spacing: -.02em; margin: 0 0 1.2rem; }
.hs-face { position: relative; margin: .2rem auto 1.1rem; }
.hs-face .av { box-shadow: 0 0 0 5px var(--panel), 0 12px 30px -10px rgba(16,20,40,.35); }
.hs-face .hs-play {
  position: absolute; right: 2px; bottom: 6px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: #e8467c; color: #fff; box-shadow: 0 0 0 4px var(--panel); border: 0; cursor: pointer;
}
.hs-name { font-size: 1.15rem; font-weight: 700; }
.hs-sub { color: var(--muted); font-size: .88rem; margin-top: .15rem; }
.hs-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem; margin: .9rem 0 0; }
.hs-cta { margin-top: 1.1rem; display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.hs-empty { color: var(--muted); font-size: .92rem; max-width: 30ch; margin: 0 auto; }
.hs-empty-art { display: flex; justify-content: center; gap: .4rem; margin: .4rem 0 1rem; }
.hs-empty-art span { width: 62px; height: 80px; border-radius: 12px; background: var(--panel-2); border: 1px dashed var(--line-strong); display: grid; place-items: center; color: var(--muted); }

/* Agenda */
.dash-agenda { display: flex; flex-direction: column; gap: .9rem; }
.dash-cal { background: transparent; border: 0; padding: 0; }
.dc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; text-align: left; }
.dc-head strong { font-size: 1rem; text-transform: capitalize; }
.dc-nav { display: flex; gap: .2rem; }
.dc-nav button { width: 30px; height: 30px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.dc-nav button:hover { background: var(--panel-2); color: var(--txt); }
.dc-wd span { font-size: .72rem; color: var(--muted); font-weight: 600; text-align: center; }
.dc-cell { height: 34px; font-size: .86rem; color: var(--txt); }
.dc-cell.today { background: transparent; color: var(--danger); font-weight: 800; }
.dc-cell.has { font-weight: 700; }
.dc-dot { background: var(--brand); }
.du-item { border-radius: 12px; }

/* Cette semaine : la seule carte en couleur */
.hc-week {
  background: linear-gradient(150deg, var(--week-a), var(--week-b)); border: 0; color: #fff; text-align: center;
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--week-a) 70%, transparent);
}
.hw-head h3 { margin: 0; font-size: 1.22rem; font-weight: 780; letter-spacing: -.02em; }
.hw-head span { font-size: .82rem; opacity: .85; }
.hw-body { display: flex; flex-direction: column; gap: 1.2rem; margin: 1.3rem 0 .4rem; }
.hw-n { font-size: clamp(2.6rem, 4.4vw, 3.6rem); font-weight: 820; letter-spacing: -.05em; line-height: 1; }
.hw-l { font-size: .92rem; font-weight: 500; opacity: .95; margin-top: .25rem; }
.hw-trend { display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--week-a); font-size: .8rem; font-weight: 750; }
.hw-trend.down { color: #b4235a; }
.hw-trend svg { width: 14px; height: 14px; }
.hw-kpis { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .9rem; font-size: .78rem; opacity: .9; margin-top: .6rem; }
.hw-kpis b { font-weight: 750; }
.hc-week .hc-foot { background: rgba(255,255,255,.88); color: var(--week-a); border-top: 0; }
.hc-week .hc-foot:hover { background: #fff; }

/* Votre vitrine (mini) */
.dv { display: flex; flex-direction: column; gap: .8rem; }
.dv-sl { display: flex; align-items: center; gap: .75rem; padding: .7rem; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.dv-sl:hover { border-color: var(--line-strong); }
.dv-sl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dv-sl-t b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-sl-t small { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-decks { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.dv-deck { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) 70% 86%), hsl(calc(var(--h) + 50) 70% 80%)); display: grid; place-items: end start; position: relative; text-decoration: none; }
.dv-deck img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dv-deck span { position: relative; font-size: .64rem; font-weight: 700; color: #fff; padding: .3rem .4rem; text-shadow: 0 1px 4px rgba(0,0,0,.5); line-height: 1.15; }
.dv-line { display: flex; flex-wrap: wrap; gap: .35rem; }
.dv-empty { color: var(--muted); font-size: .88rem; }

/* Pipeline en une ligne */
.hc-pipe { margin-top: 1.25rem; }
.dp { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.dp-col {
  display: flex; flex-direction: column; gap: .55rem; padding: .9rem; border-radius: 16px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-2) 55%, var(--panel)); cursor: pointer; text-align: left; font: inherit; color: inherit;
  transition: border-color .15s var(--ease), transform .12s var(--ease);
}
.dp-col:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.dp-h { display: flex; align-items: center; gap: .45rem; font-size: .84rem; font-weight: 650; }
.dp-h i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: 0 0 9px; }
.dp-n { font-size: 1.7rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.dp-col .avs { min-height: 26px; }
.dashboard-gap { height: 1.25rem; }
#dash-savings { margin-top: 1.25rem; }
#dash-blog-panel { margin-top: 1.25rem; }

/* ── SECTIONS « PRÉSENTER » ─────────────────────────────────────────────── */
.sec-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.sec-hero h3 { margin: 0 0 .3rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.sec-hero p { margin: 0; }
.empty-art { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.1rem; }
.empty-art span { width: 70px; height: 92px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; color: var(--muted); background: var(--panel-2); border: 1px dashed var(--line-strong); }
.empty .primary-btn { margin-top: 1rem; }

/* Dossiers clients */
.dos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.1rem; }
.dcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--card-shadow);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s var(--ease), transform .15s var(--ease);
}
.dcard:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.dcard-top {
  position: relative; padding: 1.3rem 1.2rem 1rem; display: flex; align-items: center; gap: .9rem;
  background: linear-gradient(135deg, hsl(var(--h) 85% 95%), hsl(calc(var(--h) + 40) 80% 92%));
}
:root[data-theme="dark"] .dcard-top { background: linear-gradient(135deg, hsl(var(--h) 30% 20%), hsl(calc(var(--h) + 40) 30% 17%)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dcard-top { background: linear-gradient(135deg, hsl(var(--h) 30% 20%), hsl(calc(var(--h) + 40) 30% 17%)); } }
.dcard-k { position: absolute; top: .8rem; right: .9rem; font-size: .66rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--panel); padding: .18rem .5rem; border-radius: 999px; }
.dcard-who { min-width: 0; display: flex; flex-direction: column; }
.dcard-who b { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard-who small { color: var(--muted); font-size: .84rem; }
.dcard-body { padding: .9rem 1.2rem 1.1rem; display: flex; flex-direction: column; gap: .8rem; }
.dcard-url { font-size: .78rem; color: var(--muted); background: var(--panel-2); border-radius: 10px; padding: .45rem .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.dcard-act { display: flex; flex-wrap: wrap; gap: .45rem; }
.dcard-act .primary-btn { width: auto; }

/* Ma vitrine */
.vit-grid { display: grid; grid-template-columns: minmax(280px, 330px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.vit-col { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.vit-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--card-shadow); padding: 1.3rem; min-width: 0; }
.vit-h { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.vit-k { display: block; font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.vit-h h4 { margin: 0; font-size: 1.2rem; font-weight: 780; letter-spacing: -.02em; }
.vit-act { display: flex; flex-wrap: wrap; gap: .45rem; }
.vit-act .primary-btn { width: auto; }
.vit-hint { color: var(--muted); font-size: .82rem; margin: .9rem 0 0; }

/* Le téléphone : la VRAIE page Smartlink, construite à 390 px puis réduite
   par transform (⛔ jamais `zoom`, faux sur Safari iOS). */
.vit-phone {
  --k: .66; width: calc(390px * var(--k) + 16px); margin: 0 auto 1rem; padding: 8px; border-radius: 38px;
  background: #111318; box-shadow: 0 30px 60px -28px rgba(16,20,40,.55), inset 0 0 0 1.5px #2a2e39;
}
.vit-phone-scr { width: calc(390px * var(--k)); height: calc(760px * var(--k)); border-radius: 30px; overflow: hidden; background: #fff; position: relative; }
.vit-phone iframe { width: 390px; height: 760px; border: 0; transform: scale(var(--k)); transform-origin: 0 0; display: block; }
.vit-phone-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1.2rem; text-align: center; color: #5a6070; font-size: .85rem; background: linear-gradient(160deg, #f5f3ff, #eef4ff); }
.vit-phone-ph b { color: #1c1d21; font-size: 1rem; }
.vit-url { text-align: center; font-size: .82rem; color: var(--muted); margin-bottom: .8rem; word-break: break-all; }
.vit-sl .vit-act { justify-content: center; }

.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.deck {
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel);
  text-decoration: none; color: inherit; transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.deck:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.deck-cov { aspect-ratio: 16 / 9; position: relative; background: linear-gradient(135deg, hsl(var(--h) 75% 86%), hsl(calc(var(--h) + 50) 75% 78%)); display: grid; place-items: center; overflow: hidden; }
.deck-cov img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.deck-cov .deck-ph { position: relative; font-weight: 800; font-size: 1rem; color: rgba(0,0,0,.55); padding: 0 1rem; text-align: center; line-height: 1.2; }
.deck-badge { position: absolute; top: .5rem; left: .5rem; font-size: .66rem; font-weight: 750; padding: .18rem .5rem; border-radius: 999px; background: rgba(255,255,255,.92); color: #1c1d21; }
.deck-badge.on { color: #0b7a5f; }
.deck-b { padding: .7rem .8rem .8rem; display: flex; flex-direction: column; gap: .15rem; }
.deck-b b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-b small { color: var(--muted); font-size: .76rem; }
.deck-tpl { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: .2rem 0 .4rem; }
.deck-tpl img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }

.vj-list { display: flex; flex-direction: column; gap: .2rem; }
.vj { display: flex; align-items: center; gap: .75rem; padding: .55rem .4rem; border-radius: 12px; }
.vj:hover { background: var(--panel-2); }
.vj-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vj-t b { font-size: .94rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vj-t small { color: var(--muted); font-size: .8rem; }
.vit-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.vit-mini { display: flex; align-items: center; gap: .9rem; }
.vit-mini-n { font-size: 2.2rem; font-weight: 820; letter-spacing: -.04em; line-height: 1; }

/* ── PIPELINE ───────────────────────────────────────────────────────────── */
.pipe-jobs { display: flex; gap: .5rem; overflow-x: auto; padding: .1rem .1rem .7rem; margin-bottom: .6rem; scrollbar-width: thin; }
.pj {
  display: inline-flex; align-items: center; gap: .55rem; flex: 0 0 auto; padding: .4rem .8rem .4rem .45rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--txt); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: border-color .15s, background .15s;
}
.pj:hover { border-color: var(--line-strong); }
.pj.on { background: var(--txt); color: var(--panel); border-color: var(--txt); }
.pj .jt { box-shadow: none; }
.pj-n { font-size: .74rem; font-weight: 700; opacity: .7; }
.pj-all { padding-left: .9rem; }

.pipe-head { display: flex; align-items: center; gap: 1rem; margin: .4rem 0 1.1rem; flex-wrap: wrap; }
.pipe-head h3 { margin: 0; font-size: 1.75rem; font-weight: 820; letter-spacing: -.035em; line-height: 1.1; }
.pipe-head-t { flex: 1; min-width: 200px; }
.pipe-head-t small { display: block; color: var(--muted); font-size: .88rem; margin-top: .2rem; }
.pipe-head-act { display: flex; gap: .45rem; flex-wrap: wrap; }
.pipe-toolbar { margin-bottom: 1rem; }
.pipe-toolbar .search { max-width: 380px; }

.pipe-board { display: flex; gap: 1rem; overflow-x: auto; padding: 0 .1rem 1.2rem; align-items: flex-start; min-height: 360px; scroll-snap-type: x proximity; }
/* Les colonnes s'étirent pour remplir la largeur (plus de vide à droite),
   sans descendre sous 220 px : au-delà, le tableau défile. */
.pcol { flex: 1 0 220px; max-width: 420px; display: flex; flex-direction: column; gap: .7rem; scroll-snap-align: start; min-width: 0; }
.pcol-h { display: flex; align-items: center; gap: .5rem; padding: 0 .2rem; font-weight: 700; font-size: .95rem; }
.pcol-h i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: 0 0 10px; }
.pcol-n { min-width: 24px; height: 22px; padding: 0 .45rem; border-radius: 999px; font-size: .74rem; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.pcol-x { margin-left: auto; }
/* Pas de marge négative sur les côtés : sur la dernière colonne elle
   faisait déborder le tableau de quelques pixels (barre de défilement). */
.pcol-drop { display: flex; flex-direction: column; gap: .7rem; min-height: 120px; padding: .35rem 0; margin: -.35rem 0; border-radius: 18px; transition: background .15s, box-shadow .15s; }
.pcol-drop.over, .pcol.sugg .pcol-drop { padding: .35rem; }
.pcol-drop.over { background: color-mix(in srgb, var(--c) 9%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent); }
.pcol-empty { border: 1.5px dashed var(--line-strong); border-radius: 16px; padding: 1.2rem .8rem; text-align: center; color: var(--muted); font-size: .82rem; }
.pcol.sugg .pcol-drop { background: color-mix(in srgb, #8b5cf6 6%, transparent); }
.pcol.slim { flex: 0 0 64px; overflow: hidden; } /* l'en-tête pivoté dépassait d'un pixel */
.pcol.slim .pcol-h { flex-direction: column; gap: .4rem; writing-mode: vertical-rl; transform: rotate(180deg); cursor: pointer; padding: .8rem 0; border-radius: 14px; background: var(--panel-2); }
.pcol.slim .pcol-h i { transform: rotate(180deg); }

.pc {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: .85rem .9rem .9rem;
  box-shadow: var(--card-shadow); cursor: pointer; display: flex; flex-direction: column; gap: .6rem;
  transition: box-shadow .15s var(--ease), transform .12s var(--ease), border-color .15s;
}
.pc:hover { box-shadow: var(--card-shadow-hover); border-color: var(--line-strong); }
.pc.dragging { opacity: .45; transform: rotate(1.5deg); }
.pc.sugg { background: color-mix(in srgb, #8b5cf6 5%, var(--panel)); border-color: color-mix(in srgb, #8b5cf6 22%, var(--line)); }
.pc-h { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.pc-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pc-who b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-who small { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-poster { position: relative; margin: -.85rem -.9rem 0; aspect-ratio: 16 / 8; overflow: hidden; border-radius: 15px 15px 0 0; background: #111; }
.pc-poster img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.pc-poster .pc-play { position: absolute; left: .6rem; bottom: .55rem; display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem .2rem .4rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; font-weight: 700; backdrop-filter: blur(4px); }
.pc-poster .pc-play svg { width: 13px; height: 13px; fill: currentColor; }
.pc-job { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); min-width: 0; }
.pc-job span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-proofs { display: flex; flex-wrap: wrap; gap: .3rem; }
.pc-score { display: flex; align-items: center; gap: .55rem; font-size: .74rem; color: var(--muted); }
.pc-score .sbar { flex: 1; }
.pc-score b { color: var(--txt); font-size: .78rem; }
.pc-act { display: flex; gap: .35rem; flex-wrap: wrap; }
.pc-move { display: none; }

/* Vue liste (historique) : cartes visuelles aussi */
.al-card { display: flex; flex-direction: column; gap: .7rem; }

/* ── CARTES D'OFFRES ────────────────────────────────────────────────────── */
#job-list.cand-list { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.15rem; }
.jc {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--card-shadow);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s var(--ease), transform .15s var(--ease);
}
.jc:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.jc-cov { position: relative; height: 128px; background: linear-gradient(135deg, hsl(var(--h) 85% 90%), hsl(calc(var(--h) + 45) 80% 84%)); display: grid; place-items: center; cursor: pointer; overflow: hidden; }
:root[data-theme="dark"] .jc-cov { background: linear-gradient(135deg, hsl(var(--h) 35% 24%), hsl(calc(var(--h) + 45) 35% 19%)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .jc-cov { background: linear-gradient(135deg, hsl(var(--h) 35% 24%), hsl(calc(var(--h) + 45) 35% 19%)); } }
.jc-cov > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jc-emo { font-size: 3rem; filter: drop-shadow(0 6px 12px rgba(0,0,0,.12)); }
.jc-badges { position: absolute; left: .7rem; top: .7rem; right: .7rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.jc-b { font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: rgba(255,255,255,.94); color: #1c1d21; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.jc-b.on { color: #0b7a5f; }
.jc-b.pitch { color: #5b3df5; }
.jc-body { padding: 1rem 1.15rem .4rem; display: flex; flex-direction: column; gap: .3rem; cursor: pointer; }
.jc-t { font-size: 1.08rem; font-weight: 750; letter-spacing: -.015em; line-height: 1.25; }
.jc-m { color: var(--muted); font-size: .84rem; }
.jc-people { display: flex; align-items: center; gap: .55rem; margin-top: .45rem; font-size: .84rem; color: var(--muted); min-height: 28px; }
.jc-people b { color: var(--txt); }
.jc-act { display: flex; align-items: center; gap: .35rem; padding: .7rem 1.15rem 1rem; flex-wrap: wrap; }
.jc-act .primary-btn { width: auto; }
.jc-act .ghost-btn.icon { width: 34px; height: 34px; padding: 0; }
.jc-act .spacer { flex: 1; }

/* ── CARTES CANDIDATS (vivier) ──────────────────────────────────────────── */
#cand-list.cand-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.vc {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--card-shadow);
  padding: 1.15rem; display: flex; flex-direction: column; gap: .8rem; transition: box-shadow .15s var(--ease), transform .15s var(--ease);
}
.vc:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.vc-top { display: flex; align-items: center; gap: .85rem; cursor: pointer; min-width: 0; }
.vc-who { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.vc-who b { font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-who small { color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc .chips { margin-top: 0; }
.vc-flags { display: flex; gap: .35rem; flex-wrap: wrap; }
.vc-act { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin-top: auto; }
.vc-act .primary-btn { width: auto; }
.vc-act .ghost-btn.icon { width: 34px; height: 34px; padding: 0; }
.vc-act .spacer { flex: 1; }

/* ── TIROIR : la fiche d'un candidat ────────────────────────────────────── */
.drawer-root { position: fixed; inset: 0; z-index: 45; }
.drawer-scrim { position: absolute; inset: 0; background: color-mix(in srgb, #05060a 38%, transparent); opacity: 0; transition: opacity .22s var(--ease); }
.drawer {
  position: absolute; top: 0; right: 0; height: 100%; width: min(600px, 100vw); background: var(--bg);
  box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .26s var(--ease); display: flex; flex-direction: column;
}
.drawer-root.open .drawer-scrim { opacity: 1; }
.drawer-root.open .drawer { transform: none; }
.drawer-x { position: absolute; top: .8rem; right: .8rem; z-index: 3; background: var(--panel); width: 38px; height: 38px; padding: 0; border-radius: 50%; }
.drawer-body { overflow-y: auto; flex: 1; padding-bottom: 2rem; }
body.drawer-on { overflow: hidden; }

.fx-cover { position: relative; height: 128px; background: linear-gradient(135deg, hsl(var(--h) 85% 88%), hsl(calc(var(--h) + 50) 80% 82%)); }
:root[data-theme="dark"] .fx-cover { background: linear-gradient(135deg, hsl(var(--h) 35% 24%), hsl(calc(var(--h) + 50) 35% 18%)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fx-cover { background: linear-gradient(135deg, hsl(var(--h) 35% 24%), hsl(calc(var(--h) + 50) 35% 18%)); } }
.fx-cover img { width: 100%; height: 100%; object-fit: cover; display: block; filter: blur(16px) saturate(1.2); transform: scale(1.2); opacity: .7; }
.fx-head { padding: 0 1.5rem; margin-top: -54px; position: relative; }
.fx-head .av { box-shadow: 0 0 0 5px var(--bg), 0 14px 30px -12px rgba(16,20,40,.4); }
.fx-name { margin: .8rem 0 .15rem; font-size: 1.6rem; font-weight: 820; letter-spacing: -.035em; line-height: 1.15; }
.fx-sub { color: var(--muted); font-size: .94rem; }
.fx-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.fx-cta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 0; }
.fx-cta .primary-btn { width: auto; }
.fx-steps { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: 1.1rem; }
.fx-step {
  display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .7rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.fx-step i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); opacity: .45; }
.fx-step:hover { border-color: var(--line-strong); color: var(--txt); }
.fx-step.on { background: color-mix(in srgb, var(--c) 14%, var(--panel)); border-color: color-mix(in srgb, var(--c) 45%, transparent); color: var(--txt); }
.fx-step.on i { opacity: 1; }
.fx-sec { margin: 1.4rem 1.5rem 0; padding: 1.15rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.fx-sec h4 { margin: 0 0 .85rem; font-size: .78rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.fx-video { border-radius: 14px; overflow: hidden; background: #000; }
.fx-video video { width: 100%; max-height: 360px; display: block; background: #000; }
.fx-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; margin-top: .6rem; }
.fx-gallery a { display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.fx-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-measures { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.fx-measures p { margin: .55rem 0 0; font-size: .86rem; color: var(--muted); }
.fx-kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem .9rem; font-size: .9rem; }
.fx-kv span { color: var(--muted); }
.fx-kv a { color: var(--brand); text-decoration: none; word-break: break-all; }
.fx-text { white-space: pre-wrap; line-height: 1.55; font-size: .93rem; margin: 0; }
.fx-tl { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--line); }
.fx-tl li { position: relative; margin: 0 0 .85rem; font-size: .9rem; }
.fx-tl li::before { content: ""; position: absolute; left: calc(-1rem - 6px); top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--panel); border: 2px solid var(--brand); }
.fx-tl small { color: var(--muted); }
.fx-apps { display: flex; flex-direction: column; gap: .45rem; }
.fx-app { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.fx-app span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-pill { font-size: .72rem; font-weight: 700; padding: .18rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); white-space: nowrap; }
.fx-foot { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.3rem 1.5rem 0; }
.fx-warn { font-size: .78rem; color: var(--muted); margin: .7rem 0 0; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .hb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-col:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .vit-grid { grid-template-columns: 1fr; }
  .vit-sl { max-width: 460px; }
}
@media (max-width: 860px) {
  .app-view[data-section="dashboard"] #section-title { visibility: visible; }
  .hb { grid-template-columns: 1fr; }
  .hb-col:nth-child(3) { display: flex; }
  .dp { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; }
  .hello { margin-top: 0; }
  .hello-t { font-size: 1.65rem; }
  .vit-two { grid-template-columns: 1fr; }
  .fx-measures { grid-template-columns: 1fr; }
  .pcol { flex: 0 0 82vw; max-width: none; }
  /* Pas de glisser-déposer au doigt : un sélecteur d'étape sur chaque carte. */
  .pc-move { display: block; }
}
@media (max-width: 520px) {
  .hello-actions { width: 100%; }
  .hello-actions > * { flex: 1; }
  .fx-head, .fx-sec, .fx-foot { margin-left: 1rem; margin-right: 1rem; }
  .fx-head { padding: 0 1rem; margin-left: 0; margin-right: 0; }
  .dos-grid { grid-template-columns: 1fr; }
}
.dash-copilot { margin-top: 1.25rem; }
/* `.dc-cell.empty` héritait du bloc `.empty` (état vide : 3rem de marge,
   bordure) : les trois colonnes des jours vides s'élargissaient et
   écrasaient les autres. Une cellule vide n'a ni marge ni décor. */
.dc-cell.empty { padding: 0; border: 0; background: none; box-shadow: none; }
a.ghost-btn, a.primary-btn, a.chip-ic { text-decoration: none; }
.dcard-has { display: flex; flex-wrap: wrap; gap: .3rem; }
/* Écrans peu hauts (portables 768 px) : le menu tient encore sans défiler. */
@media (min-width: 861px) and (max-height: 840px) {
  .nav-item { padding: .3rem .7rem; font-size: .87rem; }
  .nav-group { padding: .45rem .75rem .1rem; }
  .sidebar { gap: .45rem; padding-top: .9rem; padding-bottom: .8rem; }
  .sidebar-foot { gap: .4rem; }
  .nav-sep { margin: .2rem .3rem; }
}
