/* ATS ASI : charte ASI (rouge #D42F34, anthracite #1A1A1A, fond clair, une seule famille sans-serif) */
:root {
  --red: #D42F34;
  --red-dark: #B02328;
  --red-soft: #FBE9E9;
  --ink: #1A1A1A;
  --ink-2: #3B3B3B;
  --muted: #6B6B6B;
  --line: #E4E4E4;
  --line-strong: #CFCFCF;
  --canvas: #F5F5F4;
  --paper: #FFFFFF;
  --shadow: 0 1px 2px rgba(26, 26, 26, .06), 0 1px 3px rgba(26, 26, 26, .05);
  --shadow-lg: 0 12px 32px rgba(26, 26, 26, .18);
  --radius: 8px;
  --stage-new: #C4C4C4;
  --stage-screening: #9C9C9C;
  --stage-interview: #6B6B6B;
  --stage-offer: #1A1A1A;
  --stage-hired: #D42F34;
  --stage-rejected: #E4E4E4;
  --sidebar: 244px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --- Structure ---------------------------------------------------------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--paper); border-right: 1px solid var(--line); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 18px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.brand img { height: 26px; display: block; }
.brand span { font-weight: 600; padding-left: 10px; border-left: 1px solid var(--line); }
.nav { display: grid; gap: 2px; }
.nav-title { margin: 18px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; color: var(--ink-2);
  position: relative; text-decoration: none;
}
.nav a:hover { background: var(--canvas); text-decoration: none; }
.nav a.active { background: var(--red-soft); color: var(--ink); font-weight: 600; }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; background: var(--red); border-radius: 0 3px 3px 0; }
.nav .count { margin-left: auto; font-size: 11px; background: var(--red); color: #fff; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.sidebar-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.sidebar-foot a { color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: var(--paper);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.btn.menu-btn { display: none; }
.content { padding: 24px 28px 48px; width: 100%; max-width: 1480px; margin: 0 auto; flex: 1; }
.footer { padding: 14px 28px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); background: var(--paper); }
.footer a { color: var(--muted); }

/* --- Recherche globale -------------------------------------------------- */
.search { position: relative; width: min(460px, 100%); }
.search input { width: 100%; padding-left: 34px; background: var(--canvas); border-color: transparent; }
.search input:focus { background: var(--paper); border-color: var(--line-strong); }
.search > .icon { position: absolute; left: 11px; top: 11px; color: var(--muted); pointer-events: none; }
.search kbd { position: absolute; right: 10px; top: 8px; font-size: 11px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; background: var(--paper); }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 40; max-height: 70vh; overflow-y: auto;
}
.search-results h4 { padding: 10px 14px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: var(--ink); text-decoration: none; }
.search-results a:hover, .search-results a.focus { background: var(--canvas); }
.search-results .none { padding: 14px; color: var(--muted); }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; padding: 4px 6px; border-radius: 6px; color: var(--ink); }
.user-btn:hover { background: var(--canvas); }
.user-pop {
  position: absolute; right: 0; top: calc(100% + 6px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 240px; padding: 8px; z-index: 40;
}
.user-pop .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-pop button { width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.user-pop button:hover { background: var(--canvas); }

/* --- En-tête de page ---------------------------------------------------- */
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; align-items: center; }

/* --- Boutons et champs -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 6px;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; line-height: 1.25;
  white-space: nowrap;
}
.btn:hover { background: var(--canvas); text-decoration: none; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { border-color: var(--line-strong); }
.btn.danger { color: var(--red); border-color: var(--red); }
.btn.danger.solid { background: var(--red); color: #fff; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.icon-only { padding: 7px; }
.btn:disabled { opacity: .5; cursor: default; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 10px;
  max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
textarea { width: 100%; min-height: 90px; resize: vertical; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"],
input[type="datetime-local"], input[type="number"], input[type="tel"], input[type="url"], input[type="file"] { width: 100%; }
label.field { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
label.field > span.req::after { content: " *"; color: var(--red); }
.hint { font-size: 12px; color: var(--muted); }
.error-text { color: var(--red-dark); font-size: 13px; min-height: 18px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink); }
.check input { margin-top: 3px; accent-color: var(--red); }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
fieldset.group { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 0; }
fieldset.group legend { padding: 0 6px; font-size: 12px; color: var(--muted); }

/* --- Cartes, tableaux, badges ------------------------------------------ */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 14px; }
.card-body { padding: 16px; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.aside { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi.accent { border-top: 3px solid var(--red); }
.kpi .value { font-size: 28px; font-weight: 600; line-height: 1.15; }
.kpi .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.kpi .delta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11px; color: var(--muted); font-weight: 600; background: var(--canvas); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #FAFAF9; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--canvas); color: var(--ink-2); white-space: nowrap; line-height: 20px; }
.badge.red { background: var(--red); border-color: var(--red); color: #fff; }
.badge.soft { background: var(--red-soft); border-color: var(--red-soft); color: var(--red-dark); }
.badge.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge.outline { background: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 1px 8px; border-radius: 4px; background: var(--canvas); color: var(--ink-2); border: 1px solid var(--line); }
.chip button { background: none; border: 0; cursor: pointer; padding: 0; color: var(--muted); line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.avatar.sm { width: 26px; height: 26px; font-size: 10px; }
.avatar.c1 { background: #1A1A1A; } .avatar.c2 { background: #D42F34; } .avatar.c3 { background: #6B6B6B; } .avatar.c4 { background: #8C2226; } .avatar.c5 { background: #3B3B3B; }
.score { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 12px; padding: 0 8px; border-radius: 999px; line-height: 20px; border: 1px solid var(--line-strong); background: var(--paper); }
.score.high { background: var(--red); border-color: var(--red); color: #fff; }
.score.mid { background: var(--red-soft); border-color: var(--red-soft); color: var(--red-dark); }
.stars { color: var(--red); letter-spacing: 1px; font-size: 12px; white-space: nowrap; }
.stars .off { color: var(--line-strong); }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); margin: 10px 0 4px; font-size: 16px; }
.empty .icon { width: 36px; height: 36px; color: var(--line-strong); }
.empty .btn { margin-top: 14px; }
.skeleton { background: linear-gradient(90deg, #ECECEB 25%, #F6F6F5 50%, #ECECEB 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 6px; height: 14px; margin: 10px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.pager:empty { display: none; }

/* --- Filtres ------------------------------------------------------------ */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filters input[type="search"] { max-width: 280px; }
.filters select { max-width: 220px; }
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: var(--paper); }
.segmented button { border: 0; background: none; padding: 7px 12px; cursor: pointer; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.segmented button.active { background: var(--ink); color: #fff; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--red); font-weight: 600; }

/* --- Tunnel de recrutement ---------------------------------------------- */
.funnel-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--canvas); gap: 2px; }
.funnel-bar span { display: block; min-width: 4px; }
.funnel-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.funnel-legend b { color: var(--ink); font-weight: 600; }
.funnel { display: grid; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 120px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; }
.funnel-row .track { height: 22px; background: var(--canvas); border-radius: 4px; overflow: hidden; }
.funnel-row .fill { height: 100%; border-radius: 4px; min-width: 2px; transition: width .3s; }
.funnel-row .n { text-align: right; font-weight: 600; }
.funnel-row .conv { font-size: 11px; color: var(--muted); }

/* --- Cartes de postes --------------------------------------------------- */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.job-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s; position: relative; }
.job-card:hover { border-color: var(--ink); box-shadow: 0 4px 14px rgba(26, 26, 26, .1); }
.job-card h3 { font-size: 16px; padding-right: 30px; }
.job-card .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.job-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.job-card.closed { opacity: .72; }
.job-card .menu { position: absolute; top: 10px; right: 10px; }
.job-card .foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.menu-btn-dots { background: none; border: 0; cursor: pointer; padding: 4px; border-radius: 6px; color: var(--muted); }
.menu-btn-dots:hover { background: var(--canvas); color: var(--ink); }
.pop-menu { position: absolute; right: 0; top: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 190px; padding: 6px; z-index: 30; }
.pop-menu button { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.pop-menu button:hover { background: var(--canvas); }
.pop-menu .sep { height: 1px; background: var(--line); margin: 4px 0; }
.pop-menu .danger-item { color: var(--red); }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
.detail-grid dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.detail-grid dd { margin: 2px 0 0; }
.prose { white-space: pre-wrap; line-height: 1.6; }

/* --- Pipeline (kanban) -------------------------------------------------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: #EEEEED; border-radius: var(--radius); padding: 8px; min-height: 220px; border: 2px solid transparent; }
.col.over { border-color: var(--red); background: var(--red-soft); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.col-head .n { margin-left: auto; background: var(--paper); border-radius: 999px; padding: 0 8px; line-height: 20px; color: var(--muted); }
.kcard { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; box-shadow: var(--shadow); position: relative; }
.kcard:hover { border-color: var(--ink); }
.kcard.selected { border-color: var(--red); background: #FFF8F8; }
.kcard.dragging { opacity: .5; }
.kcard .top { display: flex; gap: 10px; align-items: flex-start; }
.kcard .name { font-weight: 600; line-height: 1.25; }
.kcard .sub { font-size: 12px; color: var(--muted); }
.kcard .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.kcard .select { position: absolute; top: 8px; right: 8px; opacity: 0; }
.kcard:hover .select, .kcard.selected .select, .selection-on .kcard .select { opacity: 1; }
.kcard .quick { display: none; gap: 4px; margin-top: 8px; }
.kcard:hover .quick { display: flex; }
.kcard .time { font-size: 11px; color: var(--muted); margin-left: auto; }
.bulkbar {
  position: sticky; bottom: 16px; margin: 16px auto 0; width: fit-content; max-width: 100%; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 15;
}
.bulkbar select { background: #fff; }
.bulkbar .btn { border-color: #fff; background: transparent; color: #fff; }
.bulkbar .btn.primary { background: var(--red); border-color: var(--red); }

/* --- Panneau latéral et fenêtres --------------------------------------- */
.scrim { position: fixed; inset: 0; background: rgba(26, 26, 26, .4); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: var(--paper); z-index: 61; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide .18s ease-out; }
.drawer.narrow { width: min(560px, 100%); }
@keyframes slide { from { transform: translateX(24px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }
.drawer-head { padding: 18px 22px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.drawer-body { padding: 18px 22px 28px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 12px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; background: var(--paper); }
.modal { position: fixed; z-index: 62; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 40px); background: var(--paper); border-radius: 10px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.modal.wide { width: min(760px, calc(100% - 24px)); }
.modal-head { padding: 18px 22px 8px; display: flex; align-items: center; gap: 10px; }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 8px 22px 18px; overflow-y: auto; }
.modal-foot { padding: 12px 22px 18px; display: flex; justify-content: flex-end; gap: 8px; }
.stepper { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 12px; }
.stepper button { border: 1px solid var(--line-strong); background: var(--paper); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.stepper button:hover { border-color: var(--ink); }
.stepper button.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.stepper button.rejected.current { background: var(--red); border-color: var(--red); }
.section { margin-top: 22px; }
.section > h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.section > h4 .btn { margin-left: auto; text-transform: none; letter-spacing: 0; }
.cv-text { white-space: pre-wrap; background: var(--canvas); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; max-height: 320px; overflow-y: auto; font-size: 13px; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: 0; }
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding-bottom: 14px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--paper); background: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); margin-top: 3px; }
.tl-dot.note { background: var(--line-strong); }
.tl-dot.stage { background: var(--ink); }
.tl-dot.mail { background: var(--muted); }
.tl-dot.agent { background: var(--red); }
.tl-dot.interview { background: var(--red-dark); }
.tl-meta { font-size: 12px; color: var(--muted); }
.tl-body { white-space: pre-wrap; }
.interview-card { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; background: var(--paper); }
.interview-card .when { text-align: center; min-width: 54px; }
.interview-card .when b { display: block; font-size: 20px; line-height: 1; }
.interview-card .when span { font-size: 11px; text-transform: uppercase; color: var(--red); }
.day-group { margin-bottom: 22px; }
.day-group > h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 70px; gap: 10px; align-items: center; font-size: 13px; }
.bar-row .track { height: 10px; background: var(--canvas); border-radius: 999px; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--ink); border-radius: 999px; }
.bar-row .fill.red { background: var(--red); }

/* --- Notifications ------------------------------------------------------ */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 80; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; animation: pop .18s ease-out; }
.toast.error { background: var(--red-dark); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

/* --- Connexion ---------------------------------------------------------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--canvas); }
.auth-card { width: min(400px, 100%); background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.auth-card img { height: 30px; margin-bottom: 18px; display: block; }
.auth-card h1 { font-size: 20px; }
.auth-card form { display: grid; gap: 14px; margin-top: 18px; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid.aside { grid-template-columns: 1fr; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 70; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 10px 14px; }
  .content { padding: 16px 14px 40px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .search kbd { display: none; }
  .user-btn .who-name { display: none; }
  .modal { top: 12px; transform: translateX(-50%); max-height: calc(100vh - 24px); }
}
@media print { .sidebar, .topbar, .footer, .actions { display: none !important; } .app { display: block; } }

/* Annonce à la façon ASI : Navy, Rouge, gris de la charte ; Century Gothic */
.annonce-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.annonce-bar .grow { flex: 1; min-width: 220px; }
.annonce {
  --navy: #0F043C; --a-red: #D32E33; --a-gray: #5F5F5F; --a-light: #F2F2F2;
  max-width: 820px; margin: 0 auto 24px; background: #fff; color: var(--navy); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 44px 52px; box-shadow: var(--shadow);
  font-family: "Century Gothic", "CenturyGothic", "Apple Gothic", "Avant Garde", "URW Gothic", Questrial, sans-serif; line-height: 1.6;
}
.annonce-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--a-light); margin-bottom: 28px; }
.annonce-head img { height: 34px; }
.annonce-tag { color: var(--a-gray); font-size: 12px; text-align: right; }
.annonce-title { font-size: 28px; line-height: 1.2; margin: 0 0 14px; display: flex; gap: 14px; align-items: flex-start; font-weight: 700; }
.annonce-title .dash { flex: none; width: 26px; height: 5px; background: var(--a-red); margin-top: 14px; border-radius: 1px; }
.annonce-hook { font-size: 17px; color: var(--a-red); font-weight: 600; margin: 0 0 22px; }
.annonce-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; background: var(--a-light); padding: 14px 18px; border-radius: 6px; margin: 0 0 26px; }
.annonce-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--a-gray); }
.annonce-facts dd { margin: 0; font-weight: 600; }
.annonce-section { margin-bottom: 24px; }
.annonce-section h2 { font-size: 17px; margin: 0 0 8px; display: flex; gap: 10px; align-items: center; }
.annonce-section h2::before { content: ""; width: 14px; height: 4px; background: var(--a-red); border-radius: 1px; flex: none; }
.annonce-section p { margin: 0; color: var(--navy); }
.annonce-list { list-style: none; margin: 0; padding: 0; }
.annonce-list li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.annonce-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--a-red); border-radius: 50%; }
.annonce-foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--a-light); color: var(--a-gray); font-size: 14px; }
.annonce-foot p { margin: 0 0 4px; }
.annonce-foot b { color: var(--navy); }
@media (max-width: 640px) { .annonce { padding: 26px 20px; } .annonce-title { font-size: 22px; } }
@media print {
  .crumbs, .page-head, .tabs, .annonce-bar, .badge.soft { display: none !important; }
  body, .app, .main { background: #fff !important; }
  .annonce { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .annonce-title .dash, .annonce-section h2::before, .annonce-list li::before, .annonce-facts { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.analysis { max-width: 820px; margin: 0 auto 24px; }
.analysis h4 { margin: 0 0 6px; font-size: 14px; }
.analysis ul { margin: 0 0 8px; padding-left: 18px; }
.analysis-top { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; margin-bottom: 20px; }
.analysis-dims { display: grid; gap: 8px; }
.dim { display: grid; grid-template-columns: 190px 1fr 52px; gap: 4px 10px; align-items: center; font-size: 13px; }
.dim small { grid-column: 1 / -1; }
.dim .track { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.dim .fill { height: 100%; background: var(--red); }
.analysis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
@media (max-width: 640px) { .analysis-top { grid-template-columns: 1fr; } .dim { grid-template-columns: 1fr 52px; } .dim .track { grid-column: 1 / -1; } }
@media print { .analysis { display: none !important; } }
